提交 | 用户 | 时间
|
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.qc.badCollection.mapper.BadCollectionMapper"> |
|
4 |
|
|
5 |
<!-- 通用查询映射结果 --> |
|
6 |
<resultMap id="BaseResultMap" type="cn.stylefeng.guns.modular.qc.badCollection.entity.BadCollection"> |
|
7 |
<id column="id" property="id" /> |
|
8 |
<result column="work_order_no" property="workOrderNo" /> |
|
9 |
<result column="sfc_code" property="sfcCode" /> |
|
10 |
<result column="workshop_code" property="workshopCode" /> |
|
11 |
<result column="product_code" property="productCode" /> |
|
12 |
<result column="production_line" property="productionLine" /> |
|
13 |
<result column="location_code" property="locationCode" /> |
|
14 |
<result column="equipment_no" property="equipmentNo" /> |
|
15 |
<result column="type_code" property="typeCode" /> |
|
16 |
<result column="type_name" property="typeName" /> |
|
17 |
<result column="bad_code" property="badCode" /> |
|
18 |
<result column="bad_desc" property="badDesc" /> |
|
19 |
<result column="collection_time" property="collectionTime" /> |
|
20 |
<result column="collection_user" property="collectionUser" /> |
|
21 |
<result column="spare_field_1" property="spareField1" /> |
|
22 |
<result column="spare_field_2" property="spareField2" /> |
|
23 |
<result column="create_user" property="createUser" /> |
|
24 |
<result column="create_time" property="createTime" /> |
|
25 |
<result column="update_user" property="updateUser" /> |
|
26 |
<result column="update_time" property="updateTime" /> |
|
27 |
</resultMap> |
|
28 |
|
|
29 |
<!-- 通用查询结果列 --> |
|
30 |
<sql id="Base_Column_List"> |
|
31 |
id AS "id", work_order_no AS "workOrderNo", sfc_code AS "sfcCode", workshop_code AS "workshopCode", product_code AS "productCode", production_line AS "productionLine", location_code AS "locationCode", equipment_no AS "equipmentNo", type_code AS "typeCode", type_name AS "typeName", bad_code AS "badCode", bad_desc AS "badDesc", collection_time AS "collectionTime", collection_user AS "collectionUser", spare_field_1 AS "spareField1", spare_field_2 AS "spareField2", create_user AS "createUser", create_time AS "createTime", update_user AS "updateUser", update_time AS "updateTime" |
|
32 |
</sql> |
|
33 |
|
|
34 |
|
|
35 |
<select id="customList" resultType="cn.stylefeng.guns.modular.qc.badCollection.model.result.BadCollectionResult" parameterType="cn.stylefeng.guns.modular.qc.badCollection.model.params.BadCollectionParam"> |
|
36 |
select |
|
37 |
<include refid="Base_Column_List"/> |
|
38 |
from qc_bad_collection where 1 = 1 |
|
39 |
<if test="paramCondition.workOrderNo != null and paramCondition.workOrderNo != ''"> |
|
40 |
and work_order_no like CONCAT('%',#{paramCondition.workOrderNo},'%') |
|
41 |
</if> |
|
42 |
<if test="paramCondition.sfcCode != null and paramCondition.sfcCode != ''"> |
|
43 |
and sfc_code like CONCAT('%',#{paramCondition.sfcCode},'%') |
|
44 |
</if> |
|
45 |
<if test="paramCondition.productCode != null and paramCondition.productCode != ''"> |
|
46 |
and product_code like CONCAT('%',#{paramCondition.productCode},'%') |
|
47 |
</if> |
|
48 |
</select> |
|
49 |
|
|
50 |
<select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.qc.badCollection.model.params.BadCollectionParam"> |
|
51 |
select |
|
52 |
<include refid="Base_Column_List"/> |
|
53 |
from qc_bad_collection where 1 = 1 |
|
54 |
<if test="paramCondition.workOrderNo != null and paramCondition.workOrderNo != ''"> |
|
55 |
and work_order_no like CONCAT('%',#{paramCondition.workOrderNo},'%') |
|
56 |
</if> |
|
57 |
<if test="paramCondition.sfcCode != null and paramCondition.sfcCode != ''"> |
|
58 |
and sfc_code like CONCAT('%',#{paramCondition.sfcCode},'%') |
|
59 |
</if> |
|
60 |
<if test="paramCondition.productCode != null and paramCondition.productCode != ''"> |
|
61 |
and product_code like CONCAT('%',#{paramCondition.productCode},'%') |
|
62 |
</if> |
|
63 |
</select> |
|
64 |
|
|
65 |
<select id="customPageList" resultType="cn.stylefeng.guns.modular.qc.badCollection.model.result.BadCollectionResult" parameterType="cn.stylefeng.guns.modular.qc.badCollection.model.params.BadCollectionParam"> |
|
66 |
select |
|
67 |
<include refid="Base_Column_List"/> |
|
68 |
from qc_bad_collection where 1 = 1 |
|
69 |
<if test="paramCondition.workOrderNo != null and paramCondition.workOrderNo != ''"> |
|
70 |
and work_order_no like CONCAT('%',#{paramCondition.workOrderNo},'%') |
|
71 |
</if> |
|
72 |
<if test="paramCondition.sfcCode != null and paramCondition.sfcCode != ''"> |
|
73 |
and sfc_code like CONCAT('%',#{paramCondition.sfcCode},'%') |
|
74 |
</if> |
|
75 |
<if test="paramCondition.productCode != null and paramCondition.productCode != ''"> |
|
76 |
and product_code like CONCAT('%',#{paramCondition.productCode},'%') |
|
77 |
</if> |
|
78 |
</select> |
|
79 |
|
|
80 |
<select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.qc.badCollection.model.params.BadCollectionParam"> |
|
81 |
select |
|
82 |
<include refid="Base_Column_List"/> |
|
83 |
from qc_bad_collection where 1 = 1 |
|
84 |
<if test="paramCondition.workOrderNo != null and paramCondition.workOrderNo != ''"> |
|
85 |
and work_order_no like CONCAT('%',#{paramCondition.workOrderNo},'%') |
|
86 |
</if> |
|
87 |
<if test="paramCondition.sfcCode != null and paramCondition.sfcCode != ''"> |
|
88 |
and sfc_code like CONCAT('%',#{paramCondition.sfcCode},'%') |
|
89 |
</if> |
|
90 |
<if test="paramCondition.productCode != null and paramCondition.productCode != ''"> |
|
91 |
and product_code like CONCAT('%',#{paramCondition.productCode},'%') |
|
92 |
</if> |
|
93 |
</select> |
|
94 |
|
|
95 |
</mapper> |