Commit cd0cabd7 by xiaoer.li@freemud.com

fix

parent 89c660f6
......@@ -49,6 +49,7 @@ import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
......@@ -68,7 +69,7 @@ public class OrderCallBackMQService {
@Autowired
private AssortmentOpenPlatformWxappManager openPlatformWxappManager;
@Value("${saas.order.invoice.report.partnerIds}")
private String InvoicePartnerIds;
private String invoicePartnerIds;
public void sendOrderMQ(OrderCallBackRequestVo body) {
//发送订单回调
......@@ -235,17 +236,12 @@ public class OrderCallBackMQService {
return ;
}
OrderInfoReqs orderInfoReqs = JSONObject.parseObject(body.getContent(), OrderInfoReqs.class);
if (
(
orderInfoReqs == null
if (orderInfoReqs==null
|| !Arrays.asList(invoicePartnerIds.split(",")).contains(orderInfoReqs.getPartnerId())
|| !NewOrderStatus.PLACE_AN_ORDER.getIndex().equals(orderInfoReqs.getOrderState())
|| orderInfoReqs.getBizType()!=1
)
&& !InvoicePartnerIds.contains(orderInfoReqs.getPartnerId())
) {
|| orderInfoReqs.getBizType()!=1) {
return;
}
try {
Header header = new Header("report", "call-back-service-api",
OrderCallBackConfig.INVOICE_ROUTE_KEY, OrderCallBackConfig.INVOICE_QUEUE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment