<?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.tofly.xrtygis.mapper.CostbgpriceMapper">

    <resultMap id="costbgpriceMap" type="com.tofly.xrtygis.entity.Costbgprice">
        <id property="id" column="ID"/>
        <result property="year" column="YEAR"/>
        <result property="pacdj" column="PACDJ"/>
        <result property="yldj" column="YLDJ"/>
        <result property="pamZsdj" column="PAM_ZSDJ"/>
        <result property="pamWndj" column="PAM_WNDJ"/>
        <result property="ftdj" column="FTDJ"/>
        <result property="cndj" column="CNDJ"/>
        <result property="gmsjfhydj" column="GMSJFHYDJ"/>
        <result property="sydj" column="SYDJ"/>
        <result property="dlddjOne" column="DLDDJ_ONE"/>
        <result property="dlddjTwo" column="DLDDJ_TWO"/>
        <result property="wnzydj" column="WNZYDJ"/>
        <result property="ysfdj" column="YSFDJ"/>
        <result property="szysdj" column="SZYSDJ"/>
        <result property="bcsdj" column="BCSDJ"/>
        <result property="snew" column="SNEW"/>
        <result property="createTime" column="CREATE_TIME"/>
        <result property="createUser" column="CREATE_USER"/>
        <result property="pac2dj" column="PAC2DJ"/>
        <result property="qbjzgdj" column="QBJZGDJ"/>
        <result property="otherdj" column="OTHERDJ"/>
        <result property="jbdldjOne" column="JBDLDJ_ONE"/>
        <result property="jbdldjTwo" column="JBDLDJ_TWO"/>
        <result property="upDate" column="UP_DATE"/>
        <result property="otherOneDj" column="OTHER_ONE_DJ"/>
        <result property="otherTwoDj" column="OTHER_ONE_DJ"/>
        <association property="createUserName" column="CREATE_USER"
                     select="com.tofly.baseapi.mapper.ToflyCodeCommonMapper.getUserName"/>
    </resultMap>

    <!--    成本数据的字段 -->
    <sql id="costDataSql">
        round(PACZFY_ONE,4)  PACZFY_ONE,
        round(PACZFY_TWO,4) PACZFY_TWO,
        round(SYZFY_ONE,4) SYZFY_ONE,
        round(YLZFY_TWO,4) YLZFY_TWO,
        round(PAMZSZFY,4) PAMZSZFY,
        round(FTZFY,4) FTZFY,
        round(CNZFY,4) CNZFY,
        round(GMSJFHYZFY,4) GMSJFHYZFY,
        round(PAMWNZFY,4) PAMWNZFY,
        round(BCSZFY,4) BCSZFY,
        round(WNZYF,4) WNZYF,
        round(JBDF_ONE,4) JBDF_ONE,
        round(JBDF_TWO,4) JBDF_TWO,
        round(JBDF_TOTAL,4) JBDF_TOTAL,
        round(DLDF_ONE,4) DLDF_ONE,
        round(DLDF_TWO,4) DLDF_TWO,
        round(DLDF_TOTAL,4) DLDF_TOTAL,
        round(YSF,4) YSF,
        round(SZYSF_ONE,4) SZYSF_ONE,
        round(SZYSF_TWO,4) SZYSF_TWO,
        round(SZYSF_TOTAL,4) SZYSF_TOTAL,
        round(DFCB_ONE, 4) DFCB_ONE,
        round(DFCB_TWO, 4) DFCB_TWO,
        round(DFCB_TOTAL, 4) DFCB_TOTAL,
        round(PACCB_ONE,4) PACCB_ONE,
        round(SYCB_ONE,4) SYCB_ONE,
        round(CNCB_ONE, 4) CNCB_ONE,
        round(BCSCB_ONE,4) BCSCB_ONE,
        round(ZSCLCB_ONE, 4) ZSCLCB_ONE,
        round(PACCB_TWO, 4) PACCB_TWO,
        round(YLCB_TWO, 4) YLCB_TWO,
        round(PAMZSCB_TWO, 4) PAMZSCB_TWO,
        round(FTCB_TWO, 4) FTCB_TWO,
        round(GMSJFHYCB_TWO,4) GMSJFHYCB_TWO,
        round(PAMWNCB_TWO, 4) PAMWNCB_TWO,
        round(WNZYCB_TWO,4) WNZYCB_TWO,
        round(ZSCLCB_TWO, 4) ZSCLCB_TWO,
        round(ZSCLCB_TOTAL,4) ZSCLCB_TOTAL,
        round(YSFCB, 4) YSFCB,
        round(SZYSFCB_ONE,4) SZYSFCB_ONE,
        round(SZYSFCB_TWO, 4) SZYSFCB_TWO,
        round(SZYSFCB_TOTAL, 4) SZYSFCB_TOTAL,
        round(ZFY_ONE, 4) ZFY_ONE,
        round(ZFY_TWO, 4) ZFY_TWO,
        round(DWCB_ONE,4) DWCB_ONE,
        round(OTHERCB,4) OTHERCB,
        round(DWCB_TWO, 4) DWCB_TWO,
        round(DWCB_TOTAL, 4) DWCB_TOTAL,
        round(ZZSCLFY_ONE, 4) ZZSCLFY_ONE,
        round(ZZSCLFY_TWO, 4) ZSCLFY_TWO,
        round(ZFY,4) ZFY,
        round(CNZFY_TWO,4) CNZFY_TWO,
        round(OTHER_ONE_ZFY,4) OTHER_ONE_ZFY,
        round(OTHER_TWO_ZFY,4) OTHER_TWO_ZFY,
        round(OTHER_ONE_CN,4) OTHER_ONE_CN,
        round(OTHER_TWO_CB,4) OTHER_TWO_CB
    </sql>

    <select id="getCostDataYearPlan" resultMap="costbgfixedMap">
        SELECT SUBSTR(MOUTH, 1, 4)                                                                MOUTH,
               round(sum(YSF), 4)                                                                 YSF,
               round(sum(SZYSF_ONE), 4)                                                           SZYSF_ONE,
               round(sum(SZYSF_TWO), 4)                                                           SZYSF_TWO,
               round(sum(SZYSF_TOTAL), 4)                                                         SZYSF_TOTAL,
               round(sum(ZFY_ONE), 4)                                                             ZFY_ONE,
               round(sum(ZFY_TWO), 4)                                                             ZFY_TWO,
               round(sum(ZFY), 4)                                                                 ZFY,
               round(sum(CNZFY_TWO), 4)                                                           cnzfy_two,
               round(sum(PACZFY_ONE), 4)                                                          PACZFY_ONE,
               round(sum(SYZFY_ONE), 4)                                                           SYZFY_ONE,
               round(sum(PACZFY_TWO), 4)                                                          PACZFY_TWO,
               round(sum(YLZFY_TWO), 4)                                                           YLZFY_TWO,
               round(sum(PAMZSZFY), 4)                                                            PAMZSZFY,
               round(sum(FTZFY), 4)                                                               FTZFY,
               round(sum(CNZFY), 4)                                                               CNZFY,
               round(sum(GMSJFHYZFY), 4)                                                          GMSJFHYZFY,
               round(sum(PAMWNZFY), 4)                                                            PAMWNZFY,
               round(sum(BCSZFY), 4)                                                              BCSZFY,
               round(sum(WNZYF), 4)                                                               WNZYF,
               round(sum(JBDF_ONE), 4)                                                            JBDF_ONE,
               round(sum(JBDF_TWO), 4)                                                            JBDF_TWO,
               round(sum(JBDF_TOTAL), 4)                                                          JBDF_TOTAL,
               round(sum(DLDF_ONE), 4)                                                            DLDF_ONE,
               round(sum(DLDF_TWO), 4)                                                            DLDF_TWO,
               round(sum(DLDF_TOTAL), 4)                                                          DLDF_TOTAL,
               round(sum(SZYSF_TOTAL), 4)                                                         SZYSF_TOTAL,
               round(sum(OTHERZFY), 4)                                                            OTHERZFY,
               round(sum(OTHER_ONE_ZFY), 4)                                                       OTHER_ONE_ZFY,
               round(sum(OTHER_TWO_ZFY), 4)                                                       OTHER_TWO_ZFY,
               round(sum(CNZFY_TWO), 4)                                                           CNZFY_TWO,
               -- ---------成本计算-----------
               round((sum(JBDF_ONE) + sum(DLDF_ONE)) / nullif(sum(GSL_ONE), 0) * 1000, 4)         DFCB_ONE,
               round((sum(JBDF_TWO) + sum(DLDF_TWO)) / nullif(sum(GSL_TWO), 0) * 1000, 4)         DFCB_TWO,
               round((sum(JBDF_TOTAL) + sum(DLDF_TOTAL)) / nullif(sum(GSL_TOTAL), 0) * 1000, 4)   DFCB_TOTAL,
               round(sum(PACZFY_ONE) / nullif(sum(GSL_ONE), 0) * 1000, 4)                         PACCB_ONE,
               round(sum(SYZFY_ONE) / nullif(sum(GSL_ONE), 0) * 1000, 4)                          SYCB_ONE,
               round(sum(BCSZFY) / nullif(sum(GSL_ONE), 0) * 1000, 4)                             BCSCB_ONE,
               round(sum(CNZFY) / nullif(sum(GSL_ONE), 0) * 1000, 4)                              CNCB_ONE,
               round(sum(CNZFY_TWO) / nullif(sum(GSL_TWO), 0) * 1000, 4)                          CNCB_TWO,
               round(sum(ZZSCLFY_ONE) / nullif(sum(GSL_ONE), 0) * 1000, 4)                        ZSCLCB_ONE,
               round(sum(PACZFY_TWO) / nullif(sum(GSL_TWO), 0) * 1000, 4)                         PACCB_TWO,
               round(sum(YLZFY_TWO) / nullif(sum(GSL_TWO), 0) * 1000, 4)                          YLCB_TWO,
               round(sum(PAMZSZFY) / nullif(sum(GSL_TWO), 0) * 1000, 4)                           PAMZSCB_TWO,
               round(sum(GMSJFHYZFY) / nullif(sum(GSL_TWO), 0) * 1000, 4)                         GMSJFHYCB_TWO,
               round(sum(PAMWNZFY) / nullif(sum(GSL_TWO), 0) * 1000, 4)                           PAMWNCB_TWO,
               round(sum(FTZFY) / nullif(sum(GSL_TWO), 0) * 1000, 4)                              FTCB_TWO,
               round(sum(WNZYF) / nullif(sum(GSL_TWO), 0) * 1000, 4)                              WNZYCB_TWO,
               round(sum(ZZSCLFY_TWO) / decode(sum(GSL_TWO), 0, null, sum(GSL_TWO)) * 1000, 4)    ZSCLCB_TWO,
               round((sum(ZZSCLFY_ONE) + sum(ZZSCLFY_TWO)) / nullif(sum(GSL_TOTAL), 0) * 1000, 4) ZSCLCB_TOTAL,
               round(sum(YSF) / nullif(sum(GSL_TOTAL), 0) * 1000, 4)                              YSFCB,
               round(sum(SZYSF_ONE) / nullif(sum(GSL_ONE), 0) * 1000, 4)                          SZYSFCB_ONE,
               round(sum(SZYSF_TWO) / nullif(sum(GSL_TWO), 0) * 1000, 4)                          SZYSFCB_TWO,
               round(sum(SZYSF_TOTAL) / nullif(sum(GSL_TOTAL), 0) * 1000, 4)                      SZYSFCB_TOTAL,
               round(sum(ZFY_ONE) / nullif(sum(GSL_TOTAL), 0) * 1000, 4)                          DWCB_ONE,
               round(sum(ZFY_TWO) / nullif(sum(GSL_TOTAL), 0) * 1000, 4)                          DWCB_TWO,
               round(sum(ZFY) / nullif(sum(GSL_TOTAL), 0) * 1000, 4)                              DWCB_TOTAL,
               round(sum(OTHERZFY) / nullif(sum(GSL_ONE), 0) * 1000, 4)                           OTHERCB,
               round(sum(OTHER_ONE_ZFY) / nullif(sum(GSL_ONE), 0) * 1000, 4)                      OTHER_ONE_CB,
               round(sum(OTHER_TWO_ZFY) / nullif(sum(GSL_TWO), 0) * 1000, 4)                      OTHER_TWO_CB
        FROM TF_YWPN_COSTBGFIXED_W f
                 left join TF_YWPN_COSTBGWATER_W w on f.MOUTH = w.MONTH
        WHERE SUBSTR(MOUTH, 1, 4) IN (${startYear})
        GROUP BY SUBSTR(MOUTH, 1, 4)
        ORDER BY MOUTH
    </select>


    <select id="getCostDataYearReality" resultMap="costrlfixedMap">
        SELECT TO_CHAR(f.UP_DATE, 'yyyy')                                                         UP_DATE,
               round(sum(YSF), 4)                                                                 YSF,
               round(sum(SZYSF_ONE), 4)                                                           SZYSF_ONE,
               round(sum(SZYSF_TWO), 4)                                                           SZYSF_TWO,
               round(sum(SZYSF_TOTAL), 4)                                                         SZYSF_TOTAL,
               round(sum(ZFY_ONE), 4)                                                             ZFY_ONE,
               round(sum(ZFY_TWO), 4)                                                             ZFY_TWO,
               round(sum(ZFY), 4)                                                                 ZFY,
               round(sum(CNZFY_TWO), 4)                                                           cnzfy_two,
               round(sum(PACZFY_ONE), 4)                                                          PACZFY_ONE,
               round(sum(SYZFY_ONE), 4)                                                           SYZFY_ONE,
               round(sum(PACZFY_TWO), 4)                                                          PACZFY_TWO,
               round(sum(YLZFY_TWO), 4)                                                           YLZFY_TWO,
               round(sum(PAMZSZFY), 4)                                                            PAMZSZFY,
               round(sum(FTZFY), 4)                                                               FTZFY,
               round(sum(CNZFY), 4)                                                               CNZFY,
               round(sum(GMSJFHYZFY), 4)                                                          GMSJFHYZFY,
               round(sum(PAMWNZFY), 4)                                                            PAMWNZFY,
               round(sum(BCSZFY), 4)                                                              BCSZFY,
               round(sum(WNZYF), 4)                                                               WNZYF,
               round(sum(JBDF_ONE), 4)                                                            JBDF_ONE,
               round(sum(JBDF_TWO), 4)                                                            JBDF_TWO,
               round(sum(JBDF_TOTAL), 4)                                                          JBDF_TOTAL,
               round(sum(DLDF_ONE), 4)                                                            DLDF_ONE,
               round(sum(DLDF_TWO), 4)                                                            DLDF_TWO,
               round(sum(DLDF_TOTAL), 4)                                                          DLDF_TOTAL,
               round(sum(SZYSF_TOTAL), 4)                                                         SZYSF_TOTAL,
               round(sum(OTHERZFY), 4)                                                            OTHERZFY,
               round(sum(OTHER_ONE_ZFY), 4)                                                       OTHER_ONE_ZFY,
               round(sum(OTHER_TWO_ZFY), 4)                                                       OTHER_TWO_ZFY,
               round(sum(CNZFY_TWO), 4)                                                           CNZFY_TWO,

               -- ---------成本计算-----------
               round((sum(JBDF_ONE) + sum(DLDF_ONE)) / nullif(sum(GSL_ONE), 0) * 1000, 4)         DFCB_ONE,
               round((sum(JBDF_TWO) + sum(DLDF_TWO)) / nullif(sum(GSL_TWO), 0) * 1000, 4)         DFCB_TWO,
               round((sum(JBDF_TOTAL) + sum(DLDF_TOTAL)) / nullif(sum(GSL_TOTAL), 0) * 1000, 4)   DFCB_TOTAL,
               round(sum(PACZFY_ONE) / nullif(sum(GSL_ONE), 0) * 1000, 4)                         PACCB_ONE,
               round(sum(SYZFY_ONE) / nullif(sum(GSL_ONE), 0) * 1000, 4)                          SYCB_ONE,
               round(sum(BCSZFY) / nullif(sum(GSL_ONE), 0) * 1000, 4)                             BCSCB_ONE,
               round(sum(CNZFY) / nullif(sum(GSL_ONE), 0) * 1000, 4)                              CNCB_ONE,
               round(sum(CNZFY_TWO) / nullif(sum(GSL_TWO), 0) * 1000, 4)                          CNCB_TWO,
               round(sum(ZZSCLFY_ONE) / nullif(sum(GSL_ONE), 0) * 1000, 4)                        ZSCLCB_ONE,
               round(sum(PACZFY_TWO) / nullif(sum(GSL_TWO), 0) * 1000, 4)                         PACCB_TWO,
               round(sum(YLZFY_TWO) / nullif(sum(GSL_TWO), 0) * 1000, 4)                          YLCB_TWO,
               round(sum(PAMZSZFY) / nullif(sum(GSL_TWO), 0) * 1000, 4)                           PAMZSCB_TWO,
               round(sum(GMSJFHYZFY) / nullif(sum(GSL_TWO), 0) * 1000, 4)                         GMSJFHYCB_TWO,
               round(sum(PAMWNZFY) / nullif(sum(GSL_TWO), 0) * 1000, 4)                           PAMWNCB_TWO,
               round(sum(FTZFY) / nullif(sum(GSL_TWO), 0) * 1000, 4)                              FTCB_TWO,
               round(sum(WNZYF) / nullif(sum(GSL_TWO), 0) * 1000, 4)                              WNZYCB_TWO,
               round(sum(ZZSCLFY_TWO) / decode(sum(GSL_TWO), 0, null, sum(GSL_TWO)) * 1000, 4)    ZSCLCB_TWO,
               round((sum(ZZSCLFY_ONE) + sum(ZZSCLFY_TWO)) / nullif(sum(GSL_TOTAL), 0) * 1000, 4) ZSCLCB_TOTAL,
               round(sum(YSF) / nullif(sum(GSL_TOTAL), 0) * 1000, 4)                              YSFCB,
               round(sum(SZYSF_ONE) / nullif(sum(GSL_ONE), 0) * 1000, 4)                          SZYSFCB_ONE,
               round(sum(SZYSF_TWO) / nullif(sum(GSL_TWO), 0) * 1000, 4)                          SZYSFCB_TWO,
               round(sum(SZYSF_TOTAL) / nullif(sum(GSL_TOTAL), 0) * 1000, 4)                      SZYSFCB_TOTAL,
               round(sum(ZFY_ONE) / nullif(sum(GSL_TOTAL), 0) * 1000, 4)                          DWCB_ONE,
               round(sum(ZFY_TWO) / nullif(sum(GSL_TOTAL), 0) * 1000, 4)                          DWCB_TWO,
               round(sum(ZFY) / nullif(sum(GSL_TOTAL), 0) * 1000, 4)                              DWCB_TOTAL,
               round(sum(OTHERZFY) / nullif(sum(GSL_ONE), 0) * 1000, 4)                           OTHERCB,
               round(sum(OTHER_ONE_ZFY) / nullif(sum(GSL_ONE), 0) * 1000, 4)                      OTHER_ONE_CB,
               round(sum(OTHER_TWO_ZFY) / nullif(sum(GSL_TWO), 0) * 1000, 4)                      OTHER_TWO_CB
        FROM TF_YWPN_COSTRLFIXED_W f
                 left join TF_YWPN_COSTRLWATER_W w
                           on to_char(f.UP_DATE, 'yyyy-mm') = to_char(w.UP_DATE, 'yyyy-mm') and f.MARK = w.MARK
        WHERE TO_CHAR(f.UP_DATE, 'yyyy') IN (${startYear})
          and f.MARK = '1'
        GROUP BY TO_CHAR(f.UP_DATE, 'yyyy')
        ORDER BY UP_DATE
    </select>

    <select id="getCostDataMonthByYearPlan" resultMap="costbgfixedMap">
        SELECT MOUTH,
        <include refid="costDataSql"/>
        FROM TF_YWPN_COSTBGFIXED_W
        WHERE SUBSTR(MOUTH, 1, 4) = #{year} ORDER BY MOUTH
    </select>
    <select id="getCostDataMonthByYearReality" resultMap="costrlfixedMap">
        SELECT TO_CHAR(UP_DATE, 'yyyy-MM') UP_DATE,
        <include refid="costDataSql"/>
        FROM TF_YWPN_COSTRLFIXED_W
        WHERE TO_CHAR(UP_DATE, 'yyyy') = #{year}
        and MARK = '1' ORDER BY UP_DATE
    </select>
    <select id="getCostDataMonthPlan" resultMap="costbgfixedMap">
        SELECT MOUTH,
        <include refid="costDataSql"/>
        FROM TF_YWPN_COSTBGFIXED_W
        WHERE SUBSTR(MOUTH, 1, 4) IN (${year})
        and SUBSTR(MOUTH, -2) IN (${month}) ORDER BY MOUTH
    </select>
    <select id="getCostDataMonthReality" resultMap="costrlfixedMap">
        SELECT TO_CHAR(UP_DATE, 'yyyy-MM') UP_DATE,
        <include refid="costDataSql"/>
        FROM TF_YWPN_COSTRLFIXED_W
        WHERE TO_CHAR(UP_DATE, 'yyyy') IN (${year})
        and TO_CHAR(UP_DATE, 'MM') IN (${month})
        and MARK = '1' ORDER BY UP_DATE
    </select>

    <select id="getPriceRealDataYear" resultType="map">
        select year,
               pacdj,
               yldj,
               pam_zsdj,
               pam_wndj,
               ftdj,
               cndj,
               gmsjfhydj,
               sydj,
               dlddj_one,
               dlddj_two,
               wnzydj,
               ysfdj,
               szysdj,
               bcsdj,
               isnew,
               pac2dj,
               qbjzgdj,
               otherdj,
               jbdldj_one,
               jbdldj_two,
               OTHER_ONE_DJ,
               OTHER_TWO_DJ
        from TF_YWPN_COSTRLPRICE_W
        where ISNEW = 1
          and YEAR in (${year})
        group by year, pacdj, yldj, pam_zsdj, pam_wndj, ftdj, cndj, gmsjfhydj, sydj, dlddj_one, dlddj_two, wnzydj,
                 ysfdj, szysdj, bcsdj, isnew, pac2dj, qbjzgdj, otherdj, jbdldj_one, jbdldj_two, OTHER_ONE_DJ,
                 OTHER_TWO_DJ
    </select>

    <select id="getPricePlanDataYear" resultType="map">
        select *
        from (select year,
                     pacdj,
                     yldj,
                     pam_zsdj,
                     pam_wndj,
                     ftdj,
                     cndj,
                     gmsjfhydj,
                     sydj,
                     dlddj_one,
                     dlddj_two,
                     wnzydj,
                     ysfdj,
                     szysdj,
                     bcsdj,
                     pac2dj,
                     qbjzgdj,
                     otherdj,
                     jbdldj_one,
                     jbdldj_two,
                     OTHER_ONE_DJ,
                     OTHER_TWO_DJ,
                     row_number() over (partition by year order by CREATE_TIME desc ) row_id
              from TF_YWPN_COSTBGPRICE_W
              where YEAR in (${year}))
        where row_id = 1
        order by year
    </select>

    <resultMap id="costrlfixedMap" type="com.tofly.xrtygis.custom.entity.dataquery.FixedReality">
        <id property="id" column="ID"/>
        <result property="upDate" column="UP_DATE"/>
        <result property="paczfyOne" column="PACZFY_ONE"/>
        <result property="paczfyTwo" column="PACZFY_TWO"/>
        <result property="syzfyOne" column="SYZFY_ONE"/>
        <result property="ylzfyTwo" column="YLZFY_TWO"/>
        <result property="pamzszfy" column="PAMZSZFY"/>
        <result property="ftzfy" column="FTZFY"/>
        <result property="cnzfy" column="CNZFY"/>
        <result property="gmsjfhyzfy" column="GMSJFHYZFY"/>
        <result property="pamwnzfy" column="PAMWNZFY"/>
        <result property="bcszfy" column="BCSZFY"/>
        <result property="wnzyf" column="WNZYF"/>
        <result property="jbdfOne" column="JBDF_ONE"/>
        <result property="jbdfTwo" column="JBDF_TWO"/>
        <result property="jbdfTotal" column="JBDF_TOTAL"/>
        <result property="dldfOne" column="DLDF_ONE"/>
        <result property="dldfTwo" column="DLDF_TWO"/>
        <result property="dldfTotal" column="DLDF_TOTAL"/>
        <result property="ysf" column="YSF"/>
        <result property="szysfOne" column="SZYSF_ONE"/>
        <result property="szysfTwo" column="SZYSF_TWO"/>
        <result property="szysfTotal" column="SZYSF_TOTAL"/>
        <result property="dfcbOne" column="DFCB_ONE"/>
        <result property="dfcbTwo" column="DFCB_TWO"/>
        <result property="dfcbTotal" column="DFCB_TOTAL"/>
        <result property="paccbOne" column="PACCB_ONE"/>
        <result property="sycbOne" column="SYCB_ONE"/>
        <result property="cncbOne" column="CNCB_ONE"/>
        <result property="bcscbOne" column="BCSCB_ONE"/>
        <result property="zsclcbOne" column="ZSCLCB_ONE"/>
        <result property="paccbTwo" column="PACCB_TWO"/>
        <result property="ylcbTwo" column="YLCB_TWO"/>
        <result property="pamzscbTwo" column="PAMZSCB_TWO"/>
        <result property="ftcbTwo" column="FTCB_TWO"/>
        <result property="gmsjfhycbTwo" column="GMSJFHYCB_TWO"/>
        <result property="pamwncbTwo" column="PAMWNCB_TWO"/>
        <result property="wnzycbTwo" column="WNZYCB_TWO"/>
        <result property="zsclcbTwo" column="ZSCLCB_TWO"/>
        <result property="zsclcbTotal" column="ZSCLCB_TOTAL"/>
        <result property="ysfcb" column="YSFCB"/>
        <result property="szysfcbOne" column="SZYSFCB_ONE"/>
        <result property="szysfcbTwo" column="SZYSFCB_TWO"/>
        <result property="szysfcbTotal" column="SZYSFCB_TOTAL"/>
        <result property="zfyOne" column="ZFY_ONE"/>
        <result property="zfyTwo" column="ZFY_TWO"/>
        <result property="dwcbOne" column="DWCB_ONE"/>
        <result property="dwcbTwo" column="DWCB_TWO"/>
        <result property="dwcbTotal" column="DWCB_TOTAL"/>
        <result property="createTime" column="CREATE_TIME"/>
        <result property="createUser" column="CREATE_USER"/>
        <result property="zzsclfyOne" column="ZZSCLFY_ONE"/>
        <result property="zzsclfyTwo" column="ZZSCLFY_TWO"/>
        <result property="zfy" column="ZFY"/>
        <result property="cnzfyTwo" column="CNZFY_TWO"/>
        <result property="mark" column="MARK"/>
        <result property="otherTwoZfy" column="OTHER_TWO_ZFY"/>
        <result property="otherOneZfy" column="OTHER_ONE_ZFY"/>
        <result property="otherTwoCb" column="OTHER_TWO_CB"/>
        <result property="otherOneCb" column="OTHER_ONE_CB"/>
        <result property="otherzfy" column="OTHERZFY"/>
        <result property="othercb" column="OTHERCB"/>
    </resultMap>
    <resultMap id="costbgfixedMap" type="com.tofly.xrtygis.custom.entity.dataquery.FixedPlan">
        <id property="id" column="ID"/>
        <result property="yearId" column="YEAR_ID"/>
        <result property="upDate" column="MOUTH"/>
        <result property="paczfyOne" column="PACZFY_ONE"/>
        <result property="paczfyTwo" column="PACZFY_TWO"/>
        <result property="syzfyOne" column="SYZFY_ONE"/>
        <result property="ylzfyTwo" column="YLZFY_TWO"/>
        <result property="pamzszfy" column="PAMZSZFY"/>
        <result property="ftzfy" column="FTZFY"/>
        <result property="cnzfy" column="CNZFY"/>
        <result property="gmsjfhyzfy" column="GMSJFHYZFY"/>
        <result property="pamwnzfy" column="PAMWNZFY"/>
        <result property="bcszfy" column="BCSZFY"/>
        <result property="wnzyf" column="WNZYF"/>
        <result property="jbdfOne" column="JBDF_ONE"/>
        <result property="jbdfTwo" column="JBDF_TWO"/>
        <result property="jbdfTotal" column="JBDF_TOTAL"/>
        <result property="dldfOne" column="DLDF_ONE"/>
        <result property="dldfTwo" column="DLDF_TWO"/>
        <result property="dldfTotal" column="DLDF_TOTAL"/>
        <result property="ysf" column="YSF"/>
        <result property="szysfOne" column="SZYSF_ONE"/>
        <result property="szysfTwo" column="SZYSF_TWO"/>
        <result property="szysfTotal" column="SZYSF_TOTAL"/>
        <result property="dfcbOne" column="DFCB_ONE"/>
        <result property="dfcbTwo" column="DFCB_TWO"/>
        <result property="dfcbTotal" column="DFCB_TOTAL"/>
        <result property="paccbOne" column="PACCB_ONE"/>
        <result property="sycbOne" column="SYCB_ONE"/>
        <result property="cncbOne" column="CNCB_ONE"/>
        <result property="bcscbOne" column="BCSCB_ONE"/>
        <result property="zsclcbOne" column="ZSCLCB_ONE"/>
        <result property="paccbTwo" column="PACCB_TWO"/>
        <result property="ylcbTwo" column="YLCB_TWO"/>
        <result property="pamzscbTwo" column="PAMZSCB_TWO"/>
        <result property="ftcbTwo" column="FTCB_TWO"/>
        <result property="gmsjfhycbTwo" column="GMSJFHYCB_TWO"/>
        <result property="pamwncbTwo" column="PAMWNCB_TWO"/>
        <result property="wnzycbTwo" column="WNZYCB_TWO"/>
        <result property="zsclcbTwo" column="ZSCLCB_TWO"/>
        <result property="zsclcbTotal" column="ZSCLCB_TOTAL"/>
        <result property="ysfcb" column="YSFCB"/>
        <result property="szysfcbOne" column="SZYSFCB_ONE"/>
        <result property="szysfcbTwo" column="SZYSFCB_TWO"/>
        <result property="szysfcbTotal" column="SZYSFCB_TOTAL"/>
        <result property="zfyOne" column="ZFY_ONE"/>
        <result property="zfyTwo" column="ZFY_TWO"/>
        <result property="dwcbOne" column="DWCB_ONE"/>
        <result property="dwcbTwo" column="DWCB_TWO"/>
        <result property="dwcbTotal" column="DWCB_TOTAL"/>
        <result property="createTime" column="CREATE_TIME"/>
        <result property="createUser" column="CREATE_USER"/>
        <result property="zzsclfyOne" column="ZZSCLFY_ONE"/>
        <result property="zzsclfyTwo" column="ZZSCLFY_TWO"/>
        <result property="cnzfyTwo" column="CNZFY_TWO"/>
        <result property="zfy" column="ZFY"/>
        <result property="otherTwoZfy" column="OTHER_TWO_ZFY"/>
        <result property="otherOneZfy" column="OTHER_ONE_ZFY"/>
        <result property="otherTwoCb" column="OTHER_TWO_CB"/>
        <result property="otherOneCb" column="OTHER_ONE_CB"/>
        <result property="otherzfy" column="OTHERZFY"/>
        <result property="othercb" column="OTHERCB"/>
    </resultMap>


</mapper>
