发票系统繁忙问题

pro
anthonywj 2 years ago
parent 4b917f22fd
commit aaff1b1d7f

@ -39,7 +39,7 @@ public class IoOrderInvoiceController {
@AuthRuleAnnotation("") @AuthRuleAnnotation("")
@PostMapping("/udiwms/inout/order/refrshInvoice") @PostMapping("/udiwms/inout/order/refrshInvoice")
@Log(title = "发票", businessType = BusinessType.INSERT) @Log(title = "发票", businessType = BusinessType.INSERT)
public BaseResponse addBizProduct(@RequestBody RefreshInoiceRequest refreshInoiceRequest) { public BaseResponse refrshInvoice(@RequestBody RefreshInoiceRequest refreshInoiceRequest) {
BaseResponse<RefreshInoiceResponse> baseResponse = spGetHttpClient.getIoOrderInvoices(refreshInoiceRequest); BaseResponse<RefreshInoiceResponse> baseResponse = spGetHttpClient.getIoOrderInvoices(refreshInoiceRequest);
if (baseResponse.getCode() == 20000) { if (baseResponse.getCode() == 20000) {
RefreshInoiceResponse refreshInoiceResponse = baseResponse.getData(); RefreshInoiceResponse refreshInoiceResponse = baseResponse.getData();

@ -13,11 +13,11 @@
<select id="selectOrderInvoice" parameterType="com.glxp.api.req.inout.IoOrderInvoiceRequest" <select id="selectOrderInvoice" parameterType="com.glxp.api.req.inout.IoOrderInvoiceRequest"
resultType="com.glxp.api.entity.inout.IoOrderInvoiceEntity"> resultType="com.glxp.api.entity.inout.IoOrderInvoiceEntity">
SELECT ic.*, SELECT ic.*,
(select cpmctymc from basic_products where basic_products.uuid = bu.uuid) cpmctymc, bp.cpmctymc,
(select ggxh from basic_products where basic_products.uuid = bu.uuid) ggxh bp.ggxh
FROM io_order_invoice ic FROM io_order_invoice ic
LEFT JOIN basic_udirel bu ON bu.id = ic.bindRlFk LEFT JOIN basic_udirel bu ON bu.id = ic.bindRlFk
LEFT JOIN basic_products bp ON bu.uuid = bp.uuid LEFT JOIN basic_products bp ON bu.uuid = bp.uuid
<where> <where>
<if test="orderIdFk != null and orderIdFk != ''"> <if test="orderIdFk != null and orderIdFk != ''">
AND ic.orderIdFk = #{orderIdFk} AND ic.orderIdFk = #{orderIdFk}
@ -34,7 +34,6 @@
<if test="batchNo == null || batchNo == ''"> <if test="batchNo == null || batchNo == ''">
AND (ic.batchNo is null or ic.batchNo = '') AND (ic.batchNo is null or ic.batchNo = '')
</if> </if>
</where> </where>
GROUP BY ic.id GROUP BY ic.id
</select> </select>

@ -4,8 +4,8 @@
<select id="filterList" resultType="com.glxp.api.res.inout.IoOrderDetailBizResponse"> <select id="filterList" resultType="com.glxp.api.res.inout.IoOrderDetailBizResponse">
select io_order_detail_biz.* select io_order_detail_biz.*
from io_order_detail_biz from io_order_detail_biz
left join basic_udirel bu on bu.id = io_order_detail_biz.bindRlFk left join basic_udirel bu on bu.id = io_order_detail_biz.bindRlFk
left join basic_products bp on bu.uuid = bp.uuid left join basic_products bp on bu.uuid = bp.uuid
<where> <where>
<if test="orderIdFk != null and orderIdFk != ''"> <if test="orderIdFk != null and orderIdFk != ''">
AND orderIdFk = #{orderIdFk} AND orderIdFk = #{orderIdFk}
@ -23,20 +23,22 @@
group by io_order_detail_biz.id group by io_order_detail_biz.id
</select> </select>
<select id="selectByinvoiceId" parameterType="java.lang.Long" resultType="com.glxp.api.res.inout.IoOrderInvoiceResponse"> <select id="selectByinvoiceId" parameterType="java.lang.Long"
select * from io_order_invoice where id= #{id} resultType="com.glxp.api.res.inout.IoOrderInvoiceResponse">
select *
from io_order_invoice
where id = #{id}
</select> </select>
<select id="getfilterList" resultType="com.glxp.api.res.inout.IoOrderDetailCodeResponse"> <select id="getfilterList" resultType="com.glxp.api.res.inout.IoOrderDetailCodeResponse">
select io_order_detail_code.*, select io_order_detail_code.*,
(select count(*) (select count(*)
FROM io_order_invoice FROM io_order_invoice
where io_order_invoice.orderIdFk = io_order_detail_code.orderIdFk) as sucCount where io_order_invoice.orderIdFk = io_order_detail_code.orderIdFk) as sucCount
from io_order_detail_code from io_order_detail_code
left join basic_udirel bu on bu.id = io_order_detail_code.bindRlFk left join basic_udirel bu on bu.id = io_order_detail_code.bindRlFk
left join basic_products bp on bu.uuid = bp.uuid left join basic_products bp on bu.uuid = bp.uuid
<where> <where>
<if test="orderIdFk != null and orderIdFk != ''"> <if test="orderIdFk != null and orderIdFk != ''">
AND orderIdFk = #{orderIdFk} AND orderIdFk = #{orderIdFk}
@ -56,11 +58,11 @@
<select id="filterListInv" resultType="com.glxp.api.res.inout.IoOrderInvoiceResponse"> <select id="filterListInv" resultType="com.glxp.api.res.inout.IoOrderInvoiceResponse">
SELECT ic.*, SELECT ic.*,
(select cpmctymc from basic_products where basic_products.uuid = bu.uuid) cpmctymc, bp.cpmctymc,
(select ggxh from basic_products where basic_products.uuid = bu.uuid) ggxh bp.ggxh
FROM io_order_invoice ic FROM io_order_invoice ic
LEFT JOIN basic_udirel bu ON bu.id = ic.bindRlFk LEFT JOIN basic_udirel bu ON bu.id = ic.bindRlFk
LEFT JOIN basic_products bp ON bu.uuid = bp.uuid LEFT JOIN basic_products bp ON bu.uuid = bp.uuid
<where> <where>
<if test="orderIdFk != null and orderIdFk != ''"> <if test="orderIdFk != null and orderIdFk != ''">
AND ic.orderIdFk = #{orderIdFk} AND ic.orderIdFk = #{orderIdFk}
@ -77,13 +79,13 @@
<if test="batchNo == null || batchNo == ''"> <if test="batchNo == null || batchNo == ''">
AND (ic.batchNo is null or ic.batchNo = '') AND (ic.batchNo is null or ic.batchNo = '')
</if> </if>
</where> </where>
GROUP BY ic.id GROUP BY ic.id
</select> </select>
<select id="selectOrderDetailBiz" resultType="com.glxp.api.entity.inout.IoOrderDetailBizEntity"> <select id="selectOrderDetailBiz" resultType="com.glxp.api.entity.inout.IoOrderDetailBizEntity">
select * from io_order_detail_biz select *
from io_order_detail_biz
<where> <where>
<if test="orderId != null and orderId != ''"> <if test="orderId != null and orderId != ''">
AND orderIdFk = #{orderId} AND orderIdFk = #{orderId}

Loading…
Cancel
Save