소스 검색

用户相关接口添加createby、updateby

LiFei 4 년 전
부모
커밋
6f6eb43cc1

+ 4 - 0
happy-cloud-wisdom/happy-cloud-wisdom-biz/src/main/java/org/jeecg/modules/api/controller/HlwUserApiController.java

@@ -91,6 +91,7 @@ public class HlwUserApiController extends JeecgController<HlwUser, IHlwUserServi
         String name = jsonObject.getString("name");
         String phone = jsonObject.getString("phone");
         String idcardPicture = jsonObject.getString("idcardPicture");
+        String updateBy = jsonObject.getString("updateBy");
         HlwUser hlwUser = hlwUserService.getByUserCode(userCode);
         if (hlwUser != null) {
             hlwUser.setName(name);
@@ -101,6 +102,7 @@ public class HlwUserApiController extends JeecgController<HlwUser, IHlwUserServi
             if (StringUtils.isNotBlank(idcardPicture)) {
                 hlwUser.setIdcardPicture(idcardPicture);
             }
+            hlwUser.setUpdateBy(updateBy);
             hlwUserService.updateById(hlwUser);
             return Result.ok("添加成功");
         } else {
@@ -121,9 +123,11 @@ public class HlwUserApiController extends JeecgController<HlwUser, IHlwUserServi
     public Result<?> uploadIdcard(@RequestBody JSONObject jsonObject) {
         String userCode = jsonObject.getString("userCode");
         String idcardPicture = jsonObject.getString("idcardPicture");
+        String updateBy = jsonObject.getString("updateBy");
         HlwUser hlwUser = hlwUserService.getByUserCode(userCode);
         if (hlwUser != null) {
             hlwUser.setIdcardPicture(idcardPicture);
+            hlwUser.setUpdateBy(updateBy);
             hlwUserService.updateById(hlwUser);
             return Result.ok("上传身份证成功");
         } else {