692 lines
24 KiB
XML
692 lines
24 KiB
XML
<?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.nis.web.dao.DfJitLogSearchDao">
|
|
<resultMap id="DfJitFlSrcReportMap" type="com.nis.domain.restful.DfJitFlSrcReport">
|
|
<id column="STAT_ID" jdbcType="BIGINT" property="statId" />
|
|
<result column="FL" jdbcType="INTEGER" property="fl" />
|
|
<result column="XZ" jdbcType="INTEGER" property="xz" />
|
|
<result column="REPORT_TIME" jdbcType="TIMESTAMP" property="reportTime" />
|
|
<result column="SRC_COUNTRY" jdbcType="VARCHAR" property="nation" />
|
|
<result column="SRC_PROVINCE" jdbcType="VARCHAR" property="province" />
|
|
<result column="SRC_CITY" jdbcType="VARCHAR" property="city" />
|
|
<result column="SUM" jdbcType="BIGINT" property="sum" />
|
|
<result column="SERVICE" jdbcType="INTEGER" property="service" />
|
|
</resultMap>
|
|
<sql id="DfJitFlSrcReport_Column_List">
|
|
STAT_ID, FL, XZ, REPORT_TIME, SRC_COUNTRY, SRC_PROVINCE,
|
|
SRC_CITY, SUM,
|
|
SERVICE
|
|
</sql>
|
|
<select id="findDfJitFlSrcReport" parameterType="com.nis.domain.restful.DfJitFlSrcReport"
|
|
resultMap="DfJitFlSrcReportMap">
|
|
select
|
|
<choose>
|
|
<when test="page !=null and page.fields != null and page.fields != ''">
|
|
${page.fields}
|
|
</when>
|
|
<otherwise>
|
|
<include refid="DfJitFlSrcReport_Column_List" />
|
|
</otherwise>
|
|
</choose>
|
|
from DF_JIT_FL_SRC_REPORT
|
|
<where>
|
|
<if test="searchService != null and searchService !=''">
|
|
AND SERVICE =#{searchService}
|
|
</if>
|
|
<if test="searchFl != null and searchFl !=''">
|
|
AND FL = #{searchFl}
|
|
</if>
|
|
<if test="searchXz != null and searchXz !=''">
|
|
AND XZ = #{searchXz}
|
|
</if>
|
|
<if test="searchReportStartTime != null and searchReportStartTime !=''">
|
|
<![CDATA[AND REPORT_TIME >= to_date(#{searchReportStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
<if test="searchReportEndTime != null and searchReportEndTime !=''">
|
|
<![CDATA[AND REPORT_TIME < to_date(#{searchReportEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
</where>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
</when>
|
|
</choose>
|
|
</select>
|
|
|
|
|
|
<resultMap id="DfJitFlDestReportMap" type="com.nis.domain.restful.DfJitFlDestReport">
|
|
<id column="STAT_ID" jdbcType="BIGINT" property="statId" />
|
|
<result column="FL" jdbcType="INTEGER" property="fl" />
|
|
<result column="XZ" jdbcType="INTEGER" property="xz" />
|
|
<result column="REPORT_TIME" jdbcType="TIMESTAMP" property="reportTime" />
|
|
<result column="DEST_COUNTRY" jdbcType="VARCHAR" property="nation" />
|
|
<result column="DEST_PROVINCE" jdbcType="VARCHAR" property="province" />
|
|
<result column="DEST_CITY" jdbcType="VARCHAR" property="city" />
|
|
<result column="SUM" jdbcType="BIGINT" property="sum" />
|
|
<result column="SERVICE" jdbcType="INTEGER" property="service" />
|
|
</resultMap>
|
|
<sql id="DfJitFlDestReport_Column_List">
|
|
STAT_ID, FL, XZ, REPORT_TIME, DEST_COUNTRY, DEST_PROVINCE,
|
|
DEST_CITY, SUM,
|
|
SERVICE
|
|
</sql>
|
|
<select id="findDfJitFlDestReport" parameterType="com.nis.domain.restful.DfJitFlDestReport"
|
|
resultMap="DfJitFlDestReportMap">
|
|
select
|
|
<choose>
|
|
<when test="page !=null and page.fields != null and page.fields != ''">
|
|
${page.fields}
|
|
</when>
|
|
<otherwise>
|
|
<include refid="DfJitFlDestReport_Column_List" />
|
|
</otherwise>
|
|
</choose>
|
|
from DF_JIT_FL_Dest_REPORT
|
|
<where>
|
|
<if test="searchService != null and searchService !=''">
|
|
AND SERVICE =#{searchService}
|
|
</if>
|
|
<if test="searchFl != null and searchFl !=''">
|
|
AND FL = #{searchFl}
|
|
</if>
|
|
<if test="searchXz != null and searchXz !=''">
|
|
AND XZ = #{searchXz}
|
|
</if>
|
|
<if test="searchReportStartTime != null and searchReportStartTime !=''">
|
|
<![CDATA[AND REPORT_TIME >= to_date(#{searchReportStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
<if test="searchReportEndTime != null and searchReportEndTime !=''">
|
|
<![CDATA[AND REPORT_TIME < to_date(#{searchReportEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
</where>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
</when>
|
|
</choose>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<resultMap id="DfJitAffairSrcReportMap" type="com.nis.domain.restful.DfJitAffairSrcReport">
|
|
<id column="STAT_ID" jdbcType="BIGINT" property="statId" />
|
|
<result column="Affair" jdbcType="INTEGER" property="affair" />
|
|
<result column="topic" jdbcType="INTEGER" property="topic" />
|
|
<result column="REPORT_TIME" jdbcType="TIMESTAMP" property="reportTime" />
|
|
<result column="SRC_COUNTRY" jdbcType="VARCHAR" property="nation" />
|
|
<result column="SRC_PROVINCE" jdbcType="VARCHAR" property="province" />
|
|
<result column="SRC_CITY" jdbcType="VARCHAR" property="city" />
|
|
<result column="SUM" jdbcType="BIGINT" property="sum" />
|
|
<result column="SERVICE" jdbcType="INTEGER" property="service" />
|
|
</resultMap>
|
|
|
|
<sql id="DfJitAffairSrcReport_Column_List">
|
|
STAT_ID, Affair,topic, REPORT_TIME, SRC_COUNTRY,
|
|
SRC_PROVINCE,
|
|
SRC_CITY, SUM,
|
|
SERVICE
|
|
</sql>
|
|
<select id="findDfJitAffairSrcReport" parameterType="com.nis.domain.restful.DfJitAffairSrcReport"
|
|
resultMap="DfJitAffairSrcReportMap">
|
|
select
|
|
<choose>
|
|
<when test="page !=null and page.fields != null and page.fields != ''">
|
|
${page.fields}
|
|
</when>
|
|
<otherwise>
|
|
<include refid="DfJitAffairSrcReport_Column_List" />
|
|
</otherwise>
|
|
</choose>
|
|
from DF_JIT_AFFAIR_SRC_REPORT
|
|
<where>
|
|
|
|
<if test="searchService != null and searchService !=''">
|
|
AND SERVICE =#{searchService}
|
|
</if>
|
|
<if test="searchAffair != null and searchAffair !=''">
|
|
AND Affair = #{searchAffair}
|
|
</if>
|
|
<if test="searchTopic != null and searchTopic !=''">
|
|
AND topic = #{searchTopic}
|
|
</if>
|
|
<if test="searchReportStartTime != null and searchReportStartTime !=''">
|
|
<![CDATA[AND REPORT_TIME >= to_date(#{searchReportStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
<if test="searchReportEndTime != null and searchReportEndTime !=''">
|
|
<![CDATA[AND REPORT_TIME < to_date(#{searchReportEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
</where>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
</when>
|
|
</choose>
|
|
</select>
|
|
|
|
<resultMap id="DfJitAffairDestReportMap" type="com.nis.domain.restful.DfJitAffairDestReport">
|
|
<id column="STAT_ID" jdbcType="BIGINT" property="statId" />
|
|
<result column="Affair" jdbcType="INTEGER" property="affair" />
|
|
<result column="topic" jdbcType="INTEGER" property="topic" />
|
|
<result column="REPORT_TIME" jdbcType="TIMESTAMP" property="reportTime" />
|
|
<result column="DEST_COUNTRY" jdbcType="VARCHAR" property="nation" />
|
|
<result column="DEST_PROVINCE" jdbcType="VARCHAR" property="province" />
|
|
<result column="DEST_CITY" jdbcType="VARCHAR" property="city" />
|
|
<result column="SUM" jdbcType="BIGINT" property="sum" />
|
|
<result column="SERVICE" jdbcType="INTEGER" property="service" />
|
|
</resultMap>
|
|
|
|
<sql id="DfJitAffairDestReport_Column_List">
|
|
STAT_ID, Affair,topic, REPORT_TIME, DEST_COUNTRY,
|
|
DEST_PROVINCE,
|
|
DEST_CITY, SUM,
|
|
SERVICE
|
|
</sql>
|
|
<select id="findDfJitAffairDestReport" parameterType="com.nis.domain.restful.DfJitAffairDestReport"
|
|
resultMap="DfJitAffairDestReportMap">
|
|
select
|
|
<choose>
|
|
<when test="page !=null and page.fields != null and page.fields != ''">
|
|
${page.fields}
|
|
</when>
|
|
<otherwise>
|
|
<include refid="DfJitAffairDestReport_Column_List" />
|
|
</otherwise>
|
|
</choose>
|
|
from DF_JIT_AFFAIR_DEST_REPORT
|
|
<where>
|
|
|
|
<if test="searchService != null and searchService !=''">
|
|
AND SERVICE =#{searchService}
|
|
</if>
|
|
<if test="searchAffair != null and searchAffair !=''">
|
|
AND Affair = #{searchAffair}
|
|
</if>
|
|
<if test="searchTopic != null and searchTopic !=''">
|
|
AND topic = #{searchTopic}
|
|
</if>
|
|
<if test="searchReportStartTime != null and searchReportStartTime !=''">
|
|
<![CDATA[AND REPORT_TIME >= to_date(#{searchReportStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
<if test="searchReportEndTime != null and searchReportEndTime !=''">
|
|
<![CDATA[AND REPORT_TIME < to_date(#{searchReportEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
</where>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
</when>
|
|
</choose>
|
|
</select>
|
|
<resultMap id="DfJitMissionSrcReportMap" type="com.nis.domain.restful.DfJitMissionSrcReport">
|
|
<id column="STAT_ID" jdbcType="BIGINT" property="statId" />
|
|
<result column="mission" jdbcType="INTEGER" property="mission" />
|
|
<result column="REPORT_TIME" jdbcType="TIMESTAMP" property="reportTime" />
|
|
<result column="SRC_COUNTRY" jdbcType="VARCHAR" property="nation" />
|
|
<result column="SRC_PROVINCE" jdbcType="VARCHAR" property="province" />
|
|
<result column="SRC_CITY" jdbcType="VARCHAR" property="city" />
|
|
<result column="SUM" jdbcType="BIGINT" property="sum" />
|
|
<result column="SERVICE" jdbcType="INTEGER" property="service" />
|
|
</resultMap>
|
|
|
|
<sql id="DfJitMissionSrcReport_Column_List">
|
|
STAT_ID, mission, REPORT_TIME, SRC_COUNTRY, SRC_PROVINCE,
|
|
SRC_CITY, SUM,
|
|
SERVICE
|
|
</sql>
|
|
<select id="findDfJitMissionSrcReport" parameterType="com.nis.domain.restful.DfJitMissionSrcReport"
|
|
resultMap="DfJitMissionSrcReportMap">
|
|
select
|
|
<choose>
|
|
<when test="page !=null and page.fields != null and page.fields != ''">
|
|
${page.fields}
|
|
</when>
|
|
<otherwise>
|
|
<include refid="DfJitMissionSrcReport_Column_List" />
|
|
</otherwise>
|
|
</choose>
|
|
from DF_JIT_MISSION_SRC_REPORT
|
|
<where>
|
|
|
|
<if test="searchService != null and searchService !=''">
|
|
AND SERVICE =#{searchService}
|
|
</if>
|
|
<if test="searchMission != null and searchMission !=''">
|
|
AND mission = #{searchMission}
|
|
</if>
|
|
<if test="searchReportStartTime != null and searchReportStartTime !=''">
|
|
<![CDATA[AND REPORT_TIME >= to_date(#{searchReportStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
<if test="searchReportEndTime != null and searchReportEndTime !=''">
|
|
<![CDATA[AND REPORT_TIME < to_date(#{searchReportEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
</where>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
</when>
|
|
</choose>
|
|
</select>
|
|
|
|
<resultMap id="DfJitMissionDestReportMap" type="com.nis.domain.restful.DfJitMissionDestReport">
|
|
<id column="STAT_ID" jdbcType="BIGINT" property="statId" />
|
|
<result column="mission" jdbcType="INTEGER" property="mission" />
|
|
<result column="REPORT_TIME" jdbcType="TIMESTAMP" property="reportTime" />
|
|
<result column="DEST_COUNTRY" jdbcType="VARCHAR" property="nation" />
|
|
<result column="DEST_PROVINCE" jdbcType="VARCHAR" property="province" />
|
|
<result column="DEST_CITY" jdbcType="VARCHAR" property="city" />
|
|
<result column="SUM" jdbcType="BIGINT" property="sum" />
|
|
<result column="SERVICE" jdbcType="INTEGER" property="service" />
|
|
</resultMap>
|
|
|
|
<sql id="DfJitMissionDestReport_Column_List">
|
|
STAT_ID, mission, REPORT_TIME, DEST_COUNTRY, DEST_PROVINCE,
|
|
DEST_CITY, SUM,
|
|
SERVICE
|
|
</sql>
|
|
<select id="findDfJitMissionDestReport" parameterType="com.nis.domain.restful.DfJitMissionDestReport"
|
|
resultMap="DfJitMissionDestReportMap">
|
|
select
|
|
<choose>
|
|
<when test="page !=null and page.fields != null and page.fields != ''">
|
|
${page.fields}
|
|
</when>
|
|
<otherwise>
|
|
<include refid="DfJitMissionDestReport_Column_List" />
|
|
</otherwise>
|
|
</choose>
|
|
from DF_JIT_MISSION_DEST_REPORT
|
|
<where>
|
|
|
|
<if test="searchService != null and searchService !=''">
|
|
AND SERVICE =#{searchService}
|
|
</if>
|
|
<if test="searchMission != null and searchMission !=''">
|
|
AND mission = #{searchMission}
|
|
</if>
|
|
<if test="searchReportStartTime != null and searchReportStartTime !=''">
|
|
<![CDATA[AND REPORT_TIME >= to_date(#{searchReportStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
<if test="searchReportEndTime != null and searchReportEndTime !=''">
|
|
<![CDATA[AND REPORT_TIME < to_date(#{searchReportEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
</where>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
</when>
|
|
</choose>
|
|
</select>
|
|
|
|
|
|
<resultMap id="DfJitGuaranteeSrcReportMap"
|
|
type="com.nis.domain.restful.DfJitGuaranteeSrcReport">
|
|
<id column="STAT_ID" jdbcType="BIGINT" property="statId" />
|
|
<result column="guarantee" jdbcType="INTEGER" property="guarantee" />
|
|
<result column="REPORT_TIME" jdbcType="TIMESTAMP" property="reportTime" />
|
|
<result column="SRC_COUNTRY" jdbcType="VARCHAR" property="nation" />
|
|
<result column="SRC_PROVINCE" jdbcType="VARCHAR" property="province" />
|
|
<result column="SRC_CITY" jdbcType="VARCHAR" property="city" />
|
|
<result column="SUM" jdbcType="BIGINT" property="sum" />
|
|
<result column="SERVICE" jdbcType="INTEGER" property="service" />
|
|
</resultMap>
|
|
|
|
<sql id="DfJitGuaranteeSrcReport_Column_List">
|
|
STAT_ID, guarantee, REPORT_TIME, SRC_COUNTRY, SRC_PROVINCE,
|
|
SRC_CITY, SUM,
|
|
SERVICE
|
|
</sql>
|
|
<select id="findDfJitGuaranteeSrcReport" parameterType="com.nis.domain.restful.DfJitGuaranteeSrcReport"
|
|
resultMap="DfJitGuaranteeSrcReportMap">
|
|
select
|
|
<choose>
|
|
<when test="page !=null and page.fields != null and page.fields != ''">
|
|
${page.fields}
|
|
</when>
|
|
<otherwise>
|
|
<include refid="DfJitGuaranteeSrcReport_Column_List" />
|
|
</otherwise>
|
|
</choose>
|
|
from DF_JIT_GUARANTEE_SRC_REPORT
|
|
<where>
|
|
<if test="searchService != null and searchService !=''">
|
|
AND SERVICE =#{searchService}
|
|
</if>
|
|
<if test="searchGuarantee != null and searchGuarantee !=''">
|
|
AND guarantee = #{searchGuarantee}
|
|
</if>
|
|
<if test="searchReportStartTime != null and searchReportStartTime !=''">
|
|
<![CDATA[AND REPORT_TIME >= to_date(#{searchReportStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
<if test="searchReportEndTime != null and searchReportEndTime !=''">
|
|
<![CDATA[AND REPORT_TIME < to_date(#{searchReportEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
</where>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
</when>
|
|
</choose>
|
|
</select>
|
|
|
|
<resultMap id="DfJitGuaranteeDestReportMap"
|
|
type="com.nis.domain.restful.DfJitGuaranteeDestReport">
|
|
<id column="STAT_ID" jdbcType="BIGINT" property="statId" />
|
|
<result column="guarantee" jdbcType="INTEGER" property="guarantee" />
|
|
<result column="REPORT_TIME" jdbcType="TIMESTAMP" property="reportTime" />
|
|
<result column="DEST_COUNTRY" jdbcType="VARCHAR" property="nation" />
|
|
<result column="DEST_PROVINCE" jdbcType="VARCHAR" property="province" />
|
|
<result column="DEST_CITY" jdbcType="VARCHAR" property="city" />
|
|
<result column="SUM" jdbcType="BIGINT" property="sum" />
|
|
<result column="SERVICE" jdbcType="INTEGER" property="service" />
|
|
</resultMap>
|
|
|
|
<sql id="DfJitGuaranteeDestReport_Column_List">
|
|
STAT_ID, guarantee, REPORT_TIME, DEST_COUNTRY,
|
|
DEST_PROVINCE,
|
|
DEST_CITY, SUM,
|
|
SERVICE
|
|
</sql>
|
|
<select id="findDfJitGuaranteeDestReport" parameterType="com.nis.domain.restful.DfJitGuaranteeDestReport"
|
|
resultMap="DfJitGuaranteeDestReportMap">
|
|
select
|
|
<choose>
|
|
<when test="page !=null and page.fields != null and page.fields != ''">
|
|
${page.fields}
|
|
</when>
|
|
<otherwise>
|
|
<include refid="DfJitGuaranteeDestReport_Column_List" />
|
|
</otherwise>
|
|
</choose>
|
|
from DF_JIT_GUARANTEE_DEST_REPORT
|
|
<where>
|
|
<if test="searchService != null and searchService !=''">
|
|
AND SERVICE =#{searchService}
|
|
</if>
|
|
<if test="searchGuarantee != null and searchGuarantee !=''">
|
|
AND guarantee = #{searchGuarantee}
|
|
</if>
|
|
<if test="searchReportStartTime != null and searchReportStartTime !=''">
|
|
<![CDATA[AND REPORT_TIME >= to_date(#{searchReportStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
<if test="searchReportEndTime != null and searchReportEndTime !=''">
|
|
<![CDATA[AND REPORT_TIME < to_date(#{searchReportEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
</where>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
</when>
|
|
</choose>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap id="DfJitTagSrcReportMap" type="com.nis.domain.restful.DfJitTagSrcReport">
|
|
<id column="STAT_ID" jdbcType="BIGINT" property="statId" />
|
|
<result column="tag" jdbcType="INTEGER" property="tag" />
|
|
<result column="REPORT_TIME" jdbcType="TIMESTAMP" property="reportTime" />
|
|
<result column="SRC_COUNTRY" jdbcType="VARCHAR" property="nation" />
|
|
<result column="SRC_PROVINCE" jdbcType="VARCHAR" property="province" />
|
|
<result column="SRC_CITY" jdbcType="VARCHAR" property="city" />
|
|
<result column="SUM" jdbcType="BIGINT" property="sum" />
|
|
<result column="SERVICE" jdbcType="INTEGER" property="service" />
|
|
</resultMap>
|
|
|
|
<sql id="DfJitTagSrcReport_Column_List">
|
|
STAT_ID, tag, REPORT_TIME, SRC_COUNTRY, SRC_PROVINCE,
|
|
SRC_CITY, SUM,
|
|
SERVICE
|
|
</sql>
|
|
<select id="findDfJitTagSrcReport" parameterType="com.nis.domain.restful.DfJitTagSrcReport"
|
|
resultMap="DfJitTagSrcReportMap">
|
|
select
|
|
<choose>
|
|
<when test="page !=null and page.fields != null and page.fields != ''">
|
|
${page.fields}
|
|
</when>
|
|
<otherwise>
|
|
<include refid="DfJitTagSrcReport_Column_List" />
|
|
</otherwise>
|
|
</choose>
|
|
from DF_JIT_TAG_SRC_REPORT
|
|
<where>
|
|
<if test="searchService != null and searchService !=''">
|
|
AND SERVICE =#{searchService}
|
|
</if>
|
|
<if test="searchTag != null and searchTag !=''">
|
|
AND tag in(${searchTag})
|
|
</if>
|
|
<if test="searchReportStartTime != null and searchReportStartTime !=''">
|
|
<![CDATA[AND REPORT_TIME >= to_date(#{searchReportStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
<if test="searchReportEndTime != null and searchReportEndTime !=''">
|
|
<![CDATA[AND REPORT_TIME < to_date(#{searchReportEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
</where>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
</when>
|
|
</choose>
|
|
</select>
|
|
|
|
<resultMap id="DfJitTagDestReportMap" type="com.nis.domain.restful.DfJitTagDestReport">
|
|
<id column="STAT_ID" jdbcType="BIGINT" property="statId" />
|
|
<result column="tag" jdbcType="INTEGER" property="tag" />
|
|
<result column="REPORT_TIME" jdbcType="TIMESTAMP" property="reportTime" />
|
|
<result column="DEST_COUNTRY" jdbcType="VARCHAR" property="nation" />
|
|
<result column="DEST_PROVINCE" jdbcType="VARCHAR" property="province" />
|
|
<result column="DEST_CITY" jdbcType="VARCHAR" property="city" />
|
|
<result column="SUM" jdbcType="BIGINT" property="sum" />
|
|
<result column="SERVICE" jdbcType="INTEGER" property="service" />
|
|
</resultMap>
|
|
|
|
<sql id="DfJitTagDestReport_Column_List">
|
|
STAT_ID, tag, REPORT_TIME, DEST_COUNTRY,
|
|
DEST_PROVINCE,
|
|
DEST_CITY, SUM,
|
|
SERVICE
|
|
</sql>
|
|
<select id="findDfJitTagDestReport" parameterType="com.nis.domain.restful.DfJitTagDestReport"
|
|
resultMap="DfJitTagDestReportMap">
|
|
select
|
|
<choose>
|
|
<when test="page !=null and page.fields != null and page.fields != ''">
|
|
${page.fields}
|
|
</when>
|
|
<otherwise>
|
|
<include refid="DfJitTagDestReport_Column_List" />
|
|
</otherwise>
|
|
</choose>
|
|
from DF_JIT_TAG_DEST_REPORT
|
|
<where>
|
|
<if test="searchService != null and searchService !=''">
|
|
AND SERVICE =#{searchService}
|
|
</if>
|
|
<if test="searchTag != null and searchTag !=''">
|
|
AND tag in(${searchTag})
|
|
</if>
|
|
<if test="searchReportStartTime != null and searchReportStartTime !=''">
|
|
<![CDATA[AND REPORT_TIME >= to_date(#{searchReportStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
<if test="searchReportEndTime != null and searchReportEndTime !=''">
|
|
<![CDATA[AND REPORT_TIME < to_date(#{searchReportEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
</where>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
</when>
|
|
</choose>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap id="DfJitIdSrcReportMap" type="com.nis.domain.restful.DfJitIdSrcReport">
|
|
<id column="STAT_ID" jdbcType="BIGINT" property="statId" />
|
|
<result column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="REPORT_TIME" jdbcType="TIMESTAMP" property="reportTime" />
|
|
<result column="SRC_COUNTRY" jdbcType="VARCHAR" property="nation" />
|
|
<result column="SRC_PROVINCE" jdbcType="VARCHAR" property="province" />
|
|
<result column="SRC_CITY" jdbcType="VARCHAR" property="city" />
|
|
<result column="SUM" jdbcType="BIGINT" property="sum" />
|
|
<result column="SERVICE" jdbcType="INTEGER" property="service" />
|
|
</resultMap>
|
|
|
|
<sql id="DfJitIdSrcReport_Column_List">
|
|
STAT_ID, id, REPORT_TIME, SRC_COUNTRY, SRC_PROVINCE,
|
|
SRC_CITY, SUM,
|
|
SERVICE
|
|
</sql>
|
|
<select id="findDfJitIdSrcReport" parameterType="com.nis.domain.restful.DfJitIdSrcReport"
|
|
resultMap="DfJitIdSrcReportMap">
|
|
select
|
|
<choose>
|
|
<when test="page !=null and page.fields != null and page.fields != ''">
|
|
${page.fields}
|
|
</when>
|
|
<otherwise>
|
|
<include refid="DfJitIdSrcReport_Column_List" />
|
|
</otherwise>
|
|
</choose>
|
|
from DF_JIT_ID_SRC_REPORT
|
|
<where>
|
|
<if test="searchService != null and searchService !=''">
|
|
AND SERVICE =#{searchService}
|
|
</if>
|
|
<if test="searchId != null and searchId !=''">
|
|
AND id = #{searchId}
|
|
</if>
|
|
<if test="searchReportStartTime != null and searchReportStartTime !=''">
|
|
<![CDATA[AND REPORT_TIME >= to_date(#{searchReportStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
<if test="searchReportEndTime != null and searchReportEndTime !=''">
|
|
<![CDATA[AND REPORT_TIME < to_date(#{searchReportEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
</where>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
</when>
|
|
</choose>
|
|
</select>
|
|
|
|
<resultMap id="DfJitIdDestReportMap" type="com.nis.domain.restful.DfJitIdDestReport">
|
|
<id column="STAT_ID" jdbcType="BIGINT" property="statId" />
|
|
<result column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="REPORT_TIME" jdbcType="TIMESTAMP" property="reportTime" />
|
|
<result column="DEST_COUNTRY" jdbcType="VARCHAR" property="nation" />
|
|
<result column="DEST_PROVINCE" jdbcType="VARCHAR" property="province" />
|
|
<result column="DEST_CITY" jdbcType="VARCHAR" property="city" />
|
|
<result column="SUM" jdbcType="BIGINT" property="sum" />
|
|
<result column="SERVICE" jdbcType="INTEGER" property="service" />
|
|
</resultMap>
|
|
|
|
<sql id="DfJitIdDestReport_Column_List">
|
|
STAT_ID, id, REPORT_TIME, DEST_COUNTRY,
|
|
DEST_PROVINCE,
|
|
DEST_CITY, SUM,
|
|
SERVICE
|
|
</sql>
|
|
<select id="findDfJitIdDestReport" parameterType="com.nis.domain.restful.DfJitIdDestReport"
|
|
resultMap="DfJitIdDestReportMap">
|
|
select
|
|
<choose>
|
|
<when test="page !=null and page.fields != null and page.fields != ''">
|
|
${page.fields}
|
|
</when>
|
|
<otherwise>
|
|
<include refid="DfJitIdDestReport_Column_List" />
|
|
</otherwise>
|
|
</choose>
|
|
from DF_JIT_ID_DEST_REPORT
|
|
<where>
|
|
<if test="searchService != null and searchService !=''">
|
|
AND SERVICE =#{searchService}
|
|
</if>
|
|
<if test="searchId != null and searchId !=''">
|
|
AND id = #{searchId}
|
|
</if>
|
|
<if test="searchReportStartTime != null and searchReportStartTime !=''">
|
|
<![CDATA[AND REPORT_TIME >= to_date(#{searchReportStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
<if test="searchReportEndTime != null and searchReportEndTime !=''">
|
|
<![CDATA[AND REPORT_TIME < to_date(#{searchReportEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
|
</if>
|
|
|
|
</where>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
</when>
|
|
</choose>
|
|
</select>
|
|
</mapper> |