|
@@ -4,9 +4,11 @@ import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
|
|
+import cn.iocoder.yudao.module.museum.controller.admin.museuminfo.vo.MuseumInfoRespVO;
|
|
|
import cn.iocoder.yudao.module.museum.controller.admin.museummodel.vo.MuseummodelPageReqVO;
|
|
|
import cn.iocoder.yudao.module.museum.controller.admin.museummodel.vo.MuseummodelRespVO;
|
|
|
import cn.iocoder.yudao.module.museum.controller.admin.museummodel.vo.MuseummodelSaveVO;
|
|
|
+import cn.iocoder.yudao.module.museum.dal.database.museuminfo.MuseumInfoDO;
|
|
|
import cn.iocoder.yudao.module.museum.dal.database.museummodel.MuseummodelDO;
|
|
|
import cn.iocoder.yudao.module.museum.service.museummodel.MuseummodelService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
@@ -17,6 +19,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.validation.Valid;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
|
@@ -26,7 +29,7 @@ import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.
|
|
|
@RestController
|
|
|
@RequestMapping("/museum/model")
|
|
|
@Validated
|
|
|
-public class MuseummodelController {
|
|
|
+public class MuseumModelController {
|
|
|
|
|
|
@Resource
|
|
|
private MuseummodelService museumModelService;
|
|
@@ -70,6 +73,29 @@ public class MuseummodelController {
|
|
|
return CommonResult.success(result1);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/getSampleId")
|
|
|
+ @Operation(summary = "标本编号查寻")
|
|
|
+ public CommonResult<List<MuseummodelRespVO>> getMuseumModelList(@RequestParam("sampleId") String specimenNumber){
|
|
|
+ List<MuseummodelDO> result = museumModelService.getMuseumModelBySpecimenNumber(specimenNumber);
|
|
|
+ List<MuseummodelRespVO> result1 = BeanUtils.toBean(result,MuseummodelRespVO.class);
|
|
|
+ return CommonResult.success(result1);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping("/page")
|
|
|
+ @Operation(summary = "获得模型分页")
|
|
|
+ @PreAuthorize("@ss.hasPermission('system:tenant:query')")
|
|
|
+ public CommonResult<PageResult<MuseummodelRespVO>> getPage(@Valid MuseummodelPageReqVO pageVO) {
|
|
|
+ PageResult<MuseummodelDO> pageResult = museumModelService.getMuseumModelPage(pageVO);
|
|
|
+ return success(BeanUtils.toBean(pageResult,MuseummodelRespVO.class));
|
|
|
+ }
|
|
|
+
|
|
|
+//1.通过标本编号放回所有的标本模型list
|
|
|
+//2.通过标本类型返回所有标本模型 返回map//
|
|
|
+//3.通过标本编号批量导入模型,前端传标本编号和zip压缩包,包含zip的验证(验证后缀)
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
// @GetMapping("/page")
|
|
|
// @Operation(summary = "获得用户分页列表")
|
|
|
// @PreAuthorize("@ss.hasPermission('system:user:query')")
|
|
@@ -83,14 +109,3 @@ public class MuseummodelController {
|
|
|
// }
|
|
|
|
|
|
|
|
|
-@GetMapping("/page")
|
|
|
-@Operation(summary = "获得模型分页")
|
|
|
-@PreAuthorize("@ss.hasPermission('system:tenant:query')")
|
|
|
-public CommonResult<PageResult<MuseummodelRespVO>> getPage(@Valid MuseummodelPageReqVO pageVO) {
|
|
|
- PageResult<MuseummodelDO> pageResult = museumModelService.getMuseumModelPage(pageVO);
|
|
|
- return success(BeanUtils.toBean(pageResult,MuseummodelRespVO.class));
|
|
|
-}
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-
|