1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
| <?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.InspectionProductListMapper">
|
| <select id="selectByMaterId" resultType="com.yuanchu.limslaboratory.pojo.vo.InspectionProductListVo">
| select inspection_material_list_id,
| inspect_start_time inspectStartTime,
| inspect_end_time inspectEndTime,
| ipl.name,
| method,
| ask,
| unit,
| required,
| internal,
| start_time,
| end_time,
| uname userName,
| equipment_name instrumentName
| from (select inspection_material_list_id,
| pl.name name,
| user.name uname,
| method,
| ask,
| unit,
| required,
| internal,
| start_time,
| end_time,
| equipment_name
| from lims_laboratory.inspection_product_list pl
| left join lims_laboratory.user on pl.user_id = user.id
| left join lims_laboratory.instrument on pl.instrument_id = instrument.id) ipl
| , lims_laboratory.inspection_material_list iml
| , lims_laboratory.inspection i
| where iml.id = ipl.inspection_material_list_id
| and iml.id = ipl.inspection_material_list_id
| and i.id = iml.inspection_id
| and ipl.inspection_material_list_id = #{id}
| </select>
| </mapper>
|
|