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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
| <?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.gkhy.exam.system.mapper.QualityInformationInsideMapper">
|
|
| <select id="selectInsideList" resultType="com.gkhy.exam.system.domain.QualityInformationInside">
| SELECT
| qi.`id`,
| qi.`company_id`,
| sc.`name` as company_name,
| qi.`feed_form`,
| qi.`number`,
| qi.`product_name`,
| qi.`product_model`,
| qi.`product_number`,
| qi.`duty_unit_id`,
| qi.`part_num`,
| qi.`feed_unit_id`,
| qi.`feed_user_id`,
| qi.`feed_time`,
| qi.`feed_question`,
| qi.`dispose`,
| qi.`dispose_id`,
| su2.`name` as dispose_name,
| qi.`dispose_time`,
| qi.`check_out_id`,
| su3.`name` as check_out_name,
| qi.`check_out_time`,
| qi.`review_id`,
| su4.`name` as review_name,
| qi.`review_time`,
| qi.`rework`,
| qi.`equipment`,
| qi.`delay`,
| qi.`damage`,
| qi.`team_id`,
| su5.`name` as team_name,
| qi.`team_time`,
| qi.`duty_leader_id`,
| su6.`name` as duty_leader_name,
| qi.`duty_leader_time`,
| qi.`del_flag`,
| qi.`create_by`,
| qi.`create_time`,
| qi.`update_by`,
| qi.`update_time`
| FROM
| `quality_information_inside` qi
| LEFT JOIN sys_user su2 ON qi.dispose_id = su2.id
| LEFT JOIN sys_user su3 ON qi.check_out_id = su3.id
| LEFT JOIN sys_user su4 ON qi.review_id = su4.id
| LEFT JOIN sys_user su5 ON qi.team_id = su5.id
| LEFT JOIN sys_user su6 ON qi.duty_leader_id = su6.id
| LEFT JOIN sys_company sc ON qi.company_id = sc.id
| WHERE
| qi.del_flag = 0
| <if test="companyId!=null">
| and qi.company_id = #{companyId}
| </if>
| ORDER BY
| qi.create_time DESC
| </select>
| </mapper>
|
|