|
@@ -43,6 +43,7 @@
|
|
<result property="lotatt16" column="lotatt16"/>
|
|
<result property="lotatt16" column="lotatt16"/>
|
|
<result property="lotatt17" column="lotatt17"/>
|
|
<result property="lotatt17" column="lotatt17"/>
|
|
<result property="lotatt18" column="lotatt18"/>
|
|
<result property="lotatt18" column="lotatt18"/>
|
|
|
|
+ <result property="locationNo" column="location_no"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="com.ruoyi.ams.order.form.ActAllocationDetailsFrom" id="ActAllocationDetailsInvLotAttResult">
|
|
<resultMap type="com.ruoyi.ams.order.form.ActAllocationDetailsFrom" id="ActAllocationDetailsInvLotAttResult">
|
|
@@ -115,19 +116,22 @@
|
|
,t2.lotatt01,t2.lotatt02,t2.lotatt03,t2.lotatt04,t2.lotatt05,t2.lotatt06
|
|
,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.lotatt07,t2.lotatt08,t2.lotatt09,t2.lotatt10,t2.lotatt11,t2.lotatt12
|
|
,t2.lotatt13,t2.lotatt14,t2.lotatt15,t2.lotatt16,t2.lotatt17,t2.lotatt18
|
|
,t2.lotatt13,t2.lotatt14,t2.lotatt15,t2.lotatt16,t2.lotatt17,t2.lotatt18
|
|
|
|
+ ,t3.location_no
|
|
from act_allocation_details t1
|
|
from act_allocation_details t1
|
|
LEFT JOIN inv_lot_att t2 on t2.lotnum = t1.lotnum
|
|
LEFT JOIN inv_lot_att t2 on t2.lotnum = t1.lotnum
|
|
|
|
+ left join base_location_info t3 on t3.id=t1.location_id
|
|
<where>
|
|
<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="locationId != null and locationId != ''"> and location_id = #{locationId}</if>
|
|
|
|
- <if test="material != null and material != ''"> and material = #{material}</if>
|
|
|
|
- <if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
|
|
|
+ <if test="allocationId != null and allocationId != ''"> and t1.allocation_id = #{allocationId}</if>
|
|
|
|
+ <if test="orderNo != null and orderNo != ''"> and t1.order_no = #{orderNo}</if>
|
|
|
|
+ <if test="locationId != null and locationId != ''"> and t1.location_id = #{locationId}</if>
|
|
|
|
+ <if test="locationNo != null and locationNo != ''"> and t3.location_no = #{locationNo}</if>
|
|
|
|
+ <if test="material != null and material != ''"> and t1.material = #{material}</if>
|
|
|
|
+ <if test="status != null and status != ''"> and t1.status = #{status}</if>
|
|
<if test="params.beginTime != null and params.beginTime != ''">
|
|
<if test="params.beginTime != null and params.beginTime != ''">
|
|
- AND date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
|
|
|
|
|
+ AND date_format(t1.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
|
</if>
|
|
</if>
|
|
<if test="params.endTime != null and params.endTime != ''">
|
|
<if test="params.endTime != null and params.endTime != ''">
|
|
- AND date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
|
|
|
|
+ AND date_format(t1.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|