From 3403a2462434da327d89311b4b9a75ab7a9b5c0f Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期四, 07 十一月 2024 18:38:22 +0800 Subject: [PATCH] OSD宇视bug,工单删除、工单导出时间bug等等 --- ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml | 37 ++++++++++++++++++++++++++++++++----- 1 files changed, 32 insertions(+), 5 deletions(-) diff --git a/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml index e4e9379..0b266b3 100644 --- a/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml +++ b/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml @@ -260,13 +260,9 @@ <if test="point.pointName != null and point.pointName != ''"> point_name = #{point.pointName}, </if> - <if test="point.unitId != null"> + <if test="needUpdateUnit != null and needUpdateUnit"> unit_id = #{point.unitId}, - </if> - <if test="point.startTime != null"> start_time = #{point.startTime}, - </if> - <if test="point.endTime != null"> end_time = #{point.endTime}, </if> province_tag = #{point.provinceTag}, @@ -374,4 +370,35 @@ </if> </where> </select> + <update id="myUpdateById"> + update t_yw_point + <set> + <if test="pointName !=null and pointName !=''"> + point_name = #{pointName}, + </if> + <if test="updateTime !=null"> + update_time = #{updateTime}, + </if> + <if test="deptId !=null"> + dept_id = #{deptId}, + </if> + <if test="provinceTag !=null"> + province_tag = #{provinceTag}, + </if> + <if test="importantTag !=null"> + important_tag = #{importantTag}, + </if> + <if test="importantCommandImageTag !=null"> + important_command_image_tag = #{importantCommandImageTag}, + </if> + <if test="deptTag !=null"> + dept_tag = #{deptTag}, + </if> + unit_id = #{unitId}, + start_time = #{startTime}, + end_time = #{endTime}, + remark = #{remark}, + </set> + where id =#{id} + </update> </mapper> -- Gitblit v1.8.0