Browse Source

fix 模板编辑

he2802 3 năm trước cách đây
mục cha
commit
d59c31edbd

+ 0 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/bo/ProfileTpEditBo.java

@@ -55,7 +55,6 @@ public class ProfileTpEditBo {
     private String keyValue2;
     /** 商品id拼接,多个,拼接 */
     @ApiModelProperty("商品id拼接,多个,拼接")
-    @TableField(updateStrategy = FieldStrategy.IGNORED)
     private String goodsIds;
 
 }

+ 1 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/domain/ProfileTp.java

@@ -45,5 +45,6 @@ private static final long serialVersionUID=1L;
     /** 第二个页面key值 */
     private String keyValue2;
     /** 商品id拼接,多个,拼接 */
+    @TableField(updateStrategy = FieldStrategy.IGNORED)
     private String goodsIds;
 }

+ 2 - 1
zhongzheng-system/src/main/resources/mapper/modules/course/CourseMapper.xml

@@ -449,7 +449,8 @@
         (case WHEN (SELECT COUNT(1) FROM exam_before_goods ebg LEFT JOIN exam_before eb on ebg.before_id = eb.before_id where ebg.goods_id = g.goods_id and eb.`status` = 1 and unix_timestamp(now()) BETWEEN eb.before_start_time and eb.before_end_time) >0 then 1 ELSE 0 end) as before_status,
         (SELECT ea.apply_name FROM exam_apply_goods eag LEFT JOIN exam_apply ea on eag.apply_id = ea.apply_id where eag.goods_id = g.goods_id and ea.`status` = 1 and unix_timestamp(now()) BETWEEN ea.apply_start_time and ea.apply_end_time) as apply_name,
         (SELECT eb.before_name FROM exam_before_goods ebg LEFT JOIN exam_before eb on ebg.before_id = eb.before_id where ebg.goods_id = g.goods_id and eb.`status` = 1 and unix_timestamp(now()) BETWEEN eb.before_start_time and eb.before_end_time) as before_name,
-        (SELECT `status` from user_profile where user_id = o.user_id and goods_id = g.goods_id and current_status = 1 and type_status = 1 limit 1 ) as profile_status
+        (SELECT `status` from user_profile where user_id = o.user_id and goods_id = g.goods_id and current_status = 1 and type_status = 1 limit 1 ) as profile_status,
+        (case WHEN(SELECT COUNT(1) from profile_tp where `status`=1 and FIND_IN_SET(g.goods_id,goods_ids) ) >0 then 1 ELSE 0 end) as profile_tp_status
         FROM
         `order` o
         LEFT JOIN order_goods og ON og.order_sn = o.order_sn