|
|
|
@ -316,7 +316,7 @@ public class ThrOrdersDlService {
|
|
|
|
|
for (ThrOrderResponse erpOrderResponse : erpOrderResponses) {
|
|
|
|
|
ThrOrderEntity thrOrderEntity = new ThrOrderEntity();
|
|
|
|
|
BeanUtils.copyProperties(erpOrderResponse, thrOrderEntity);
|
|
|
|
|
ThrOrderEntity originEntity = thrOrderService.findByUnique(thrOrderEntity.getBillNo(), thrOrderEntity.getThirdSysFk());
|
|
|
|
|
ThrOrderEntity originEntity = thrOrderService.findByUnique(thrOrderEntity.getBillNo(), thirdSys);
|
|
|
|
|
if (originEntity != null) {
|
|
|
|
|
thrOrderService.deleteById(originEntity.getId() + "");
|
|
|
|
|
thrOrderDetailService.deleteByOrderIdFk(originEntity.getBillNo() + "");
|
|
|
|
@ -352,6 +352,7 @@ public class ThrOrdersDlService {
|
|
|
|
|
}
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<ThrOrderResponse> getThrOrders(FilterThrOrderRequest filterThrOrderRequest) {
|
|
|
|
|
ThrSystemDetailEntity thrSystemDetailEntity = thrSystemDetailService.selectByKey("orderQueryUrl", filterThrOrderRequest.getThirdSysFk());
|
|
|
|
|
int page = 1;
|
|
|
|
|