bug修改

This commit is contained in:
jjLv 2024-08-28 17:30:33 +08:00
parent 9253640413
commit 4a944e3379
1 changed files with 4 additions and 5 deletions

View File

@ -49,13 +49,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="checkProjectDeptNameUnique" resultMap="BaseProjectResult">
select a.id, depart_name, head_name, contact_information, remarks
from tb_project_depart a
where depart_name = #{projectDepartName} and a.id != #{projectId}
where depart_name = #{projectDepartName} and a.id != #{projectId} and del_flag = 0
</select>
<select id="checkProjectDeptNameUniqueAdd" resultMap="BaseProjectResult">
select a.id, depart_name, head_name, contact_information, remarks
from tb_project_depart a
where depart_name = #{projectDepartName}
where depart_name = #{projectDepartName} and del_flag = 0
</select>
<insert id="insertProject" parameterType="com.bonus.common.entity.bracelet.vo.BaseProject" useGeneratedKeys="true" keyProperty="projectId">
@ -92,13 +92,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="deleteProjectByIds" parameterType="int">
update tb_project_depart
set del_flag = 1
where id = #{projectId}
where id = #{projectId} and del_flag = 0
</update>
<update id="deleteFile" parameterType="int">
update sys_file_source
set del_flag = 1
where source_id = #{projectId} and del_flag = 0
where source_id = #{projectId} and source_type = 5 and del_flag = 0
</update>
<update id="deleteFileId" parameterType="String">
@ -137,5 +137,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
group by a.id
</select>
</mapper>