FlowAppInfoMapper.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.fire.admin.mapper.FlowAppMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="BaseResultMap" type="com.fire.dto.FlowAppInfo">
  6. <id column="flow_app_id" property="flowAppId"/>
  7. <result column="customer_id" property="customerId"/>
  8. <result column="app_id" property="appId"/>
  9. <result column="app_key" property="appKey"/>
  10. <result column="start_date" property="startDate"/>
  11. <result column="end_date" property="endDate"/>
  12. <result column="status" property="status"/>
  13. <result column="app_name" property="appName"/>
  14. <result column="callback_url" property="callbackUrl"/>
  15. <result column="ip_address" property="ipAddress"/>
  16. <result column="dispatch_channel" property="dispatchChannel"/>
  17. <result column="total_count" property="totalCount"/>
  18. <result column="time" property="time"/>
  19. <result column="channel_id" property="channelId"/>
  20. </resultMap>
  21. <resultMap id="ResultMap" type="com.fire.admin.vo.FlowAppInfoVo">
  22. <id column="flow_app_id" property="flowAppId"/>
  23. <result column="customer_name" property="customerName"/>
  24. <result column="app_id" property="appId"/>
  25. <result column="app_key" property="appKey"/>
  26. <result column="start_date" property="startDate"/>
  27. <result column="end_date" property="endDate"/>
  28. <result column="status" property="status"/>
  29. <result column="app_name" property="appName"/>
  30. <result column="callback_url" property="callbackUrl"/>
  31. <result column="ip_address" property="ipAddress"/>
  32. <result column="dispatch_channel" property="dispatchChannel"/>
  33. <result column="total_count" property="totalCount"/>
  34. <result column="time" property="time"/>
  35. <result column="channel_id" property="channelId"/>
  36. </resultMap>
  37. <select id="queryFlowAppInfoPage" resultMap="ResultMap" parameterType="java.lang.String">
  38. SELECT
  39. f.flow_app_id,
  40. cu.customer_name,
  41. f.app_id,
  42. f.app_key,
  43. f.start_date,
  44. f.end_date,
  45. f.status,
  46. f.app_name,
  47. f.callback_url,
  48. f.ip_address,
  49. f.dispatch_channel,
  50. f.total_count,
  51. f.time,
  52. f.channel_id
  53. FROM flow_app_info AS f
  54. LEFT JOIN customer_info AS cu ON f.customer_id=cu.customer_id
  55. <where>
  56. <if test="customerName !=null and customerName !=''">
  57. AND cu.customer_name LIKE CONCAT('%',#{customerName},'%')
  58. </if>
  59. and cu.is_deleted=0
  60. </where>
  61. ORDER BY f.start_date DESC
  62. </select>
  63. </mapper>