|
|
@ -17,6 +17,7 @@ import com.dxhy.order.consumer.dao.GsClientMapper; |
|
|
|
import com.dxhy.order.consumer.dao.InterfaceRequestDataMapper; |
|
|
|
import com.dxhy.order.consumer.dao.InterfaceRequestDataMapper; |
|
|
|
import com.dxhy.order.consumer.dao.PushInfoRecordMapper; |
|
|
|
import com.dxhy.order.consumer.dao.PushInfoRecordMapper; |
|
|
|
import com.dxhy.order.consumer.model.PushInfoRecord; |
|
|
|
import com.dxhy.order.consumer.model.PushInfoRecord; |
|
|
|
|
|
|
|
import com.dxhy.order.consumer.dao.InterfaceRequestDataMapper; |
|
|
|
import com.dxhy.order.consumer.model.protocol.CommonResponse; |
|
|
|
import com.dxhy.order.consumer.model.protocol.CommonResponse; |
|
|
|
import com.dxhy.order.consumer.model.protocol.ResponseData; |
|
|
|
import com.dxhy.order.consumer.model.protocol.ResponseData; |
|
|
|
import com.dxhy.order.consumer.model.protocol.ResponseStatus; |
|
|
|
import com.dxhy.order.consumer.model.protocol.ResponseStatus; |
|
|
@ -173,10 +174,10 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
private BaseServiceConfig baseServiceConfig; |
|
|
|
private BaseServiceConfig baseServiceConfig; |
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private InterfaceRequestDataMapper interfaceRequestDataMapper; |
|
|
|
private PushInfoRecordMapper pushInfoRecordMapper; |
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private PushInfoRecordMapper pushInfoRecordMapper; |
|
|
|
private InterfaceRequestDataMapper interfaceRequestDataMapper; |
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private GsClientMapper gsClientMapper; |
|
|
|
private GsClientMapper gsClientMapper; |
|
|
@ -700,9 +701,7 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
return r; |
|
|
|
return r; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public void sendImageSys(String content, String pushType, PushInfo pushInfo, Long id){ |
|
|
|
public R sendImageSys(String content, String pushType, PushInfo pushInfo, Long id) { |
|
|
|
|
|
|
|
R r = new R(); |
|
|
|
|
|
|
|
PushInfo pushInfo1 = new PushInfo(); |
|
|
|
PushInfo pushInfo1 = new PushInfo(); |
|
|
|
pushInfo1.setId(pushInfo.getId()); |
|
|
|
pushInfo1.setId(pushInfo.getId()); |
|
|
|
pushInfo1.setByzd1("YXXT"); |
|
|
|
pushInfo1.setByzd1("YXXT"); |
|
|
@ -722,11 +721,10 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
String error=String.format("invoiceNo:%s not eleInvoice do not push",outputInvoiceRequest.getInvoiceList().get(0).getInvoiceNumber()); |
|
|
|
String error=String.format("invoiceNo:%s not eleInvoice do not push",outputInvoiceRequest.getInvoiceList().get(0).getInvoiceNumber()); |
|
|
|
log.info(error); |
|
|
|
log.info(error); |
|
|
|
failPush(id,content,error,error,pushInfo1,pushType); |
|
|
|
failPush(id,content,error,error,pushInfo1,pushType); |
|
|
|
r.put(OrderManagementConstant.CODE, "9999"); |
|
|
|
return; |
|
|
|
r.put(OrderManagementConstant.ALL_MESSAGE, error); |
|
|
|
|
|
|
|
return r; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
String md5Encode = MD5.getMd5Encode(outputInvoiceRequest.getBillNum() + invoiceConfig.getSapSalt() ); |
|
|
|
String md5Encode = MD5.getMd5Encode(outputInvoiceRequest.getBillNum() + invoiceConfig.getSapSalt() ); |
|
|
|
Map<String, String> headerMap = Maps.newHashMap(); |
|
|
|
Map<String, String> headerMap = Maps.newHashMap(); |
|
|
@ -755,12 +753,9 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
log.error(error); |
|
|
|
log.error(error); |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
|
failPush(id,content,error,e.getMessage(),pushInfo1,pushType); |
|
|
|
failPush(id,content,error,e.getMessage(),pushInfo1,pushType); |
|
|
|
r.put(OrderManagementConstant.CODE, "9999"); |
|
|
|
return; |
|
|
|
r.put(OrderManagementConstant.ALL_MESSAGE, error); |
|
|
|
|
|
|
|
return r; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return r; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|