feat: 带票出入库明细

lh_dev_fifo
chenhc 11 months ago
parent 8fdd2a487d
commit 4b6ac18da9

@ -373,7 +373,6 @@ public class IoOrderDetailResultController extends BaseController {
ioOrderDetailResultData.put("isStack", ioOrderDetailResultResponse.getIsStack() == null ? ' ' : ioOrderDetailResultResponse.getIsStack());
ioOrderDetailResultData.put("groupBuy", ioOrderDetailResultResponse.getGroupBuy() == null ? ' ' : ioOrderDetailResultResponse.getGroupBuy());
ioOrderDetailResultData.put("invoiceCodes", ioOrderDetailResultResponse.getInvoiceCodes() == null ? ' ' : ioOrderDetailResultResponse.getInvoiceCodes());
ioOrderDetailResultData.put("fromOutName", ioOrderDetailResultResponse.getFromOutName() == null ? ' ' : ioOrderDetailResultResponse.getFromOutName());
if (thrProductsEntity != null) {
ioOrderDetailResultData.put("cplb", thrProductsEntity.getCplb() == null ? ' ' : thrProductsEntity.getCplb());
}

@ -65,7 +65,6 @@ public class FilterOrderDetailResultRequest extends ListPageRequest {
private String confirmEndTime; //发票确认结束日期
private String corpName;//供应商名字
private String fromOutName;//出库科室
private Boolean groupBuy; //是否集采产品
}

@ -221,7 +221,7 @@ public class IoOrderDetailResultResponse {
private Boolean isStack;
private Boolean groupBuy;
private String fromOutName;
public String getFromName() {
if (StrUtil.isNotEmpty(fromCorpName))
return fromCorpName;

@ -25,25 +25,22 @@
<select id="filterOrderList" resultType="com.glxp.api.res.inout.IoOrderDetailResultResponse">
SELECT a2.*,
aw.name as fromInvName,
aw2.name as fromOutName,
a1.mainAction,
a1.confirmTime,
a1.auditTime,
bu.isStack,
bu.groupBuy,
GROUP_CONCAT(ioi.invoiceEncode ORDER BY ioi.invoiceEncode SEPARATOR ',') AS invoiceCodes,
b1.NAME AS fromCorpName,
basic_bussiness_type.name billTypeName
aw.name as fromInvName,
a1.mainAction,
a1.confirmTime,
a1.auditTime,
bu.isStack,
bu.groupBuy,
GROUP_CONCAT(ioi.invoiceEncode ORDER BY ioi.invoiceEncode SEPARATOR ',') AS invoiceCodes,
b1.NAME AS fromCorpName,
basic_bussiness_type.name billTypeName
FROM io_order_detail_result a2
LEFT JOIN io_order a1 ON a1.billNo = a2.orderIdFk
LEFT JOIN io_order a3 ON a3.ullageSupNo = a2.orderIdFk
LEFT JOIN basic_corp b1 ON b1.erpId = a1.fromCorp
LEFT JOIN basic_udirel bu ON a2.bindRlFk = bu.id
left join basic_bussiness_type on a1.action = basic_bussiness_type.action
LEFT JOIN io_order_invoice ioi ON a1.billNo = ioi.orderIdFk
left join auth_warehouse aw on aw.code = a1.fromInvCode
left join auth_warehouse aw2 on aw2.code = a3.fromInvCode
LEFT JOIN io_order a1 ON a1.billNo = a2.orderIdFk
LEFT JOIN basic_corp b1 ON b1.erpId = a1.fromCorp
LEFT JOIN basic_udirel bu ON a2.bindRlFk = bu.id
left join basic_bussiness_type on a1.action = basic_bussiness_type.action
LEFT JOIN io_order_invoice ioi ON a1.billNo = ioi.orderIdFk
left join auth_warehouse aw on aw.code = a1.fromInvCode
<where>
a1.status = 7
<if test="orderIdFk != null and orderIdFk != ''">
@ -79,9 +76,6 @@
<if test="spec != null and spec != ''">
AND a2.spec like concat('%', #{spec}, '%')
</if>
<if test="fromOutName != null and fromOutName != ''">
AND aw2.name like concat('%', #{fromOutName}, '%')
</if>
<if test="fromCorp != null and fromCorp != ''">
AND a1.fromCorp = #{fromCorp}
</if>

Loading…
Cancel
Save