提交 e9273ab2 authored 作者: hzh's avatar hzh

代码优化

上级 7fbc4716
...@@ -55,11 +55,13 @@ public class OrderInvoicingServiceImpl extends AbstractBaseService<OrderInvoicin ...@@ -55,11 +55,13 @@ public class OrderInvoicingServiceImpl extends AbstractBaseService<OrderInvoicin
} }
//设置用户信息 //设置用户信息
RemoteUserVo user = remoteUserService.selectById(bo.getUserId()); RemoteUserVo user = remoteUserService.selectById(bo.getUserId());
bo.setUserType(user.getUserType()) if (user != null) {
.setProjectId(bo.getProjectId()); bo.setUserType(user.getUserType());
bo.setCreateName(user.getNickName()); bo.setCreateName(user.getNickName());
bo.setCreateBy(bo.getUserId());
bo.setCreateDept(user.getDeptId()); bo.setCreateDept(user.getDeptId());
}
bo.setProjectId(bo.getProjectId());
bo.setCreateBy(bo.getUserId());
insertByBo(bo); insertByBo(bo);
}else { }else {
invoicing.setUseName(bo.getUseName()); invoicing.setUseName(bo.getUseName());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论