|
@@ -74,185 +74,191 @@
|
|
|
<select id="selectList" parameterType="NewDeclaredGoodsQuery" resultMap="NewDeclaredGoodsResult">
|
|
<select id="selectList" parameterType="NewDeclaredGoodsQuery" resultMap="NewDeclaredGoodsResult">
|
|
|
<include refid="baseVo"/>
|
|
<include refid="baseVo"/>
|
|
|
<where>
|
|
<where>
|
|
|
- <if test="entryId != null and entryId != ''">
|
|
|
|
|
- and ENTRY_ID = #{entryId}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="gNo != null and gNo != ''">
|
|
|
|
|
- and G_NO = #{gNo}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="ieFlag != null and ieFlag != ''">
|
|
|
|
|
- and IE_FLAG = #{ieFlag}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="iePort != null and iePort != ''">
|
|
|
|
|
- and IE_PORT = #{iePort}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="declPort != null and declPort != ''">
|
|
|
|
|
- and DECL_PORT = #{declPort}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="customsCode != null and customsCode != ''">
|
|
|
|
|
- and CUSTOMS_CODE = #{customsCode}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="declDate != null and declDate != ''">
|
|
|
|
|
- and DECL_DATE = #{declDate}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="consignScc != null and consignScc != ''">
|
|
|
|
|
- and CONSIGN_SCC = #{consignScc}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="consignCode != null and consignCode != ''">
|
|
|
|
|
- and CONSIGN_CODE = #{consignCode}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="consignName != null and consignName != ''">
|
|
|
|
|
- and CONSIGN_NAME like concat('%', #{consignName}, '%')
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="codeTs != null and codeTs != ''">
|
|
|
|
|
- and CODE_TS = #{codeTs}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="iqCode != null and iqCode != ''">
|
|
|
|
|
- and IQ_CODE = #{iqCode}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="gName != null and gName != ''">
|
|
|
|
|
- and G_NAME like concat('%', #{gName}, '%')
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="iqGName != null and iqGName != ''">
|
|
|
|
|
- and IQ_G_NAME like concat('%', #{iqGName}, '%')
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="gNameFn != null and gNameFn != ''">
|
|
|
|
|
- and G_NAME_FN = #{gNameFn}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="gModel != null and gModel != ''">
|
|
|
|
|
- and G_MODEL = #{gModel}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="iqGModel != null and iqGModel != ''">
|
|
|
|
|
- and IQ_G_MODEL = #{iqGModel}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="gComposition != null and gComposition != ''">
|
|
|
|
|
- and G_COMPOSITION = #{gComposition}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="prodWarranty != null and prodWarranty != ''">
|
|
|
|
|
- and PROD_WARRANTY = #{prodWarranty}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="prodValidaty != null and prodValidaty != ''">
|
|
|
|
|
- and PROD_VALIDATY = #{prodValidaty}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="dutyMode != null and dutyMode != ''">
|
|
|
|
|
- and DUTY_MODE = #{dutyMode}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="GTIN != null and GTIN != ''">
|
|
|
|
|
- and GTIN = #{GTIN}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="gQty != null and gQty != ''">
|
|
|
|
|
- and G_QTY = #{gQty}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="gUnit != null and gUnit != ''">
|
|
|
|
|
- and G_UNIT = #{gUnit}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="qty1 != null and qty1 != ''">
|
|
|
|
|
- and QTY_1 = #{qty1}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="unit1 != null and unit1 != ''">
|
|
|
|
|
- and UNIT_1 = #{unit1}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="qty2 != null and qty2 != ''">
|
|
|
|
|
- and QTY_2 = #{qty2}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="unit2 != null and unit2 != ''">
|
|
|
|
|
- and UNIT_2 = #{unit2}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="declPrice != null and declPrice != ''">
|
|
|
|
|
- and DECL_PRICE = #{declPrice}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="declTotal != null and declTotal != ''">
|
|
|
|
|
- and DECL_TOTAL = #{declTotal}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="tradeCurr != null and tradeCurr != ''">
|
|
|
|
|
- and TRADE_CURR = #{tradeCurr}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="tradeTotal != null and tradeTotal != ''">
|
|
|
|
|
- and TRADE_TOTAL = #{tradeTotal}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="dutyValue != null and dutyValue != ''">
|
|
|
|
|
- and DUTY_VALUE = #{dutyValue}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="rmbPrice != null and rmbPrice != ''">
|
|
|
|
|
- and RMB_PRICE = #{rmbPrice}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="usdPrice != null and usdPrice != ''">
|
|
|
|
|
- and USD_PRICE = #{usdPrice}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="exchangeRate != null and exchangeRate != ''">
|
|
|
|
|
- and EXCHANGE_RATE = #{exchangeRate}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="originCountry != null and originCountry != ''">
|
|
|
|
|
- and ORIGIN_COUNTRY = #{originCountry}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="originRegionCode != null and originRegionCode != ''">
|
|
|
|
|
- and ORIGIN_REGION_CODE = #{originRegionCode}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="destCountry != null and destCountry != ''">
|
|
|
|
|
- and DEST_COUNTRY = #{destCountry}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="ieDistrictCode != null and ieDistrictCode != ''">
|
|
|
|
|
- and IE_DISTRICT_CODE = #{ieDistrictCode}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="iqIeDistrictCode != null and iqIeDistrictCode != ''">
|
|
|
|
|
- and IQ_IE_DISTRICT_CODE = #{iqIeDistrictCode}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="frnProducerName != null and frnProducerName != ''">
|
|
|
|
|
- and FRN_PRODUCER_NAME like concat('%', #{frnProducerName}, '%')
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="productModel != null and productModel != ''">
|
|
|
|
|
- and PRODUCT_MODEL = #{productModel}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="productBrand != null and productBrand != ''">
|
|
|
|
|
- and PRODUCT_BRAND = #{productBrand}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="productDate != null and productDate != ''">
|
|
|
|
|
- and PRODUCT_DATE = #{productDate}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="productBatch != null and productBatch != ''">
|
|
|
|
|
- and PRODUCT_BATCH = #{productBatch}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="UNGID != null and UNGID != ''">
|
|
|
|
|
- and UNGID = #{UNGID}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="ungFlag != null and ungFlag != ''">
|
|
|
|
|
- and UNG_FLAG = #{ungFlag}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="ungModel != null and ungModel != ''">
|
|
|
|
|
- and UNG_MODEL = #{ungModel}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="ungClassify != null and ungClassify != ''">
|
|
|
|
|
- and UNG_CLASSIFY = #{ungClassify}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="ungGName != null and ungGName != ''">
|
|
|
|
|
- and UNG_G_NAME like concat('%', #{ungGName}, '%')
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="productCharCode != null and productCharCode != ''">
|
|
|
|
|
- and PRODUCT_CHAR_CODE = #{productCharCode}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="goodsId != null and goodsId != ''">
|
|
|
|
|
- and GOODS_ID = #{goodsId}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="useTo != null and useTo != ''">
|
|
|
|
|
- and USE_TO = #{useTo}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="gCertFlag != null and gCertFlag != ''">
|
|
|
|
|
- and G_CERT_FLAG = #{gCertFlag}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="mnufctrRegNo != null and mnufctrRegNo != ''">
|
|
|
|
|
- and MNUFCTR_REG_NO = #{mnufctrRegNo}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="CAS != null and CAS != ''">
|
|
|
|
|
- and CAS = #{CAS}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="goodsType != null and goodsType != ''">
|
|
|
|
|
- and GOODS_TYPE = #{goodsType}
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
+ <if test="entryId != null and entryId != ''">
|
|
|
|
|
+ and ENTRY_ID = #{entryId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="gNo != null and gNo != ''">
|
|
|
|
|
+ and G_NO = #{gNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="ieFlag != null and ieFlag != ''">
|
|
|
|
|
+ and IE_FLAG = #{ieFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="iePort != null and iePort != ''">
|
|
|
|
|
+ and IE_PORT = #{iePort}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="declPort != null and declPort != ''">
|
|
|
|
|
+ and DECL_PORT = #{declPort}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="customsCode != null and customsCode != ''">
|
|
|
|
|
+ and CUSTOMS_CODE = #{customsCode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="declDate != null and declDate != ''">
|
|
|
|
|
+ and DECL_DATE = #{declDate}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="consignScc != null and consignScc != ''">
|
|
|
|
|
+ and CONSIGN_SCC = #{consignScc}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="consignCode != null and consignCode != ''">
|
|
|
|
|
+ and CONSIGN_CODE = #{consignCode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="consignName != null and consignName != ''">
|
|
|
|
|
+ and CONSIGN_NAME like concat('%', #{consignName}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="codeTs != null and codeTs != ''">
|
|
|
|
|
+ and CODE_TS = #{codeTs}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="iqCode != null and iqCode != ''">
|
|
|
|
|
+ and IQ_CODE = #{iqCode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="gName != null and gName != ''">
|
|
|
|
|
+ and G_NAME like concat('%', #{gName}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="iqGName != null and iqGName != ''">
|
|
|
|
|
+ and IQ_G_NAME like concat('%', #{iqGName}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="gNameFn != null and gNameFn != ''">
|
|
|
|
|
+ and G_NAME_FN = #{gNameFn}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="gModel != null and gModel != ''">
|
|
|
|
|
+ and G_MODEL = #{gModel}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="iqGModel != null and iqGModel != ''">
|
|
|
|
|
+ and IQ_G_MODEL = #{iqGModel}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="gComposition != null and gComposition != ''">
|
|
|
|
|
+ and G_COMPOSITION = #{gComposition}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="prodWarranty != null and prodWarranty != ''">
|
|
|
|
|
+ and PROD_WARRANTY = #{prodWarranty}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="prodValidaty != null and prodValidaty != ''">
|
|
|
|
|
+ and PROD_VALIDATY = #{prodValidaty}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="dutyMode != null and dutyMode != ''">
|
|
|
|
|
+ and DUTY_MODE = #{dutyMode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="GTIN != null and GTIN != ''">
|
|
|
|
|
+ and GTIN = #{GTIN}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="gQty != null and gQty != ''">
|
|
|
|
|
+ and G_QTY = #{gQty}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="gUnit != null and gUnit != ''">
|
|
|
|
|
+ and G_UNIT = #{gUnit}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="qty1 != null and qty1 != ''">
|
|
|
|
|
+ and QTY_1 = #{qty1}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="unit1 != null and unit1 != ''">
|
|
|
|
|
+ and UNIT_1 = #{unit1}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="qty2 != null and qty2 != ''">
|
|
|
|
|
+ and QTY_2 = #{qty2}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="unit2 != null and unit2 != ''">
|
|
|
|
|
+ and UNIT_2 = #{unit2}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="declPrice != null and declPrice != ''">
|
|
|
|
|
+ and DECL_PRICE = #{declPrice}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="declTotal != null and declTotal != ''">
|
|
|
|
|
+ and DECL_TOTAL = #{declTotal}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="tradeCurr != null and tradeCurr != ''">
|
|
|
|
|
+ and TRADE_CURR = #{tradeCurr}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="tradeTotal != null and tradeTotal != ''">
|
|
|
|
|
+ and TRADE_TOTAL = #{tradeTotal}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="dutyValue != null and dutyValue != ''">
|
|
|
|
|
+ and DUTY_VALUE = #{dutyValue}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="rmbPrice != null and rmbPrice != ''">
|
|
|
|
|
+ and RMB_PRICE = #{rmbPrice}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="usdPrice != null and usdPrice != ''">
|
|
|
|
|
+ and USD_PRICE = #{usdPrice}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="exchangeRate != null and exchangeRate != ''">
|
|
|
|
|
+ and EXCHANGE_RATE = #{exchangeRate}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="originCountry != null and originCountry != ''">
|
|
|
|
|
+ and ORIGIN_COUNTRY = #{originCountry}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="originRegionCode != null and originRegionCode != ''">
|
|
|
|
|
+ and ORIGIN_REGION_CODE = #{originRegionCode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="destCountry != null and destCountry != ''">
|
|
|
|
|
+ and DEST_COUNTRY = #{destCountry}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="ieDistrictCode != null and ieDistrictCode != ''">
|
|
|
|
|
+ and IE_DISTRICT_CODE = #{ieDistrictCode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="iqIeDistrictCode != null and iqIeDistrictCode != ''">
|
|
|
|
|
+ and IQ_IE_DISTRICT_CODE = #{iqIeDistrictCode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="frnProducerName != null and frnProducerName != ''">
|
|
|
|
|
+ and FRN_PRODUCER_NAME like concat('%', #{frnProducerName}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="productModel != null and productModel != ''">
|
|
|
|
|
+ and PRODUCT_MODEL = #{productModel}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="productBrand != null and productBrand != ''">
|
|
|
|
|
+ and PRODUCT_BRAND = #{productBrand}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="productDate != null and productDate != ''">
|
|
|
|
|
+ and PRODUCT_DATE = #{productDate}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="productBatch != null and productBatch != ''">
|
|
|
|
|
+ and PRODUCT_BATCH = #{productBatch}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="UNGID != null and UNGID != ''">
|
|
|
|
|
+ and UNGID = #{UNGID}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="ungFlag != null and ungFlag != ''">
|
|
|
|
|
+ and UNG_FLAG = #{ungFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="ungModel != null and ungModel != ''">
|
|
|
|
|
+ and UNG_MODEL = #{ungModel}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="ungClassify != null and ungClassify != ''">
|
|
|
|
|
+ and UNG_CLASSIFY = #{ungClassify}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="ungGName != null and ungGName != ''">
|
|
|
|
|
+ and UNG_G_NAME like concat('%', #{ungGName}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="productCharCode != null and productCharCode != ''">
|
|
|
|
|
+ and PRODUCT_CHAR_CODE = #{productCharCode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="goodsId != null and goodsId != ''">
|
|
|
|
|
+ and GOODS_ID = #{goodsId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="useTo != null and useTo != ''">
|
|
|
|
|
+ and USE_TO = #{useTo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="gCertFlag != null and gCertFlag != ''">
|
|
|
|
|
+ and G_CERT_FLAG = #{gCertFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="mnufctrRegNo != null and mnufctrRegNo != ''">
|
|
|
|
|
+ and MNUFCTR_REG_NO = #{mnufctrRegNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="CAS != null and CAS != ''">
|
|
|
|
|
+ and CAS = #{CAS}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="goodsType != null and goodsType != ''">
|
|
|
|
|
+ and GOODS_TYPE = #{goodsType}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="beginDate != null ">
|
|
|
|
|
+ and DECL_DATE >= #{beginDate}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="endDate != null ">
|
|
|
|
|
+ and DECL_DATE <= #{endDate}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectByID" parameterType="String"
|
|
<select id="selectByID" parameterType="String"
|
|
|
- resultMap="NewDeclaredGoodsResult">
|
|
|
|
|
|
|
+ resultMap="NewDeclaredGoodsResult">
|
|
|
<include refid="baseVo"/>
|
|
<include refid="baseVo"/>
|
|
|
where ID = #{ID}
|
|
where ID = #{ID}
|
|
|
</select>
|
|
</select>
|