|
|
@ -81,16 +81,16 @@
|
|
|
|
and rep.apply_time between to_date(#{params.beginApplyTime}, 'yyyy-mm-dd hh24:mi:ss') and
|
|
|
|
and rep.apply_time between to_date(#{params.beginApplyTime}, 'yyyy-mm-dd hh24:mi:ss') and
|
|
|
|
to_date(#{params.endApplyTime}, 'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
to_date(#{params.endApplyTime}, 'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="qualityUserFlag != null and qualityUserFlag != ''">and rep.quality_user_flag = #{qualityUserFlag}
|
|
|
|
<if test="qualityUserFlag != null and qualityUserFlag != 9">and rep.quality_user_flag = #{qualityUserFlag}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="failureReason != null and failureReason != ''">and rep.failure_reason = #{failureReason}</if>
|
|
|
|
<if test="failureReason != null and failureReason != ''">and rep.failure_reason = #{failureReason}</if>
|
|
|
|
<if test="failureType != null and failureType != ''">and rep.failure_type = #{failureType}</if>
|
|
|
|
<if test="failureType != null and failureType != ''">and rep.failure_type = #{failureType}</if>
|
|
|
|
<if test="qualityUserTime != null ">and rep.quality_user_time = #{qualityUserTime}</if>
|
|
|
|
<if test="qualityUserTime != null ">and rep.quality_user_time = #{qualityUserTime}</if>
|
|
|
|
<if test="productionManagerFlag != null and productionManagerFlag != ''">and rep.production_manager_flag =
|
|
|
|
<if test="productionManagerFlag != null and productionManagerFlag != 9">and rep.production_manager_flag =
|
|
|
|
#{productionManagerFlag}
|
|
|
|
#{productionManagerFlag}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="productionManagerTime != null ">and rep.production_manager_time = #{productionManagerTime}</if>
|
|
|
|
<if test="productionManagerTime != null ">and rep.production_manager_time = #{productionManagerTime}</if>
|
|
|
|
<if test="qualityManagerFlag != null and qualityManagerFlag != ''">and rep.quality_manager_flag =
|
|
|
|
<if test="qualityManagerFlag != null and qualityManagerFlag != 9">and rep.quality_manager_flag =
|
|
|
|
#{qualityManagerFlag}
|
|
|
|
#{qualityManagerFlag}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="qualityManagerTime != null ">and rep.quality_manager_time = #{qualityManagerTime}</if>
|
|
|
|
<if test="qualityManagerTime != null ">and rep.quality_manager_time = #{qualityManagerTime}</if>
|
|
|
@ -105,6 +105,9 @@
|
|
|
|
<if test="createdTime != null ">and rep.created_time = #{createdTime}</if>
|
|
|
|
<if test="createdTime != null ">and rep.created_time = #{createdTime}</if>
|
|
|
|
<if test="updatedBy != null and updatedBy != ''">and rep.updated_by = #{updatedBy}</if>
|
|
|
|
<if test="updatedBy != null and updatedBy != ''">and rep.updated_by = #{updatedBy}</if>
|
|
|
|
<if test="updatedTime != null ">and rep.updated_time = #{updatedTime}</if>
|
|
|
|
<if test="updatedTime != null ">and rep.updated_time = #{updatedTime}</if>
|
|
|
|
|
|
|
|
<if test="qualityUserFlag == 9 ">and rep.quality_user_flag IS NULL </if>
|
|
|
|
|
|
|
|
<if test="productionManagerFlag == 9 ">and rep.production_manager_flag IS NULL</if>
|
|
|
|
|
|
|
|
<if test="qualityManagerFlag == 9 ">and rep.quality_manager_flag IS NULL</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
order by rep.apply_time desc
|
|
|
|
order by rep.apply_time desc
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|