手持机平库入 新增,修改,删除库存记录
This commit is contained in:
@@ -46,13 +46,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="theColumn" column="the_column" />
|
||||
<result property="theFloor" column="the_floor" />
|
||||
<result property="roadwayId" column="roadway_id" />
|
||||
<result property="theType" column="the_type" />
|
||||
<result property="theTypeName" column="the_type_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectViewHandAllotStockVo">
|
||||
select stock_id, cargo_space_id, stock_status, product_status, lot_no, in_date, back_date, product_guid, quantity, job_id, tray_code, out_quantity, stockin_detail_id, stockin_id, in_type, in_class_id, warehouse_id, stacking_id, spare1, spare2, spare3, spare4, spare5, spare6, product_id, product_name, voltage, power, phase, net_weight, gross_weight, distribution, model, order_id, spare7, spare8, cargo_space_name,roadway_id,
|
||||
the_platoon,
|
||||
the_column,
|
||||
the_floor from view_hand_allot_stock vhat
|
||||
the_floor,
|
||||
the_type,
|
||||
the_type_name from view_hand_allot_stock vhat
|
||||
</sql>
|
||||
|
||||
<select id="selectViewHandAllotStockList" parameterType="ViewHandAllotStock" resultMap="ViewHandAllotStockResult">
|
||||
|
||||
@@ -85,8 +85,10 @@
|
||||
</select>
|
||||
|
||||
<select id="pkIn" parameterType="java.util.Map" statementType="CALLABLE">
|
||||
{call proc_pk_in(
|
||||
#{v_stockin_detail_id,mode=IN,jdbcType=VARCHAR},
|
||||
{call proc_add_in_pk(
|
||||
#{v_dept_id,mode=IN,jdbcType=VARCHAR},
|
||||
#{v_warehouse_id,mode=IN,jdbcType=VARCHAR},
|
||||
#{v_in_stock_detail_id,mode=IN,jdbcType=VARCHAR},
|
||||
#{v_in_quantity,mode=IN,jdbcType=INTEGER},
|
||||
#{v_result,mode=OUT,jdbcType=INTEGER},
|
||||
#{v_resultmsg,mode=OUT,jdbcType=VARCHAR}
|
||||
@@ -115,6 +117,7 @@
|
||||
{call proc_add_in_job(
|
||||
#{v_tray_code,mode=IN,jdbcType=VARCHAR},
|
||||
#{v_dept_id,mode=IN,jdbcType=VARCHAR},
|
||||
#{v_workshop_id,mode=IN,jdbcType=VARCHAR},
|
||||
#{v_warehouse_id,mode=IN,jdbcType=VARCHAR},
|
||||
#{v_result,mode=OUT,jdbcType=INTEGER},
|
||||
#{v_resultmsg,mode=OUT,jdbcType=VARCHAR}
|
||||
|
||||
@@ -357,7 +357,39 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and bs.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="trayCode != null and trayCode != ''">
|
||||
and bs.tray_code like concat('%',#{trayCode},'%');
|
||||
and bs.tray_code like concat('%',#{trayCode},'%')
|
||||
</if>
|
||||
<if test="roadwayId != null ">
|
||||
and bcs.roadway_id = #{roadwayId}
|
||||
</if>
|
||||
<if test="thePlatoon != null ">
|
||||
and bcs.the_platoon = #{thePlatoon}
|
||||
</if>
|
||||
<if test="theColumn != null ">
|
||||
and bcs.the_column = #{theColumn}
|
||||
</if>
|
||||
<if test="theFloor != null ">
|
||||
and bcs.the_floor = #{theFloor}
|
||||
</if>
|
||||
<if test="spare5 != null and spare5 != ''">
|
||||
and bs.spare5 like concat('%',#{spare5},'%')
|
||||
</if>
|
||||
<if test="orderId != null and orderId != ''">
|
||||
and bs.order_id like concat('%',#{orderId},'%')
|
||||
</if>
|
||||
<if test="power != null and power != ''">
|
||||
and bs.power like concat('%',#{power},'%')
|
||||
</if>
|
||||
<if test="productName != null and productName != ''">
|
||||
and bs.product_name like concat('%',#{productName},'%')
|
||||
</if>
|
||||
<if test="warehouseIdList != null and warehouseIdList.size() > 0">
|
||||
and bs.warehouse_id in
|
||||
<foreach collection="warehouseIdList" open="(" close=")" item="it" separator=",">
|
||||
#{it}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user