| | |
| | | <if test="query.pointName != null and query.pointName != ''"> |
| | | AND typ.point_name like concat('%', #{query.pointName}, '%') |
| | | </if> |
| | | <if test="query.unitId != null"> |
| | | AND typ.unit_id = #{query.unitId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <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}, |
| | |
| | | </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> |