兴利计划
parent
67f5573d16
commit
d3e6e81f65
|
|
@ -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() {
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,12 @@ import java.util.List;
|
||||||
@TableName("xl_plan")
|
@TableName("xl_plan")
|
||||||
@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;
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue