| | |
| | | import com.iailab.framework.common.pojo.CommonResult; |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.framework.common.util.object.BeanUtils; |
| | | import com.iailab.module.model.mcs.pre.entity.MmItemTypeEntity; |
| | | import com.iailab.module.model.mcs.pre.entity.MmModelResultstrEntity; |
| | | import com.iailab.module.model.mcs.pre.service.MmModelResultstrService; |
| | | import com.iailab.module.model.mcs.pre.vo.MmModelResultstrPageReqVO; |
| | | import com.iailab.module.model.mcs.pre.vo.MmModelResultstrRespVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import static com.iailab.framework.common.pojo.CommonResult.success; |
| | |
| | | |
| | | return success(BeanUtils.toBean(page, MmModelResultstrRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | public CommonResult<List<MmModelResultstrEntity>> list(@RequestParam Map<String, Object> params) { |
| | | List<MmModelResultstrEntity> list = mmModelResultstrService.list(params); |
| | | |
| | | return success(list); |
| | | } |
| | | } |