|
@@ -0,0 +1,159 @@
|
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
+<mapper namespace="com.platform.dao.mapper.preparation.PreparationMapper">
|
|
|
|
+ <sql id="Base_Column_List">
|
|
|
|
+ preparation.id,
|
|
|
|
+ preparation.position_id,
|
|
|
|
+ preparation.user_id,
|
|
|
|
+ preparation.depart_id,
|
|
|
|
+ preparation.apply_time,
|
|
|
|
+ preparation.content,
|
|
|
|
+ preparation.status,
|
|
|
|
+ preparation.remark,
|
|
|
|
+ preparation.created_time,
|
|
|
|
+ preparation.update_time,
|
|
|
|
+ preparation.created_user_id,
|
|
|
|
+ preparation.created_user_name,
|
|
|
|
+ preparation.update_user_id,
|
|
|
|
+ preparation.update_user_name,
|
|
|
|
+ preparation.repair_start_time,
|
|
|
|
+ preparation.repair_end_time,
|
|
|
|
+ preparation.repair_minutes,
|
|
|
|
+ preparation.repair_user_id,
|
|
|
|
+ preparation.repair_content,
|
|
|
|
+ preparation.limit_hours,
|
|
|
|
+ preparation.fee,
|
|
|
|
+ preparation.fee_file
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="Ref_Column_List">
|
|
|
|
+ preparation.position_id,
|
|
|
|
+ preparation.user_id,
|
|
|
|
+ preparation.depart_id,
|
|
|
|
+ preparation.apply_time,
|
|
|
|
+ preparation.content,
|
|
|
|
+ preparation.status,
|
|
|
|
+ preparation.remark,
|
|
|
|
+ preparation.repair_start_time,
|
|
|
|
+ preparation.repair_end_time,
|
|
|
|
+ preparation.repair_minutes,
|
|
|
|
+ preparation.repair_user_id,
|
|
|
|
+ preparation.repair_content,
|
|
|
|
+ preparation.limit_hours,
|
|
|
|
+ preparation.fee,
|
|
|
|
+ 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 != ''">
|
|
|
|
+ and preparation.id like concat(concat('%',#{keyword}),'%')
|
|
|
|
+ </if>
|
|
|
|
+ </sql>
|
|
|
|
+ <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" />
|
|
|
|
+ </where>
|
|
|
|
+ </select>
|
|
|
|
+</mapper>
|