项目修改优化

This commit is contained in:
马三炮 2025-04-29 15:37:59 +08:00
parent b090147172
commit bc50039af7
1 changed files with 4 additions and 15 deletions

View File

@ -36,21 +36,9 @@
</trim>
</insert>
<update id="updateTbProject">
update tb_project
<trim prefix="SET" suffixOverrides=",">
<if test="departId != null">depart_id = #{departId},</if>
<if test="proName != null">pro_name = #{proName},</if>
<if test="voltageLevel != null">voltage_level = #{voltageLevel},</if>
<if test="lineLength != null">line_length = #{lineLength},</if>
<if test="planStartTime != null">plan_start_time = #{planStartTime},</if>
<if test="planEndTime != null">plan_end_time = #{planEndTime},</if>
<if test="lon != null">lon = #{lon},</if>
<if test="lat != null">lat = #{lat},</if>
<if test="address != null">address = #{address},</if>
<if test="proStatus != null">pro_status = #{proStatus},</if>
<if test="updateUserId != null">update_user_id = #{updateUserId},</if>
update_time = now()
</trim>
update tb_project set depart_id = #{departId},pro_name = #{proName},voltage_level = #{voltageLevel},
line_length = #{lineLength},plan_start_time = #{planStartTime},plan_end_time = #{planEndTime},lon = #{lon},
lat = #{lat},address = #{address},pro_status = #{proStatus},update_user_id = #{updateUserId},update_time = now()
where id = #{id}
</update>
<delete id="delTbProject">
@ -87,6 +75,7 @@
#{item}
</foreach>
</if>
ORDER BY tp.update_time desc
</select>
<select id="getTbProjectById" resultType="com.bonus.digitalSignage.basic.vo.TbProjectVo">
select tp.id as id,depart_id as departId,tp.pro_name as proName,tp.voltage_level as voltageLevel,tp.line_length as lineLength,