123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550 |
- <?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.minpay.db.table.own.mapper.OrderInfMapper">
- <select id="getOrderInf" resultType="hashmap" parameterType="String">
- SELECT
- toi.OIF_ORDERNO AS oifOrderNo,
- toi.OIF_DESTINATION AS oifDestination,
- toi.OIF_CLEAR_CUSTOM AS oifClearCustom,
- toi.OIF_PRO_CON AS oifProCon,
- tci.CIF_CERT_NO AS cifCretNo,
- tci.CIF_NAME AS cifName,
- iu.USR_NAME AS usrName
- FROM
- tp_order_inf toi
- INNER JOIN tp_company_info tci ON toi.OIF_COM_ID = tci.CIF_ID
- INNER JOIN im_user iu ON iu.USR_ID = toi.OIF_LOGISTICS_ID
- where
- toi.OIF_STT = '13'
- and toi.OIF_ORDERNO = #{orderNo}
- </select>
-
- <select id="queryFinanceTodo" resultType="hashmap">
- SELECT
- toi.OIF_ORDERNO AS 'orderNo',
- tci.CIF_NAME AS 'cifName',
- toi.OIF_STT AS 'stt'
- FROM
- tp_order_inf toi
- LEFT JOIN tp_company_info tci ON toi.OIF_COM_ID = tci.CIF_ID
- WHERE
- toi.OIF_STT IN ('06', '10', '12')
- or OIF_AUTHER = '03'
- </select>
- <select id="selectOrder" resultType="hashmap" parameterType="java.util.Map">
- SELECT
- OIF_ORDERNO "orderno",
- OIF_COM_ID "comId",
- c.`CIF_COR_NAME` "corName",
- c.`CIF_CREDITS` "credits",
- c.`CIF_CREDITS_BALANCE` "creditsBalance",
- OIF_APPLY_DATE "applyDate",
- IFNULL(OIF_TERM , "-") "term",
- OIF_TRANS_TYPE "transType",
- IF((LOCATE('*',OIF_STT)=0),(select apr_showmsg from pub_apppar where APR_CODE = 'ORDER_STT' and APR_VALUE = OIF_STT),
- (select concat(apr_showmsg,'|冻结') from pub_apppar where APR_CODE = 'ORDER_STT' and APR_VALUE = replace(OIF_STT,'*',''))) "sttDesc",
- IF((LOCATE('*',OIF_STT)=0),OIF_STT,'99') "stt",
- OIF_WAYBILL_NO "waybillNo",
- OIF_LOGISTICS_ID "logisticsId",
- OIF_DESTINATION "destination",
- OIF_CLEAR_CUSTOM "clearCustom",
- OIF_MARGIN_AMT "marginAmt",
- OIF_AGENCY_FEE "agencyFee",
- OIF_INSTEREST "insterest",
- OIF_HANDING_FEE "handingFee",
- OIF_LOGISTICE_AMT "logisticeAmt",
- OIF_CLEARANCE_AMT "clearanceAmt",
- OIF_TARRIFF "tarriff",
- OIF_SALE_TAX "saleTax",
- OIF_VAT "vat",
- IF(OIF_TATAL_SUBSIDY='','0',IFNULL(OIF_TATAL_SUBSIDY,'0')) "tatalSubsidy",
- OIF_RETURN_RATIO "returnRatio",
- IF(OIF_RETURN_AMT='','0',IFNULL(OIF_RETURN_AMT,'0')) "returnAmt",
- OIF_GENER_AGREEMENT "generAgreement",
- OIF_PRO_CON "proCon",
- OIF_FORWARD_CON_RUL "forwardConRul",
- OIF_PRODUCT_URL "productUrl",
- OIF_PRODUCT_LOGO "productLogo",
- OIF_APPRIVE_PASS_DATE "apprivePassDate",
- OIF_ESTIMATE_AMOUNT "estimateAmount",
- OIF_EXPIRED_DATE "expiredDate",
- OIF_CREATE_DATE "createDate",
- OIF_CREATE_USER "createUser",
- OIF_REMAIN_AMOUNT "remainAmount",
- OIF_LOANING_AMT "loaningAmt",
- CIF_NAME "companyName",
- if(OIF_CONTRACT_AMT is null,0,CAST(OIF_CONTRACT_AMT AS DECIMAL (20, 6))) "contractAmt",
- OIF_PRO_CON_NO "proConNo",
- OIF_MARGIN_LEVEL "marginLevel",
- OIF_CURRENCY "currency",
- (SELECT GROUP_CONCAT(ODT_NAME SEPARATOR ',') FROM tp_order_detail b WHERE a.OIF_ORDERNO = b.ODT_ORDERNO) "productName",
- (SELECT sum(ODT_COUNT) FROM tp_order_detail c WHERE a.OIF_ORDERNO = c.ODT_ORDERNO) "productNum",
- (CASE WHEN #{newDate,jdbcType=VARCHAR} > OIF_EXPIRED_DATE THEN "已进入宽限期" ELSE "--" END) "overdueState"
-
- FROM
- tp_order_inf a
- LEFT JOIN tp_company_info c ON a.OIF_COM_ID = c.CIF_ID
- where
- 1=1
- <if test="state != null and state!= ''">
- and a.OIF_STT in (${state})
- </if>
- <if test="djState != null and djState !=''">
- and a.OIF_STT like '%*'
- </if>
- <if test="corName != null and corName != ''">
- and c.CIF_NAME like CONCAT('%', #{corName,jdbcType=VARCHAR}, '%')
- </if>
- <if test="orderNo != null and orderNo != ''">
- and a.OIF_ORDERNO like CONCAT('%', #{orderNo,jdbcType=VARCHAR}, '%')
- </if>
- <if test="companyId != null and companyId != ''">
- and a.OIF_COM_ID = #{companyId,jdbcType=VARCHAR}
- </if>
- <if test="dates!=null and dates != ''">
- and substr(a.OIF_CREATE_DATE,1,8) between substr((#{dates,jdbcType=VARCHAR}),1,8)
- and substr((#{dates,jdbcType=VARCHAR}),12,19)
- </if>
- <if test="type != null and type!= ''">
- and (SELECT COUNT(1) FROM tp_approve_auth h WHERE h.AAH_APPLYNO=a.OIF_ORDERNO and
- AAH_RESULT = "0" and h.AAH_BATCH = a.OIF_BATCH) = #{type,jdbcType=VARCHAR}
-
- </if>
- <if test="beOverdue != null and beOverdue!= ''">
- and #{newDate,jdbcType=VARCHAR} > OIF_EXPIRED_DATE
- </if>
- <if test="imUserId != null and imUserId != ''">
- and a.OIF_MANAGER_NO = #{imUserId, jdbcType=VARCHAR}
- </if>
-
- ORDER BY OIF_CREATE_DATE DESC
- </select>
- <select id="selectOrderAuth" resultType="hashmap" parameterType="java.util.Map">
- SELECT
- OIF_ORDERNO "orderno",
- OIF_COM_ID "comId",
- c.`CIF_COR_NAME` "corName",
- c.`CIF_CREDITS` "credits",
- c.`CIF_CREDITS_BALANCE` "creditsBalance",
- OIF_APPLY_DATE "applyDate",
- IFNULL(OIF_TERM , "-") "term",
- OIF_TRANS_TYPE "transType",
- OIF_STT "stt",
- OIF_WAYBILL_NO "waybillNo",
- OIF_LOGISTICS_ID "logisticsId",
- OIF_DESTINATION "destination",
- OIF_CLEAR_CUSTOM "clearCustom",
- OIF_MARGIN_AMT "marginAmt",
- OIF_AGENCY_FEE "agencyFee",
- OIF_INSTEREST "insterest",
- OIF_HANDING_FEE "handingFee",
- OIF_LOGISTICE_AMT "logisticeAmt",
- OIF_CLEARANCE_AMT "clearanceAmt",
- OIF_TARRIFF "tarriff",
- OIF_SALE_TAX "saleTax",
- OIF_VAT "vat",
- OIF_TATAL_SUBSIDY "tatalSubsidy",
- OIF_RETURN_RATIO "returnRatio",
- OIF_RETURN_AMT "returnAmt",
- OIF_GENER_AGREEMENT "generAgreement",
- OIF_PRO_CON "proCon",
- OIF_FORWARD_CON_RUL "forwardConRul",
- OIF_PRODUCT_URL "productUrl",
- OIF_PRODUCT_LOGO "productLogo",
- OIF_APPRIVE_PASS_DATE "apprivePassDate",
- OIF_EXPIRED_DATE "expiredDate",
- OIF_CREATE_DATE "createDate",
- OIF_CREATE_USER "createUser",
- OIF_REMAIN_AMOUNT "remainAmount",
- OIF_LOANING_AMT "loaningAmt",
- CIF_NAME "companyName",
- (SELECT GROUP_CONCAT(ODT_NAME SEPARATOR ',') FROM tp_order_detail b WHERE a.OIF_ORDERNO = b.ODT_ORDERNO) "productName",
- (SELECT sum(ODT_COUNT) FROM tp_order_detail c WHERE a.OIF_ORDERNO = c.ODT_ORDERNO) "productNum",
- (CASE WHEN #{newDate,jdbcType=VARCHAR} > OIF_EXPIRED_DATE THEN "已进入宽限期" ELSE "--" END) "overdueState"
- FROM
- tp_order_inf a
- LEFT JOIN tp_company_info c ON a.OIF_COM_ID = c.CIF_ID
- where 1=1 and a.OIF_STT ='03'
- and OIF_AUTHER = #{auther,jdbcType=VARCHAR}
- ORDER BY OIF_CREATE_DATE DESC
- </select>
- <select id="selectOrderStatistics" resultType="hashmap" parameterType="java.util.Map">
-
- SELECT
- OIF_STT "stt",
- COUNT(1) "num"
- FROM tp_order_inf GROUP BY OIF_STT
-
- </select>
- <select id="selectValuationGoods" resultType="hashmap" parameterType="java.util.Map">
- SELECT
- ODT_ID "detailId",
- ODT_NAME "name",
- (ODT_PRICE_CIF*ODT_COUNT*0.9) "detailValuation",
- (SELECT SUM((ODT_PRICE_CIF*ODT_COUNT*0.9)) FROM tp_order_detail
- where
- 1=1
- <if test="orderNo != null and orderNo!= ''">
- and a.ODT_ORDERNO = #{orderNo,jdbcType=VARCHAR}
- </if>
- ) "orderValuation"
- FROM tp_order_detail a
- WHERE
- 1=1
- <if test="orderNo != null and orderNo!= ''">
- and a.ODT_ORDERNO = #{orderNo,jdbcType=VARCHAR}
- </if>
-
- </select>
- <select id="selectValuationGoodsB" resultType="hashmap" parameterType="java.util.Map">
- SELECT
- OIF_ORDERNO "orderno",
- OIF_LOANING_AMT "loaningAmt",
- (SELECT ROUND(SUM((ODT_PRICE_CIF*ODT_COUNT)*0.9),2) FROM tp_order_detail
- where
- 1=1
- <if test="orderNo != null and orderNo!= ''">
- and ODT_ORDERNO = #{orderNo,jdbcType=VARCHAR}
- </if>
- ) "orderValuation"
- from
- tp_order_inf a
- where 1=1
- <if test="orderNo != null and orderNo!= ''">
- and a.OIF_ORDERNO = #{orderNo,jdbcType=VARCHAR}
- </if>
-
- </select>
- <select id="queryOrderApproval" resultType="hashmap" parameterType="java.util.Map">
- SELECT
- AAH_FLOWNO "flowno",
- AAH_APPLYNO "applyno",
- AAH_STT "stt",
- AAH_USER "user",
- AAH_AUTHTIME "authtime",
- AAH_RESULT "result",
- AAH_OPINION "opinion",
- AAH_AUTH_TYPE "authType",
- b.USR_NAME "name"
- FROM tp_approve_auth a
- inner join tp_order_inf c on c.OIF_BATCH = a.AAH_BATCH and c.OIF_ORDERNO = a.AAH_APPLYNO
- left join im_user b on b.USR_ID = a.AAH_USER
- where 1=1
- <if test="orderNo != null and orderNo!= ''">
- and a.AAH_APPLYNO = #{orderNo,jdbcType=VARCHAR}
- </if>
- <if test="authType != null and authType!= ''">
- and a.AAH_AUTH_TYPE = #{authType,jdbcType=VARCHAR}
- </if>
- ORDER BY a.AAH_AUTHTIME desc
- </select>
- <select id="queryOrderApproval_down" resultType="hashmap" parameterType="java.util.Map">
- SELECT
- AAH_FLOWNO "flowno",
- AAH_APPLYNO "applyno",
- AAH_STT "stt",
- AAH_USER "user",
- AAH_AUTHTIME "authtime",
- AAH_RESULT "result",
- AAH_OPINION "opinion",
- AAH_AUTH_TYPE "authType",
- b.USR_NAME "name"
- FROM tp_approve_auth a
- inner join tp_order_inf c on c.OIF_BATCH = a.AAH_BATCH and c.OIF_ORDERNO = a.AAH_APPLYNO
- left join im_user b on b.USR_ID = a.AAH_USER
- where 1=1
- <if test="orderNo != null and orderNo!= ''">
- and a.AAH_APPLYNO = #{orderNo,jdbcType=VARCHAR}
- </if>
- <if test="authType != null and authType!= ''">
- and a.AAH_AUTH_TYPE = #{authType,jdbcType=VARCHAR}
- </if>
- ORDER BY a.AAH_AUTHTIME asc
- </select>
- <select id="queryOrderPayment" resultType="hashmap" parameterType="java.util.Map">
- SELECT
- CFT_FLOWNO "flowno",
- CFT_ORDERNO "orderno",
- CFT_VOUCHER_NO "voucherNo",
- CFT_SUBJECTS "subjects",
- CFT_BUDGET_TYPE "budgetType",
- CFT_AMT "amt",
- CFT_RECV_ACC_NAME "recvAccName",
- CFT_RECV_ACC_NO "recvAccNo",
- CFT_RECV_ACC_BANK "recvAccBank",
- CFT_PAY_ACC_NAME "payAccName",
- CFT_PAY_ACC_NO "payAccNo",
- CFT_PAY_ACC_BANK "payAccBank",
- CFT_PAY_TIME "payTime",
- CFT_VOUCHER "voucher",
- CFT_CREATE_TIME "createTime",
- CFT_CREATE_USER "createUser",
- b.USR_NAME "createName",
- CFT_TYPE "type"
- FROM tp_capital_flow a
- left join im_user b on b.USR_ID = a.CFT_CREATE_USER
- where 1=1
- <if test="orderNo != null and orderNo!= ''">
- and a.CFT_ORDERNO = #{orderNo,jdbcType=VARCHAR}
- </if>
- ORDER BY CFT_CREATE_TIME DESC
- </select>
-
-
- <select id="queryToDoTask" resultType="hashmap" parameterType="java.util.Map">
- SELECT
- a.OIF_ORDERNO "orderNo",
- a.OIF_STT "stt"
- FROM tp_order_inf a
-
- where a.OIF_STT <![CDATA[<> ]]> '22'
- <if test="usrId != null and usrId != ''">
- and a.OIF_MANAGER_NO = #{usrId,jdbcType=VARCHAR}
- </if>
- ORDER BY a.OIF_MODITY_DATE DESC
- </select>
-
- <select id="queryOrderList" parameterType="java.util.Map" resultType="com.minpay.common.bean.OrderModel">
- SELECT
- toi.OIF_ORDERNO AS 'orderNo',
- tci.CIF_NAME AS 'companyName',
- (
- SELECT
- GROUP_CONCAT(ODT_NAME SEPARATOR ',')
- FROM
- tp_order_detail tod
- WHERE
- toi.OIF_ORDERNO = tod.ODT_ORDERNO
- ) "productName",
- toi.OIF_APPRIVE_PASS_DATE AS 'passDate',
- toi.OIF_TERM AS 'term',
- toi.OIF_EXPIRED_DATE AS 'expiredDate',
- (
- CASE toi.OIF_STT
- WHEN '00' THEN
- '已申请'
- WHEN '01' THEN
- '已提交'
- WHEN '02' THEN
- '估值不通过'
- WHEN '03' THEN
- '审批中'
- WHEN '04' THEN
- '审批拒绝'
- WHEN '05' THEN
- '合同已签署'
- WHEN '06' THEN
- '预付款已支付'
- WHEN '10' THEN
- '已支付供应商订货款'
- WHEN '11' THEN
- '货品生产完成'
- WHEN '12' THEN
- '已支付供应商尾款'
- WHEN '13' THEN
- '已支付供应商尾款'
- WHEN '20' THEN
- '运输中'
- WHEN '21' THEN
- '货品已入库'
- WHEN '22' THEN
- '已完成'
- END
- ) AS 'stt',
- (CASE WHEN #{newDate,jdbcType=VARCHAR} > OIF_EXPIRED_DATE THEN "宽限期" ELSE "--" END) "overdueState"
- FROM
- tp_order_inf toi
- INNER JOIN tp_company_info tci ON tci.CIF_ID = toi.OIF_COM_ID
- <where>
- <if test="corName != null and corName != ''">
- tci.CIF_NAME like CONCAT('%',#{corName},'%')
- </if>
- <if test="orderNo != null and orderNo != ''">
- and toi.OIF_ORDERNO like CONCAT('%',#{orderNo},'%')
- </if>
- <if test="state != null and state != ''">
- and toi.OIF_STT = #{state}
- </if>
- <if test="beginDate != null and beginDate != ''">
- <![CDATA[and toi.OIF_APPLY_DATE >= #{beginDate}]]>
- </if>
- <if test="endDate != null and endDate != ''">
- <![CDATA[and toi.OIF_APPLY_DATE <= #{endDate}]]>
- </if>
- </where>
- </select>
- <select id="queryOrderAmt" resultType="hashmap" parameterType="java.util.Map">
- SELECT
- sum(t.OIF_TOTAL_AMT) "orderAmt"
- FROM tp_order_inf t
- where 1=1
- <if test="imUserId != null and imUserId != ''">
- and t.OIF_MANAGER_NO = #{imUserId, jdbcType=VARCHAR}
- </if>
- </select>
-
- <select id="queryLoanList" resultType="com.minpay.common.bean.LoanModel" parameterType="java.util.Map">
- SELECT
- DISTINCT
- tci.CIF_NAME AS 'companyName',
- tci.CIF_ID AS 'userId',
- cast(
- tad.ADL_TRXAMOUT AS DECIMAL (20, 6)
- ) AS 'loaningAmt',
- toi.OIF_APPLY_DATE AS 'applyDate',
- toi.OIF_ORDERNO AS 'orderNo',
- tci.CIF_NAME AS 'corName'
- FROM
- tp_company_info tci
- LEFT JOIN im_user iu ON iu.USR_COMID = tci.CIF_ID
- LEFT JOIN tp_credit_apply tca ON tca.CAP_COM_ID = tci.CIF_ID
- LEFT JOIN tp_order_inf toi ON toi.OIF_COM_ID = tci.CIF_ID
- LEFT JOIN tp_acc_detail tad ON tad.ADL_REL_NO = toi.OIF_ORDERNO
- <where>
- tad.ADL_ACCNO = #{userId}
- <if test="corName != null and corName != ''">
- and tci.CIF_NAME like CONCAT('%',#{corName},'%')
- </if>
- <if test="beginDate != null and beginDate != ''">
- <![CDATA[ and toi.OIF_APPLY_DATE >= #{beginDate}]]>
- </if>
- <if test="endDate != null and endDate != ''">
- <![CDATA[and toi.OIF_APPLY_DATE <= #{endDate}]]>
- </if>
- </where>
- </select>
- <select id="queryOrderDetailsB" resultType="hashmap" parameterType="java.util.Map">
- SELECT
- ODT_ID "id",
- ODT_ORDERNO "orderno",
- ODT_NAME "name",
- ODT_CATEGORY "category",
- ODT_BRAND "brand",
- ODT_ORIGIN_COUNTRY "originCountry",
- ODT_NORMS "norms",
- ODT_VALIDITY "validity",
- ODT_PRICE_EXIT "priceExit",
- ODT_PRICE_CIF "priceCif",
- ODT_PRICE_SALE "priceSale",
- ODT_COUNT "zcount",
- ODT_SUM_AMT "sumAmt",
- ODT_Margin_level "marginLevel",
- '' AS 'outDate',
- '0' AS 'actualCount',
- (SELECT tod.ODT_COUNT- IFNULL(SUM(CIF_COUNT),0) FROM tp_outwh_flow a WHERE a.CIF_PROD_ID = tod.ODT_ID) "count"
- FROM
- tp_order_detail tod
- WHERE 1=1 and tod.ODT_ORDERNO = #{orderNo}
- </select>
-
- <select id="quertCustomerTodo" resultType="hashmap" parameterType="java.util.Map">
- SELECT DISTINCT
- a.*
- FROM
- (
- (
- SELECT DISTINCT
- tci.CIF_ID AS 'orderNo',
- tci.CIF_NAME AS 'cifName',
- 'stt' AS 'stt',
- tci.CIF_CREATE_TIME
- FROM
- tp_company_info tci
- INNER JOIN tp_credit_apply tca ON tca.CAP_COM_ID = tci.CIF_ID
- WHERE
- CAP_STT = '00'
- AND CIF_MANAGER_NO = #{managerNo}
- ORDER BY
- tci.CIF_CREATE_TIME DESC
- )
- UNION ALL
- (
- SELECT DISTINCT
- (
- CASE
- WHEN toi.OIF_STT = '01' THEN
- tci.CIF_ID
- ELSE
- toi.OIF_ORDERNO
- END
- ) AS 'orderNo',
- tci.CIF_NAME 'cifName',
- toi.OIF_STT AS 'stt',
- tci.CIF_CREATE_TIME
- FROM
- tp_order_inf toi
- LEFT JOIN tp_company_info tci ON toi.OIF_COM_ID = tci.CIF_ID
- WHERE
- OIF_STT IN ('01', '04', '11', '21')
- AND OIF_MANAGER_NO = #{managerNo}
- ORDER BY
- tci.CIF_CREATE_TIME DESC
- )
- UNION ALL
- (
- SELECT DISTINCT
- toi.OIF_ORDERNO AS 'orderNo',
- tci.CIF_NAME 'cifName',
- 'std' AS 'stt',
- tci.CIF_CREATE_TIME
- FROM
- tp_order_inf toi
- LEFT JOIN tp_company_info tci ON toi.OIF_COM_ID = tci.CIF_ID
- WHERE
- #{newDate,jdbcType=VARCHAR} > OIF_EXPIRED_DATE
- AND OIF_MANAGER_NO = #{managerNo}
- ORDER BY
- tci.CIF_CREATE_TIME DESC
- )
- UNION ALL
- (
- SELECT DISTINCT
- toi.OIF_ORDERNO AS 'orderNo',
- tci.CIF_NAME AS 'cifName',
- 'stc' AS 'stt',
- tci.CIF_CREATE_TIME
- FROM
- tp_order_inf toi
- INNER JOIN tp_company_info tci ON toi.OIF_COM_ID = tci.CIF_ID
- WHERE
- OIF_STT = '00'
- AND CIF_MANAGER_NO = #{managerNo}
- ORDER BY
- tci.CIF_CREATE_TIME DESC
- )
- UNION ALL
- (
- SELECT DISTINCT
- tci.CIF_ID 'orderNo',
- tci.CIF_NAME 'cifName',
- '01' AS 'stt',
- tci.CIF_CREATE_TIME
- FROM
- tp_company_info tci
- INNER JOIN im_user iu ON tci.CIF_ID = iu.USR_COMID
- WHERE
- CIF_STT = '01'
- AND CIF_MANAGER_NO = #{managerNo}
- ORDER BY
- tci.CIF_CREATE_TIME DESC
- )
- ) a ORDER BY
- CIF_CREATE_TIME DESC
- </select>
-
- <select id="getOutFlowDetail" resultType="hashmap" parameterType="java.util.Map">
- SELECT DISTINCT
- CIF_BATCH_NO AS batchNo,
- CIF_OTHER_FEE AS otherFee,
- CIF_STOAGE_FEE AS stoageFee,
- CIF_TOTAL_FEE AS totalFee
- FROM
- tp_outwh_flow
- WHERE
- CIF_ORDER_NO = #{orderNo}
- AND CIF_TOTAL_FEE != ''
- ORDER BY
- CIF_BATCH_NO
- </select>
-
- </mapper>
|