提交 | 用户 | 时间
|
c06f48
|
1 |
package com.iailab.module.model.mcs.pre.controller.admin; |
7fd198
|
2 |
|
潘 |
3 |
import com.iailab.framework.common.pojo.CommonResult; |
|
4 |
import com.iailab.framework.common.pojo.PageResult; |
|
5 |
import com.iailab.framework.common.util.object.BeanUtils; |
|
6 |
import com.iailab.module.model.mcs.pre.entity.MmModelResultstrEntity; |
|
7 |
import com.iailab.module.model.mcs.pre.service.MmModelResultstrService; |
|
8 |
import com.iailab.module.model.mcs.pre.vo.MmModelResultstrPageReqVO; |
|
9 |
import com.iailab.module.model.mcs.pre.vo.MmModelResultstrRespVO; |
|
10 |
import org.springframework.beans.factory.annotation.Autowired; |
|
11 |
import org.springframework.validation.annotation.Validated; |
|
12 |
import org.springframework.web.bind.annotation.GetMapping; |
|
13 |
import org.springframework.web.bind.annotation.RequestMapping; |
|
14 |
import org.springframework.web.bind.annotation.RestController; |
|
15 |
|
|
16 |
import java.util.Map; |
|
17 |
|
|
18 |
import static com.iailab.framework.common.pojo.CommonResult.success; |
|
19 |
|
|
20 |
/** |
|
21 |
* @author PanZhibao |
|
22 |
* @date 2021年05月07日 16:53 |
|
23 |
*/ |
|
24 |
@RestController |
|
25 |
@RequestMapping("/pre/model-resultstr") |
|
26 |
public class MmModelResultstrController { |
|
27 |
|
|
28 |
@Autowired |
|
29 |
private MmModelResultstrService mmModelResultstrService; |
|
30 |
|
|
31 |
/** |
|
32 |
* 预测项结果列表 |
|
33 |
*/ |
|
34 |
@GetMapping("/page") |
|
35 |
public CommonResult<PageResult<MmModelResultstrRespVO>> page(@Validated MmModelResultstrPageReqVO reqVO) { |
|
36 |
PageResult<MmModelResultstrEntity> page = mmModelResultstrService.page(reqVO); |
|
37 |
|
|
38 |
return success(BeanUtils.toBean(page, MmModelResultstrRespVO.class)); |
|
39 |
} |
|
40 |
} |