客商修改
This commit is contained in:
+10
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user