兴利计划
parent
67f5573d16
commit
d3e6e81f65
|
|
@ -18,6 +18,7 @@ import org.springframework.validation.annotation.Validated;
|
|||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
@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
|
||||
public String getGroupId() {
|
||||
|
|
|
|||
|
|
@ -26,6 +26,12 @@ import java.util.List;
|
|||
@Schema(description = "兴利计划-实体类")
|
||||
public class XlPlan {
|
||||
|
||||
@TableField(exist = false)
|
||||
public final Integer MONTH = 0;
|
||||
|
||||
@TableField(exist = false)
|
||||
public final Integer YEAR = 1;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
|
|
@ -118,5 +124,4 @@ public class XlPlan {
|
|||
|
||||
@TableField(exist = false)
|
||||
private List<FileAssociations> files;
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue