BusinessMapper.xml 798 B

123456789101112131415161718192021222324
  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. right join install_info t2 on t1.id = t2.business_id
  7. <where>
  8. t1.del_flag = 0
  9. and t2.business_id != 0
  10. <if test="map.idcard != null and map.idcard != ''">
  11. and t2.user_idcard = #{map.idcard}
  12. </if>
  13. <if test="map.delFlag != null">
  14. and t2.del_flag = #{map.delFlag}
  15. </if>
  16. </where>
  17. order by t2.seq desc
  18. </select>
  19. </mapper>