|
@@ -393,7 +393,9 @@ public class WmPayOffController {
|
|
|
output.setUsername(sysUser.getUsername());
|
|
|
output.setRealname(sysUser.getRealname());
|
|
|
output.setSettleStatus(settleNote.getSettleNoteStatus());
|
|
|
+ output.setSettleStatusName(SettleStatusEnum.resolve(String.valueOf(settleNote.getSettleNoteStatus())).getName2());
|
|
|
output.setSubjectLocation(settleNote.getSubjectLocation());
|
|
|
+ output.setSubjectLocationName(settleNote.getSubjectLocation().getDescription());
|
|
|
output.setReviewStatus(settleNote.getReviewStatus());
|
|
|
outputList.add(output);
|
|
|
});
|
|
@@ -787,7 +789,7 @@ public class WmPayOffController {
|
|
|
public R<?> financialReview(@RequestBody WmScorePackageSettleInput input) {
|
|
|
log.info("财务复核参数:{}", input);
|
|
|
|
|
|
- if (StringUtils.isEmpty(input.getId()) || null == input.getSubjectLocation() || null == input.getInvoiceCategory() || null == input.getReviewStatus()) {
|
|
|
+ if (StringUtils.isEmpty(input.getId()) || null == input.getReviewStatus()) {
|
|
|
return R.failed("必填参数为空");
|
|
|
}
|
|
|
|
|
@@ -802,8 +804,11 @@ public class WmPayOffController {
|
|
|
List<WmScorePackageSettleNote> notes = (List<WmScorePackageSettleNote>) queryData.get("notes");
|
|
|
WmScorePackage wsp = (WmScorePackage) queryData.get("wsp");
|
|
|
|
|
|
+ WmScorePackageSettleNote settleNote = notes.get(0);
|
|
|
+
|
|
|
+ input.setSubjectLocation(settleNote.getSubjectLocation());
|
|
|
+ input.setInvoiceCategory(settleNote.getInvoiceType());
|
|
|
input.setScorePackageName(wsp.getScorePackageName());
|
|
|
- input.setNotes(notes);
|
|
|
|
|
|
return wmPayOffService.financialReview(input);
|
|
|
}
|
|
@@ -826,7 +831,7 @@ public class WmPayOffController {
|
|
|
List<Map<String, String>> msgList = new ArrayList<>();
|
|
|
|
|
|
for (WmScorePackageSettleInput input : inputList) {
|
|
|
- if (StringUtils.isEmpty(input.getId()) || null == input.getSubjectLocation() || null == input.getInvoiceCategory() || null == input.getReviewStatus()) {
|
|
|
+ if (StringUtils.isEmpty(input.getId()) || null == input.getReviewStatus()) {
|
|
|
return R.failed("必填参数为空");
|
|
|
}
|
|
|
|
|
@@ -838,6 +843,10 @@ public class WmPayOffController {
|
|
|
List<WmScorePackageSettleNote> notes = (List<WmScorePackageSettleNote>) queryData.get("notes");
|
|
|
WmScorePackage wsp = (WmScorePackage) queryData.get("wsp");
|
|
|
|
|
|
+ WmScorePackageSettleNote settleNote = notes.get(0);
|
|
|
+
|
|
|
+ input.setSubjectLocation(settleNote.getSubjectLocation());
|
|
|
+ input.setInvoiceCategory(settleNote.getInvoiceType());
|
|
|
input.setScorePackageName(wsp.getScorePackageName());
|
|
|
input.setNotes(notes);
|
|
|
// 调用单个结算
|