123456789101112131415161718192021222324 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.dragon.tj.portal.mapper.BusinessMapper">
- <select id="getInstalledApp" resultType="com.dragon.tj.portal.entity.BusinessInfo">
- select * from business_info t1
- right join install_info t2 on t1.id = t2.business_id
- <where>
- t1.del_flag = 0
- and t2.business_id != 0
- <if test="map.idcard != null and map.idcard != ''">
- and t2.user_idcard = #{map.idcard}
- </if>
- <if test="map.delFlag != null">
- and t2.del_flag = #{map.delFlag}
- </if>
- </where>
- order by t2.seq desc
- </select>
- </mapper>
|