|
@@ -27,6 +27,47 @@
|
|
|
<result property="userdefine4" column="userdefine4"/>
|
|
|
</resultMap>
|
|
|
|
|
|
+ <resultMap type="com.ruoyi.ams.order.form.ActAllocationDetailsFrom" id="ActAllocationDetailsInvLotAttResult">
|
|
|
+ <result property="allocationId" column="allocation_id"/>
|
|
|
+ <result property="orderNo" column="order_no"/>
|
|
|
+ <result property="lineNo" column="line_no"/>
|
|
|
+ <result property="material" column="material"/>
|
|
|
+ <result property="locationId" column="location_id"/>
|
|
|
+ <result property="callTransactionId" column="call_transaction_id"/>
|
|
|
+ <result property="status" column="status"/>
|
|
|
+ <result property="lotnum" column="lotnum"/>
|
|
|
+ <result property="qty" column="qty"/>
|
|
|
+ <result property="pickTransactionId" column="pick_transaction_id"/>
|
|
|
+ <result property="pickToLocation" column="pick_to_location"/>
|
|
|
+ <result property="pickQty" column="pick_qty"/>
|
|
|
+ <result property="createBy" column="create_by"/>
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
+ <result property="updateBy" column="update_by"/>
|
|
|
+ <result property="updateTime" column="update_time"/>
|
|
|
+ <result property="userdefine1" column="userdefine1"/>
|
|
|
+ <result property="userdefine2" column="userdefine2"/>
|
|
|
+ <result property="userdefine3" column="userdefine3"/>
|
|
|
+ <result property="userdefine4" column="userdefine4"/>
|
|
|
+ <result property="lotatt01" column="lotatt01"/>
|
|
|
+ <result property="lotatt02" column="lotatt02"/>
|
|
|
+ <result property="lotatt03" column="lotatt04"/>
|
|
|
+ <result property="lotatt04" column="lotatt04"/>
|
|
|
+ <result property="lotatt05" column="lotatt05"/>
|
|
|
+ <result property="lotatt06" column="lotatt06"/>
|
|
|
+ <result property="lotatt07" column="lotatt07"/>
|
|
|
+ <result property="lotatt08" column="lotatt08"/>
|
|
|
+ <result property="lotatt09" column="lotatt09"/>
|
|
|
+ <result property="lotatt10" column="lotatt10"/>
|
|
|
+ <result property="lotatt11" column="lotatt11"/>
|
|
|
+ <result property="lotatt12" column="lotatt12"/>
|
|
|
+ <result property="lotatt13" column="lotatt13"/>
|
|
|
+ <result property="lotatt14" column="lotatt14"/>
|
|
|
+ <result property="lotatt15" column="lotatt15"/>
|
|
|
+ <result property="lotatt16" column="lotatt16"/>
|
|
|
+ <result property="lotatt17" column="lotatt17"/>
|
|
|
+ <result property="lotatt18" column="lotatt18"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
<sql id="selectActAllocationDetailsVo">
|
|
|
select allocation_id,
|
|
|
order_no,
|
|
@@ -70,6 +111,25 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectActAllocationDetailsInvLotAttList" parameterType="object" resultMap="ActAllocationDetailsInvLotAttResult">
|
|
|
+ select t1.*
|
|
|
+ ,t2.lotatt01,t2.lotatt02,t2.lotatt03,t2.lotatt04,t2.lotatt05,t2.lotatt06
|
|
|
+ ,t2.lotatt07,t2.lotatt08,t2.lotatt09,t2.lotatt10,t2.lotatt11,t2.lotatt12
|
|
|
+ ,t2.lotatt13,t2.lotatt14,t2.lotatt15,t2.lotatt16,t2.lotatt17,t2.lotatt18
|
|
|
+ from act_allocation_details t1
|
|
|
+ left join inv_lot_att t2 ON t2.lotnum = t1.lotnum
|
|
|
+ <where>
|
|
|
+ <if test="allocationId != null and allocationId != ''"> and allocation_id = #{allocationId}</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
|
|
|
+ <if test="material != null and material != ''"> and material = #{material}</if>
|
|
|
+ <if test="lotnum != null and lotnum != ''"> and lotnum = #{lotnum}</if>
|
|
|
+ <if test="userdefine1 != null and userdefine1 != ''"> and userdefine1 = #{userdefine1}</if>
|
|
|
+ <if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
+ <if test="lotatt01 != null and lotatt01 != ''"> and lotatt01 = #{lotatt01}</if>
|
|
|
+ <if test="lotatt02 != null and lotatt02 != ''"> and lotatt02 = #{lotatt02}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="selectActAllocationDetailsByAllocationId" parameterType="String" resultMap="ActAllocationDetailsResult">
|
|
|
<include refid="selectActAllocationDetailsVo"/>
|
|
|
where allocation_id = #{allocationId}
|