Commit c5726395 authored by huyuchen's avatar huyuchen

huych-社保自动化相关提交

parent a6e8a7ff
......@@ -1355,11 +1355,20 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
} else {
dispatch.setContactAddress(excel.getContactAddress());
}
dispatch.setOrganName(null == user ? "自动化派单部门" : user.getDeptName());
String deptName = null;
if (Common.isNotNull(excel.getPreLoginName())) {
R<SysUser> res = upmsDaprUtils.getSimpleUserByLoginName(excel.getPreLoginName());
if (Common.isNotNull(res) && Common.isNotNull(res.getData())) {
SysUser loginUser = res.getData();
deptName = loginUser.getDeptName();
}
}
dispatch.setOrganName(null == deptName ? user.getDeptName() : deptName);
if (Common.isNotNull(excel.getPreId())) {
dispatch.setPreId(excel.getPreId());
}
dispatch.setCreateBy(null == user ? "1" : user.getId());
//如果登录名不为空查询登录人所属部门
dispatch.setCreateName(Common.isNotNull(excel.getPreName()) ? excel.getPreName() : user.getNickname());
dispatch.setCreateTime(LocalDateTime.now());
dispatch.setContractSubName(excel.getContractSubName());
......
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