|
@@ -1,6 +1,8 @@
|
|
|
package com.qunzhixinxi.hnqz.admin.controller;
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.core.metadata.OrderItem;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
@@ -91,9 +93,22 @@ public class WmScorePackageSettleNoteController {
|
|
|
|
|
|
WmScorePackage scorePackage = wmScorePackageService.getById(note.getPackageId());
|
|
|
if (PackageTypeEnum.TYPE1_SCORE_AND_TASK_PACKAGE.val().equals(scorePackage.getPackageType1())) {
|
|
|
- return R.ok(wmScorePackageSettleNoteService.getWmTaskForSettlePage2(page, note));
|
|
|
+ IPage<WmTaskSettleNoteOutput> settlePage2 = wmScorePackageSettleNoteService.getWmTaskForSettlePage2(page, note);
|
|
|
+ settlePage2.getRecords().forEach(output -> {
|
|
|
+ if (output.getSubjectLocation() != null) {
|
|
|
+ output.setSubjectLocationName(output.getSubjectLocation().getDescription());
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return R.ok(settlePage2);
|
|
|
}
|
|
|
- return R.ok(wmScorePackageSettleNoteService.getWmTaskForSettlePage(page, note));
|
|
|
+
|
|
|
+ IPage<WmTaskSettleNoteOutput> settlePage = wmScorePackageSettleNoteService.getWmTaskForSettlePage(page, note);
|
|
|
+ settlePage.getRecords().forEach(output -> {
|
|
|
+ if (output.getSubjectLocation() != null) {
|
|
|
+ output.setSubjectLocationName(output.getSubjectLocation().getDescription());
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return R.ok(settlePage);
|
|
|
}
|
|
|
|
|
|
/**
|