|
|
@@ -1,6 +1,7 @@
|
|
|
package com.skyversation.xjcy.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.skyversation.xjcy.bean.User;
|
|
|
import com.skyversation.xjcy.dms.DMSColumn;
|
|
|
import com.skyversation.xjcy.dms.DMSService;
|
|
|
import com.skyversation.xjcy.service.AuthService;
|
|
|
@@ -54,8 +55,9 @@ public class OtherController {
|
|
|
List<JSONObject> userJsons = dMSService.getUserJSONByCode(usercode, authService.getTokenOfServiceAccount());
|
|
|
if (!userJsons.isEmpty()) {
|
|
|
JSONObject userJSON = userJsons.get(0);
|
|
|
+ User user = JSONObject.toJavaObject(userJSON, User.class);
|
|
|
if (userJSON != null) {
|
|
|
- userJSON.put("c_gl_gs", enterprise);
|
|
|
+ user.setCGlGs(enterprise);
|
|
|
dMSService.updateToDms(Collections.singletonList(userJSON), authService.getTokenOfServiceAccount(), DMSColumn.USER);
|
|
|
}
|
|
|
}
|