|
|
@@ -2691,12 +2691,12 @@ handlingProportion,
|
|
|
if (ObjectUtils.isNotEmpty(byBxLicenseno) && (byBxLicenseno.getJqOtherCostsProportion().compareTo(item.getJqOtherCostsProportion()) != 0 || byBxLicenseno.getSyOtherCostsProportion().compareTo(item.getSyOtherCostsProportion()) != 0)) {
|
|
|
|
|
|
|
|
|
- InsPlyIncomeLog insPlyIncomeLog = new InsPlyIncomeLog();
|
|
|
- BeanUtils.copyProperties(byBxLicenseno,insPlyIncomeLog);
|
|
|
- insPlyIncomeLog.setOperationStatus("2");
|
|
|
- insPlyIncomeLog.setId(null);
|
|
|
- insPlyIncomeLog.setIncomeId(byBxLicenseno.getId());
|
|
|
- insPlyIncomeLogService.saveLog(insPlyIncomeLog); //添加日志
|
|
|
+// InsPlyIncomeLog insPlyIncomeLog = new InsPlyIncomeLog();
|
|
|
+// BeanUtils.copyProperties(byBxLicenseno,insPlyIncomeLog);
|
|
|
+// insPlyIncomeLog.setOperationStatus("2");
|
|
|
+// insPlyIncomeLog.setId(null);
|
|
|
+// insPlyIncomeLog.setIncomeId(byBxLicenseno.getId());
|
|
|
+// insPlyIncomeLogService.saveLog(insPlyIncomeLog); //添加日志
|
|
|
|
|
|
|
|
|
|
|
|
@@ -2708,16 +2708,16 @@ handlingProportion,
|
|
|
BigDecimal jqOtherAmount = getBigDecimal( byBxLicenseno.getJqPremium(),item.getJqOtherCostsProportion());
|
|
|
BigDecimal syOtherAmount = getBigDecimal( byBxLicenseno.getSyPremium(),item.getSyOtherCostsProportion());
|
|
|
|
|
|
- byBxLicenseno.setJqOtherCostsPremium(jqOtherAmount);
|
|
|
- byBxLicenseno.setSyOtherCostsPremium(syOtherAmount);
|
|
|
- byBxLicenseno.setJqOtherCostsProportion(jqOtherCostsProportion);
|
|
|
- byBxLicenseno.setSyOtherCostsProportion(syOtherCostsProportion);
|
|
|
- byBxLicenseno.setOtherFeevalue(this.calculateTotal(jqOtherAmount, syOtherAmount, null));
|
|
|
- byBxLicenseno.setOtherFeerate(this.calculateTotal(jqOtherCostsProportion, syOtherCostsProportion, null));
|
|
|
- byBxLicenseno.setAllFeeValue(this.calculateTotal(jqOtherAmount, syOtherAmount, null));
|
|
|
- byBxLicenseno.setUpdateUserId(BaseController.getUser().getId());
|
|
|
- byBxLicenseno.setUpdateUserName(BaseController.getUser().getName());
|
|
|
- baseMapper.updateById(byBxLicenseno);
|
|
|
+// byBxLicenseno.setJqOtherCostsPremium(jqOtherAmount);
|
|
|
+// byBxLicenseno.setSyOtherCostsPremium(syOtherAmount);
|
|
|
+// byBxLicenseno.setJqOtherCostsProportion(jqOtherCostsProportion);
|
|
|
+// byBxLicenseno.setSyOtherCostsProportion(syOtherCostsProportion);
|
|
|
+// byBxLicenseno.setOtherFeevalue(this.calculateTotal(jqOtherAmount, syOtherAmount, null));
|
|
|
+// byBxLicenseno.setOtherFeerate(this.calculateTotal(jqOtherCostsProportion, syOtherCostsProportion, null));
|
|
|
+// byBxLicenseno.setAllFeeValue(this.calculateTotal(jqOtherAmount, syOtherAmount, null));
|
|
|
+// byBxLicenseno.setUpdateUserId(BaseController.getUser().getId());
|
|
|
+// byBxLicenseno.setUpdateUserName(BaseController.getUser().getName());
|
|
|
+// baseMapper.updateById(byBxLicenseno);
|
|
|
|
|
|
|
|
|
HashMap<String, Object> map = new HashMap<>();
|
|
|
@@ -2731,6 +2731,7 @@ handlingProportion,
|
|
|
|
|
|
map.put("otherFeevalue", byBxLicenseno.getOtherFeevalue());
|
|
|
map.put("otherFeerate", byBxLicenseno.getOtherFeerate());
|
|
|
+ map.put("id", byBxLicenseno.getId());
|
|
|
resultList.add(map);
|
|
|
allAmount = allAmount.add(jqOtherAmount).add(syOtherAmount);
|
|
|
}
|
|
|
@@ -2744,6 +2745,33 @@ handlingProportion,
|
|
|
return resultMap;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ @Transactional
|
|
|
+ public void bxImportOtherConfirm(InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
+ if (ObjectUtils.isEmpty(insPlyIncomeVo)) {
|
|
|
+ throw new SystemException("请导入文件");
|
|
|
+ }
|
|
|
+ if (!CollectionUtils.isEmpty(insPlyIncomeVo.getResultList())) {
|
|
|
+ for (InsPlyIncome item : insPlyIncomeVo.getResultList()) {
|
|
|
+ InsPlyIncomeLog insPlyIncomeLog = new InsPlyIncomeLog();
|
|
|
+ BeanUtils.copyProperties(item,insPlyIncomeLog);
|
|
|
+ insPlyIncomeLog.setOperationStatus("2");
|
|
|
+ insPlyIncomeLog.setId(null);
|
|
|
+ insPlyIncomeLog.setIncomeId(item.getId());
|
|
|
+ insPlyIncomeLogService.saveLog(insPlyIncomeLog); //添加日志
|
|
|
+
|
|
|
+// item.setOtherFeevalue(this.calculateTotal(item.getJqOtherCostsPremium(), item.getSyOtherCostsPremium(), null));
|
|
|
+// item.setOtherFeerate(this.calculateTotal(item.getJqOtherCostsProportion(), item.getSyOtherCostsProportion(), null));
|
|
|
+ item.setAllFeeValue(this.calculateTotal(item.getJqOtherCostsPremium(), item.getSyOtherCostsPremium(), null));
|
|
|
+ item.setUpdateUserId(BaseController.getUser().getId());
|
|
|
+ item.setUpdateUserName(BaseController.getUser().getName());
|
|
|
+ baseMapper.updateById(item);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
public HashMap<String, Object> ptImportOther(MultipartFile multipartFile) {
|
|
|
HashMap<String, Object> resultMap = new HashMap<>();
|
|
|
@@ -2919,20 +2947,22 @@ handlingProportion,
|
|
|
|
|
|
BigDecimal noOtherAmount = getBigDecimal( noNoTaxPremium,item.getNoOtherCostsProportion());
|
|
|
|
|
|
- byBxLicenseno.setNoOtherCostsPremium(noOtherAmount);
|
|
|
- byBxLicenseno.setNoOtherCostsProportion(item.getNoOtherCostsProportion());
|
|
|
- byBxLicenseno.setAllFeeValue(this.calculateTotal(noOtherAmount, null, null));
|
|
|
-
|
|
|
- byBxLicenseno.setOtherFeevalue(this.calculateTotal(noOtherAmount, null, null));
|
|
|
- byBxLicenseno.setOtherFeerate(this.calculateTotal(noOtherCostsProportion, null, null));
|
|
|
- baseMapper.updateById(byBxLicenseno);
|
|
|
+// byBxLicenseno.setNoOtherCostsPremium(noOtherAmount);
|
|
|
+// byBxLicenseno.setNoOtherCostsProportion(item.getNoOtherCostsProportion());
|
|
|
+// byBxLicenseno.setAllFeeValue(this.calculateTotal(noOtherAmount, null, null));
|
|
|
+//
|
|
|
+// byBxLicenseno.setOtherFeevalue(this.calculateTotal(noOtherAmount, null, null));
|
|
|
+// byBxLicenseno.setOtherFeerate(this.calculateTotal(noOtherCostsProportion, null, null));
|
|
|
+// baseMapper.updateById(byBxLicenseno);
|
|
|
|
|
|
newMap.put("licenseno", item.getLicenseno());
|
|
|
newMap.put("noPolicyno", item.getNoPolicyno());
|
|
|
newMap.put("noOtherCostsPremium", noOtherAmount);
|
|
|
+ newMap.put("noOtherCostsProportion", item.getNoOtherCostsProportion());
|
|
|
|
|
|
newMap.put("otherFeevalue", byBxLicenseno.getOtherFeevalue());
|
|
|
newMap.put("otherFeerate", byBxLicenseno.getOtherFeerate());
|
|
|
+ newMap.put("id", byBxLicenseno.getId());
|
|
|
resultList.add(newMap);
|
|
|
allAmount = allAmount.add(noOtherAmount);
|
|
|
}
|
|
|
@@ -2945,6 +2975,28 @@ handlingProportion,
|
|
|
return resultMap;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ @Transactional
|
|
|
+ public void noBxImportOtherConfirm(InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
+ if (ObjectUtils.isEmpty(insPlyIncomeVo)) {
|
|
|
+ throw new SystemException("请导入文件");
|
|
|
+ }
|
|
|
+ if (!CollectionUtils.isEmpty(insPlyIncomeVo.getResultList())) {
|
|
|
+ for (InsPlyIncome item : insPlyIncomeVo.getResultList()) {
|
|
|
+ InsPlyIncomeLog insPlyIncomeLog = new InsPlyIncomeLog();
|
|
|
+ insPlyIncomeLog.setIncomeId(item.getId());
|
|
|
+ BeanUtils.copyProperties(item,insPlyIncomeLog);
|
|
|
+ insPlyIncomeLog.setOperationStatus("2");
|
|
|
+ insPlyIncomeLog.setId(null);
|
|
|
+ insPlyIncomeLogService.saveLog(insPlyIncomeLog); //添加日志
|
|
|
+ item.setAllFeeValue(this.calculateTotal(item.getNoOtherCostsPremium(), null, null));
|
|
|
+ item.setOtherFeevalue(this.calculateTotal(item.getNoOtherCostsPremium(), null, null));
|
|
|
+ item.setOtherFeerate(this.calculateTotal(item.getNoOtherCostsProportion(), null, null));
|
|
|
+ baseMapper.updateById(item);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void batchUpdateVoucher(InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
String s = insPlyIncomeVo.getSelectIds().get(0);
|