|
@@ -43,117 +43,128 @@
|
|
|
preparation.fee_file
|
|
|
</sql>
|
|
|
<sql id="List_Condition">
|
|
|
- <if test="id != null and id != ''">
|
|
|
- and preparation.id = #{id}
|
|
|
- </if>
|
|
|
- <if test="positionId != null and positionId != ''">
|
|
|
- and preparation.position_id = #{positionId}
|
|
|
- </if>
|
|
|
- <if test="userId != null and userId != ''">
|
|
|
- and preparation.user_id = #{userId}
|
|
|
- </if>
|
|
|
- <if test="departId != null and departId != ''">
|
|
|
- and preparation.depart_id = #{departId}
|
|
|
- </if>
|
|
|
- <if test="applyTimeStart != null">
|
|
|
- and preparation.apply_time <![CDATA[>=]]>; #{applyTimeStart}
|
|
|
- </if>
|
|
|
- <if test="applyTimeEnd != null">
|
|
|
- and preparation.apply_time <![CDATA[<=]]> #{applyTimeEnd}
|
|
|
- </if>
|
|
|
- <if test="applyTime != null">
|
|
|
- and preparation.apply_time = #{applyTime}
|
|
|
- </if>
|
|
|
- <if test="content != null and content != ''">
|
|
|
- and preparation.content = #{content}
|
|
|
- </if>
|
|
|
- <if test="status != null">
|
|
|
- and preparation.status = #{status}
|
|
|
- </if>
|
|
|
- <if test="remark != null and remark != ''">
|
|
|
- and preparation.remark = #{remark}
|
|
|
- </if>
|
|
|
- <if test="createdTimeStart != null">
|
|
|
- and preparation.created_time <![CDATA[>=]]>; #{createdTimeStart}
|
|
|
- </if>
|
|
|
- <if test="createdTimeEnd != null">
|
|
|
- and preparation.created_time <![CDATA[<=]]> #{createdTimeEnd}
|
|
|
- </if>
|
|
|
- <if test="createdTime != null">
|
|
|
- and preparation.created_time = #{createdTime}
|
|
|
- </if>
|
|
|
- <if test="updateTimeStart != null">
|
|
|
- and preparation.update_time <![CDATA[>=]]>; #{updateTimeStart}
|
|
|
- </if>
|
|
|
- <if test="updateTimeEnd != null">
|
|
|
- and preparation.update_time <![CDATA[<=]]> #{updateTimeEnd}
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">
|
|
|
- and preparation.update_time = #{updateTime}
|
|
|
- </if>
|
|
|
- <if test="createdUserId != null and createdUserId != ''">
|
|
|
- and preparation.created_user_id = #{createdUserId}
|
|
|
- </if>
|
|
|
- <if test="createdUserName != null and createdUserName != ''">
|
|
|
- and preparation.created_user_name = #{createdUserName}
|
|
|
- </if>
|
|
|
- <if test="updateUserId != null and updateUserId != ''">
|
|
|
- and preparation.update_user_id = #{updateUserId}
|
|
|
- </if>
|
|
|
- <if test="updateUserName != null and updateUserName != ''">
|
|
|
- and preparation.update_user_name = #{updateUserName}
|
|
|
- </if>
|
|
|
- <if test="repairStartTimeStart != null">
|
|
|
- and preparation.repair_start_time <![CDATA[>=]]>; #{repairStartTimeStart}
|
|
|
- </if>
|
|
|
- <if test="repairStartTimeEnd != null">
|
|
|
- and preparation.repair_start_time <![CDATA[<=]]> #{repairStartTimeEnd}
|
|
|
- </if>
|
|
|
- <if test="repairStartTime != null">
|
|
|
- and preparation.repair_start_time = #{repairStartTime}
|
|
|
- </if>
|
|
|
- <if test="repairEndTimeStart != null">
|
|
|
- and preparation.repair_end_time <![CDATA[>=]]>; #{repairEndTimeStart}
|
|
|
- </if>
|
|
|
- <if test="repairEndTimeEnd != null">
|
|
|
- and preparation.repair_end_time <![CDATA[<=]]> #{repairEndTimeEnd}
|
|
|
- </if>
|
|
|
- <if test="repairEndTime != null">
|
|
|
- and preparation.repair_end_time = #{repairEndTime}
|
|
|
- </if>
|
|
|
- <if test="repairMinutes != null">
|
|
|
- and preparation.repair_minutes = #{repairMinutes}
|
|
|
- </if>
|
|
|
- <if test="repairUserId != null and repairUserId != ''">
|
|
|
- and preparation.repair_user_id = #{repairUserId}
|
|
|
- </if>
|
|
|
- <if test="repairContent != null and repairContent != ''">
|
|
|
- and preparation.repair_content = #{repairContent}
|
|
|
- </if>
|
|
|
- <if test="limitHoursStart != null">
|
|
|
- and preparation.limit_hours <![CDATA[>=]]>; #{limitHoursStart}
|
|
|
- </if>
|
|
|
- <if test="limitHoursEnd != null">
|
|
|
- and preparation.limit_hours <![CDATA[<=]]> #{limitHoursEnd}
|
|
|
- </if>
|
|
|
- <if test="limitHours != null">
|
|
|
- and preparation.limit_hours = #{limitHours}
|
|
|
- </if>
|
|
|
- <if test="fee != null">
|
|
|
- and preparation.fee = #{fee}
|
|
|
- </if>
|
|
|
- <if test="feeFile != null and feeFile != ''">
|
|
|
- and preparation.fee_file = #{feeFile}
|
|
|
- </if>
|
|
|
- <if test="keyword != null and keyword != ''">
|
|
|
+ <if test="id != null and id != ''">
|
|
|
+ and preparation.id = #{id}
|
|
|
+ </if>
|
|
|
+ <if test="positionId != null and positionId != ''">
|
|
|
+ and preparation.position_id = #{positionId}
|
|
|
+ </if>
|
|
|
+ <if test="userId != null and userId != ''">
|
|
|
+ and preparation.user_id = #{userId}
|
|
|
+ </if>
|
|
|
+ <if test="departId != null and departId != ''">
|
|
|
+ and preparation.depart_id = #{departId}
|
|
|
+ </if>
|
|
|
+ <if test="applyTimeStart != null">
|
|
|
+ and preparation.apply_time <![CDATA[>=]]> #{applyTimeStart}
|
|
|
+ </if>
|
|
|
+ <if test="applyTimeEnd != null">
|
|
|
+ and preparation.apply_time <![CDATA[<=]]> #{applyTimeEnd}
|
|
|
+ </if>
|
|
|
+ <if test="applyTime != null">
|
|
|
+ and preparation.apply_time = #{applyTime}
|
|
|
+ </if>
|
|
|
+ <if test="content != null and content != ''">
|
|
|
+ and preparation.content = #{content}
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ and preparation.status = #{status}
|
|
|
+ </if>
|
|
|
+ <if test="remark != null and remark != ''">
|
|
|
+ and preparation.remark = #{remark}
|
|
|
+ </if>
|
|
|
+ <if test="createdTimeStart != null">
|
|
|
+ and preparation.created_time <![CDATA[>=]]> #{createdTimeStart}
|
|
|
+ </if>
|
|
|
+ <if test="createdTimeEnd != null">
|
|
|
+ and preparation.created_time <![CDATA[<=]]> #{createdTimeEnd}
|
|
|
+ </if>
|
|
|
+ <if test="createdTime != null">
|
|
|
+ and preparation.created_time = #{createdTime}
|
|
|
+ </if>
|
|
|
+ <if test="updateTimeStart != null">
|
|
|
+ and preparation.update_time <![CDATA[>=]]> #{updateTimeStart}
|
|
|
+ </if>
|
|
|
+ <if test="updateTimeEnd != null">
|
|
|
+ and preparation.update_time <![CDATA[<=]]> #{updateTimeEnd}
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ and preparation.update_time = #{updateTime}
|
|
|
+ </if>
|
|
|
+ <if test="createdUserId != null and createdUserId != ''">
|
|
|
+ and preparation.created_user_id = #{createdUserId}
|
|
|
+ </if>
|
|
|
+ <if test="createdUserName != null and createdUserName != ''">
|
|
|
+ and preparation.created_user_name = #{createdUserName}
|
|
|
+ </if>
|
|
|
+ <if test="updateUserId != null and updateUserId != ''">
|
|
|
+ and preparation.update_user_id = #{updateUserId}
|
|
|
+ </if>
|
|
|
+ <if test="updateUserName != null and updateUserName != ''">
|
|
|
+ and preparation.update_user_name = #{updateUserName}
|
|
|
+ </if>
|
|
|
+ <if test="repairStartTimeStart != null">
|
|
|
+ and preparation.repair_start_time <![CDATA[>=]]> #{repairStartTimeStart}
|
|
|
+ </if>
|
|
|
+ <if test="repairStartTimeEnd != null">
|
|
|
+ and preparation.repair_start_time <![CDATA[<=]]> #{repairStartTimeEnd}
|
|
|
+ </if>
|
|
|
+ <if test="repairStartTime != null">
|
|
|
+ and preparation.repair_start_time = #{repairStartTime}
|
|
|
+ </if>
|
|
|
+ <if test="repairEndTimeStart != null">
|
|
|
+ and preparation.repair_end_time <![CDATA[>=]]> #{repairEndTimeStart}
|
|
|
+ </if>
|
|
|
+ <if test="repairEndTimeEnd != null">
|
|
|
+ and preparation.repair_end_time <![CDATA[<=]]> #{repairEndTimeEnd}
|
|
|
+ </if>
|
|
|
+ <if test="repairEndTime != null">
|
|
|
+ and preparation.repair_end_time = #{repairEndTime}
|
|
|
+ </if>
|
|
|
+ <if test="repairMinutes != null">
|
|
|
+ and preparation.repair_minutes = #{repairMinutes}
|
|
|
+ </if>
|
|
|
+ <if test="repairUserId != null and repairUserId != ''">
|
|
|
+ and preparation.repair_user_id = #{repairUserId}
|
|
|
+ </if>
|
|
|
+ <if test="repairContent != null and repairContent != ''">
|
|
|
+ and preparation.repair_content = #{repairContent}
|
|
|
+ </if>
|
|
|
+ <if test="limitHoursStart != null">
|
|
|
+ and preparation.limit_hours <![CDATA[>=]]> #{limitHoursStart}
|
|
|
+ </if>
|
|
|
+ <if test="limitHoursEnd != null">
|
|
|
+ and preparation.limit_hours <![CDATA[<=]]> #{limitHoursEnd}
|
|
|
+ </if>
|
|
|
+ <if test="limitHours != null">
|
|
|
+ and preparation.limit_hours = #{limitHours}
|
|
|
+ </if>
|
|
|
+ <if test="fee != null">
|
|
|
+ and preparation.fee = #{fee}
|
|
|
+ </if>
|
|
|
+ <if test="feeFile != null and feeFile != ''">
|
|
|
+ and preparation.fee_file = #{feeFile}
|
|
|
+ </if>
|
|
|
+ <if test="keyword != null and keyword != ''">
|
|
|
and preparation.id like concat(concat('%',#{keyword}),'%')
|
|
|
</if>
|
|
|
+ <!-- 新增查询参数 -->
|
|
|
+ <if test="statusList != null and statusList.size > 0">
|
|
|
+ AND preparation.status in
|
|
|
+ <foreach item="item" index="index" collection="statusList" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="tempUserId != null and tempUserId != ''">
|
|
|
+ and (preparation.user_id = #{tempUserId} or preparation.dispatch_user_id = #{tempUserId} or preparation.repair_user_id = #{tempUserId})
|
|
|
+ </if>
|
|
|
</sql>
|
|
|
- <select id="selectList" parameterType="com.platform.dao.dto.preparation.PreparationDTO" resultType="com.platform.dao.vo.query.preparation.PreparationVO">
|
|
|
+ <select id="selectList" parameterType="com.platform.dao.dto.preparation.PreparationDTO"
|
|
|
+ resultType="com.platform.dao.vo.query.preparation.PreparationVO">
|
|
|
select preparation.*
|
|
|
- from t_preparation as preparation
|
|
|
- <where>
|
|
|
- <include refid="List_Condition" />
|
|
|
+ from t_preparation as preparation
|
|
|
+ <where>
|
|
|
+ <include refid="List_Condition"/>
|
|
|
</where>
|
|
|
</select>
|
|
|
</mapper>
|