|
@@ -36,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</select>
|
|
</select>
|
|
<!-- AND DATE_FORMAT( start_time, '%Y-%m-%d' ) =${timeString}-->
|
|
<!-- AND DATE_FORMAT( start_time, '%Y-%m-%d' ) =${timeString}-->
|
|
<select id="getList" parameterType="BizProcessInspecion" resultMap="BizProcessInspecionResult">
|
|
<select id="getList" parameterType="BizProcessInspecion" resultMap="BizProcessInspecionResult">
|
|
- SELECT t1.*,t2.nick_name as technicianName FROM biz_process_inspecion t1 left join sys_user t2 on t1.reviewer_id = t2.user_id
|
|
|
|
|
|
+ SELECT distinct t1.*,t2.nick_name as technicianName FROM biz_process_inspecion t1 left join sys_user t2 on t1.reviewer_id = t2.user_id
|
|
<trim prefix=" WHERE" suffix="" suffixOverrides="AND">
|
|
<trim prefix=" WHERE" suffix="" suffixOverrides="AND">
|
|
t1.deleted = 0
|
|
t1.deleted = 0
|
|
AND t1.return_receipt_detail_id =0
|
|
AND t1.return_receipt_detail_id =0
|
|
@@ -50,7 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="status != null ">AND t1.status = #{status}</if>
|
|
<if test="status != null ">AND t1.status = #{status}</if>
|
|
<if test="inspectionChamberId != null ">AND t1.inspection_chamber_id = #{inspectionChamberId}</if>
|
|
<if test="inspectionChamberId != null ">AND t1.inspection_chamber_id = #{inspectionChamberId}</if>
|
|
<if test="keyword != null and keyword != '' ">AND (t1.lot_code LIKE CONCAT('%',#{keyword},'%') OR carrier_code LIKE CONCAT('%',#{keyword},'%') OR
|
|
<if test="keyword != null and keyword != '' ">AND (t1.lot_code LIKE CONCAT('%',#{keyword},'%') OR carrier_code LIKE CONCAT('%',#{keyword},'%') OR
|
|
- t1.product_description LIKE CONCAT('%',#{keyword},'%'))
|
|
|
|
|
|
+ t1.product_description LIKE CONCAT('%',#{keyword},'%') OR inspection_carrier_code LIKE CONCAT('%',#{keyword},'%'))
|
|
</if>
|
|
</if>
|
|
<if test="isAuto != null ">AND t1.is_auto = #{isAuto}</if>
|
|
<if test="isAuto != null ">AND t1.is_auto = #{isAuto}</if>
|
|
|
|
|