月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-07-18 d48dafc724b57132c424126a3a46105e1c7ee597
src/main/java/com/moon/server/controller/sys/ResController.java
@@ -137,6 +137,7 @@
            UserEntity ue = tokenService.getCurrentUser(req);
            if (ue != null) {
                entity.setCreateUser(ue.getId());
                entity.setDepid(ue.getDepcode());
            }
            int count = resService.insert(entity);
@@ -162,6 +163,7 @@
            if (ue != null) {
                for (ResEntity entity : list) {
                    entity.setCreateUser(ue.getId());
                    entity.setDepid(ue.getDepcode());
                }
            }
@@ -230,6 +232,7 @@
            UserEntity ue = tokenService.getCurrentUser(req);
            if (ue != null) {
                entity.setUpdateUser(ue.getId());
                entity.setDepid(ue.getDepcode());
            }
            int count = resService.update(entity);
@@ -256,6 +259,7 @@
            if (ue != null) {
                for (ResEntity entity : list) {
                    entity.setUpdateUser(ue.getId());
                    entity.setDepid(ue.getDepcode());
                }
            }