|
|
@@ -380,18 +380,24 @@ public class UserInfoController {
|
|
380
|
380
|
try {
|
|
381
|
381
|
// JSON字符串转对象
|
|
382
|
382
|
ObjectMapper mapper = new ObjectMapper();
|
|
383
|
|
- String userInfoObject = ObjectUtils.toString(request.getSession().getAttribute("userInfo"),"");
|
|
384
|
|
- if(!userInfoObject.isEmpty()) {
|
|
385
|
|
- UserInfo userInfo = mapper.readValue(userInfoObject, UserInfo.class);
|
|
386
|
|
- //UserInfo userInfo = (UserInfo)request.getSession().getAttribute("userInfo");
|
|
387
|
|
- modelMap.put("userInfo", userInfo);
|
|
388
|
|
- }
|
|
|
383
|
+
|
|
|
384
|
+ String orgName = "";
|
|
389
|
385
|
String orgInfoObject = ObjectUtils.toString(request.getSession().getAttribute("orgInfo"),"");
|
|
390
|
386
|
if(!orgInfoObject.isEmpty()) {
|
|
391
|
387
|
OrgInfo orgInfo = mapper.readValue(orgInfoObject, OrgInfo.class);
|
|
392
|
388
|
//OrgInfo orgInfo = (OrgInfo)request.getSession().getAttribute("orgInfo");
|
|
|
389
|
+ orgName = orgInfo.getOrgName();
|
|
393
|
390
|
modelMap.put("orgInfo", orgInfo);
|
|
394
|
391
|
}
|
|
|
392
|
+
|
|
|
393
|
+ String userInfoObject = ObjectUtils.toString(request.getSession().getAttribute("userInfo"),"");
|
|
|
394
|
+ if(!userInfoObject.isEmpty()) {
|
|
|
395
|
+ UserInfo userInfo = mapper.readValue(userInfoObject, UserInfo.class);
|
|
|
396
|
+ //UserInfo userInfo = (UserInfo)request.getSession().getAttribute("userInfo");
|
|
|
397
|
+ userInfo.setOrgName(orgName);
|
|
|
398
|
+ modelMap.put("userInfo", userInfo);
|
|
|
399
|
+ }
|
|
|
400
|
+
|
|
395
|
401
|
String depotInfoObject = ObjectUtils.toString(request.getSession().getAttribute("depotInfo"),"");
|
|
396
|
402
|
if(!depotInfoObject.isEmpty()) {
|
|
397
|
403
|
OrgInfo depotInfo = mapper.readValue(depotInfoObject, OrgInfo.class);
|