|
@@ -998,6 +998,7 @@ public class ConsultancyReimbursementInfoService {
|
|
|
// 获取当前登录人信息
|
|
|
UserDTO userDTO = SpringUtil.getBean ( IUserApi.class ).getByToken(TokenProvider.getCurrentToken());
|
|
|
ConsultancyReimbursementInfo info = infoMapper.selectById(dto.getId());
|
|
|
+ UserDTO user = SpringUtil.getBean(IUserApi.class).getById(info.getCreateById());
|
|
|
if (StringUtils.isNotEmpty(dto.getFileSuppleId())) {
|
|
|
// 修改专用发票信息列表
|
|
|
// 删除原有数据
|
|
@@ -1074,8 +1075,15 @@ public class ConsultancyReimbursementInfoService {
|
|
|
consultancyReimbursementFileSupplementMapper.updateById(fileSupplement);
|
|
|
|
|
|
fileSupplement.setNo(info.getNo());
|
|
|
+ fileSupplement.setName(user.getName());
|
|
|
return fileSupplement;
|
|
|
} else {
|
|
|
+ //修改报销基本信息
|
|
|
+ ConsultancyReimbursementInfo reimbursementInfo = new ConsultancyReimbursementInfo();
|
|
|
+ reimbursementInfo.setReimbursementType(dto.getReimbursementType());
|
|
|
+ reimbursementInfo.setId(dto.getId());
|
|
|
+ reimbursementInfo.setUpdateTime(new Date());
|
|
|
+ infoMapper.updateById(reimbursementInfo);
|
|
|
// 生成id
|
|
|
String id = UUID.randomUUID().toString().replace("-", "");
|
|
|
ConsultancyReimbursementFileSupplement fileSupplement = new ConsultancyReimbursementFileSupplement();
|
|
@@ -1089,6 +1097,7 @@ public class ConsultancyReimbursementInfoService {
|
|
|
fileSupplement.setReimbursementId(dto.getId());
|
|
|
consultancyReimbursementFileSupplementMapper.insert(fileSupplement);
|
|
|
fileSupplement.setNo(info.getNo());
|
|
|
+ fileSupplement.setName(user.getName());
|
|
|
return fileSupplement;
|
|
|
}
|
|
|
}
|