15143018065 3 mesiacov pred
rodič
commit
3d2b8f2d2f

+ 2 - 2
ruoyi-modules/mz-lnst/src/main/java/com/ruoyi/lnst/service/impl/ZwywLrJbxxServiceImpl.java

@@ -1303,6 +1303,7 @@ public class ZwywLrJbxxServiceImpl implements IZwywLrJbxxService {
             inbaidu.setLrJmzjhm(old.getLrJmzjhm());
             uploadBaiduBuildOnly(inbaidu);
             try {
+                zwywLrJbxx.setCreateUserId(String.valueOf(SecurityUtils.getUserId()));
                 InLnstLrxxHi in = new InLnstLrxxHi();
                 BeanUtil.copyProperties(old, in, new CopyOptions().ignoreNullValue());
                 in.setId(IdUtils.simpleUUID());
@@ -1322,10 +1323,10 @@ public class ZwywLrJbxxServiceImpl implements IZwywLrJbxxService {
             shxx.setLzzt(zwywLrJbxx.getLzzt());
             zwywLrJbxx.setMchnt(mchnt.getMchnt());
             insertShxx(shxx);
-            zwywLrJbxx.setCreateUserId(String.valueOf(SecurityUtils.getUserId()));
             return zwywLrJbxxMapper.updateById(zwywLrJbxx);
         }
         try {
+            zwywLrJbxx.setCreateUserId(String.valueOf(SecurityUtils.getUserId()));
             InLnstLrxxHi in = new InLnstLrxxHi();
             BeanUtil.copyProperties(old, in, new CopyOptions().ignoreNullValue());
             in.setId(IdUtils.simpleUUID());
@@ -1336,7 +1337,6 @@ public class ZwywLrJbxxServiceImpl implements IZwywLrJbxxService {
         zwywLrJbxx.setState("0");
         zwywLrJbxx.setLzzt("0");
         zwywLrJbxx.setMchnt(mchnt.getMchnt());
-        zwywLrJbxx.setCreateUserId(String.valueOf(SecurityUtils.getUserId()));
         return zwywLrJbxxMapper.updateById(zwywLrJbxx);
     }