|
|
@@ -72,16 +72,18 @@ public class ProjectAsyncService {
|
|
|
List<BusinessProjectBo> additionalDeductionList = businessProjectMapper.selectByFirstBName(null, 1);
|
|
|
for (BusinessProjectBo e : additionalDeductionList) {
|
|
|
if (!e.getId().equals(t2.getCommodityId())) {
|
|
|
- t2.setCommodityId(e.getId());
|
|
|
- t2.setCommodityName(e.getBname());
|
|
|
- t2.setMain(0);
|
|
|
- t2.setCommodityPrice(new BigDecimal(0));
|
|
|
- t2.setId(null);
|
|
|
- addTTaskMember(t2);
|
|
|
- addTaskMid(t2);
|
|
|
- addSonProject(t2);
|
|
|
+ InputAddTask t=new InputAddTask();
|
|
|
+ BeanUtils.copyProperties(t2,t);
|
|
|
+ t.setCommodityId(e.getId());
|
|
|
+ t.setCommodityName(e.getBname());
|
|
|
+ t.setMain(0);
|
|
|
+ t.setCommodityPrice(new BigDecimal(0));
|
|
|
+ t.setId(null);
|
|
|
+ addTTaskMember(t);
|
|
|
+ addTaskMid(t);
|
|
|
+ addSonProject(t);
|
|
|
//处理主项目本次派单年份
|
|
|
- tTaskMemberMapper.updateServiceYearBySplitSuper(t2.getId());
|
|
|
+ tTaskMemberMapper.updateServiceYearBySplitSuper(t.getId());
|
|
|
}
|
|
|
|
|
|
}
|