提交 | 用户 | 时间
|
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; |
5c6007
|
6 |
import com.iailab.module.model.mcs.pre.entity.MmItemTypeEntity; |
7fd198
|
7 |
import com.iailab.module.model.mcs.pre.entity.MmModelResultstrEntity; |
潘 |
8 |
import com.iailab.module.model.mcs.pre.service.MmModelResultstrService; |
|
9 |
import com.iailab.module.model.mcs.pre.vo.MmModelResultstrPageReqVO; |
|
10 |
import com.iailab.module.model.mcs.pre.vo.MmModelResultstrRespVO; |
|
11 |
import org.springframework.beans.factory.annotation.Autowired; |
5c6007
|
12 |
import org.springframework.security.access.prepost.PreAuthorize; |
7fd198
|
13 |
import org.springframework.validation.annotation.Validated; |
潘 |
14 |
import org.springframework.web.bind.annotation.GetMapping; |
|
15 |
import org.springframework.web.bind.annotation.RequestMapping; |
5c6007
|
16 |
import org.springframework.web.bind.annotation.RequestParam; |
7fd198
|
17 |
import org.springframework.web.bind.annotation.RestController; |
潘 |
18 |
|
5c6007
|
19 |
import java.util.List; |
7fd198
|
20 |
import java.util.Map; |
潘 |
21 |
|
|
22 |
import static com.iailab.framework.common.pojo.CommonResult.success; |
|
23 |
|
|
24 |
/** |
|
25 |
* @author PanZhibao |
|
26 |
* @date 2021年05月07日 16:53 |
|
27 |
*/ |
|
28 |
@RestController |
abba54
|
29 |
@RequestMapping("/model/pre/model-resultstr") |
7fd198
|
30 |
public class MmModelResultstrController { |
潘 |
31 |
|
|
32 |
@Autowired |
|
33 |
private MmModelResultstrService mmModelResultstrService; |
|
34 |
|
|
35 |
/** |
|
36 |
* 预测项结果列表 |
|
37 |
*/ |
|
38 |
@GetMapping("/page") |
|
39 |
public CommonResult<PageResult<MmModelResultstrRespVO>> page(@Validated MmModelResultstrPageReqVO reqVO) { |
|
40 |
PageResult<MmModelResultstrEntity> page = mmModelResultstrService.page(reqVO); |
|
41 |
|
|
42 |
return success(BeanUtils.toBean(page, MmModelResultstrRespVO.class)); |
|
43 |
} |
5c6007
|
44 |
|
L |
45 |
@GetMapping("/list") |
|
46 |
public CommonResult<List<MmModelResultstrEntity>> list(@RequestParam Map<String, Object> params) { |
|
47 |
List<MmModelResultstrEntity> list = mmModelResultstrService.list(params); |
|
48 |
|
|
49 |
return success(list); |
|
50 |
} |
7fd198
|
51 |
} |