业务单据,扫码单据返回仓库单据类型名称

fencang
anthonyywj2 3 years ago
parent 391671a521
commit c27ecfce06

@ -60,4 +60,9 @@ public class OrderEntity {
private String createTime;
private String fromSubInvCode;
private String billTypeName;
private String subInvName;
private String invName;
}

@ -45,4 +45,10 @@ public class StockOrderEntity {
//委托验收已完成
private boolean entrustEnd;
private String billTypeName;
private String subInvName;
private String invName;
}

@ -191,7 +191,8 @@
</update>
<select id="filterListOr" parameterType="com.glxp.sale.admin.req.inout.OrderFilterRequest"
resultType="com.glxp.sale.admin.entity.inout.OrderEntity">
SELECT io_order.* FROM io_order
SELECT io_order.* ,inv_warehouse.name invName, inv_warehouse_sub.name subInvName ,basic_bussiness_type.name billTypeName FROM io_order
left join basic_bussiness_type on io_order.action = basic_bussiness_type.action
LEFT JOIN inv_warehouse ON io_order.locStorageCode = inv_warehouse.`code`
LEFT JOIN inv_warehouse_sub ON inv_warehouse_sub.parentId = inv_warehouse.`code`
LEFT JOIN inv_warehouse_user on inv_warehouse_sub.code = inv_warehouse_user.`code`
@ -200,22 +201,22 @@
and io_order.id =#{id}
</if>
<if test="mainAction != '' and mainAction!=null">
and mainAction =#{mainAction}
and io_order.mainAction =#{mainAction}
</if>
<if test="fromCorpId != '' and fromCorpId!=null">
and fromCorpId =#{fromCorpId}
and io_order.fromCorpId =#{fromCorpId}
</if>
<if test="corpOrderId != '' and corpOrderId !=null">
and corpOrderId =#{corpOrderId}
and io_order.corpOrderId =#{corpOrderId}
</if>
<if test="action != '' and action!=null">
and action = #{action}
and io_order.action = #{action}
</if>
<if test="action==null or action == ''">
and `action` <![CDATA[ <> ]]> 'StockCheck'
and io_order.`action` <![CDATA[ <> ]]> 'StockCheck'
</if>
<if test="exportStatus != '' and exportStatus!=null">
and exportStatus = #{exportStatus}
and io_order.exportStatus = #{exportStatus}
</if>
<if test="status != '' and status!=null and status!=10">
and io_order.status = #{status}
@ -245,13 +246,13 @@
<![CDATA[ and DATE_FORMAT(actDate, '%Y-%m-%d') <= DATE_FORMAT(#{endTime}, '%Y-%m-%d') ]]>
</if>
<if test="customerId != '' and customerId!=null">
and customerId =#{customerId}
and io_order.customerId =#{customerId}
</if>
<if test="createUser!=null">
and createUser =#{createUser}
and io_order.createUser =#{createUser}
</if>
<if test="reviewUser!=null">
and reviewUser =#{reviewUser}
and io_order.reviewUser =#{reviewUser}
</if>
<if test="userId != '' and userId!=null">
and (invWarehouseCode in (select code from inv_warehouse_user WHERE userId =#{userId}) or

@ -104,13 +104,14 @@
</update>
<select id="filterListOr" parameterType="com.glxp.sale.admin.req.inout.StockOrderFilterRequest"
resultType="com.glxp.sale.admin.entity.inout.StockOrderEntity">
SELECT stock_order.* FROM stock_order
SELECT stock_order.* ,inv_warehouse.name invName, inv_warehouse_sub.name subInvName ,basic_bustype_local.name billTypeName FROM stock_order
left join basic_bustype_local on stock_order.billType = basic_bustype_local.action
LEFT JOIN inv_warehouse ON stock_order.locStorageCode = inv_warehouse.`code`
LEFT JOIN inv_warehouse_sub ON inv_warehouse_sub.parentId = inv_warehouse.`code`
LEFT JOIN inv_warehouse_user on inv_warehouse_sub.code = inv_warehouse_user.`code`
<where>
<if test="id != '' and id!=null">
and id =#{id}
and stock_order.id =#{id}
</if>
<if test="billNo != '' and billNo!=null">
and billNo LIKE concat('%',#{billNo},'%')
@ -140,7 +141,7 @@
and statusInfo = #{statusInfo}
</if>
<if test="type != '' and type!=null">
and type = #{type}
and stock_order.type = #{type}
</if>
<if test="sourceType != '' and sourceType!=null">
and sourceType = #{sourceType}

Loading…
Cancel
Save