|
@@ -99,6 +99,8 @@
|
|
<result property="fCreateLog" column="f_create_log" />
|
|
<result property="fCreateLog" column="f_create_log" />
|
|
<result property="fPrintLog" column="f_print_log" />
|
|
<result property="fPrintLog" column="f_print_log" />
|
|
<result property="fPrint" column="f_print" />
|
|
<result property="fPrint" column="f_print" />
|
|
|
|
+ <result property="fTakeOrders" column="f_take_orders" />
|
|
|
|
+ <result property="fReason" column="f_reason" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="selectTWarehousebillsVo">
|
|
<sql id="selectTWarehousebillsVo">
|
|
select f_id,
|
|
select f_id,
|
|
@@ -194,7 +196,9 @@
|
|
f_purchase,
|
|
f_purchase,
|
|
f_create_log,
|
|
f_create_log,
|
|
f_print_log,
|
|
f_print_log,
|
|
- f_print
|
|
|
|
|
|
+ f_print,
|
|
|
|
+ f_take_orders,
|
|
|
|
+ f_reason
|
|
from t_warehousebills
|
|
from t_warehousebills
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
@@ -1030,6 +1034,8 @@
|
|
<if test="fCreateLog != null">f_create_log,</if>
|
|
<if test="fCreateLog != null">f_create_log,</if>
|
|
<if test="fPrintLog != null">f_print_log,</if>
|
|
<if test="fPrintLog != null">f_print_log,</if>
|
|
<if test="fPrint != null">f_print,</if>
|
|
<if test="fPrint != null">f_print,</if>
|
|
|
|
+ <if test="fTakeOrders != null">f_take_orders,</if>
|
|
|
|
+ <if test="fReason != null">f_reason,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="fBillno != null">#{fBillno},</if>
|
|
<if test="fBillno != null">#{fBillno},</if>
|
|
@@ -1126,6 +1132,8 @@
|
|
<if test="fCreateLog != null">#{fCreateLog},</if>
|
|
<if test="fCreateLog != null">#{fCreateLog},</if>
|
|
<if test="fPrintLog != null">#{fPrintLog},</if>
|
|
<if test="fPrintLog != null">#{fPrintLog},</if>
|
|
<if test="fPrint != null">#{fPrint},</if>
|
|
<if test="fPrint != null">#{fPrint},</if>
|
|
|
|
+ <if test="fTakeOrders != null">#{fTakeOrders},</if>
|
|
|
|
+ <if test="fReason != null">#{fReason},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -1225,6 +1233,8 @@
|
|
<if test="fCreateLog != null">f_create_log = #{fCreateLog},</if>
|
|
<if test="fCreateLog != null">f_create_log = #{fCreateLog},</if>
|
|
<if test="fPrintLog != null">f_print_log = #{fPrintLog},</if>
|
|
<if test="fPrintLog != null">f_print_log = #{fPrintLog},</if>
|
|
<if test="fPrint != null">f_print = #{fPrint},</if>
|
|
<if test="fPrint != null">f_print = #{fPrint},</if>
|
|
|
|
+ <if test="fTakeOrders != null">f_take_orders = #{fTakeOrders},</if>
|
|
|
|
+ <if test="fReason != null">f_reason = #{fReason},</if>
|
|
</trim>
|
|
</trim>
|
|
where f_id = #{fId}
|
|
where f_id = #{fId}
|
|
</update>
|
|
</update>
|
|
@@ -1316,6 +1326,12 @@
|
|
<if test="fLaneid != null">f_laneid = #{fLaneid},</if>
|
|
<if test="fLaneid != null">f_laneid = #{fLaneid},</if>
|
|
<if test="fTypeid != null">f_typeid = #{fTypeid},</if>
|
|
<if test="fTypeid != null">f_typeid = #{fTypeid},</if>
|
|
<if test="fMoney != null">f_money = #{fMoney},</if>
|
|
<if test="fMoney != null">f_money = #{fMoney},</if>
|
|
|
|
+ <if test="fPurchase != null">f_purchase = #{fPurchase},</if>
|
|
|
|
+ <if test="fCreateLog != null">f_create_log = #{fCreateLog},</if>
|
|
|
|
+ <if test="fPrintLog != null">f_print_log = #{fPrintLog},</if>
|
|
|
|
+ <if test="fPrint != null">f_print = #{fPrint},</if>
|
|
|
|
+ <if test="fTakeOrders != null">f_take_orders = #{fTakeOrders},</if>
|
|
|
|
+ <if test="fReason != null">f_reason = #{fReason},</if>
|
|
</trim>
|
|
</trim>
|
|
where f_id = #{fId}
|
|
where f_id = #{fId}
|
|
</update>
|
|
</update>
|
|
@@ -1587,7 +1603,9 @@
|
|
tw.f_paymode,
|
|
tw.f_paymode,
|
|
sda.dict_label paymodeName,
|
|
sda.dict_label paymodeName,
|
|
tw.f_laneid,
|
|
tw.f_laneid,
|
|
- tr.f_name laneidName
|
|
|
|
|
|
+ tr.f_name laneidName,
|
|
|
|
+ tw.f_take_orders,
|
|
|
|
+ tw.f_reason
|
|
FROM t_warehousebills tw
|
|
FROM t_warehousebills tw
|
|
LEFT JOIN t_address address ON address.f_id = tw.f_loadportid
|
|
LEFT JOIN t_address address ON address.f_id = tw.f_loadportid
|
|
LEFT JOIN t_address ta ON ta.f_id = tw.f_loadportid
|
|
LEFT JOIN t_address ta ON ta.f_id = tw.f_loadportid
|
|
@@ -1769,7 +1787,9 @@
|
|
'审批中'
|
|
'审批中'
|
|
WHEN tf.f_billstatus = '6' THEN
|
|
WHEN tf.f_billstatus = '6' THEN
|
|
'审批通过'
|
|
'审批通过'
|
|
- END AS moneyStatus
|
|
|
|
|
|
+ END AS moneyStatus,
|
|
|
|
+ tw.f_take_orders,
|
|
|
|
+ tw.f_reason
|
|
FROM
|
|
FROM
|
|
t_warehousebills tw
|
|
t_warehousebills tw
|
|
LEFT JOIN t_address ta ON ta.f_id = tw.f_laneid
|
|
LEFT JOIN t_address ta ON ta.f_id = tw.f_laneid
|
|
@@ -2007,7 +2027,9 @@
|
|
tw.f_paymode,
|
|
tw.f_paymode,
|
|
sda.dict_label paymodeName,
|
|
sda.dict_label paymodeName,
|
|
tw.f_laneid,
|
|
tw.f_laneid,
|
|
- tr.f_name laneidName
|
|
|
|
|
|
+ tr.f_name laneidName,
|
|
|
|
+ tw.f_take_orders,
|
|
|
|
+ tw.f_reason
|
|
FROM t_warehousebills tw
|
|
FROM t_warehousebills tw
|
|
LEFT JOIN t_address address ON address.f_id = tw.f_loadportid
|
|
LEFT JOIN t_address address ON address.f_id = tw.f_loadportid
|
|
LEFT JOIN t_address ta ON ta.f_id = tw.f_loadportid
|
|
LEFT JOIN t_address ta ON ta.f_id = tw.f_loadportid
|
|
@@ -2307,7 +2329,9 @@
|
|
tw.f_cntval,
|
|
tw.f_cntval,
|
|
tw.f_date_changed,
|
|
tw.f_date_changed,
|
|
tw.f_market_number,
|
|
tw.f_market_number,
|
|
- tw.f_money
|
|
|
|
|
|
+ tw.f_money,
|
|
|
|
+ tw.f_take_orders,
|
|
|
|
+ tw.f_reason
|
|
FROM t_warehousebills tw
|
|
FROM t_warehousebills tw
|
|
LEFT JOIN t_project tp
|
|
LEFT JOIN t_project tp
|
|
ON tw.f_goodsid = tp.f_id
|
|
ON tw.f_goodsid = tp.f_id
|
|
@@ -2431,7 +2455,9 @@
|
|
tr.f_name AS fsbuName,
|
|
tr.f_name AS fsbuName,
|
|
tw.f_create_log,
|
|
tw.f_create_log,
|
|
tw.f_print_log,
|
|
tw.f_print_log,
|
|
- tw.f_print
|
|
|
|
|
|
+ tw.f_print,
|
|
|
|
+ tw.f_take_orders,
|
|
|
|
+ tw.f_reason
|
|
FROM
|
|
FROM
|
|
t_warehousebills tw
|
|
t_warehousebills tw
|
|
LEFT JOIN t_project tp
|
|
LEFT JOIN t_project tp
|
|
@@ -2556,6 +2582,8 @@
|
|
<if test='timeInterval != null and timeInterval[1] != null and timeInterval[1]!= ""'>
|
|
<if test='timeInterval != null and timeInterval[1] != null and timeInterval[1]!= ""'>
|
|
and tw.f_bsdate <= #{timeInterval[1]}
|
|
and tw.f_bsdate <= #{timeInterval[1]}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="fTakeOrders != null "> and tw.f_take_orders = #{fTakeOrders}</if>
|
|
|
|
+ <if test="fReason != null and fReason != ''"> and tw.f_reason = #{fReason}</if>
|
|
</where>
|
|
</where>
|
|
ORDER BY tw.f_bsdate DESC,tw.f_id DESC
|
|
ORDER BY tw.f_bsdate DESC,tw.f_id DESC
|
|
</select>
|
|
</select>
|