123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?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.fire.admin.mapper.FlowAppMapper">
- <!-- 通用查询映射结果 -->
- <resultMap id="BaseResultMap" type="com.fire.dto.FlowAppInfo">
- <id column="flow_app_id" property="flowAppId"/>
- <result column="customer_id" property="customerId"/>
- <result column="app_id" property="appId"/>
- <result column="app_key" property="appKey"/>
- <result column="start_date" property="startDate"/>
- <result column="end_date" property="endDate"/>
- <result column="status" property="status"/>
- <result column="app_name" property="appName"/>
- <result column="callback_url" property="callbackUrl"/>
- <result column="ip_address" property="ipAddress"/>
- <result column="dispatch_channel" property="dispatchChannel"/>
- <result column="total_count" property="totalCount"/>
- <result column="time" property="time"/>
- <result column="channel_id" property="channelId"/>
- </resultMap>
- <resultMap id="ResultMap" type="com.fire.admin.vo.FlowAppInfoVo">
- <id column="flow_app_id" property="flowAppId"/>
- <result column="customer_name" property="customerName"/>
- <result column="app_id" property="appId"/>
- <result column="app_key" property="appKey"/>
- <result column="start_date" property="startDate"/>
- <result column="end_date" property="endDate"/>
- <result column="status" property="status"/>
- <result column="app_name" property="appName"/>
- <result column="callback_url" property="callbackUrl"/>
- <result column="ip_address" property="ipAddress"/>
- <result column="dispatch_channel" property="dispatchChannel"/>
- <result column="total_count" property="totalCount"/>
- <result column="time" property="time"/>
- <result column="channel_id" property="channelId"/>
- </resultMap>
- <select id="queryFlowAppInfoPage" resultMap="ResultMap" parameterType="java.lang.String">
- SELECT
- f.flow_app_id,
- cu.customer_name,
- f.app_id,
- f.app_key,
- f.start_date,
- f.end_date,
- f.status,
- f.app_name,
- f.callback_url,
- f.ip_address,
- f.dispatch_channel,
- f.total_count,
- f.time,
- f.channel_id
- FROM flow_app_info AS f
- LEFT JOIN customer_info AS cu ON f.customer_id=cu.customer_id
- <where>
- <if test="customerName !=null and customerName !=''">
- AND cu.customer_name LIKE CONCAT('%',#{customerName},'%')
- </if>
- and cu.is_deleted=0
- </where>
- ORDER BY f.start_date DESC
- </select>
- </mapper>
|