浏览代码

通知列表

change 3 年之前
父节点
当前提交
4839c1fbf6

+ 8 - 7
zhongzheng-system/src/main/java/com/zhongzheng/modules/inform/service/impl/InformClassifyServiceImpl.java

@@ -79,13 +79,14 @@ public class InformClassifyServiceImpl extends ServiceImpl<InformClassifyMapper,
         InformClassify update = BeanUtil.toBean(bo, InformClassify.class);
         validEntityBeforeSave(update);
         update.setUpdateTime(DateUtils.getNowTime());
-
-        LambdaQueryWrapper<InformClassify> lqw = Wrappers.lambdaQuery();
-        lqw.eq( InformClassify::getParentId, bo.getClassifyId());
-        InformClassify informClassify = new InformClassify();
-        informClassify.setStatus(-1);
-        informClassify.setUpdateTime(DateUtils.getNowTime());
-        baseMapper.update(informClassify,lqw);
+        if (bo.getStatus() == -1) {
+            LambdaQueryWrapper<InformClassify> lqw = Wrappers.lambdaQuery();
+            lqw.eq(InformClassify::getParentId, bo.getClassifyId());
+            InformClassify informClassify = new InformClassify();
+            informClassify.setStatus(-1);
+            informClassify.setUpdateTime(DateUtils.getNowTime());
+            baseMapper.update(informClassify, lqw);
+        }
         return this.updateById(update);
     }
 

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/inform/InformCourseMapper.xml

@@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         WHERE
         1=1
         <if test="informId != null and informId != ''">
-            ie.inform_id =  #{informId}
+            and ie.inform_id =  #{informId}
         </if>
     </select>
 </mapper>

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/inform/InformExamMapper.xml

@@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         WHERE
         1=1
         <if test="informId != null and informId != ''">
-            ie.inform_id =  #{informId}
+           and ie.inform_id =  #{informId}
         </if>
     </select>
 

+ 1 - 0
zhongzheng-system/src/main/resources/mapper/modules/inform/InformMapper.xml

@@ -38,6 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <select id="listInform" parameterType="com.zhongzheng.modules.inform.bo.InformQueryBo"  resultMap="InformVo">
         SELECT
         i.inform_name,
+        i.inform_id,
         i.inform_way,
         i.create_by,
         i.inform_type,