Commit fa4716a7 by huluobin

fix

parent 230d5445
......@@ -54,18 +54,22 @@ public class SessionHandlerInterceptor implements HandlerInterceptor {
GogirlToken gogirlToken = gogirlTokenService.getByToken(token);
if (gogirlToken != null) {
StoreTechnician storeTechnician = storeTechnicianMapper.selectById(gogirlToken.getTechnicianId());
storeTechnician.setTechnicianId(storeTechnician.getId());
StoreManage storeManage = storeManageMapper.selectById(gogirlToken.getDepartmentId());
if (StringUtils.isEmpty(storeTechnician.getJobs())) {
StoreUser storeUser = storeUserMapper.selectById(storeTechnician.getUserId());
storeTechnician.setJobs(storeUser.getJobs());
storeTechnicianMapper.updateById(storeTechnician);
if (storeTechnician != null) {
storeTechnician.setTechnicianId(storeTechnician.getId());
StoreManage storeManage = storeManageMapper.selectById(gogirlToken.getDepartmentId());
//冗余job字段
if (StringUtils.isEmpty(storeTechnician.getJobs())) {
StoreUser storeUser = storeUserMapper.selectById(storeTechnician.getUserId());
storeTechnician.setJobs(storeUser.getJobs());
storeTechnicianMapper.updateById(storeTechnician);
}
//
if (storeManage != null) {
storeTechnician.setDepartmentId(gogirlToken.getDepartmentId());
storeTechnician.setDepartmentName(storeManage.getName());
}
SessionUtils.putStoreTechnician(storeTechnician);
}
if (storeManage != null) {
storeTechnician.setDepartmentId(gogirlToken.getDepartmentId());
storeTechnician.setDepartmentName(storeManage.getName());
}
SessionUtils.putStoreTechnician(storeTechnician);
}
}
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment