zxl
2025-02-24 8160808e6b69f2d1a0e0ea1a249582f563a2c3e6
business/src/main/resources/mapper/ProjectInfoMapper.xml
@@ -242,7 +242,7 @@
        <id column="id" property="id"/>
    </resultMap>
    <select id="checkProjectNameAndIdIsUnique" resultMap="pInfo">
        select p.id from t_project_info p where  p.project_name =#{name} and p.id != #{id}
        select p.id from t_project_info p where  p.project_name =#{name} and p.id != #{id} and p.deleted = 0
        <if test="code !=null and code !=''">
            and p.project_code =#{code}
        </if>