|
@@ -14,6 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="userName" column="user_name" />
|
|
<result property="userName" column="user_name" />
|
|
<result property="useId" column="use_id" />
|
|
<result property="useId" column="use_id" />
|
|
<result property="checkUserName" column="check_user_name" />
|
|
<result property="checkUserName" column="check_user_name" />
|
|
|
|
+ <result property="checkUsePhone" column="check_user_phone" />
|
|
<result property="checkUseId" column="check_use_id" />
|
|
<result property="checkUseId" column="check_use_id" />
|
|
<result property="checkResult" column="check_result" />
|
|
<result property="checkResult" column="check_result" />
|
|
<result property="checkResultDetails" column="check_result_details" />
|
|
<result property="checkResultDetails" column="check_result_details" />
|
|
@@ -27,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCheckPointRecordVo">
|
|
<sql id="selectCheckPointRecordVo">
|
|
- select check_point_record_id, check_point_manage_id, date_time_num, check_type, check_time, check_address, user_name, use_id, check_user_name, check_use_id, check_result, check_result_details, check_result_photo, check_result_time, create_by, create_time, update_by, update_time, remark from check_point_record
|
|
|
|
|
|
+ select check_point_record_id, check_point_manage_id, check_user_phone,date_time_num, check_type, check_time, check_address, user_name, use_id, check_user_name, check_use_id, check_result, check_result_details, check_result_photo, check_result_time, create_by, create_time, update_by, update_time, remark from check_point_record
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectCheckPointRecordList" parameterType="CheckPointRecord" resultMap="CheckPointRecordResult">
|
|
<select id="selectCheckPointRecordList" parameterType="CheckPointRecord" resultMap="CheckPointRecordResult">
|
|
@@ -41,11 +42,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
|
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
|
<if test="useId != null "> and use_id = #{useId}</if>
|
|
<if test="useId != null "> and use_id = #{useId}</if>
|
|
<if test="checkUserName != null and checkUserName != ''"> and check_user_name like concat('%', #{checkUserName}, '%')</if>
|
|
<if test="checkUserName != null and checkUserName != ''"> and check_user_name like concat('%', #{checkUserName}, '%')</if>
|
|
|
|
+ <if test="checkUsePhone != null and checkUsePhone != ''"> and check_user_phone = #{checkUsePhone}</if>
|
|
<if test="checkUseId != null "> and check_use_id = #{checkUseId}</if>
|
|
<if test="checkUseId != null "> and check_use_id = #{checkUseId}</if>
|
|
<if test="checkResult != null and checkResult != ''"> and check_result = #{checkResult}</if>
|
|
<if test="checkResult != null and checkResult != ''"> and check_result = #{checkResult}</if>
|
|
<if test="checkResultDetails != null and checkResultDetails != ''"> and check_result_details = #{checkResultDetails}</if>
|
|
<if test="checkResultDetails != null and checkResultDetails != ''"> and check_result_details = #{checkResultDetails}</if>
|
|
<if test="checkResultPhoto != null and checkResultPhoto != ''"> and check_result_photo = #{checkResultPhoto}</if>
|
|
<if test="checkResultPhoto != null and checkResultPhoto != ''"> and check_result_photo = #{checkResultPhoto}</if>
|
|
<if test="checkResultTime != null "> and check_result_time = #{checkResultTime}</if>
|
|
<if test="checkResultTime != null "> and check_result_time = #{checkResultTime}</if>
|
|
|
|
+ <if test="createTime != null "> and date_format(create_time,'%Y%m%d') =date_format(#{createTime},'%Y%m%d') </if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -65,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="userName != null">user_name,</if>
|
|
<if test="userName != null">user_name,</if>
|
|
<if test="useId != null">use_id,</if>
|
|
<if test="useId != null">use_id,</if>
|
|
<if test="checkUserName != null">check_user_name,</if>
|
|
<if test="checkUserName != null">check_user_name,</if>
|
|
|
|
+ <if test="checkUsePhone != null">check_user_phone,</if>
|
|
<if test="checkUseId != null">check_use_id,</if>
|
|
<if test="checkUseId != null">check_use_id,</if>
|
|
<if test="checkResult != null">check_result,</if>
|
|
<if test="checkResult != null">check_result,</if>
|
|
<if test="checkResultDetails != null">check_result_details,</if>
|
|
<if test="checkResultDetails != null">check_result_details,</if>
|
|
@@ -85,6 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="userName != null">#{userName},</if>
|
|
<if test="userName != null">#{userName},</if>
|
|
<if test="useId != null">#{useId},</if>
|
|
<if test="useId != null">#{useId},</if>
|
|
<if test="checkUserName != null">#{checkUserName},</if>
|
|
<if test="checkUserName != null">#{checkUserName},</if>
|
|
|
|
+ <if test="checkUsePhone != null">#{checkUsePhone},</if>
|
|
<if test="checkUseId != null">#{checkUseId},</if>
|
|
<if test="checkUseId != null">#{checkUseId},</if>
|
|
<if test="checkResult != null">#{checkResult},</if>
|
|
<if test="checkResult != null">#{checkResult},</if>
|
|
<if test="checkResultDetails != null">#{checkResultDetails},</if>
|
|
<if test="checkResultDetails != null">#{checkResultDetails},</if>
|
|
@@ -109,6 +114,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="userName != null">user_name = #{userName},</if>
|
|
<if test="userName != null">user_name = #{userName},</if>
|
|
<if test="useId != null">use_id = #{useId},</if>
|
|
<if test="useId != null">use_id = #{useId},</if>
|
|
<if test="checkUserName != null">check_user_name = #{checkUserName},</if>
|
|
<if test="checkUserName != null">check_user_name = #{checkUserName},</if>
|
|
|
|
+ <if test="checkUsePhone != null">check_user_phone = #{checkUsePhone},</if>
|
|
<if test="checkUseId != null">check_use_id = #{checkUseId},</if>
|
|
<if test="checkUseId != null">check_use_id = #{checkUseId},</if>
|
|
<if test="checkResult != null">check_result = #{checkResult},</if>
|
|
<if test="checkResult != null">check_result = #{checkResult},</if>
|
|
<if test="checkResultDetails != null">check_result_details = #{checkResultDetails},</if>
|
|
<if test="checkResultDetails != null">check_result_details = #{checkResultDetails},</if>
|