|
@@ -7,6 +7,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.jeeplus.core.query.QueryWrapperGenerator;
|
|
import com.jeeplus.core.query.QueryWrapperGenerator;
|
|
|
|
+import com.jeeplus.sys.domain.Office;
|
|
|
|
+import com.jeeplus.sys.service.OfficeService;
|
|
import com.jeeplus.sys.service.dto.UserDTO;
|
|
import com.jeeplus.sys.service.dto.UserDTO;
|
|
import com.jeeplus.sys.utils.DictUtils;
|
|
import com.jeeplus.sys.utils.DictUtils;
|
|
import com.jeeplus.sys.utils.StringUtils;
|
|
import com.jeeplus.sys.utils.StringUtils;
|
|
@@ -70,6 +72,9 @@ public class CwReimbursementInfoService {
|
|
@Resource
|
|
@Resource
|
|
private MaterialBasicMapper materialBasicMapper;
|
|
private MaterialBasicMapper materialBasicMapper;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ private OfficeService officeService;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 报告号查询
|
|
* 报告号查询
|
|
*/
|
|
*/
|
|
@@ -428,6 +433,15 @@ public class CwReimbursementInfoService {
|
|
// 查询基础信息表
|
|
// 查询基础信息表
|
|
CwReimbursementInfo info = infoMapper.selectById(id);
|
|
CwReimbursementInfo info = infoMapper.selectById(id);
|
|
BeanUtils.copyProperties(info, dto);
|
|
BeanUtils.copyProperties(info, dto);
|
|
|
|
+ if (ObjectUtil.isNotEmpty(info)){
|
|
|
|
+ if(StringUtils.isNotBlank(info.getDepartment())) {
|
|
|
|
+ Office byId = officeService.getById(info.getDepartment());
|
|
|
|
+ if (ObjectUtil.isNotEmpty(byId)) {
|
|
|
|
+ dto.setDepartmentName(byId.getName());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
// 查询详情列表
|
|
// 查询详情列表
|
|
// LambdaQueryWrapper<CwReimbursementDetailInfo> detailInfoLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
// LambdaQueryWrapper<CwReimbursementDetailInfo> detailInfoLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
// detailInfoLambdaQueryWrapper.eq(CwReimbursementDetailInfo::getInfoId, id);
|
|
// detailInfoLambdaQueryWrapper.eq(CwReimbursementDetailInfo::getInfoId, id);
|