feature:山能商旅推送影像单个对象转数组

release
gaorl 2 years ago
parent 43e20ba5a3
commit 045d78b120
  1. 6
      order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/manager/service/impl/PushInvoiceServiceImpl.java

@ -613,7 +613,10 @@ public class PushInvoiceServiceImpl implements PushInvoiceService {
}
private void sendImageSys(String content){
DdfpzxxV5 ddfpzxxV5 = JsonUtils.getInstance().parseObject(content.substring(1,content.length()-1), DdfpzxxV5.class);
List<DdfpzxxV5> ddfpzxxV5s = JsonUtils.getInstance().listBeanCopy(content, DdfpzxxV5.class);
//DdfpzxxV5 ddfpzxxV5 = JsonUtils.getInstance().parseObject(content.substring(1,content.length()-1), DdfpzxxV5.class);
for (DdfpzxxV5 ddfpzxxV5 : ddfpzxxV5s) {
DdfpxxV5 ddfpxx = ddfpzxxV5.getDDFPXX();
OutputInvoiceRequest outputInvoiceRequest = buildInvoiceRequest(ddfpxx);
if(outputInvoiceRequest.getInvoiceList() != null && outputInvoiceRequest.getInvoiceList().size() > 0){
@ -648,6 +651,7 @@ public class PushInvoiceServiceImpl implements PushInvoiceService {
e.printStackTrace();
}
}
}
private OutputInvoiceRequest buildInvoiceRequest(DdfpxxV5 ddfpxx){

Loading…
Cancel
Save