|
@@ -191,10 +191,10 @@ public class LongYanPurchaseOrderServiceImpl extends BaseServiceImpl<LongYanPurc
|
|
item.setUpdateUserId(userInfo.getUserId());
|
|
item.setUpdateUserId(userInfo.getUserId());
|
|
item.setUpdateUserName(userInfo.getRealName());
|
|
item.setUpdateUserName(userInfo.getRealName());
|
|
item.setUpdateTime(LocalDateTime.now());
|
|
item.setUpdateTime(LocalDateTime.now());
|
|
- Double iorisum = (new Double(item.getFtaxprice())*(item.getNum().doubleValue()*(1+item.getIpertaxrate()*0.01)));
|
|
|
|
- BigDecimal b = new BigDecimal(iorisum);
|
|
|
|
- Double f1 = b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
|
|
|
|
- item.setIorisum(f1);
|
|
|
|
|
|
+// Double iorisum = (new Double(item.getFtaxprice())*(item.getNum().doubleValue()*(1+item.getIpertaxrate()*0.01)));
|
|
|
|
+// BigDecimal b = new BigDecimal(iorisum);
|
|
|
|
+// Double f1 = b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
|
|
|
|
+// item.setIorisum(f1);
|
|
totalNum = totalNum.add(item.getNum());
|
|
totalNum = totalNum.add(item.getNum());
|
|
}
|
|
}
|
|
longYanPurchaseDetailMapper.insertListforComplex(BeanConverterUtil.copyListProperties(detailDTOS,LongYanPurchaseDetail.class));
|
|
longYanPurchaseDetailMapper.insertListforComplex(BeanConverterUtil.copyListProperties(detailDTOS,LongYanPurchaseDetail.class));
|
|
@@ -262,10 +262,11 @@ public class LongYanPurchaseOrderServiceImpl extends BaseServiceImpl<LongYanPurc
|
|
detailDTO.setProjectName(project.getParentName());
|
|
detailDTO.setProjectName(project.getParentName());
|
|
detailDTO.setProjectSecondNo(project.getNo());
|
|
detailDTO.setProjectSecondNo(project.getNo());
|
|
detailDTO.setProjectSecondName(project.getName());
|
|
detailDTO.setProjectSecondName(project.getName());
|
|
- Double iorisum = (new Double(detailDTO.getFtaxprice())*(detailDTO.getNum().doubleValue()*(1+detailDTO.getIpertaxrate()*0.01)));
|
|
|
|
- BigDecimal b = new BigDecimal(iorisum);
|
|
|
|
- Double f1 = b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
|
|
|
|
- detailDTO.setIorisum(f1);
|
|
|
|
|
|
+
|
|
|
|
+// Double iorisum = (new Double(detailDTO.getFtaxprice())*(detailDTO.getNum().doubleValue()*(1+detailDTO.getIpertaxrate()*0.01)));
|
|
|
|
+// BigDecimal b = new BigDecimal(iorisum);
|
|
|
|
+// Double f1 = b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
|
|
|
|
+// detailDTO.setIorisum(f1);
|
|
totalNum = totalNum.add(detailDTO.getNum());
|
|
totalNum = totalNum.add(detailDTO.getNum());
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
@@ -274,10 +275,10 @@ public class LongYanPurchaseOrderServiceImpl extends BaseServiceImpl<LongYanPurc
|
|
detailDTO.setCreatedTime(LocalDateTime.now());
|
|
detailDTO.setCreatedTime(LocalDateTime.now());
|
|
detailDTO.setCreatedUserId(userInfo.getUserId());
|
|
detailDTO.setCreatedUserId(userInfo.getUserId());
|
|
detailDTO.setCreatedUserName(userInfo.getUsername());
|
|
detailDTO.setCreatedUserName(userInfo.getUsername());
|
|
- Double iorisum = (new Double(detailDTO.getFtaxprice())*(detailDTO.getNum().doubleValue()*(1+detailDTO.getIpertaxrate()*0.01)));
|
|
|
|
- BigDecimal b = new BigDecimal(iorisum);
|
|
|
|
- Double f1 = b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
|
|
|
|
- detailDTO.setIorisum(f1);
|
|
|
|
|
|
+// Double iorisum = (new Double(detailDTO.getFtaxprice())*(detailDTO.getNum().doubleValue()*(1+detailDTO.getIpertaxrate()*0.01)));
|
|
|
|
+// BigDecimal b = new BigDecimal(iorisum);
|
|
|
|
+// Double f1 = b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
|
|
|
|
+// detailDTO.setIorisum(f1);
|
|
totalNum = totalNum.add(detailDTO.getNum());
|
|
totalNum = totalNum.add(detailDTO.getNum());
|
|
}
|
|
}
|
|
}
|
|
}
|