仪表盘
版本库
文件存储
活动
搜索
登录
main
/
lims-after
lims后端
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
增加请求“检验模块”
李林
2023-07-20
616c9c94af30ae75eb5994a2cea3fac16acaa005
[lims-after.git]
/
inspection-server
/
src
/
main
/
resources
/
mapper
/
InspectionMapper.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yuanchu.limslaboratory.mapper.InspectionMapper">
<select id="selectAllInspection" resultType="InspectionDto">
select i.id, type, inspection_status, qualified_state, i.state, i.create_time, user_name, inspect_user_id, inspect_start_time, inspect_end_time, u.name inspectUserName
from inspection i left join user u
on i.inspect_user_id = u.id
<if test="state!=null">
where state = #{state}
</if>
order by i.create_time desc
limit #{pageSize},#{countSize}
</select>
</mapper>