|
@@ -58,7 +58,7 @@ public class MaterialService {
|
|
|
public IPage<MaterialInfoDto> list(Page<MaterialInfoDto> page , MaterialInfoDto dto) throws Exception{
|
|
|
QueryWrapper<MaterialInfoDto> queryWrapper = QueryWrapperGenerator.buildQueryCondition(dto, MaterialInfoDto.class);
|
|
|
|
|
|
- queryWrapper.eq("a.del_flag", 0);
|
|
|
+ queryWrapper.eq("a.del_flag", "0");
|
|
|
if (StringUtils.isNotEmpty(dto.getPurchaseSketch())) {
|
|
|
queryWrapper.like("a.purchase_sketch", dto.getPurchaseSketch());
|
|
|
}
|
|
@@ -79,6 +79,9 @@ public class MaterialService {
|
|
|
queryWrapper.like("a.status", dto.getStatus());
|
|
|
}
|
|
|
//采购类别
|
|
|
+ if (StringUtils.isNotEmpty(dto.getProcurementType())) {
|
|
|
+ queryWrapper.like("b.procurement_type", dto.getProcurementType());
|
|
|
+ }
|
|
|
//合同金额
|
|
|
//3、合同金额(区间)
|
|
|
String[] contractAmounts = dto.getContractAmounts();
|
|
@@ -178,6 +181,7 @@ public class MaterialService {
|
|
|
detailInfo.setDelFlag(0);
|
|
|
// 保存基础表信息主键值
|
|
|
detailInfo.setBasicId(dto.getId());
|
|
|
+ detailInfo.setTradeTotalPrice(dto.getTradeTotalPrice());
|
|
|
detailedMapper.insert(detailInfo);
|
|
|
// 修改附件信息列表
|
|
|
if (CollectionUtils.isNotEmpty(detailInfo.getFileInfoLost())) {
|