摘要: <!-- 查询同级的如果有数据,就store_code+1返回,没有的话就找上一级的store_code拼接上1001返回--> <select id="getStoreCode" parameterType="java.util.Map" resultType="java.lang.String" 阅读全文
posted @ 2022-11-29 17:38 梦幻&浮云% 阅读(103) 评论(0) 推荐(0)
摘要: select t2.id,t2.pid from( select @r as _id, (select @r := pid from tf_store_info where id = _id) as parent_id, @I := @I + 1 as lvl from (select @r :=1 阅读全文
posted @ 2022-10-09 19:41 梦幻&浮云% 阅读(1336) 评论(0) 推荐(0)
摘要: -- 获取当前id包含以下层级的所有idCREATE DEFINER=`root`@`%` FUNCTION `func_getChildIds`(orgid varchar(512)) RETURNS varchar(2048) CHARSET utf8 BEGIN #根据当前组织id获取组织及以 阅读全文
posted @ 2022-08-17 16:07 梦幻&浮云% 阅读(1027) 评论(0) 推荐(0)
摘要: 1、 /** * media_type 媒体文件类型,分别有图片(image)、视频(video)、普通文件(file) * attachment_type 附件类型,不同的附件类型用于不同的场景。1:朋友圈;2:商品图册 * 上传附件资源 * @author zqd * @date 2022/6/ 阅读全文
posted @ 2022-07-01 14:30 梦幻&浮云% 阅读(410) 评论(0) 推荐(0)
摘要: <el-col :span="18"> <el-button type="text" :class="{timeButtonFalse:todayButton}" @click="today">今天</el-button> <el-button type="text" :class="{timeBu 阅读全文
posted @ 2022-06-09 11:32 梦幻&浮云% 阅读(1197) 评论(0) 推荐(0)
摘要: <template> <div> <div class="crumbs"> </div> <div class="container"> <div class="form-box"> <el-form ref="formRef" :rules="rules" :model="form" label- 阅读全文
posted @ 2022-05-30 15:09 梦幻&浮云% 阅读(389) 评论(0) 推荐(0)
摘要: //重点关注的是@Transactional注解和TransactionAspectSupport.currentTransactionStatus().setRollbackOnly()@Override @Transactional(rollbackFor = RuntimeException. 阅读全文
posted @ 2022-05-23 16:49 梦幻&浮云% 阅读(456) 评论(0) 推荐(1)
摘要: 方法1、 SELECT si.id, si.pid, si.last_level_name lastLevelName FROM tf_store_info si id pid name 2122 0 **有限公司 2123 2122 hx 2133 2122 测试2 2134 2133 测试3 2 阅读全文
posted @ 2022-04-25 18:01 梦幻&浮云% 阅读(542) 评论(0) 推荐(0)
摘要: @JsonFormat @JsonFormat是Jackson的注解,用来格式化序列化后的时间类型字段 不使用@JsonFormat格式化时间 public class User implements Serializable { private Date creatTime; ... } 序列化结 阅读全文
posted @ 2022-04-20 17:41 梦幻&浮云% 阅读(393) 评论(0) 推荐(0)
摘要: string ids = "a,b,c,d,e"; List<String> idsList = new ArrayList<>(Arrays.asList(ids.split(","))); System.out.println(idsList); for(int i=0;i<list1.size 阅读全文
posted @ 2022-04-15 10:43 梦幻&浮云% 阅读(2810) 评论(0) 推荐(0)