| | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import static com.iailab.framework.apilog.core.enums.OperateTypeEnum.EXPORT; |
| | | import static com.iailab.framework.common.pojo.CommonResult.success; |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "获取计划项列表", description = "用于【计划项】界面") |
| | | @PreAuthorize("@ss.hasPermission('data:plan-item:query')") |
| | | public CommonResult<List<PlanItemRespVO>> getList(PlanItemPageReqVO reqVO) { |
| | | List<PlanItemEntity> list = planItemService.list(); |
| | | public CommonResult<List<PlanItemRespVO>> getList(@RequestParam Map<String, Object> params) { |
| | | List<PlanItemEntity> list = planItemService.list(params); |
| | | return success(ConvertUtils.sourceToTarget(list, PlanItemRespVO.class)); |
| | | } |
| | | } |