BusinessMapper.xml 825 B

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.dragon.tj.portal.mapper.BusinessMapper">
  4. <select id="getInstalledApp" resultType="com.dragon.tj.portal.entity.BusinessInfo">
  5. select * from business_info t1
  6. where t1.del_flag = 0
  7. and t1.id in (
  8. select business_id from install_info t2
  9. <where>
  10. business_id != 0
  11. <if test="map.idcard != null and map.idcard != ''">
  12. and t2.user_idcard = #{map.idcard}
  13. </if>
  14. <if test="map.delFlag != null">
  15. and t2.del_flag = #{map.delFlag}
  16. </if>
  17. </where>
  18. )
  19. </select>
  20. </mapper>