| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458 |
- <?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="cn.gov.customs.wxjy.statReport.dao.CustomMStatFMapper">
- <resultMap type="CustomMStatF" id="CustomMStatFResult">
- <result property="ID" column="ID"/>
- <result property="MONTH" column="MONTH"/>
- <result property="customCode" column="CUSTOM_CODE"/>
- <result property="impDeclCount" column="IMP_DECL_COUNT"/>
- <result property="impManDeclCount" column="IMP_MAN_DECL_COUNT"/>
- <result property="impManualAuditDeclCount" column="IMP_MANUAL_AUDIT_DECL_COUNT"/>
- <result property="impDeclCountLm" column="IMP_DECL_COUNT_LM"/>
- <result property="impDeclCountLyDec" column="IMP_DECL_COUNT_LY_DEC"/>
- <result property="impDeclCountCuryear" column="IMP_DECL_COUNT_CURYEAR"/>
- <result property="impDeclCountYbl" column="IMP_DECL_COUNT_YBL"/>
- <result property="impTotalCost" column="IMP_TOTAL_COST"/>
- <result property="impTotalCostLm" column="IMP_TOTAL_COST_LM"/>
- <result property="impTotalCostLyDec" column="IMP_TOTAL_COST_LY_DEC"/>
- <result property="impTotalCostCy" column="IMP_TOTAL_COST_CY"/>
- <result property="impTotalCostYbl" column="IMP_TOTAL_COST_YBL"/>
- <result property="impCuCost" column="IMP_CU_COST"/>
- <result property="impCuCostLm" column="IMP_CU_COST_LM"/>
- <result property="impCuCostLyDec" column="IMP_CU_COST_LY_DEC"/>
- <result property="impCuCostCy" column="IMP_CU_COST_CY"/>
- <result property="impCuCostYbl" column="IMP_CU_COST_YBL"/>
- <result property="expDeclCount" column="EXP_DECL_COUNT"/>
- <result property="expManDeclCount" column="EXP_MAN_DECL_COUNT"/>
- <result property="expManualAuditDeclCount" column="EXP_MANUAL_AUDIT_DECL_COUNT"/>
- <result property="expDeclCountLm" column="EXP_DECL_COUNT_LM"/>
- <result property="expDeclCountLyDec" column="EXP_DECL_COUNT_LY_DEC"/>
- <result property="expDeclCountCuryear" column="EXP_DECL_COUNT_CURYEAR"/>
- <result property="expDeclCountYbl" column="EXP_DECL_COUNT_YBL"/>
- <result property="expTotalCost" column="EXP_TOTAL_COST"/>
- <result property="expTotalCostLm" column="EXP_TOTAL_COST_LM"/>
- <result property="expTotalCostLyDec" column="EXP_TOTAL_COST_LY_DEC"/>
- <result property="expTotalCostCy" column="EXP_TOTAL_COST_CY"/>
- <result property="expTotalCostYbl" column="EXP_TOTAL_COST_YBL"/>
- <result property="expCuCost" column="EXP_CU_COST"/>
- <result property="expCuCostLm" column="EXP_CU_COST_LM"/>
- <result property="expCuCostLyDec" column="EXP_CU_COST_LY_DEC"/>
- <result property="expCuCostCy" column="EXP_CU_COST_CY"/>
- <result property="expCuCostYbl" column="EXP_CU_COST_YBL"/>
- </resultMap>
- <sql id="baseVo">
- select ID, MONTH, CUSTOM_CODE, IMP_DECL_COUNT, IMP_MAN_DECL_COUNT, IMP_MANUAL_AUDIT_DECL_COUNT, IMP_DECL_COUNT_LM, IMP_DECL_COUNT_LY_DEC, IMP_DECL_COUNT_CURYEAR, IMP_DECL_COUNT_YBL, IMP_TOTAL_COST, IMP_TOTAL_COST_LM, IMP_TOTAL_COST_LY_DEC, IMP_TOTAL_COST_CY, IMP_TOTAL_COST_YBL, IMP_CU_COST, IMP_CU_COST_LM, IMP_CU_COST_LY_DEC, IMP_CU_COST_CY, IMP_CU_COST_YBL, EXP_DECL_COUNT, EXP_MAN_DECL_COUNT, EXP_MANUAL_AUDIT_DECL_COUNT, EXP_DECL_COUNT_LM, EXP_DECL_COUNT_LY_DEC, EXP_DECL_COUNT_CURYEAR, EXP_DECL_COUNT_YBL, EXP_TOTAL_COST, EXP_TOTAL_COST_LM, EXP_TOTAL_COST_LY_DEC, EXP_TOTAL_COST_CY, EXP_TOTAL_COST_YBL, EXP_CU_COST, EXP_CU_COST_LM, EXP_CU_COST_LY_DEC, EXP_CU_COST_CY, EXP_CU_COST_YBL
- from WXJY_CUSTOM_M_STAT_F
- </sql>
- <select id="selectList" parameterType="CustomMStatFQuery" resultMap="CustomMStatFResult">
- <include refid="baseVo"/>
- <where>
- <if test="MONTH != null and MONTH != ''">
- and MONTH = #{MONTH}
- </if>
- <if test="customCode != null and customCode != ''">
- and CUSTOM_CODE = #{customCode}
- </if>
- <if test="impDeclCount != null and impDeclCount != ''">
- and IMP_DECL_COUNT = #{impDeclCount}
- </if>
- <if test="impManDeclCount != null and impManDeclCount != ''">
- and IMP_MAN_DECL_COUNT = #{impManDeclCount}
- </if>
- <if test="impManualAuditDeclCount != null and impManualAuditDeclCount != ''">
- and IMP_MANUAL_AUDIT_DECL_COUNT = #{impManualAuditDeclCount}
- </if>
- <if test="impDeclCountLm != null and impDeclCountLm != ''">
- and IMP_DECL_COUNT_LM = #{impDeclCountLm}
- </if>
- <if test="impDeclCountLyDec != null and impDeclCountLyDec != ''">
- and IMP_DECL_COUNT_LY_DEC = #{impDeclCountLyDec}
- </if>
- <if test="impDeclCountCuryear != null and impDeclCountCuryear != ''">
- and IMP_DECL_COUNT_CURYEAR = #{impDeclCountCuryear}
- </if>
- <if test="impDeclCountYbl != null and impDeclCountYbl != ''">
- and IMP_DECL_COUNT_YBL = #{impDeclCountYbl}
- </if>
- <if test="impTotalCost != null and impTotalCost != ''">
- and IMP_TOTAL_COST = #{impTotalCost}
- </if>
- <if test="impTotalCostLm != null and impTotalCostLm != ''">
- and IMP_TOTAL_COST_LM = #{impTotalCostLm}
- </if>
- <if test="impTotalCostLyDec != null and impTotalCostLyDec != ''">
- and IMP_TOTAL_COST_LY_DEC = #{impTotalCostLyDec}
- </if>
- <if test="impTotalCostCy != null and impTotalCostCy != ''">
- and IMP_TOTAL_COST_CY = #{impTotalCostCy}
- </if>
- <if test="impTotalCostYbl != null and impTotalCostYbl != ''">
- and IMP_TOTAL_COST_YBL = #{impTotalCostYbl}
- </if>
- <if test="impCuCost != null and impCuCost != ''">
- and IMP_CU_COST = #{impCuCost}
- </if>
- <if test="impCuCostLm != null and impCuCostLm != ''">
- and IMP_CU_COST_LM = #{impCuCostLm}
- </if>
- <if test="impCuCostLyDec != null and impCuCostLyDec != ''">
- and IMP_CU_COST_LY_DEC = #{impCuCostLyDec}
- </if>
- <if test="impCuCostCy != null and impCuCostCy != ''">
- and IMP_CU_COST_CY = #{impCuCostCy}
- </if>
- <if test="impCuCostYbl != null and impCuCostYbl != ''">
- and IMP_CU_COST_YBL = #{impCuCostYbl}
- </if>
- <if test="expDeclCount != null and expDeclCount != ''">
- and EXP_DECL_COUNT = #{expDeclCount}
- </if>
- <if test="expManDeclCount != null and expManDeclCount != ''">
- and EXP_MAN_DECL_COUNT = #{expManDeclCount}
- </if>
- <if test="expManualAuditDeclCount != null and expManualAuditDeclCount != ''">
- and EXP_MANUAL_AUDIT_DECL_COUNT = #{expManualAuditDeclCount}
- </if>
- <if test="expDeclCountLm != null and expDeclCountLm != ''">
- and EXP_DECL_COUNT_LM = #{expDeclCountLm}
- </if>
- <if test="expDeclCountLyDec != null and expDeclCountLyDec != ''">
- and EXP_DECL_COUNT_LY_DEC = #{expDeclCountLyDec}
- </if>
- <if test="expDeclCountCuryear != null and expDeclCountCuryear != ''">
- and EXP_DECL_COUNT_CURYEAR = #{expDeclCountCuryear}
- </if>
- <if test="expDeclCountYbl != null and expDeclCountYbl != ''">
- and EXP_DECL_COUNT_YBL = #{expDeclCountYbl}
- </if>
- <if test="expTotalCost != null and expTotalCost != ''">
- and EXP_TOTAL_COST = #{expTotalCost}
- </if>
- <if test="expTotalCostLm != null and expTotalCostLm != ''">
- and EXP_TOTAL_COST_LM = #{expTotalCostLm}
- </if>
- <if test="expTotalCostLyDec != null and expTotalCostLyDec != ''">
- and EXP_TOTAL_COST_LY_DEC = #{expTotalCostLyDec}
- </if>
- <if test="expTotalCostCy != null and expTotalCostCy != ''">
- and EXP_TOTAL_COST_CY = #{expTotalCostCy}
- </if>
- <if test="expTotalCostYbl != null and expTotalCostYbl != ''">
- and EXP_TOTAL_COST_YBL = #{expTotalCostYbl}
- </if>
- <if test="expCuCost != null and expCuCost != ''">
- and EXP_CU_COST = #{expCuCost}
- </if>
- <if test="expCuCostLm != null and expCuCostLm != ''">
- and EXP_CU_COST_LM = #{expCuCostLm}
- </if>
- <if test="expCuCostLyDec != null and expCuCostLyDec != ''">
- and EXP_CU_COST_LY_DEC = #{expCuCostLyDec}
- </if>
- <if test="expCuCostCy != null and expCuCostCy != ''">
- and EXP_CU_COST_CY = #{expCuCostCy}
- </if>
- <if test="expCuCostYbl != null and expCuCostYbl != ''">
- and EXP_CU_COST_YBL = #{expCuCostYbl}
- </if>
- </where>
- </select>
- <select id="selectByID" parameterType="String"
- resultMap="CustomMStatFResult">
- <include refid="baseVo"/>
- where ID = #{ID}
- </select>
- <insert id="insert" parameterType="CustomMStatF">
- insert into WXJY_CUSTOM_M_STAT_F
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="ID != null and ID != ''">ID,
- </if>
- <if test="MONTH != null">MONTH,
- </if>
- <if test="customCode != null">CUSTOM_CODE,
- </if>
- <if test="impDeclCount != null">IMP_DECL_COUNT,
- </if>
- <if test="impManDeclCount != null">IMP_MAN_DECL_COUNT,
- </if>
- <if test="impManualAuditDeclCount != null">IMP_MANUAL_AUDIT_DECL_COUNT,
- </if>
- <if test="impDeclCountLm != null">IMP_DECL_COUNT_LM,
- </if>
- <if test="impDeclCountLyDec != null">IMP_DECL_COUNT_LY_DEC,
- </if>
- <if test="impDeclCountCuryear != null">IMP_DECL_COUNT_CURYEAR,
- </if>
- <if test="impDeclCountYbl != null">IMP_DECL_COUNT_YBL,
- </if>
- <if test="impTotalCost != null">IMP_TOTAL_COST,
- </if>
- <if test="impTotalCostLm != null">IMP_TOTAL_COST_LM,
- </if>
- <if test="impTotalCostLyDec != null">IMP_TOTAL_COST_LY_DEC,
- </if>
- <if test="impTotalCostCy != null">IMP_TOTAL_COST_CY,
- </if>
- <if test="impTotalCostYbl != null">IMP_TOTAL_COST_YBL,
- </if>
- <if test="impCuCost != null">IMP_CU_COST,
- </if>
- <if test="impCuCostLm != null">IMP_CU_COST_LM,
- </if>
- <if test="impCuCostLyDec != null">IMP_CU_COST_LY_DEC,
- </if>
- <if test="impCuCostCy != null">IMP_CU_COST_CY,
- </if>
- <if test="impCuCostYbl != null">IMP_CU_COST_YBL,
- </if>
- <if test="expDeclCount != null">EXP_DECL_COUNT,
- </if>
- <if test="expManDeclCount != null">EXP_MAN_DECL_COUNT,
- </if>
- <if test="expManualAuditDeclCount != null">EXP_MANUAL_AUDIT_DECL_COUNT,
- </if>
- <if test="expDeclCountLm != null">EXP_DECL_COUNT_LM,
- </if>
- <if test="expDeclCountLyDec != null">EXP_DECL_COUNT_LY_DEC,
- </if>
- <if test="expDeclCountCuryear != null">EXP_DECL_COUNT_CURYEAR,
- </if>
- <if test="expDeclCountYbl != null">EXP_DECL_COUNT_YBL,
- </if>
- <if test="expTotalCost != null">EXP_TOTAL_COST,
- </if>
- <if test="expTotalCostLm != null">EXP_TOTAL_COST_LM,
- </if>
- <if test="expTotalCostLyDec != null">EXP_TOTAL_COST_LY_DEC,
- </if>
- <if test="expTotalCostCy != null">EXP_TOTAL_COST_CY,
- </if>
- <if test="expTotalCostYbl != null">EXP_TOTAL_COST_YBL,
- </if>
- <if test="expCuCost != null">EXP_CU_COST,
- </if>
- <if test="expCuCostLm != null">EXP_CU_COST_LM,
- </if>
- <if test="expCuCostLyDec != null">EXP_CU_COST_LY_DEC,
- </if>
- <if test="expCuCostCy != null">EXP_CU_COST_CY,
- </if>
- <if test="expCuCostYbl != null">EXP_CU_COST_YBL,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="ID != null and ID != ''">#{ID},
- </if>
- <if test="MONTH != null">#{MONTH},
- </if>
- <if test="customCode != null">#{customCode},
- </if>
- <if test="impDeclCount != null">#{impDeclCount},
- </if>
- <if test="impManDeclCount != null">#{impManDeclCount},
- </if>
- <if test="impManualAuditDeclCount != null">#{impManualAuditDeclCount},
- </if>
- <if test="impDeclCountLm != null">#{impDeclCountLm},
- </if>
- <if test="impDeclCountLyDec != null">#{impDeclCountLyDec},
- </if>
- <if test="impDeclCountCuryear != null">#{impDeclCountCuryear},
- </if>
- <if test="impDeclCountYbl != null">#{impDeclCountYbl},
- </if>
- <if test="impTotalCost != null">#{impTotalCost},
- </if>
- <if test="impTotalCostLm != null">#{impTotalCostLm},
- </if>
- <if test="impTotalCostLyDec != null">#{impTotalCostLyDec},
- </if>
- <if test="impTotalCostCy != null">#{impTotalCostCy},
- </if>
- <if test="impTotalCostYbl != null">#{impTotalCostYbl},
- </if>
- <if test="impCuCost != null">#{impCuCost},
- </if>
- <if test="impCuCostLm != null">#{impCuCostLm},
- </if>
- <if test="impCuCostLyDec != null">#{impCuCostLyDec},
- </if>
- <if test="impCuCostCy != null">#{impCuCostCy},
- </if>
- <if test="impCuCostYbl != null">#{impCuCostYbl},
- </if>
- <if test="expDeclCount != null">#{expDeclCount},
- </if>
- <if test="expManDeclCount != null">#{expManDeclCount},
- </if>
- <if test="expManualAuditDeclCount != null">#{expManualAuditDeclCount},
- </if>
- <if test="expDeclCountLm != null">#{expDeclCountLm},
- </if>
- <if test="expDeclCountLyDec != null">#{expDeclCountLyDec},
- </if>
- <if test="expDeclCountCuryear != null">#{expDeclCountCuryear},
- </if>
- <if test="expDeclCountYbl != null">#{expDeclCountYbl},
- </if>
- <if test="expTotalCost != null">#{expTotalCost},
- </if>
- <if test="expTotalCostLm != null">#{expTotalCostLm},
- </if>
- <if test="expTotalCostLyDec != null">#{expTotalCostLyDec},
- </if>
- <if test="expTotalCostCy != null">#{expTotalCostCy},
- </if>
- <if test="expTotalCostYbl != null">#{expTotalCostYbl},
- </if>
- <if test="expCuCost != null">#{expCuCost},
- </if>
- <if test="expCuCostLm != null">#{expCuCostLm},
- </if>
- <if test="expCuCostLyDec != null">#{expCuCostLyDec},
- </if>
- <if test="expCuCostCy != null">#{expCuCostCy},
- </if>
- <if test="expCuCostYbl != null">#{expCuCostYbl},
- </if>
- </trim>
- </insert>
- <update id="update" parameterType="CustomMStatF">
- update WXJY_CUSTOM_M_STAT_F
- <trim prefix="SET" suffixOverrides=",">
- <if test="MONTH != null">MONTH =
- #{MONTH},
- </if>
- <if test="customCode != null">CUSTOM_CODE =
- #{customCode},
- </if>
- <if test="impDeclCount != null">IMP_DECL_COUNT =
- #{impDeclCount},
- </if>
- <if test="impManDeclCount != null">IMP_MAN_DECL_COUNT =
- #{impManDeclCount},
- </if>
- <if test="impManualAuditDeclCount != null">IMP_MANUAL_AUDIT_DECL_COUNT =
- #{impManualAuditDeclCount},
- </if>
- <if test="impDeclCountLm != null">IMP_DECL_COUNT_LM =
- #{impDeclCountLm},
- </if>
- <if test="impDeclCountLyDec != null">IMP_DECL_COUNT_LY_DEC =
- #{impDeclCountLyDec},
- </if>
- <if test="impDeclCountCuryear != null">IMP_DECL_COUNT_CURYEAR =
- #{impDeclCountCuryear},
- </if>
- <if test="impDeclCountYbl != null">IMP_DECL_COUNT_YBL =
- #{impDeclCountYbl},
- </if>
- <if test="impTotalCost != null">IMP_TOTAL_COST =
- #{impTotalCost},
- </if>
- <if test="impTotalCostLm != null">IMP_TOTAL_COST_LM =
- #{impTotalCostLm},
- </if>
- <if test="impTotalCostLyDec != null">IMP_TOTAL_COST_LY_DEC =
- #{impTotalCostLyDec},
- </if>
- <if test="impTotalCostCy != null">IMP_TOTAL_COST_CY =
- #{impTotalCostCy},
- </if>
- <if test="impTotalCostYbl != null">IMP_TOTAL_COST_YBL =
- #{impTotalCostYbl},
- </if>
- <if test="impCuCost != null">IMP_CU_COST =
- #{impCuCost},
- </if>
- <if test="impCuCostLm != null">IMP_CU_COST_LM =
- #{impCuCostLm},
- </if>
- <if test="impCuCostLyDec != null">IMP_CU_COST_LY_DEC =
- #{impCuCostLyDec},
- </if>
- <if test="impCuCostCy != null">IMP_CU_COST_CY =
- #{impCuCostCy},
- </if>
- <if test="impCuCostYbl != null">IMP_CU_COST_YBL =
- #{impCuCostYbl},
- </if>
- <if test="expDeclCount != null">EXP_DECL_COUNT =
- #{expDeclCount},
- </if>
- <if test="expManDeclCount != null">EXP_MAN_DECL_COUNT =
- #{expManDeclCount},
- </if>
- <if test="expManualAuditDeclCount != null">EXP_MANUAL_AUDIT_DECL_COUNT =
- #{expManualAuditDeclCount},
- </if>
- <if test="expDeclCountLm != null">EXP_DECL_COUNT_LM =
- #{expDeclCountLm},
- </if>
- <if test="expDeclCountLyDec != null">EXP_DECL_COUNT_LY_DEC =
- #{expDeclCountLyDec},
- </if>
- <if test="expDeclCountCuryear != null">EXP_DECL_COUNT_CURYEAR =
- #{expDeclCountCuryear},
- </if>
- <if test="expDeclCountYbl != null">EXP_DECL_COUNT_YBL =
- #{expDeclCountYbl},
- </if>
- <if test="expTotalCost != null">EXP_TOTAL_COST =
- #{expTotalCost},
- </if>
- <if test="expTotalCostLm != null">EXP_TOTAL_COST_LM =
- #{expTotalCostLm},
- </if>
- <if test="expTotalCostLyDec != null">EXP_TOTAL_COST_LY_DEC =
- #{expTotalCostLyDec},
- </if>
- <if test="expTotalCostCy != null">EXP_TOTAL_COST_CY =
- #{expTotalCostCy},
- </if>
- <if test="expTotalCostYbl != null">EXP_TOTAL_COST_YBL =
- #{expTotalCostYbl},
- </if>
- <if test="expCuCost != null">EXP_CU_COST =
- #{expCuCost},
- </if>
- <if test="expCuCostLm != null">EXP_CU_COST_LM =
- #{expCuCostLm},
- </if>
- <if test="expCuCostLyDec != null">EXP_CU_COST_LY_DEC =
- #{expCuCostLyDec},
- </if>
- <if test="expCuCostCy != null">EXP_CU_COST_CY =
- #{expCuCostCy},
- </if>
- <if test="expCuCostYbl != null">EXP_CU_COST_YBL =
- #{expCuCostYbl},
- </if>
- </trim>
- where ID = #{ID}
- </update>
- <delete id="deleteByID" parameterType="String">
- delete
- from WXJY_CUSTOM_M_STAT_F where ID = #{ID}
- </delete>
- <delete id="deleteByIDs" parameterType="String">
- delete from WXJY_CUSTOM_M_STAT_F where ID in
- <foreach item="ID" collection="array" open="(" separator="," close=")">
- #{ID}
- </foreach>
- </delete>
- <delete id="logicDelete" parameterType="String">
- update WXJY_CUSTOM_M_STAT_F set is_del = 1 where ID = #{ID}
- </delete>
- </mapper>
|