手持机部分
This commit is contained in:
@@ -10,16 +10,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="stockinDetailId" column="stockin_detail_id" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="warehouseType" column="warehouse_type" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTrayMsgVo">
|
||||
select id, tray_code, stockin_detail_id, quantity from tray_msg
|
||||
select id, tray_code, stockin_detail_id, quantity,warehouse_id from tray_msg
|
||||
</sql>
|
||||
|
||||
<select id="selectTrayMsgList" parameterType="TrayMsg" resultMap="TrayMsgResult">
|
||||
select t.id, t.tray_code, t.stockin_detail_id, t.quantity,p.product_name from tray_msg t
|
||||
select t.id, t.tray_code, t.stockin_detail_id, t.quantity,p.product_name,t.warehouse_id,w.warehouse_name,w.warehouse_type from tray_msg t
|
||||
left join in_stockin_detail d on t.stockin_detail_id = d.stockin_detail_id
|
||||
left join bas_product p on d.product_id=p.product_id
|
||||
left join bas_warehouse w on t.warehouse_id=w.warehouse_id
|
||||
<where>
|
||||
<if test="trayCode != null and trayCode != ''"> and t.tray_code = #{trayCode}</if>
|
||||
<if test="stockinDetailId != null and stockinDetailId != ''"> and t.stockin_detail_id = #{stockinDetailId}</if>
|
||||
@@ -39,12 +43,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="trayCode != null">tray_code,</if>
|
||||
<if test="stockinDetailId != null">stockin_detail_id,</if>
|
||||
<if test="quantity != null">quantity,</if>
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="trayCode != null">#{trayCode},</if>
|
||||
<if test="stockinDetailId != null">#{stockinDetailId},</if>
|
||||
<if test="quantity != null">#{quantity},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user