修改入库管理 盘点管理联查
This commit is contained in:
@@ -31,42 +31,85 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="spare2" column="spare2" />
|
||||
<result property="spare3" column="spare3" />
|
||||
<result property="spare4" column="spare4" />
|
||||
<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="selectMydoJobDetailVo">
|
||||
select job_detail_id, job_id, stock_id, lot_no, in_date, in_or_out_id, in_or_out_d_id, product_guid, product_id, stock_status, in_quantity, stock_quantity, out_quantity, layer_quantity, out_layer_quantity, give_num, stockin_id, stacking_id, exit_id, print_date, customer_id, supplier_id, spare1, spare2, spare3, spare4 from mydo_job_detail
|
||||
select mjd.job_detail_id,
|
||||
mjd.job_id,
|
||||
mjd.stock_id,
|
||||
mjd.lot_no,
|
||||
mjd.in_date,
|
||||
mjd.in_or_out_id,
|
||||
mjd.in_or_out_d_id,
|
||||
mjd.product_guid,
|
||||
mjd.product_id,
|
||||
mjd.stock_status,
|
||||
mjd.in_quantity,
|
||||
mjd.stock_quantity,
|
||||
mjd.out_quantity,
|
||||
mjd.layer_quantity,
|
||||
mjd.out_layer_quantity,
|
||||
mjd.give_num,
|
||||
mjd.stockin_id,
|
||||
mjd.stacking_id,
|
||||
mjd.exit_id,
|
||||
mjd.print_date,
|
||||
mjd.customer_id,
|
||||
mjd.supplier_id,
|
||||
mjd.spare1,
|
||||
mjd.spare2,
|
||||
mjd.spare3,
|
||||
mjd.spare4,
|
||||
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 mydo_job_detail mjd
|
||||
left join bas_product bp on mjd.product_id = bp.product_id
|
||||
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="selectMydoJobDetailList" parameterType="MydoJobDetail" resultMap="MydoJobDetailResult">
|
||||
<include refid="selectMydoJobDetailVo"/>
|
||||
<where>
|
||||
<if test="jobDetailId != null and jobDetailId != ''"> and job_detail_id = #{jobDetailId}</if>
|
||||
<if test="jobId != null and jobId != ''"> and job_id = #{jobId}</if>
|
||||
<if test="stockId != null and stockId != ''"> and stock_id = #{stockId}</if>
|
||||
<if test="lotNo != null and lotNo != ''"> and lot_no = #{lotNo}</if>
|
||||
<if test="inDate != null and inDate != ''"> and in_date = #{inDate}</if>
|
||||
<if test="inOrOutId != null and inOrOutId != ''"> and in_or_out_id = #{inOrOutId}</if>
|
||||
<if test="inOrOutDId != null and inOrOutDId != ''"> and in_or_out_d_id = #{inOrOutDId}</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="stockStatus != null and stockStatus != ''"> and stock_status = #{stockStatus}</if>
|
||||
<if test="inQuantity != null and inQuantity != ''"> and in_quantity = #{inQuantity}</if>
|
||||
<if test="stockQuantity != null and stockQuantity != ''"> and stock_quantity = #{stockQuantity}</if>
|
||||
<if test="outQuantity != null and outQuantity != ''"> and out_quantity = #{outQuantity}</if>
|
||||
<if test="layerQuantity != null and layerQuantity != ''"> and layer_quantity = #{layerQuantity}</if>
|
||||
<if test="outLayerQuantity != null and outLayerQuantity != ''"> and out_layer_quantity = #{outLayerQuantity}</if>
|
||||
<if test="giveNum != null and giveNum != ''"> and give_num = #{giveNum}</if>
|
||||
<if test="stockinId != null and stockinId != ''"> and stockin_id = #{stockinId}</if>
|
||||
<if test="stackingId != null and stackingId != ''"> and stacking_id = #{stackingId}</if>
|
||||
<if test="exitId != null and exitId != ''"> and exit_id = #{exitId}</if>
|
||||
<if test="printDate != null and printDate != ''"> and print_date = #{printDate}</if>
|
||||
<if test="customerId != null and customerId != ''"> and customer_id = #{customerId}</if>
|
||||
<if test="supplierId != null and supplierId != ''"> and supplier_id = #{supplierId}</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="jobDetailId != null and jobDetailId != ''"> and mjd.job_detail_id = #{jobDetailId}</if>
|
||||
<if test="jobId != null and jobId != ''"> and mjd.job_id = #{jobId}</if>
|
||||
<if test="stockId != null and stockId != ''"> and mjd.stock_id = #{stockId}</if>
|
||||
<if test="lotNo != null and lotNo != ''"> and mjd.lot_no = #{lotNo}</if>
|
||||
<if test="inDate != null and inDate != ''"> and mjd.in_date = #{inDate}</if>
|
||||
<if test="inOrOutId != null and inOrOutId != ''"> and mjd.in_or_out_id = #{inOrOutId}</if>
|
||||
<if test="inOrOutDId != null and inOrOutDId != ''"> and mjd.in_or_out_d_id = #{inOrOutDId}</if>
|
||||
<if test="productGuid != null and productGuid != ''"> and mjd.product_guid = #{productGuid}</if>
|
||||
<if test="productId != null and productId != ''"> and mjd.product_id = #{productId}</if>
|
||||
<if test="stockStatus != null and stockStatus != ''"> and mjd.stock_status = #{stockStatus}</if>
|
||||
<if test="inQuantity != null and inQuantity != ''"> and mjd.in_quantity = #{inQuantity}</if>
|
||||
<if test="stockQuantity != null and stockQuantity != ''"> and mjd.stock_quantity = #{stockQuantity}</if>
|
||||
<if test="outQuantity != null and outQuantity != ''"> and mjd.out_quantity = #{outQuantity}</if>
|
||||
<if test="layerQuantity != null and layerQuantity != ''"> and mjd.layer_quantity = #{layerQuantity}</if>
|
||||
<if test="outLayerQuantity != null and outLayerQuantity != ''"> and mjd.out_layer_quantity = #{outLayerQuantity}</if>
|
||||
<if test="giveNum != null and giveNum != ''"> and mjd.give_num = #{giveNum}</if>
|
||||
<if test="stockinId != null and stockinId != ''"> and mjd.stockin_id = #{stockinId}</if>
|
||||
<if test="stackingId != null and stackingId != ''"> and mjd.stacking_id = #{stackingId}</if>
|
||||
<if test="exitId != null and exitId != ''"> and mjd.exit_id = #{exitId}</if>
|
||||
<if test="printDate != null and printDate != ''"> and mjd.print_date = #{printDate}</if>
|
||||
<if test="customerId != null and customerId != ''"> and mjd.customer_id = #{customerId}</if>
|
||||
<if test="supplierId != null and supplierId != ''"> and mjd.supplier_id = #{supplierId}</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and mjd.spare1 = #{spare1}</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and mjd.spare2 = #{spare2}</if>
|
||||
<if test="spare3 != null and spare3 != ''"> and mjd.spare3 = #{spare3}</if>
|
||||
<if test="spare4 != null and spare4 != ''"> and mjd.spare4 = #{spare4}</if>
|
||||
</where>
|
||||
|
||||
</select>
|
||||
|
||||
<select id="selectMydoJobDetailByJobDetailId" parameterType="String" resultMap="MydoJobDetailResult">
|
||||
|
||||
Reference in New Issue
Block a user