修正生产报工的报错提示

This commit is contained in:
彭枝刚 2024-11-25 13:17:15 +08:00
parent 2be50e2a9a
commit b56042a9ac
2 changed files with 6 additions and 9 deletions

View File

@ -327,10 +327,9 @@ public class ShopOrderStatisticTransController {
// 处理ERP返回的报文
invokeResponse = updateMaterialConsumption(invokeResponse.getObjectResponse(), srcList, invokeResponse);
} catch (Exception e) {
throw BusinessException.build(e.getMessage());
} finally {
// 保存日志
saveLogData(invokeRequest, invokeResponse);
// 不用回滚,将错误抛出
invokeResponse.setResult("E");
invokeResponse.setMessageContent(e.getMessage());
}
}
if ("E".equals(invokeResponse.getResult())) {
@ -460,10 +459,9 @@ public class ShopOrderStatisticTransController {
// 处理ERP返回的报文
invokeResponse = updateLotComplete(invokeResponse.getObjectResponse(), srcList, invokeResponse);
} catch (Exception e) {
throw BusinessException.build(e.getMessage());
} finally {
// 保存日志
saveLogData(invokeRequest, invokeResponse);
// 不用回滚,将错误抛出
invokeResponse.setResult("E");
invokeResponse.setMessageContent(e.getMessage());
}
}
if ("E".equals(invokeResponse.getResult())) {

View File

@ -25,7 +25,6 @@ import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;