Commit eec5b824 by jianshuqin

修改借支单业务

parent bada4c4a
...@@ -198,11 +198,16 @@ public abstract class AbstractCostService implements CostService { ...@@ -198,11 +198,16 @@ public abstract class AbstractCostService implements CostService {
//费用单明细 //费用单明细
if (costDomain.getCostDetailDomainList() != null && costDomain.getCostDetailDomainList().size() > 0) { if (costDomain.getCostDetailDomainList() != null && costDomain.getCostDetailDomainList().size() > 0) {
for (CostDetailDomain costDetailDomain: costDomain.getCostDetailDomainList()) { costDetailDao.delete(new LambdaQueryWrapper<CostDetailDomain>()
// costReviewerMapper.delete(new LambdaQueryWrapper<CostReviewer>() .eq(CostDetailDomain::getCostNo, costDomain.getCostNo())
// .eq(CostReviewer::getType, CostReviewer.finalReviewer) );
// .eq(CostReviewer::getReferId, costCompanyDomain.getId())); for (int i = 0; i < costDomain.getCostDetailDomainList().size(); i++) {
// baseMapper.updateById(costDetailDomain); CostDetailDomain costDetailDomain = costDomain.getCostDetailDomainList().get(i);
CostDetailDomain detailDomain = new CostDetailDomain();
BeanUtils.copyProperties(costDomain, detailDomain);
BeanUtils.copyProperties(costDetailDomain, detailDomain);
detailDomain.setDetailNo(costDomain.getCostPlanNo() + "-" + i);
costDetailDao.insert(detailDomain);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment