Browse Source

岸线状态位刷新只刷新状态位正常的,状态刷新为 4 , 增加更新人员配置

zoro 4 months ago
parent
commit
128c1df719

+ 2 - 1
src/main/java/com/shcd/service/impl/ShorelineManageInfoServiceImpl.java

@@ -35,8 +35,9 @@ public class ShorelineManageInfoServiceImpl extends ServiceImpl<ShorelineManageI
             return ReturnT.SUCCESS;
         } else {
             shorelineManageInfos.forEach(i -> {
-                i.setLineStatus(2);
+                i.setLineStatus(4);
                 i.setUDate(new Date());
+                i.setUpdateUser("5043");
             });
             boolean updated = this.updateBatchById(shorelineManageInfos);
             if (updated) {

+ 1 - 0
src/main/resources/mapper/ShorelineManageInfoMapper.xml

@@ -98,5 +98,6 @@
     <select id="getAllNeedUpdate" resultType="com.shcd.entity.ShorelineManageInfo">
         select * from GHJG_CHANNEL.SHORELINE_MANAGE_INFO
         where EFFECTIVE_END_DATE &lt; sysdate
+        and LINE_STATUS = 0
     </select>
 </mapper>