fix(生产报工平台):生产报工事务冲销不要用工单查询

This commit is contained in:
liaohechuan 2025-02-20 11:33:17 +08:00
parent 1d3dcf66cd
commit 7b5502f23a
2 changed files with 4 additions and 4 deletions

View File

@ -203,7 +203,7 @@ public class ShopOrderStatisticTransController {
String jsonObjectStr = SapUtil.appendHead(assembleCancelMsgBody(statisticsTransaction));
invokeRequest.setMessageContent(jsonObjectStr);
invokeRequest.setStart(nowTime);
invokeRequest.setKeyValue(shopOrder);
invokeRequest.setKeyValue(statisticsTransaction.getSid());
invokeRequest.setRetry(false);
TenantContextHolder.setTenantId(site);
invokeResponse = shopOrderStatisticTransCancelService.call(invokeRequest);

View File

@ -45,9 +45,9 @@ public class ShopOrderStatisticTransCancelService implements HandlerService {
}
}
public InvokeResponse updateShopOrderCancelStatistic(JSONObject jsonObject,String shopOrder,String site,InvokeResponse invokeResponse){
public InvokeResponse updateShopOrderCancelStatistic(JSONObject jsonObject,String sid,String site,InvokeResponse invokeResponse){
QueryWrapper<ZShoporderStatisticsTransaction> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ZShoporderStatisticsTransaction::getShopOrder, shopOrder).eq(ZShoporderStatisticsTransaction::getSite, site);
queryWrapper.lambda().eq(ZShoporderStatisticsTransaction::getSid, sid).eq(ZShoporderStatisticsTransaction::getSite, site);
ZShoporderStatisticsTransaction shoporderStatisticsTransaction = zShoporderStatisticsTransactionMapper.selectOne(queryWrapper);
if(shoporderStatisticsTransaction!=null){
JSONObject bodyJson = jsonObject.getJSONObject("RESPONSE_BODY");
@ -68,7 +68,7 @@ public class ShopOrderStatisticTransCancelService implements HandlerService {
zShoporderStatisticsTransactionMapper.updateById(shoporderStatisticsTransaction);
return invokeResponse;
}else{
throw BusinessException.build("原工单"+shopOrder+"数据已不存在");
throw BusinessException.build("原生产报工事务明细主键"+sid+"数据已不存在");
}
}