From bd29d0063d2aadbb03030f5d23206b87c1f9939e Mon Sep 17 00:00:00 2001 From: zhangxiongfeng Date: Wed, 29 Jul 2026 17:15:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=8D=8E=E5=8F=A3=E9=97=A8=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 604d96b3faea05d5ecb2522a4072b40527564235) --- start/src/main/resources/sdk-prod.yml | 4 +++- .../basic/info/command/UserUpdateExe.java | 18 +++++++----------- .../zcloud/basic/info/dto/UserUpdateCmd.java | 12 ++++++++++-- .../zcloud/basic/info/dto/UserXgfAddCmd.java | 6 ++++-- .../src/main/resources/mapper/UserMapper.xml | 2 +- 5 files changed, 25 insertions(+), 17 deletions(-) diff --git a/start/src/main/resources/sdk-prod.yml b/start/src/main/resources/sdk-prod.yml index e5f61c2f..2df165e7 100644 --- a/start/src/main/resources/sdk-prod.yml +++ b/start/src/main/resources/sdk-prod.yml @@ -63,6 +63,8 @@ dahua: password: qinan@202604 clientId: mkmj_management clientSecret: 5ef82f7c-9926-46a3-8d07-136fd054849c + primeportUrl: https://gbs-gateway.qhdsafety.com + primeportGateway: primeport nine: config: - companyId: 2008712261453131776,2046785341004177408 + companyId: 2008712261453131776,2046785341004177408 \ No newline at end of file diff --git a/web-app/src/main/java/com/zcloud/basic/info/command/UserUpdateExe.java b/web-app/src/main/java/com/zcloud/basic/info/command/UserUpdateExe.java index 5c8997ce..1420bf92 100644 --- a/web-app/src/main/java/com/zcloud/basic/info/command/UserUpdateExe.java +++ b/web-app/src/main/java/com/zcloud/basic/info/command/UserUpdateExe.java @@ -266,26 +266,23 @@ public class UserUpdateExe { String newNation = userUpdateCmd.getNation() != null ? userUpdateCmd.getNation() : userDO.getNation(); String newNationName = userUpdateCmd.getNationName() != null ? userUpdateCmd.getNationName() : userDO.getNationName(); Object newFaceFile = userUpdateCmd.getUserImg() != null ? userUpdateCmd.getUserImg() : userUpdateCmd.getFaceFile(); - Long newCorpId = userUpdateCmd.getCorpinfoId() != null ? userUpdateCmd.getCorpinfoId() : userDO.getCorpinfoId(); - log.info("【本次请求入参】name是否传={}, phone是否传={}, userIdCard是否传={}, nation是否传={}, nationName是否传={}, userImg是否传={}, faceFile是否传={}, corpinfoId是否传={}", + log.info("【本次请求入参】name是否传={}, phone是否传={}, userIdCard是否传={}, nation是否传={}, nationName是否传={}, userImg是否传={}, faceFile是否传={}", userUpdateCmd.getName() != null, userUpdateCmd.getPhone() != null, userUpdateCmd.getUserIdCard() != null, userUpdateCmd.getNation() != null, userUpdateCmd.getNationName() != null, - userUpdateCmd.getUserImg() != null, userUpdateCmd.getFaceFile() != null, - userUpdateCmd.getCorpinfoId() != null); + userUpdateCmd.getUserImg() != null, userUpdateCmd.getFaceFile() != null); boolean nameChanged = !Objects.equals(newName, userDO.getName()); boolean idCardChanged = !Objects.equals(newIdCard, userDO.getUserIdCard()); boolean phoneChanged = !Objects.equals(newPhone, userDO.getPhone()); boolean nationChanged = !Objects.equals(newNation, userDO.getNation()) || !Objects.equals(newNationName, userDO.getNationName()); boolean faceChanged = newFaceFile != null; - boolean corpChanged = !Objects.equals(newCorpId, userDO.getCorpinfoId()); - log.info("【变化检测】nameChanged={}({}→{}), idCardChanged={}, phoneChanged={}, nationChanged={}({}/{}→{}/{}), faceChanged={}, corpChanged={}({}→{})", + log.info("【变化检测】nameChanged={}({}→{}), idCardChanged={}, phoneChanged={}, nationChanged={}({}/{}→{}/{}), faceChanged={}", nameChanged, userDO.getName(), newName, idCardChanged, phoneChanged, nationChanged, userDO.getNation(), userDO.getNationName(), newNation, newNationName, - faceChanged, corpChanged, userDO.getCorpinfoId(), newCorpId); - if (!nameChanged && !idCardChanged && !phoneChanged && !nationChanged && !faceChanged && !corpChanged) { - log.info("【跳过同步大华】姓名/身份证/手机号/民族/人脸图/企业 6项都没变化,按优化逻辑不调更新接口"); + faceChanged); + if (!nameChanged && !idCardChanged && !phoneChanged && !nationChanged && !faceChanged) { + log.info("【跳过同步大华】姓名/身份证/手机号/民族/人脸图 5项都没变化,按优化逻辑不调更新接口"); return; } @@ -311,8 +308,7 @@ public class UserUpdateExe { personMap.put("paperType", 111); personMap.put("paperNumber", plainIdCard); personMap.put("phone", newPhone); - Long realCorpId = newCorpId != null ? newCorpId : 1L; - personMap.put("departmentId", realCorpId); + personMap.put("departmentId", 1); personMap.put("nationName", newNationName != null && !newNationName.trim().isEmpty() ? newNationName : "汉族"); try { if (newNation != null && !newNation.trim().isEmpty()) { diff --git a/web-client/src/main/java/com/zcloud/basic/info/dto/UserUpdateCmd.java b/web-client/src/main/java/com/zcloud/basic/info/dto/UserUpdateCmd.java index 6f87ced2..f4b927b9 100644 --- a/web-client/src/main/java/com/zcloud/basic/info/dto/UserUpdateCmd.java +++ b/web-client/src/main/java/com/zcloud/basic/info/dto/UserUpdateCmd.java @@ -35,12 +35,14 @@ public class UserUpdateCmd extends Command { private String name; @ApiModelProperty(value = "企业id", name = "corpinfoId") private Long corpinfoId; + private String corpinfoName; @ApiModelProperty(value = "是否主账号1是0否", name = "mainCorpFlag") private Integer mainCorpFlag; @ApiModelProperty(value = "用户类型,1监管2企业3相关方", name = "userType") private Integer userType; @ApiModelProperty(value = "部门id", name = "departmentId") private Long departmentId; + private String departmentName; @ApiModelProperty(value = "岗位id", name = "postId") private Long postId; @ApiModelProperty(value = "岗位名称", name = "postName") @@ -61,6 +63,10 @@ public class UserUpdateCmd extends Command { private String userIdCard; @ApiModelProperty(value = "人脸头像url", name = "userAvatarUrl") private String userAvatarUrl; + @ApiModelProperty(value = "人脸图片文件(取thumbUrl字段作为base64传大华)") + private Object faceFile; + @ApiModelProperty(value = "用户头像数组(相关方人员头像,取第一个元素的thumbUrl字段作为base64传大华,优先级高于faceFile)") + private Object userImg; @ApiModelProperty(value = "现住址", name = "currentAddress") private String currentAddress; @ApiModelProperty(value = "户口所在地", name = "locationAddress") @@ -94,9 +100,12 @@ public class UserUpdateCmd extends Command { // 入职状态 @ApiModelProperty(value = "是否流动人员,1-流动,0-固定人员") private Integer flowFlag; + private Integer rzFlag; // 微信openid @ApiModelProperty(value = "微信openid") private String openId; + @ApiModelProperty(value = "入职状态,0-离职, 1-在职, 2-信息变更中, 3-未入职, 4-实习生, 5-实习结束, 6-退休, 7-劳务派遣, 8-劳务派遣结束, 11-入职待审核, 10-离职待审核") + private Integer employmentFlag; @ApiModelProperty(value = "是否特殊工种") private Integer isSpecialJob; @@ -121,5 +130,4 @@ public class UserUpdateCmd extends Command { private String payNumber; @ApiModelProperty(value = "是否缴纳其他人身伤害保险") private Integer isBf; -} - +} \ No newline at end of file diff --git a/web-client/src/main/java/com/zcloud/basic/info/dto/UserXgfAddCmd.java b/web-client/src/main/java/com/zcloud/basic/info/dto/UserXgfAddCmd.java index 5c99994b..748acf2c 100644 --- a/web-client/src/main/java/com/zcloud/basic/info/dto/UserXgfAddCmd.java +++ b/web-client/src/main/java/com/zcloud/basic/info/dto/UserXgfAddCmd.java @@ -81,6 +81,9 @@ public class UserXgfAddCmd extends Command { @ApiModelProperty(value = "人脸头像url", name = "userAvatarUrl", required = true) private String userAvatarUrl; + @ApiModelProperty(value = "用户头像数组(取第一个元素的thumbUrl字段作为base64传大华,优先级高于userAvatarUrl)") + private Object userImg; + @ApiModelProperty(value = "现住址", name = "currentAddress", required = true) private String currentAddress; @@ -159,5 +162,4 @@ public class UserXgfAddCmd extends Command { private String payNumber; @ApiModelProperty(value = "是否缴纳其他人身伤害保险") private Integer isBf; -} - +} \ No newline at end of file diff --git a/web-infrastructure/src/main/resources/mapper/UserMapper.xml b/web-infrastructure/src/main/resources/mapper/UserMapper.xml index 679f35e5..4832d552 100644 --- a/web-infrastructure/src/main/resources/mapper/UserMapper.xml +++ b/web-infrastructure/src/main/resources/mapper/UserMapper.xml @@ -588,7 +588,7 @@ and ui.delete_enum = 'FALSE' - ui.user_avatar_url IN + and ui.user_avatar_url IN #{url}