修改查询所有的条件,按照列查询

This commit is contained in:
sh
2026-03-18 19:44:37 +08:00
parent 7664af7251
commit bab6c5da7f
3 changed files with 20 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="label" resultMap="CompanyResult">
SELECT * FROM COMPANY WHERE COMPANY_ID IN (select -1
<include refid="selectCompanyVo" /> WHERE COMPANY_ID IN (select -1
<if test="companyNature!=null and companyNature!=''">
UNION
SELECT COMPANY_ID FROM COMPANY WHERE nature = #{companyNature}