兴利计划

master
yangzhe123 2025-09-01 14:45:34 +08:00
parent 67f5573d16
commit d3e6e81f65
2 changed files with 17 additions and 1 deletions

View File

@ -18,6 +18,7 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.io.Serializable; import java.io.Serializable;
import java.util.List;
import java.util.Objects; import java.util.Objects;
@RestController @RestController
@ -81,6 +82,16 @@ public class XlPlanController extends AbstractCommonFileController {
} }
@Operation(summary = "列表")
@GetMapping("/list")
public R<List<XlPlan>> list(@RequestBody XlPlanPageSo pageSo) {
List<XlPlan> list = xlPlanService.lambdaQuery().list();
if(!CollectionUtils.isEmpty(list)){
list.forEach(o -> o.setFiles(fileService.getFiles(getGroupId(),o.getId().toString())));
}
return R.ok(list);
}
@Override @Override
public String getGroupId() { public String getGroupId() {

View File

@ -26,6 +26,12 @@ import java.util.List;
@Schema(description = "兴利计划-实体类") @Schema(description = "兴利计划-实体类")
public class XlPlan { public class XlPlan {
@TableField(exist = false)
public final Integer MONTH = 0;
@TableField(exist = false)
public final Integer YEAR = 1;
/** /**
* ID * ID
*/ */
@ -118,5 +124,4 @@ public class XlPlan {
@TableField(exist = false) @TableField(exist = false)
private List<FileAssociations> files; private List<FileAssociations> files;
} }