修改数据增加错误

dev_xd
lj7788 2026-03-22 19:07:57 +08:00
parent 3dbbca0291
commit dd12a3741c
1 changed files with 4 additions and 4 deletions

View File

@ -61,9 +61,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="latitude != null "> and pma.latitude = #{latitude}</if> <if test="latitude != null "> and pma.latitude = #{latitude}</if>
<if test="attDate != null "> and pma.att_date = #{attDate}</if> <if test="attDate != null "> and pma.att_date = #{attDate}</if>
<if test="attImg != null and attImg != ''"> and pma.att_img = #{attImg}</if> <if test="attImg != null and attImg != ''"> and pma.att_img = #{attImg}</if>
<if test="isDel != null "> and pma.work_area_id = #{isDel}</if> <if test="isDel != null "> and pma.is_del = #{isDel}</if>
<if test="state != null "> and pma.state = #{state}</if> <if test="state != null "> and pma.state = #{state}</if>
<if test="workAreaId != null "> and pma.is_del = #{workAreaId}</if> <if test="workAreaId != null "> and pma.work_area_id = #{workAreaId}</if>
<if test="userName!=null and userName!=''"> and psu.user_name like concat('%', #{userName}, '%')</if> <if test="userName!=null and userName!=''"> and psu.user_name like concat('%', #{userName}, '%')</if>
<if test="userPhone!=null and userPhone!=''"> and psu.user_phone like concat('%', #{userPhone}, '%')</if> <if test="userPhone!=null and userPhone!=''"> and psu.user_phone like concat('%', #{userPhone}, '%')</if>
<if test="startDate!=null"> and date(pma.att_date) &gt;= date(#{startDate})</if> <if test="startDate!=null"> and date(pma.att_date) &gt;= date(#{startDate})</if>
@ -88,7 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
) psu ON pma.user_id = psu.user_id ) psu ON pma.user_id = psu.user_id
left join sys_dict_data dic1 on psu.`craft_type`=dic1.`dict_value` and dic1.`dict_type`='pro_craft_type' left join sys_dict_data dic1 on psu.`craft_type`=dic1.`dict_value` and dic1.`dict_type`='pro_craft_type'
left join sys_dict_data dic2 on psu.`craft_post`=dic2.`dict_value` and dic2.`dict_type`='pro_craft_post' left join sys_dict_data dic2 on psu.`craft_post`=dic2.`dict_value` and dic2.`dict_type`='pro_craft_post'
WHERE pma.work_area_id = 0 AND pma.in_out = 'in' AND pma.is_del = #{workAreaId} and pma.project_id = #{projectId} WHERE pma.is_del = 0 AND pma.in_out = 'in' AND pma.work_area_id = #{workAreaId} and pma.project_id = #{projectId}
AND DATE(pma.att_date) = CURDATE() AND DATE(pma.att_date) = CURDATE()
) ranked_data ) ranked_data
WHERE rn = 1 WHERE rn = 1
@ -130,8 +130,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="attDate != null">#{attDate},</if> <if test="attDate != null">#{attDate},</if>
<if test="attImg != null">#{attImg},</if> <if test="attImg != null">#{attImg},</if>
<if test="attDevice != null">#{attDevice},</if> <if test="attDevice != null">#{attDevice},</if>
<if test="isDel != null">#{isDel},</if>
<if test="workAreaId != null">#{workAreaId},</if> <if test="workAreaId != null">#{workAreaId},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remark != null">#{remark},</if> <if test="remark != null">#{remark},</if>
<if test="state != null">#{state},</if> <if test="state != null">#{state},</if>
<if test="createBy != null">#{createBy},</if> <if test="createBy != null">#{createBy},</if>