新增检查项目字典接口
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run
This commit is contained in:
parent
5b8bf7b57f
commit
b101f92665
@ -97,6 +97,14 @@ public class examitemsController {
|
||||
return success(BeanUtils.toBean(examitems, examitemsRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/getlist")
|
||||
@Operation(summary = "获得检查部位集合")
|
||||
@PreAuthorize("@ss.hasPermission('examitems:examitems:query')")
|
||||
public CommonResult<List<examitemsRespVO>> getexamitemslist() {
|
||||
List<examitemsDO> examitems = examitemsService.getexamitemsList();
|
||||
return success(BeanUtils.toBean(examitems, examitemsRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得检查部位分页")
|
||||
@PreAuthorize("@ss.hasPermission('examitems:examitems:query')")
|
||||
|
@ -10,6 +10,8 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.examitems.vo.*;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 检查部位 Mapper
|
||||
*
|
||||
@ -29,4 +31,6 @@ public interface examitemsMapper extends BaseMapperX<examitemsDO> {
|
||||
}
|
||||
|
||||
int selectItemCount(@Param("examItemCode") String examItemCode);
|
||||
//返回检查项目字典
|
||||
List<examitemsDO> getexamitemsList();
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
package cn.iocoder.yudao.module.system.service.examitems;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import cn.iocoder.yudao.module.system.controller.admin.examitems.vo.*;
|
||||
import cn.iocoder.yudao.module.system.dal.dataobject.examitems.examitemsDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
@ -54,4 +55,7 @@ public interface examitemsService {
|
||||
PageResult<examitemsDO> getexamitemsPage(examitemsPageReqVO pageReqVO);
|
||||
|
||||
boolean getexamItemcodexist(String code);
|
||||
|
||||
// 查询检查项目字典
|
||||
List<examitemsDO> getexamitemsList();
|
||||
}
|
@ -90,4 +90,9 @@ public class examitemsServiceImpl implements examitemsService {
|
||||
return bol;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<examitemsDO> getexamitemsList() {
|
||||
return examitemsMapper.getexamitemsList();
|
||||
}
|
||||
|
||||
}
|
@ -14,4 +14,7 @@
|
||||
<select id="selectItemCount" resultType="java.lang.Integer">
|
||||
select count(1) FROM tb_examitems where examItemCode=#{examItemCode}
|
||||
</select>
|
||||
<select id="getexamitemsList" resultType="cn.iocoder.yudao.module.system.dal.dataobject.examitems.examitemsDO">
|
||||
select examItemName,examItemCode,examPartCode from tb_examitems where isdelete='0'
|
||||
</select>
|
||||
</mapper>
|
Loading…
Reference in New Issue
Block a user