2021年10月16日
摘要: 遍历方法: public class SysTest { /** * 构建前端所需要树结构 * * @param depts 部门列表 * @return 树结构列表 */ public List<SysDept> buildDeptTree(List<SysDept> depts) { List< 阅读全文
posted @ 2021-10-16 18:28 微笑的蜗牛 阅读(369) 评论(0) 推荐(0) 编辑
  2020年7月29日
摘要: //需要先转换成数字再进行排序 1.直接用加法 字符串+0 eg: select * from orders order by (mark+0) desc 2.使用函数 CAST(value as type); CONVERT(value, type); 注: 这里的type可以为: 浮点数 : D 阅读全文
posted @ 2020-07-29 08:43 微笑的蜗牛 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>com.vdurmont</groupId> <artifactId>emoji-java</artifactId> <version>5.1.1</version> </dependency> package com.jeeplus.modules.ff 阅读全文
posted @ 2020-07-29 08:42 微笑的蜗牛 阅读(426) 评论(0) 推荐(0) 编辑
  2020年7月14日
摘要: 1.trim 标签 <trim prefix="having" suffix=";" prefixOverrides="and"> <if test="startTime != null "> MAX( b.follow_time ) <![CDATA[ >= ]]> #{startTime} </ 阅读全文
posted @ 2020-07-14 08:47 微笑的蜗牛 阅读(239) 评论(0) 推荐(0) 编辑
摘要: List<SmallSetVo> list4 =listTransactional4.stream().map(a->{ SmallSetVo vo = new SmallSetVo(); BeanUtils.copyProperties(e, vo); return vo; }).collect( 阅读全文
posted @ 2020-07-14 08:45 微笑的蜗牛 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 1.替换,拼接 REPLACE ( group_concat( DISTINCT ROUND( c.area) ORDER BY c.area ), ',', '/' ) 2.FIND_IN_SET查询 SELECT a.*, REPLACE ( group_concat(b.policy_name 阅读全文
posted @ 2020-07-14 08:43 微笑的蜗牛 阅读(304) 评论(0) 推荐(0) 编辑
  2019年11月15日
摘要: 加密工具类 public class Md5Utils { public static String getMD5(String str) { try { // 生成一个MD5加密计算摘要 MessageDigest md = MessageDigest.getInstance("MD5"); // 阅读全文
posted @ 2019-11-15 14:23 微笑的蜗牛 阅读(1420) 评论(0) 推荐(0) 编辑
  2019年10月24日
摘要: <update id="updateTotalState" parameterType="java.util.List"> <foreach collection="list" item="item" index="index" open="" close="" separator=";"> UPD 阅读全文
posted @ 2019-10-24 14:15 微笑的蜗牛 阅读(193) 评论(0) 推荐(0) 编辑
  2019年10月22日
摘要: package com.dosion.shop.common.core.util; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; /*** * 日期工具类 * * @author damao ... 阅读全文
posted @ 2019-10-22 14:14 微笑的蜗牛 阅读(264) 评论(0) 推荐(0) 编辑
  2019年10月9日
摘要: 在类中的位置不同 重点 成员变量:类中,方法外 局部变量:方法中或者方法声明上(形式参数) 作用范围不一样 重点 成员变量:类中 局部变量:方法中 初始化值的不同 重点 成员变量:有默认值 局部变量:没有默认值。必须先定义,赋值,最后使用 在内存中的位置不同 了解 成员变量:堆内存 局部变量:栈内存 生命周期不同 了解 成员变量:随着对象的创建而存在,随着对象的消失而消失 局部变量:随着方法的调用 阅读全文
posted @ 2019-10-09 21:57 微笑的蜗牛 阅读(139) 评论(0) 推荐(0) 编辑