|
|
@@ -169,13 +169,21 @@ public class ProjectReceiveManage { |
|
|
|
List<ProjectProcure> procures = dto.getProcures(); |
|
|
|
if(Objects.nonNull(procures)){ |
|
|
|
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){ |
|
|
|
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); |
|
|
|
procureService.updateById(old); |
|
|
|
} |
|
|
|
Integer index = 1; |
|
|
|
index ++; |
|
|
|
for(ProjectProcure procure : procures){ |
|
|
|
//添加标记 |
|
|
|
ProjectProcure saveProcure = BeanUtil.copyProperties(procure,ProjectProcure.class); |
|
|
|