修改企业注册重复问题。

This commit is contained in:
sh
2026-02-02 17:54:52 +08:00
parent bb6e80ece6
commit 30faf7f933
3 changed files with 52 additions and 12 deletions

View File

@@ -121,4 +121,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</select>
<select id="selectByCode" resultType="com.ruoyi.common.core.domain.entity.Company">
<include refid="selectCompanyVo"/>
<where> del_flag = '0'
<if test="code != null and code != ''"> AND UPPER(code) = UPPER(#{code})</if>
</where>
order by create_time desc limit 1
</select>
</mapper>