|
@@ -169,13 +169,21 @@ public class ProjectReceiveManage { |
|
|
List<ProjectProcure> procures = dto.getProcures(); |
|
|
List<ProjectProcure> procures = dto.getProcures(); |
|
|
if(Objects.nonNull(procures)){ |
|
|
if(Objects.nonNull(procures)){ |
|
|
List<ProjectProcure> olds = procureService.list(Wrappers.lambdaQuery(ProjectProcure.class) |
|
|
List<ProjectProcure> olds = procureService.list(Wrappers.lambdaQuery(ProjectProcure.class) |
|
|
.eq(ProjectProcure::getBaseProjId, baseProjId)); |
|
|
|
|
|
|
|
|
.eq(ProjectProcure::getBaseProjId, baseProjId) |
|
|
|
|
|
.orderByAsc(ProjectProcure::getBaseBidCode)); |
|
|
|
|
|
Integer index = 0; |
|
|
for(ProjectProcure old : olds){ |
|
|
for(ProjectProcure old : olds){ |
|
|
|
|
|
if(StringUtils.isNotBlank(old.getBaseBidCode())){ |
|
|
|
|
|
try{ |
|
|
|
|
|
String bidCode = old.getBaseBidCode().split(StrPool.DASH)[1]; |
|
|
|
|
|
index = Integer.parseInt(bidCode); |
|
|
|
|
|
}catch (Exception e){} |
|
|
|
|
|
} |
|
|
//删除标记 |
|
|
//删除标记 |
|
|
old.setOp(BizConst.OP_DELETE); |
|
|
old.setOp(BizConst.OP_DELETE); |
|
|
procureService.updateById(old); |
|
|
procureService.updateById(old); |
|
|
} |
|
|
} |
|
|
Integer index = 1; |
|
|
|
|
|
|
|
|
index ++; |
|
|
for(ProjectProcure procure : procures){ |
|
|
for(ProjectProcure procure : procures){ |
|
|
//添加标记 |
|
|
//添加标记 |
|
|
ProjectProcure saveProcure = BeanUtil.copyProperties(procure,ProjectProcure.class); |
|
|
ProjectProcure saveProcure = BeanUtil.copyProperties(procure,ProjectProcure.class); |
|
|