|
@@ -207,6 +207,7 @@ public class TaskClientImpl implements TaskClient {
|
|
|
fixedFlow.setProjectId(projectId);
|
|
|
fixedFlow.setContractId(contractId);
|
|
|
fixedFlow.setStatus(1);
|
|
|
+ fixedFlow.setIsMeter(1);
|
|
|
fixedFlow.setCreateTime(new Date());
|
|
|
return fixedFlowServiceImpl.save(fixedFlow);
|
|
|
}
|
|
@@ -246,7 +247,10 @@ public class TaskClientImpl implements TaskClient {
|
|
|
public List<Map<String, Object>> getFixedFlowPage(PageFixedFlowDTO dto) {
|
|
|
Page<FixedFlow> page = new Page<>(dto.getCurrent(), dto.getSize());
|
|
|
IPage<FixedFlow> fixedFlowsPage = fixedFlowServiceImpl.getBaseMapper().selectPage(page,
|
|
|
- Wrappers.<FixedFlow>lambdaQuery().eq(FixedFlow::getContractId, dto.getContractId()).eq(FixedFlow::getProjectId, dto.getProjectId()));
|
|
|
+ Wrappers.<FixedFlow>lambdaQuery()
|
|
|
+ .eq(FixedFlow::getIsMeter, 1)
|
|
|
+ .eq(FixedFlow::getContractId, dto.getContractId())
|
|
|
+ .eq(FixedFlow::getProjectId, dto.getProjectId()));
|
|
|
List<FixedFlow> fixedFlows = fixedFlowsPage.getRecords();
|
|
|
List<Long> collect = fixedFlows.stream().map(FixedFlow::getId).collect(Collectors.toList());
|
|
|
if (collect.size() > 0) {
|