|
@@ -15,6 +15,7 @@
|
|
<result property="fGoodsid" column="f_goodsid"/>
|
|
<result property="fGoodsid" column="f_goodsid"/>
|
|
<result property="fTrademodeid" column="f_trademodeid"/>
|
|
<result property="fTrademodeid" column="f_trademodeid"/>
|
|
<result property="fPreqty" column="f_preqty"/>
|
|
<result property="fPreqty" column="f_preqty"/>
|
|
|
|
+ <result property="fWarehouseid" column="f_warehouseid"/>
|
|
<result property="fPregrossweight" column="f_pregrossweight"/>
|
|
<result property="fPregrossweight" column="f_pregrossweight"/>
|
|
<result property="fPrenetweight" column="f_prenetweight"/>
|
|
<result property="fPrenetweight" column="f_prenetweight"/>
|
|
<result property="fQtyd" column="f_qtyD"/>
|
|
<result property="fQtyd" column="f_qtyD"/>
|
|
@@ -40,7 +41,7 @@
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTWhgenlegVo">
|
|
<sql id="selectTWhgenlegVo">
|
|
- select f_accyear, f_id, f_accmonth, f_corpid, f_mblno, f_originalbillno, f_marks, f_warehouse_locationid, f_goodsid, f_trademodeid, f_preqty, f_pregrossweight, f_prenetweight, f_qtyD, f_volumnD, f_grossweightD, f_netweightD, f_volumnC, f_qtyC, f_qtyblc, f_grossweightC, f_netweightC, f_grossweightblc, f_netweightblc, f_cntrno, f_status, del_flag, create_by, create_time, update_by, update_time, remark from t_whgenleg
|
|
|
|
|
|
+ select f_accyear, f_id, f_accmonth, f_corpid, f_mblno, f_warehouseid, f_originalbillno, f_marks, f_warehouse_locationid, f_goodsid, f_trademodeid, f_preqty, f_pregrossweight, f_prenetweight, f_qtyD, f_volumnD, f_grossweightD, f_netweightD, f_volumnC, f_qtyC, f_qtyblc, f_grossweightC, f_netweightC, f_grossweightblc, f_netweightblc, f_cntrno, f_status, del_flag, create_by, create_time, update_by, update_time, remark from t_whgenleg
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectTWhgenlegList" parameterType="TWhgenleg" resultMap="TWhgenlegResult">
|
|
<select id="selectTWhgenlegList" parameterType="TWhgenleg" resultMap="TWhgenlegResult">
|
|
@@ -54,6 +55,7 @@
|
|
<if test="fPrenetweight != null ">and f_prenetweight = #{fPrenetweight}</if>
|
|
<if test="fPrenetweight != null ">and f_prenetweight = #{fPrenetweight}</if>
|
|
<if test="fQtyd != null ">and f_qtyD = #{fQtyd}</if>
|
|
<if test="fQtyd != null ">and f_qtyD = #{fQtyd}</if>
|
|
<if test="fVolumnd != null ">and f_volumnD = #{fVolumnd}</if>
|
|
<if test="fVolumnd != null ">and f_volumnD = #{fVolumnd}</if>
|
|
|
|
+ <if test="fWarehouseid != null ">and f_warehouseid = #{fWarehouseid}</if>
|
|
<if test="fGrossweightd != null ">and f_grossweightD = #{fGrossweightd}</if>
|
|
<if test="fGrossweightd != null ">and f_grossweightD = #{fGrossweightd}</if>
|
|
<if test="fNetweightd != null ">and f_netweightD = #{fNetweightd}</if>
|
|
<if test="fNetweightd != null ">and f_netweightD = #{fNetweightd}</if>
|
|
<if test="fVolumnc != null ">and f_volumnC = #{fVolumnc}</if>
|
|
<if test="fVolumnc != null ">and f_volumnC = #{fVolumnc}</if>
|
|
@@ -70,11 +72,14 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectInventoryList" parameterType="TWhgenleg" resultType="Map">
|
|
<select id="selectInventoryList" parameterType="TWhgenleg" resultType="Map">
|
|
- SELECT
|
|
|
|
|
|
+ select
|
|
leg.f_id AS fId,
|
|
leg.f_id AS fId,
|
|
corp.f_name AS fCorpid,
|
|
corp.f_name AS fCorpid,
|
|
- ware.f_name AS fWarehouseLocationid,
|
|
|
|
|
|
+ area.f_name AS fWarehouseLocationid,
|
|
|
|
+ leg.f_warehouse_locationid AS fWarehouseLocationids,
|
|
|
|
+ leg.f_trademodeid AS fTrademodeid,
|
|
goods.f_name AS fGoodsid,
|
|
goods.f_name AS fGoodsid,
|
|
|
|
+ leg.f_goodsid AS fGoodsids,
|
|
leg.f_volumnD AS fVolumnD,
|
|
leg.f_volumnD AS fVolumnD,
|
|
leg.f_qtyD AS fQtyD,
|
|
leg.f_qtyD AS fQtyD,
|
|
leg.f_mblno AS fMblno,
|
|
leg.f_mblno AS fMblno,
|
|
@@ -88,12 +93,12 @@
|
|
leg.f_grossweightblc AS fGrossweightblc,
|
|
leg.f_grossweightblc AS fGrossweightblc,
|
|
leg.f_netweightblc AS fNetweightblc,
|
|
leg.f_netweightblc AS fNetweightblc,
|
|
leg.f_marks AS fMarks,
|
|
leg.f_marks AS fMarks,
|
|
- DATE_FORMAT(leg.create_time,'%Y-%m-%d') AS createTime,
|
|
|
|
|
|
+ DATE_FORMAT( leg.create_time, '%Y-%m-%d' ) AS createTime,
|
|
leg.f_cntrno AS fCntrno
|
|
leg.f_cntrno AS fCntrno
|
|
FROM
|
|
FROM
|
|
t_whgenleg leg
|
|
t_whgenleg leg
|
|
LEFT JOIN t_corps corp ON corp.f_id = leg.f_corpid
|
|
LEFT JOIN t_corps corp ON corp.f_id = leg.f_corpid
|
|
- LEFT JOIN t_warehouse ware ON ware.f_id = leg.f_warehouse_locationid
|
|
|
|
|
|
+ LEFT JOIN t_warehouse_area area ON area.f_id = leg.f_warehouse_locationid
|
|
LEFT JOIN t_goods goods ON goods.f_id = leg.f_goodsid
|
|
LEFT JOIN t_goods goods ON goods.f_id = leg.f_goodsid
|
|
<where>
|
|
<where>
|
|
<if test="fOriginalbillno != null and fOriginalbillno != ''">and leg.f_originalbillno = #{fOriginalbillno}</if>
|
|
<if test="fOriginalbillno != null and fOriginalbillno != ''">and leg.f_originalbillno = #{fOriginalbillno}</if>
|
|
@@ -103,6 +108,7 @@
|
|
<if test="fPregrossweight != null ">and leg.f_pregrossweight = #{fPregrossweight}</if>
|
|
<if test="fPregrossweight != null ">and leg.f_pregrossweight = #{fPregrossweight}</if>
|
|
<if test="fPrenetweight != null ">and leg.f_prenetweight = #{fPrenetweight}</if>
|
|
<if test="fPrenetweight != null ">and leg.f_prenetweight = #{fPrenetweight}</if>
|
|
<if test="fQtyd != null ">and leg.f_qtyD = #{fQtyd}</if>
|
|
<if test="fQtyd != null ">and leg.f_qtyD = #{fQtyd}</if>
|
|
|
|
+ <if test="fWarehouseid != null ">and leg.f_warehouseid = #{fWarehouseid}</if>
|
|
<if test="fVolumnd != null ">and leg.f_volumnD = #{fVolumnd}</if>
|
|
<if test="fVolumnd != null ">and leg.f_volumnD = #{fVolumnd}</if>
|
|
<if test="fGrossweightd != null ">and leg.f_grossweightD = #{fGrossweightd}</if>
|
|
<if test="fGrossweightd != null ">and leg.f_grossweightD = #{fGrossweightd}</if>
|
|
<if test="fNetweightd != null ">and leg.f_netweightD = #{fNetweightd}</if>
|
|
<if test="fNetweightd != null ">and leg.f_netweightD = #{fNetweightd}</if>
|
|
@@ -143,29 +149,30 @@
|
|
<if test="fAccmonth != null">f_accmonth,</if>
|
|
<if test="fAccmonth != null">f_accmonth,</if>
|
|
<if test="fCorpid != null">f_corpid,</if>
|
|
<if test="fCorpid != null">f_corpid,</if>
|
|
<if test="fMblno != null">f_mblno,</if>
|
|
<if test="fMblno != null">f_mblno,</if>
|
|
- <if test="fOriginalbillno != null and fOriginalbillno != ''">f_originalbillno,</if>
|
|
|
|
|
|
+ <if test="fOriginalbillno != null">f_originalbillno,</if>
|
|
<if test="fWarehouseLocationid != null">f_warehouse_locationid,</if>
|
|
<if test="fWarehouseLocationid != null">f_warehouse_locationid,</if>
|
|
<if test="fGoodsid != null">f_goodsid,</if>
|
|
<if test="fGoodsid != null">f_goodsid,</if>
|
|
<if test="fTrademodeid != null">f_trademodeid,</if>
|
|
<if test="fTrademodeid != null">f_trademodeid,</if>
|
|
<if test="fPreqty != null">f_preqty,</if>
|
|
<if test="fPreqty != null">f_preqty,</if>
|
|
|
|
+ <if test="fWarehouseid != null">f_warehouseid,</if>
|
|
<if test="fPregrossweight != null">f_pregrossweight,</if>
|
|
<if test="fPregrossweight != null">f_pregrossweight,</if>
|
|
<if test="fPrenetweight != null">f_prenetweight,</if>
|
|
<if test="fPrenetweight != null">f_prenetweight,</if>
|
|
- <if test="fQtyd != null">f_qtyD,</if>
|
|
|
|
<if test="fVolumnd != null">f_volumnD,</if>
|
|
<if test="fVolumnd != null">f_volumnD,</if>
|
|
|
|
+ <if test="fQtyd != null">f_qtyD,</if>
|
|
<if test="fGrossweightd != null">f_grossweightD,</if>
|
|
<if test="fGrossweightd != null">f_grossweightD,</if>
|
|
<if test="fNetweightd != null">f_netweightD,</if>
|
|
<if test="fNetweightd != null">f_netweightD,</if>
|
|
<if test="fVolumnc != null">f_volumnC,</if>
|
|
<if test="fVolumnc != null">f_volumnC,</if>
|
|
<if test="fQtyc != null">f_qtyC,</if>
|
|
<if test="fQtyc != null">f_qtyC,</if>
|
|
- <if test="fMarks != null and fMarks != ''">f_marks,</if>
|
|
|
|
<if test="fQtyblc != null">f_qtyblc,</if>
|
|
<if test="fQtyblc != null">f_qtyblc,</if>
|
|
<if test="fGrossweightc != null">f_grossweightC,</if>
|
|
<if test="fGrossweightc != null">f_grossweightC,</if>
|
|
- <if test="fNetweightc != null">f_netweightC,</if>
|
|
|
|
<if test="fGrossweightblc != null">f_grossweightblc,</if>
|
|
<if test="fGrossweightblc != null">f_grossweightblc,</if>
|
|
|
|
+ <if test="fNetweightc != null">f_netweightC,</if>
|
|
<if test="fNetweightblc != null">f_netweightblc,</if>
|
|
<if test="fNetweightblc != null">f_netweightblc,</if>
|
|
<if test="fCntrno != null">f_cntrno,</if>
|
|
<if test="fCntrno != null">f_cntrno,</if>
|
|
<if test="fStatus != null">f_status,</if>
|
|
<if test="fStatus != null">f_status,</if>
|
|
<if test="delFlag != null">del_flag,</if>
|
|
<if test="delFlag != null">del_flag,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
+ <if test="fMarks != null and fMarks != ''">f_marks,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
@@ -177,29 +184,30 @@
|
|
<if test="fAccmonth != null">#{fAccmonth},</if>
|
|
<if test="fAccmonth != null">#{fAccmonth},</if>
|
|
<if test="fCorpid != null">#{fCorpid},</if>
|
|
<if test="fCorpid != null">#{fCorpid},</if>
|
|
<if test="fMblno != null">#{fMblno},</if>
|
|
<if test="fMblno != null">#{fMblno},</if>
|
|
- <if test="fOriginalbillno != null and fOriginalbillno != ''">#{fOriginalbillno},</if>
|
|
|
|
|
|
+ <if test="fOriginalbillno != null">#{fOriginalbillno},</if>
|
|
<if test="fWarehouseLocationid != null">#{fWarehouseLocationid},</if>
|
|
<if test="fWarehouseLocationid != null">#{fWarehouseLocationid},</if>
|
|
<if test="fGoodsid != null">#{fGoodsid},</if>
|
|
<if test="fGoodsid != null">#{fGoodsid},</if>
|
|
<if test="fTrademodeid != null">#{fTrademodeid},</if>
|
|
<if test="fTrademodeid != null">#{fTrademodeid},</if>
|
|
<if test="fPreqty != null">#{fPreqty},</if>
|
|
<if test="fPreqty != null">#{fPreqty},</if>
|
|
|
|
+ <if test="fWarehouseid != null">#{fWarehouseid},</if>
|
|
<if test="fPregrossweight != null">#{fPregrossweight},</if>
|
|
<if test="fPregrossweight != null">#{fPregrossweight},</if>
|
|
<if test="fPrenetweight != null">#{fPrenetweight},</if>
|
|
<if test="fPrenetweight != null">#{fPrenetweight},</if>
|
|
- <if test="fQtyd != null">#{fQtyd},</if>
|
|
|
|
<if test="fVolumnd != null">#{fVolumnd},</if>
|
|
<if test="fVolumnd != null">#{fVolumnd},</if>
|
|
|
|
+ <if test="fQtyd != null">#{fQtyd},</if>
|
|
<if test="fGrossweightd != null">#{fGrossweightd},</if>
|
|
<if test="fGrossweightd != null">#{fGrossweightd},</if>
|
|
<if test="fNetweightd != null">#{fNetweightd},</if>
|
|
<if test="fNetweightd != null">#{fNetweightd},</if>
|
|
- <if test="fMarks != null and fMarks != ''">#{fMarks},</if>
|
|
|
|
<if test="fVolumnc != null">#{fVolumnc},</if>
|
|
<if test="fVolumnc != null">#{fVolumnc},</if>
|
|
<if test="fQtyc != null">#{fQtyc},</if>
|
|
<if test="fQtyc != null">#{fQtyc},</if>
|
|
<if test="fQtyblc != null">#{fQtyblc},</if>
|
|
<if test="fQtyblc != null">#{fQtyblc},</if>
|
|
<if test="fGrossweightc != null">#{fGrossweightc},</if>
|
|
<if test="fGrossweightc != null">#{fGrossweightc},</if>
|
|
- <if test="fNetweightc != null">#{fNetweightc},</if>
|
|
|
|
<if test="fGrossweightblc != null">#{fGrossweightblc},</if>
|
|
<if test="fGrossweightblc != null">#{fGrossweightblc},</if>
|
|
|
|
+ <if test="fNetweightc != null">#{fNetweightc},</if>
|
|
<if test="fNetweightblc != null">#{fNetweightblc},</if>
|
|
<if test="fNetweightblc != null">#{fNetweightblc},</if>
|
|
<if test="fCntrno != null">#{fCntrno},</if>
|
|
<if test="fCntrno != null">#{fCntrno},</if>
|
|
<if test="fStatus != null">#{fStatus},</if>
|
|
<if test="fStatus != null">#{fStatus},</if>
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
+ <if test="fMarks != null and fMarks != ''">#{fMarks},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
@@ -214,29 +222,30 @@
|
|
<if test="fAccmonth != null">f_accmonth = #{fAccmonth},</if>
|
|
<if test="fAccmonth != null">f_accmonth = #{fAccmonth},</if>
|
|
<if test="fCorpid != null">f_corpid = #{fCorpid},</if>
|
|
<if test="fCorpid != null">f_corpid = #{fCorpid},</if>
|
|
<if test="fMblno != null">f_mblno = #{fMblno},</if>
|
|
<if test="fMblno != null">f_mblno = #{fMblno},</if>
|
|
- <if test="fOriginalbillno != null and fOriginalbillno != ''">f_originalbillno = #{fOriginalbillno},</if>
|
|
|
|
|
|
+ <if test="fOriginalbillno != null">f_originalbillno = #{fOriginalbillno},</if>
|
|
<if test="fWarehouseLocationid != null">f_warehouse_locationid = #{fWarehouseLocationid},</if>
|
|
<if test="fWarehouseLocationid != null">f_warehouse_locationid = #{fWarehouseLocationid},</if>
|
|
<if test="fGoodsid != null">f_goodsid = #{fGoodsid},</if>
|
|
<if test="fGoodsid != null">f_goodsid = #{fGoodsid},</if>
|
|
<if test="fTrademodeid != null">f_trademodeid = #{fTrademodeid},</if>
|
|
<if test="fTrademodeid != null">f_trademodeid = #{fTrademodeid},</if>
|
|
<if test="fPreqty != null">f_preqty = #{fPreqty},</if>
|
|
<if test="fPreqty != null">f_preqty = #{fPreqty},</if>
|
|
|
|
+ <if test="fWarehouseid != null">f_warehouseid = #{fWarehouseid},</if>
|
|
<if test="fPregrossweight != null">f_pregrossweight = #{fPregrossweight},</if>
|
|
<if test="fPregrossweight != null">f_pregrossweight = #{fPregrossweight},</if>
|
|
<if test="fPrenetweight != null">f_prenetweight = #{fPrenetweight},</if>
|
|
<if test="fPrenetweight != null">f_prenetweight = #{fPrenetweight},</if>
|
|
- <if test="fQtyd != null">f_qtyD = #{fQtyd},</if>
|
|
|
|
<if test="fVolumnd != null">f_volumnD = #{fVolumnd},</if>
|
|
<if test="fVolumnd != null">f_volumnD = #{fVolumnd},</if>
|
|
|
|
+ <if test="fQtyd != null">f_qtyD = #{fQtyd},</if>
|
|
<if test="fGrossweightd != null">f_grossweightD = #{fGrossweightd},</if>
|
|
<if test="fGrossweightd != null">f_grossweightD = #{fGrossweightd},</if>
|
|
<if test="fNetweightd != null">f_netweightD = #{fNetweightd},</if>
|
|
<if test="fNetweightd != null">f_netweightD = #{fNetweightd},</if>
|
|
<if test="fVolumnc != null">f_volumnC = #{fVolumnc},</if>
|
|
<if test="fVolumnc != null">f_volumnC = #{fVolumnc},</if>
|
|
<if test="fQtyc != null">f_qtyC = #{fQtyc},</if>
|
|
<if test="fQtyc != null">f_qtyC = #{fQtyc},</if>
|
|
<if test="fQtyblc != null">f_qtyblc = #{fQtyblc},</if>
|
|
<if test="fQtyblc != null">f_qtyblc = #{fQtyblc},</if>
|
|
- <if test="fMarks != null and fMarks != ''">f_marks = #{fMarks},</if>
|
|
|
|
<if test="fGrossweightc != null">f_grossweightC = #{fGrossweightc},</if>
|
|
<if test="fGrossweightc != null">f_grossweightC = #{fGrossweightc},</if>
|
|
- <if test="fNetweightc != null">f_netweightC = #{fNetweightc},</if>
|
|
|
|
<if test="fGrossweightblc != null">f_grossweightblc = #{fGrossweightblc},</if>
|
|
<if test="fGrossweightblc != null">f_grossweightblc = #{fGrossweightblc},</if>
|
|
|
|
+ <if test="fNetweightc != null">f_netweightC = #{fNetweightc},</if>
|
|
<if test="fNetweightblc != null">f_netweightblc = #{fNetweightblc},</if>
|
|
<if test="fNetweightblc != null">f_netweightblc = #{fNetweightblc},</if>
|
|
<if test="fCntrno != null">f_cntrno = #{fCntrno},</if>
|
|
<if test="fCntrno != null">f_cntrno = #{fCntrno},</if>
|
|
<if test="fStatus != null">f_status = #{fStatus},</if>
|
|
<if test="fStatus != null">f_status = #{fStatus},</if>
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
+ <if test="fMarks != null and fMarks != ''">f_marks = #{fMarks},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|