修改入库管理 盘点管理联查

This commit is contained in:
liuhanqing
2025-06-10 10:50:24 +08:00
parent be72a0ac13
commit a87bc77cf3
30 changed files with 561 additions and 545 deletions

View File

@@ -61,40 +61,57 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="spare4" column="spare4" />
<result property="spare5" column="spare5" />
<result property="spare6" column="spare6" />
<association property="extraField" javaType="ExtraField">
<result property="productId" column="product_id" />
<result property="materialDesc" column="product_name" />
<result property="englishDesc" column="englishDesc" />
<result property="length" column="length" />
<result property="width" column="width" />
<result property="height" column="height" />
<result property="volume" column="volume" />
<result property="netWeight" column="netWeight" />
</association>
</resultMap>
<sql id="selectReceiveStockinDetailFinishVo">
select stockin_detail_id, stockin_guid, stockin_id, lot_no, product_guid, product_id, quantity, quantity_x, quantity_j, price, cargo_no, remark, assign_num, assign_num_x, assign_num_j, print_date, stock_status, supplier_id, customer_id, unit, spec, spare1, spare2, spare3, spare4, spare5, spare6 from receive_stockin_detail_finish
select rsd.stockin_detail_id, rsd.stockin_guid, rsd.stockin_id, rsd.lot_no, rsd.product_guid, rsd.product_id,
rsd.quantity, rsd.quantity_x, rsd.quantity_j, rsd.price, rsd.cargo_no, rsd.remark, rsd.assign_num,
rsd.assign_num_x, rsd.assign_num_j, rsd.print_date, rsd.stock_status, rsd.supplier_id, rsd.customer_id,
rsd.unit, rsd.spec, rsd.spare1, rsd.spare2, rsd.spare3, rsd.spare4, rsd.spare5, rsd.spare6,
bp.product_name,bp.spare1 as englishDesc,
bp.spare2 as netWeight,bp.spare5 as length,bp.spare6 as width,bp.spare7 as height,bp.spare8 as volume
from receive_stockin_detail_finish rsd
left join bas_product bp on rsd.product_id = bp.product_id
</sql>
<select id="selectReceiveStockinDetailFinishList" parameterType="ReceiveStockinDetailFinish" resultMap="ReceiveStockinDetailFinishResult">
<include refid="selectReceiveStockinDetailFinishVo"/>
<where>
<if test="stockinGuid != null and stockinGuid != ''"> and stockin_guid = #{stockinGuid}</if>
<if test="stockinId != null and stockinId != ''"> and stockin_id = #{stockinId}</if>
<if test="lotNo != null and lotNo != ''"> and lot_no = #{lotNo}</if>
<if test="productGuid != null and productGuid != ''"> and product_guid = #{productGuid}</if>
<if test="productId != null and productId != ''"> and product_id = #{productId}</if>
<if test="quantity != null and quantity != ''"> and quantity = #{quantity}</if>
<if test="quantityX != null and quantityX != ''"> and quantity_x = #{quantityX}</if>
<if test="quantityJ != null and quantityJ != ''"> and quantity_j = #{quantityJ}</if>
<if test="price != null and price != ''"> and price = #{price}</if>
<if test="cargoNo != null and cargoNo != ''"> and cargo_no = #{cargoNo}</if>
<if test="assignNum != null and assignNum != ''"> and assign_num = #{assignNum}</if>
<if test="assignNumX != null and assignNumX != ''"> and assign_num_x = #{assignNumX}</if>
<if test="assignNumJ != null and assignNumJ != ''"> and assign_num_j = #{assignNumJ}</if>
<if test="printDate != null and printDate != ''"> and print_date = #{printDate}</if>
<if test="stockStatus != null and stockStatus != ''"> and stock_status = #{stockStatus}</if>
<if test="supplierId != null and supplierId != ''"> and supplier_id = #{supplierId}</if>
<if test="customerId != null and customerId != ''"> and customer_id = #{customerId}</if>
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
<if test="spec != null and spec != ''"> and spec = #{spec}</if>
<if test="spare1 != null and spare1 != ''"> and spare1 = #{spare1}</if>
<if test="spare2 != null and spare2 != ''"> and spare2 = #{spare2}</if>
<if test="spare3 != null and spare3 != ''"> and spare3 = #{spare3}</if>
<if test="spare4 != null and spare4 != ''"> and spare4 = #{spare4}</if>
<if test="spare5 != null and spare5 != ''"> and spare5 = #{spare5}</if>
<if test="spare6 != null and spare6 != ''"> and spare6 = #{spare6}</if>
<if test="stockinGuid != null and stockinGuid != ''"> and rsd.stockin_guid = #{stockinGuid}</if>
<if test="stockinId != null and stockinId != ''"> and rsd.stockin_id = #{stockinId}</if>
<if test="lotNo != null and lotNo != ''"> and rsd.lot_no = #{lotNo}</if>
<if test="productGuid != null and productGuid != ''"> and rsd.product_guid = #{productGuid}</if>
<if test="productId != null and productId != ''"> and rsd.product_id = #{productId}</if>
<if test="quantity != null and quantity != ''"> and rsd.quantity = #{quantity}</if>
<if test="quantityX != null and quantityX != ''"> and rsd.quantity_x = #{quantityX}</if>
<if test="quantityJ != null and quantityJ != ''"> and rsd.quantity_j = #{quantityJ}</if>
<if test="price != null and price != ''"> and rsd.price = #{price}</if>
<if test="cargoNo != null and cargoNo != ''"> and rsd.cargo_no = #{cargoNo}</if>
<if test="assignNum != null and assignNum != ''"> and rsd.assign_num = #{assignNum}</if>
<if test="assignNumX != null and assignNumX != ''"> and rsd.assign_num_x = #{assignNumX}</if>
<if test="assignNumJ != null and assignNumJ != ''"> and rsd.assign_num_j = #{assignNumJ}</if>
<if test="printDate != null and printDate != ''"> and rsd.print_date = #{printDate}</if>
<if test="stockStatus != null and stockStatus != ''"> and rsd.stock_status = #{stockStatus}</if>
<if test="supplierId != null and supplierId != ''"> and rsd.supplier_id = #{supplierId}</if>
<if test="customerId != null and customerId != ''"> and rsd.customer_id = #{customerId}</if>
<if test="unit != null and unit != ''"> and rsd.unit = #{unit}</if>
<if test="spec != null and spec != ''"> and rsd.spec = #{spec}</if>
<if test="spare1 != null and spare1 != ''"> and rsd.spare1 = #{spare1}</if>
<if test="spare2 != null and spare2 != ''"> and rsd.spare2 = #{spare2}</if>
<if test="spare3 != null and spare3 != ''"> and rsd.spare3 = #{spare3}</if>
<if test="spare4 != null and spare4 != ''"> and rsd.spare4 = #{spare4}</if>
<if test="spare5 != null and spare5 != ''"> and rsd.spare5 = #{spare5}</if>
<if test="spare6 != null and spare6 != ''"> and rsd.spare6 = #{spare6}</if>
</where>
</select>