12345678910111213141516171819202122232425 |
- <?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
- where t1.del_flag = 0
- and t1.id in (
- select business_id from install_info t2
- <where>
- 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>
- )
- </select>
- </mapper>
|