|
@@ -279,8 +279,14 @@ public class PrjProjectServiceImpl implements PrjProjectService {
|
279
|
279
|
// 获取任务书外委预算额
|
280
|
280
|
BigDecimal ww = prjAnnualbudgetdetailDao.getWw(rws,DW);
|
281
|
281
|
if (WWYJZCF != null || ww != null){
|
282
|
|
- BigDecimal sum = WWYJZCF.add(ww);
|
283
|
|
- int numWWYJZCF = prjAnnualbudgetdetailDao.updateWWYJZCF(rws, sum);
|
|
282
|
+ if (WWYJZCF != null && ww != null){
|
|
283
|
+ BigDecimal sum = WWYJZCF.add(ww);
|
|
284
|
+ int numWWYJZCF = prjAnnualbudgetdetailDao.updateWWYJZCF(rws, sum);
|
|
285
|
+ }else if (WWYJZCF != null){
|
|
286
|
+ int numWWYJZCF = prjAnnualbudgetdetailDao.updateWWYJZCF(rws, WWYJZCF);
|
|
287
|
+ }else if (ww != null){
|
|
288
|
+ int numWWYJZCF = prjAnnualbudgetdetailDao.updateWWYJZCF(rws, ww);
|
|
289
|
+ }
|
284
|
290
|
//更新外委支出总费
|
285
|
291
|
prjAnnualbudgetdetailDao.updateWWYJZCFSUM(rws);
|
286
|
292
|
}
|