src/main/java/org/springblade/modules/property/mapper/PropertyCompanyMapper.xml
@@ -46,5 +46,22 @@ and jpc.id = #{propertyCompany.id} </select> <!--查询对应的机构id集合--> <select id="getDeptListByCompanyId" resultType="java.lang.Long"> select dept_id from jczz_property_company jpc where is_deleted = 0 <choose> <when test="list != null and list.size()>0"> and id in <foreach collection="list" item="id" separator ="," open="(" close=")"> #{id} </foreach> </when> <otherwise> and id in ('') </otherwise> </choose> </select> </mapper>