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
| <?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.ItemReviewMapper">
|
| <select id="selectReviewList" resultType="com.gkhy.exam.system.domain.ItemReview">
| SELECT
| ir.`id`,
| ir.`company_id`,
| ir.`item_id`,
| i.`item_name`,
| ir.`type`,
| ir.`stage`,
| ir.`file_name`,
| ir.`file_path`,
| ir.`project_code`,
| ir.`project_num`,
| ir.`review_level`,
| ir.`review_content`,
| ir.`product_item_ids`,
| ir.`del_flag`,
| ir.`create_by`,
| ir.`create_time`,
| ir.`update_by`,
| ir.`update_time`,
| ir.`status`
| FROM
| `item_review` ir
| LEFT JOIN item i ON ir.item_id = i.id
| WHERE
| ir.del_flag = 0
| <if test="companyId!=null">
| and ir.company_id =#{companyId}
| </if>
| <if test="itemName!=null">
| and i.item_name like concat('%',#{itemName},'%')
| </if>
| <if test="type!=null">
| and ir.type = #{type}
| </if>
| ORDER BY
| ir.create_time DESC
| </select>
| </mapper>
|
|