提交 | 用户 | 时间
|
71e81e
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
懒 |
2 |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
3 |
<mapper namespace="cn.stylefeng.guns.modular.sc.repairManageInfo.mapper.RepairManageInfoMapper"> |
|
4 |
|
|
5 |
<!-- 通用查询映射结果 --> |
|
6 |
<resultMap id="BaseResultMap" type="cn.stylefeng.guns.modular.sc.repairManageInfo.entity.RepairManageInfo"> |
|
7 |
<id column="id" property="id" /> |
|
8 |
<result column="sfc" property="sfc" /> |
|
9 |
<result column="production_line" property="productionLine" /> |
|
10 |
<result column="location_code" property="locationCode" /> |
|
11 |
<result column="work_order_no" property="workOrderNo" /> |
|
12 |
<result column="product_code" property="productCode" /> |
|
13 |
<result column="product_name" property="productName" /> |
|
14 |
<result column="manage_type" property="manageType" /> |
|
15 |
<result column="up_plc" property="upPlc" /> |
|
16 |
<result column="operate_time" property="operateTime" /> |
|
17 |
<result column="operate_user" property="operateUser" /> |
|
18 |
<result column="spare_field_1" property="spareField1" /> |
|
19 |
<result column="spare_field_2" property="spareField2" /> |
|
20 |
<result column="spare_field_3" property="spareField3" /> |
|
21 |
<result column="spare_field_4" property="spareField4" /> |
|
22 |
<result column="poor_location_code" property="poorLocationCode" /> |
|
23 |
<result column="poor_content" property="poorContent" /> |
|
24 |
|
|
25 |
|
|
26 |
</resultMap> |
|
27 |
|
|
28 |
<!-- 通用查询结果列 --> |
|
29 |
<sql id="Base_Column_List"> |
|
30 |
poor_content AS "poorContent", poor_location_code AS "poorLocationCode", id AS "id", sfc AS "sfc", production_line AS "productionLine", location_code AS "locationCode", work_order_no AS "workOrderNo", product_code AS "productCode", product_name AS "productName", manage_type AS "manageType", up_plc AS "upPlc", operate_time AS "operateTime", operate_user AS "operateUser", spare_field_1 AS "spareField1", spare_field_2 AS "spareField2", spare_field_3 AS "spareField3", spare_field_4 AS "spareField4" |
|
31 |
</sql> |
|
32 |
|
|
33 |
|
|
34 |
<select id="customList" resultType="cn.stylefeng.guns.modular.sc.repairManageInfo.model.result.RepairManageInfoResult" parameterType="cn.stylefeng.guns.modular.sc.repairManageInfo.model.params.RepairManageInfoParam"> |
|
35 |
select |
|
36 |
<include refid="Base_Column_List"/> |
|
37 |
from sc_repair_manage_info where 1 = 1 |
|
38 |
<if test="paramCondition.sfc != null and paramCondition.sfc != ''"> |
|
39 |
and sfc like CONCAT('%',#{paramCondition.sfc},'%') |
|
40 |
</if> |
|
41 |
<if test="paramCondition.productionLine != null and paramCondition.productionLine != ''"> |
|
42 |
and production_line like CONCAT('%',#{paramCondition.productionLine},'%') |
|
43 |
</if> |
|
44 |
<if test="paramCondition.locationCode != null and paramCondition.locationCode != ''"> |
|
45 |
and location_code like CONCAT('%',#{paramCondition.locationCode},'%') |
|
46 |
</if> |
|
47 |
<if test="paramCondition.workOrderNo != null and paramCondition.workOrderNo != ''"> |
|
48 |
and work_order_no like CONCAT('%',#{paramCondition.workOrderNo},'%') |
|
49 |
</if> |
|
50 |
<if test="paramCondition.productCode != null and paramCondition.productCode != ''"> |
|
51 |
and product_code like CONCAT('%',#{paramCondition.productCode},'%') |
|
52 |
</if> |
|
53 |
<if test="paramCondition.manageType != null and paramCondition.manageType != ''"> |
|
54 |
and manage_type like CONCAT('%',#{paramCondition.manageType},'%') |
|
55 |
</if> |
|
56 |
order by operate_time desc |
|
57 |
|
|
58 |
</select> |
|
59 |
|
|
60 |
<select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.sc.repairManageInfo.model.params.RepairManageInfoParam"> |
|
61 |
select |
|
62 |
<include refid="Base_Column_List"/> |
|
63 |
from sc_repair_manage_info where 1 = 1 |
|
64 |
<if test="paramCondition.sfc != null and paramCondition.sfc != ''"> |
|
65 |
and sfc like CONCAT('%',#{paramCondition.sfc},'%') |
|
66 |
</if> |
|
67 |
<if test="paramCondition.productionLine != null and paramCondition.productionLine != ''"> |
|
68 |
and production_line like CONCAT('%',#{paramCondition.productionLine},'%') |
|
69 |
</if> |
|
70 |
<if test="paramCondition.locationCode != null and paramCondition.locationCode != ''"> |
|
71 |
and location_code like CONCAT('%',#{paramCondition.locationCode},'%') |
|
72 |
</if> |
|
73 |
<if test="paramCondition.workOrderNo != null and paramCondition.workOrderNo != ''"> |
|
74 |
and work_order_no like CONCAT('%',#{paramCondition.workOrderNo},'%') |
|
75 |
</if> |
|
76 |
<if test="paramCondition.productCode != null and paramCondition.productCode != ''"> |
|
77 |
and product_code like CONCAT('%',#{paramCondition.productCode},'%') |
|
78 |
</if> |
|
79 |
<if test="paramCondition.manageType != null and paramCondition.manageType != ''"> |
|
80 |
and manage_type like CONCAT('%',#{paramCondition.manageType},'%') |
|
81 |
</if> |
|
82 |
order by operate_time desc |
|
83 |
|
|
84 |
</select> |
|
85 |
|
|
86 |
<select id="customPageList" resultType="cn.stylefeng.guns.modular.sc.repairManageInfo.model.result.RepairManageInfoResult" parameterType="cn.stylefeng.guns.modular.sc.repairManageInfo.model.params.RepairManageInfoParam"> |
|
87 |
select |
|
88 |
<include refid="Base_Column_List"/> |
|
89 |
from sc_repair_manage_info where 1 = 1 |
|
90 |
<if test="paramCondition.sfc != null and paramCondition.sfc != ''"> |
|
91 |
and sfc like CONCAT('%',#{paramCondition.sfc},'%') |
|
92 |
</if> |
|
93 |
<if test="paramCondition.productionLine != null and paramCondition.productionLine != ''"> |
|
94 |
and production_line like CONCAT('%',#{paramCondition.productionLine},'%') |
|
95 |
</if> |
|
96 |
<if test="paramCondition.locationCode != null and paramCondition.locationCode != ''"> |
|
97 |
and location_code like CONCAT('%',#{paramCondition.locationCode},'%') |
|
98 |
</if> |
|
99 |
<if test="paramCondition.workOrderNo != null and paramCondition.workOrderNo != ''"> |
|
100 |
and work_order_no like CONCAT('%',#{paramCondition.workOrderNo},'%') |
|
101 |
</if> |
|
102 |
<if test="paramCondition.productCode != null and paramCondition.productCode != ''"> |
|
103 |
and product_code like CONCAT('%',#{paramCondition.productCode},'%') |
|
104 |
</if> |
|
105 |
<if test="paramCondition.manageType != null and paramCondition.manageType != ''"> |
|
106 |
and manage_type like CONCAT('%',#{paramCondition.manageType},'%') |
|
107 |
</if> |
|
108 |
order by operate_time desc |
|
109 |
</select> |
|
110 |
|
|
111 |
<select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.sc.repairManageInfo.model.params.RepairManageInfoParam"> |
|
112 |
select |
|
113 |
<include refid="Base_Column_List"/> |
|
114 |
from sc_repair_manage_info where 1 = 1 |
|
115 |
<if test="paramCondition.sfc != null and paramCondition.sfc != ''"> |
|
116 |
and sfc like CONCAT('%',#{paramCondition.sfc},'%') |
|
117 |
</if> |
|
118 |
<if test="paramCondition.productionLine != null and paramCondition.productionLine != ''"> |
|
119 |
and production_line like CONCAT('%',#{paramCondition.productionLine},'%') |
|
120 |
</if> |
|
121 |
<if test="paramCondition.locationCode != null and paramCondition.locationCode != ''"> |
|
122 |
and location_code like CONCAT('%',#{paramCondition.locationCode},'%') |
|
123 |
</if> |
|
124 |
<if test="paramCondition.workOrderNo != null and paramCondition.workOrderNo != ''"> |
|
125 |
and work_order_no like CONCAT('%',#{paramCondition.workOrderNo},'%') |
|
126 |
</if> |
|
127 |
<if test="paramCondition.productCode != null and paramCondition.productCode != ''"> |
|
128 |
and product_code like CONCAT('%',#{paramCondition.productCode},'%') |
|
129 |
</if> |
|
130 |
<if test="paramCondition.manageType != null and paramCondition.manageType != ''"> |
|
131 |
and manage_type like CONCAT('%',#{paramCondition.manageType},'%') |
|
132 |
</if> |
|
133 |
order by operate_time desc |
|
134 |
|
|
135 |
</select> |
|
136 |
|
|
137 |
</mapper> |