| | |
| | | <?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="com.yuanchu.limslaboratory.pojo.dto.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 lims_laboratory.inspection i left join lims_laboratory.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> |