客商修改

This commit is contained in:
赵辉
2026-07-11 13:58:37 +08:00
parent 226360ef3a
commit 1a309cb042
@@ -1464,6 +1464,16 @@ public class UserShipperApplicationService {
userShipperDO.setAuthType(2);
userShipperDO.setShipperAuthStatus(3);
// 初始化 orgCode:新加的客商属于当前组织,将当前组织信息写入 orgCode JSON 数组
com.alibaba.fastjson.JSONArray orgCodeArray = new com.alibaba.fastjson.JSONArray();
com.alibaba.fastjson.JSONObject orgItem = new com.alibaba.fastjson.JSONObject();
orgItem.put("name", targetOrganizationName);
orgItem.put("code", targetOrganizationId);
orgItem.put("ncCustomer", record.getCode());
orgItem.put("names", targetOrganizationId);
orgCodeArray.add(orgItem);
userShipperDO.setOrgCode(orgCodeArray.toJSONString());
String userAccount = buildMasterDataUserAccount(record.getCode());
checkUserAccountUnique(userAccount, null, configSwitch.getTopOrganizationId());
userShipperDO.setUserAccount(userAccount);