|
@@ -612,21 +612,6 @@ public class WmPayOffController {
|
|
|
@PostMapping("/settleIssueBySubType")
|
|
|
public R<?> settleIssueBySubType(@RequestBody WmScorePackageSettleInput input) {
|
|
|
|
|
|
- // 获取当日所在月份
|
|
|
- LocalDateTime today = LocalDateTime.now();
|
|
|
- int monthValue = today.getMonthValue();
|
|
|
- int lastMonthValue = today.minusMonths(1L).getMonthValue();
|
|
|
-
|
|
|
- Optional<WmScorePackageSettleNote> any = input.getNotes().stream()
|
|
|
- .filter(note -> note.getSubTime() == null
|
|
|
- || note.getSubTime().getMonthValue() != monthValue
|
|
|
- || note.getSubTime().getMonthValue() != lastMonthValue
|
|
|
- ).findAny();
|
|
|
-
|
|
|
- if (any.isPresent()){
|
|
|
- return R.failed("不支持结算跨双月或多月提交记录,请回退并重新提交后重试");
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
if (StrUtil.isBlank(input.getId()) || StrUtil.isBlank(input.getScorePackageName()) || input.getSubjectLocation() == null || CollUtil.isEmpty(input.getNotes()) || null == input.getInvoiceCategory()) {
|
|
|
return R.failed("数据异常");
|