|
|
@ -820,7 +820,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (!importVoList.isEmpty()) { |
|
|
|
for (ScmVehRebateExcelInfo excelInfo : importVoList) { |
|
|
|
ScmVehRebateVo scmVehRebateVo = baseMapper.selectByVinNoAndOrgSid(excelInfo.getVinNo(), excelInfo.getRebateTypeValue(), excelInfo.getRebateName(), excelInfo.getPalceGenDate(), excelInfo.getCalculationModeValue(), useOrgSid); |
|
|
|
ScmVehRebateVo scmVehRebateVo = baseMapper.selectByVinNoAndOrgSidDr(excelInfo.getVinNo(), excelInfo.getRebateTypeValue(), excelInfo.getRebateName(), excelInfo.getPalceGenDate(), excelInfo.getCalculationModeValue(), useOrgSid); |
|
|
|
if (scmVehRebateVo != null) { |
|
|
|
checkWord.add("车架号为" + excelInfo.getVinNo() + "的单车返利信息已存在"); |
|
|
|
break; |
|
|
@ -877,7 +877,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
// }
|
|
|
|
// if (StringUtils.isNotBlank(excelInfo.getEstimateRebate())) {
|
|
|
|
// String estimateRebate = excelInfo.getEstimateRebate();
|
|
|
|
// Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$");
|
|
|
|
// Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$");
|
|
|
|
// boolean matches = pattern.matcher(estimateRebate).matches();
|
|
|
|
// if (!matches) {
|
|
|
|
// checkWord.add("返利金额必须为数字");
|
|
|
@ -890,7 +890,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getExpectTreatCost())) { |
|
|
|
String expectTreatCost = excelInfo.getExpectTreatCost(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(expectTreatCost).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("其中待支付费用必须为数字"); |
|
|
@ -903,7 +903,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getExpectSuppCost())) { |
|
|
|
String expectSuppCost = excelInfo.getExpectSuppCost(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(expectSuppCost).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("其中抵顶费用必须为数字"); |
|
|
@ -1233,7 +1233,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getManufactorSettlementPrice())) { |
|
|
|
String manufactorSettlementPrice = excelInfo.getManufactorSettlementPrice(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(manufactorSettlementPrice).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("厂家结算价必须为数字"); |
|
|
@ -1246,7 +1246,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getFreight())) { |
|
|
|
String freight = excelInfo.getFreight(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(freight).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("其中运费金额必须为数字"); |
|
|
@ -1295,7 +1295,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getEstimateRebate())) { |
|
|
|
String estimateRebate = excelInfo.getEstimateRebate(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(estimateRebate).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("预提返利必须为数字"); |
|
|
@ -1308,7 +1308,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getWithholdCost())) { |
|
|
|
String withholdCost = excelInfo.getWithholdCost(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(withholdCost).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("其中预提费用必须为数字"); |
|
|
@ -1357,7 +1357,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getUploadMoney())) { |
|
|
|
String uploadMoney = excelInfo.getUploadMoney(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(uploadMoney).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("上传金额必须为数字"); |
|
|
@ -1370,7 +1370,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getStayDetermineMoney())) { |
|
|
|
String stayDetermineMoney = excelInfo.getStayDetermineMoney(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(stayDetermineMoney).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("待确定金额必须为数字"); |
|
|
@ -1383,7 +1383,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getOnceTreatCost())) { |
|
|
|
String onceTreatCost = excelInfo.getOnceTreatCost(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(onceTreatCost).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("待支付费用必须为数字"); |
|
|
@ -1396,7 +1396,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getOnceSuppCost())) { |
|
|
|
String onceSuppCost = excelInfo.getOnceSuppCost(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(onceSuppCost).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("抵顶费用必须为数字"); |
|
|
@ -1691,7 +1691,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getManufactorSettlementPrice())) { |
|
|
|
String manufactorSettlementPrice = excelInfo.getManufactorSettlementPrice(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(manufactorSettlementPrice).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("厂家结算价必须为数字"); |
|
|
@ -1704,7 +1704,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getFreight())) { |
|
|
|
String freight = excelInfo.getFreight(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(freight).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("其中运费金额必须为数字"); |
|
|
@ -1747,7 +1747,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getEstimateRebate())) { |
|
|
|
String estimateRebate = excelInfo.getEstimateRebate(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(estimateRebate).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("预提返利必须为数字"); |
|
|
@ -1760,7 +1760,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getWithholdCost())) { |
|
|
|
String withholdCost = excelInfo.getWithholdCost(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(withholdCost).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("其中预提费用必须为数字"); |
|
|
@ -1809,7 +1809,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getUploadMoney())) { |
|
|
|
String uploadMoney = excelInfo.getUploadMoney(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(uploadMoney).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("上传金额必须为数字"); |
|
|
@ -1822,7 +1822,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getStayDetermineMoney())) { |
|
|
|
String stayDetermineMoney = excelInfo.getStayDetermineMoney(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(stayDetermineMoney).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("待确定金额必须为数字"); |
|
|
@ -1835,7 +1835,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getQzMoney())) { |
|
|
|
String qzMoney = excelInfo.getQzMoney(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(qzMoney).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("其中费用必须为数字"); |
|
|
@ -1869,7 +1869,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getSecondaryUploadMoney())) { |
|
|
|
String secondaryUploadMoney = excelInfo.getSecondaryUploadMoney(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(secondaryUploadMoney).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("二次上传金额必须为数字"); |
|
|
@ -1882,7 +1882,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getSecondTreatCost())) { |
|
|
|
String secondTreatCost = excelInfo.getSecondTreatCost(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(secondTreatCost).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("待支付费用必须为数字"); |
|
|
@ -1895,7 +1895,7 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getSecondSuppCost())) { |
|
|
|
String secondSuppCost = excelInfo.getSecondSuppCost(); |
|
|
|
Pattern pattern = Pattern.compile("^\\d+(.\\d{1,2})?$"); |
|
|
|
Pattern pattern = Pattern.compile("^(\\-|\\+)?\\d+(\\.\\d+)?$"); |
|
|
|
boolean matches = pattern.matcher(secondSuppCost).matches(); |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("抵顶费费用必须为数字"); |
|
|
|