|
|
@@ -1372,6 +1372,15 @@ public class PsExeExcelUtil {
|
|
1372
|
1372
|
if (createBy.isEmpty()) {
|
|
1373
|
1373
|
errorLogList.add("制单人为空");
|
|
1374
|
1374
|
}
|
|
|
1375
|
+ // 认领金额:非空 + 正数校验
|
|
|
1376
|
+ BigDecimal whactkFee = BigDecimal.ZERO;
|
|
|
1377
|
+ if (dto.getWhactkFee() == null) {
|
|
|
1378
|
+ } else {
|
|
|
1379
|
+ whactkFee = BigDecimal.valueOf(dto.getWhactkFee()).setScale(6, BigDecimal.ROUND_HALF_UP);
|
|
|
1380
|
+ /*if (claimedAmt.compareTo(BigDecimal.ZERO) <= 0) {
|
|
|
1381
|
+ errorLogList.add("认领金额必须大于0,当前值:" + dto.getClaimedAmt());
|
|
|
1382
|
+ }*/
|
|
|
1383
|
+ }
|
|
1375
|
1384
|
|
|
1376
|
1385
|
// 3. 构建错误日志
|
|
1377
|
1386
|
String errorLog = errorLogList.isEmpty() ? "" : String.join(";", errorLogList);
|
|
|
@@ -1412,6 +1421,7 @@ public class PsExeExcelUtil {
|
|
1412
|
1421
|
StringBuilder liushuihao = sb.append("BR").append(yearMonth).append(String.format(String.valueOf(id))).append("-QC");
|
|
1413
|
1422
|
entity.setFno(liushuihao.toString());
|
|
1414
|
1423
|
entity.setCostCenter(costCenter);
|
|
|
1424
|
+ entity.setWhactkFee(whactkFee);
|
|
1415
|
1425
|
|
|
1416
|
1426
|
return entity;
|
|
1417
|
1427
|
}
|