|
@@ -14,12 +14,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="userName" column="user_name" />
|
|
|
<result property="useId" column="use_id" />
|
|
|
<result property="checkUserName" column="check_user_name" />
|
|
|
- <result property="checkUsePhone" column="check_user_phone" />
|
|
|
<result property="checkUseId" column="check_use_id" />
|
|
|
+ <result property="checkUsePhone" column="check_use_phone" />
|
|
|
<result property="checkResult" column="check_result" />
|
|
|
<result property="checkResultDetails" column="check_result_details" />
|
|
|
<result property="checkResultPhoto" column="check_result_photo" />
|
|
|
<result property="checkResultTime" column="check_result_time" />
|
|
|
+ <result property="checkStatus" column="check_status" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
@@ -28,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCheckPointRecordVo">
|
|
|
- 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
|
|
|
+ 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_use_phone, check_result, check_result_details, check_result_photo, check_result_time, check_status, create_by, create_time, update_by, update_time, remark from check_point_record
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectCheckPointRecordList" parameterType="CheckPointRecord" resultMap="CheckPointRecordResult">
|
|
@@ -42,13 +43,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</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="checkUsePhone != null and checkUsePhone != ''"> and check_user_phone = #{checkUsePhone}</if>
|
|
|
<if test="checkUseId != null "> and check_use_id = #{checkUseId}</if>
|
|
|
+ <if test="checkUsePhone != null and checkUsePhone != ''"> and check_use_phone = #{checkUsePhone}</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="checkResultPhoto != null and checkResultPhoto != ''"> and check_result_photo = #{checkResultPhoto}</if>
|
|
|
<if test="checkResultTime != null "> and check_result_time = #{checkResultTime}</if>
|
|
|
- <if test="params.createTime != null and params.createTime != ''"> AND date_format(create_time,'%Y%m%d') = date_format(#{params.createTime},'%Y%m%d')</if>
|
|
|
+ <if test="checkStatus != null and checkStatus != ''"> and check_status = #{checkStatus}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -68,12 +69,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userName != null">user_name,</if>
|
|
|
<if test="useId != null">use_id,</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="checkUsePhone != null">check_use_phone,</if>
|
|
|
<if test="checkResult != null">check_result,</if>
|
|
|
<if test="checkResultDetails != null">check_result_details,</if>
|
|
|
<if test="checkResultPhoto != null">check_result_photo,</if>
|
|
|
<if test="checkResultTime != null">check_result_time,</if>
|
|
|
+ <if test="checkStatus != null">check_status,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
@@ -89,12 +91,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userName != null">#{userName},</if>
|
|
|
<if test="useId != null">#{useId},</if>
|
|
|
<if test="checkUserName != null">#{checkUserName},</if>
|
|
|
- <if test="checkUsePhone != null">#{checkUsePhone},</if>
|
|
|
<if test="checkUseId != null">#{checkUseId},</if>
|
|
|
+ <if test="checkUsePhone != null">#{checkUsePhone},</if>
|
|
|
<if test="checkResult != null">#{checkResult},</if>
|
|
|
<if test="checkResultDetails != null">#{checkResultDetails},</if>
|
|
|
<if test="checkResultPhoto != null">#{checkResultPhoto},</if>
|
|
|
<if test="checkResultTime != null">#{checkResultTime},</if>
|
|
|
+ <if test="checkStatus != null">#{checkStatus},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
@@ -114,12 +117,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userName != null">user_name = #{userName},</if>
|
|
|
<if test="useId != null">use_id = #{useId},</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="checkUsePhone != null">check_use_phone = #{checkUsePhone},</if>
|
|
|
<if test="checkResult != null">check_result = #{checkResult},</if>
|
|
|
<if test="checkResultDetails != null">check_result_details = #{checkResultDetails},</if>
|
|
|
<if test="checkResultPhoto != null">check_result_photo = #{checkResultPhoto},</if>
|
|
|
<if test="checkResultTime != null">check_result_time = #{checkResultTime},</if>
|
|
|
+ <if test="checkStatus != null">check_status = #{checkStatus},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|