进口仓单推送-Log修改
This commit is contained in:
+29
-1
@@ -2681,8 +2681,18 @@ public class StockShelfOrderApplicationService {
|
||||
gwLogDTO.setOrganizationName(organizationName);
|
||||
gwLogDTO.setCreateBy(pushBy);
|
||||
gwLogDTO.setCreateTime(new Date());
|
||||
gwLogDTO.setDelFlag(1);
|
||||
//gwLogMapper.insert(gwLogDTO);
|
||||
Long gwLogId = null;
|
||||
try {
|
||||
AjaxResult insertResult = omsServiceFeign.insertGwLog(gwLogDTO);
|
||||
if(insertResult !=null && "200".equals(String.valueOf(insertResult.get("code")))){
|
||||
Map<?,?>data = (Map<?,?>)insertResult.get("data");
|
||||
gwLogId = ((Number)data.get("id")).longValue();
|
||||
}
|
||||
|
||||
}catch(Exception e){
|
||||
log.error("保存Gwlog失败:{}",e.getMessage());
|
||||
}
|
||||
|
||||
updatePushStatus(id, 2, new Date(), pushBy,pushByName);
|
||||
|
||||
@@ -2710,13 +2720,31 @@ public class StockShelfOrderApplicationService {
|
||||
failCount++;
|
||||
failMsg.append("id:").append(id).append("失败;");
|
||||
}
|
||||
if (gwLogId != null){
|
||||
gwLogDTO.setLogId(gwLogId);
|
||||
try{
|
||||
AjaxResult updateResult = omsServiceFeign.updateGwLog(gwLogDTO);
|
||||
}catch (Exception e){
|
||||
log.error("更新GwLog失败:{}",e.getMessage());
|
||||
}
|
||||
}
|
||||
// gwLogMapper.updateById(gwLog);
|
||||
|
||||
response.close();
|
||||
} catch (IOException e) {
|
||||
gwLogDTO.setStatus(3);
|
||||
gwLogDTO.setErrorMsg(e.getMessage());
|
||||
gwLogDTO.setResponseBody("请求异常:" + e.getMessage());
|
||||
// gwLogMapper.updateById(gwLog);
|
||||
if (gwLogId != null){
|
||||
gwLogDTO.setLogId(gwLogId);
|
||||
try{
|
||||
AjaxResult updateResult = omsServiceFeign.updateGwLog(gwLogDTO);
|
||||
}catch (Exception ex){
|
||||
log.error("更新GwLog失败:{}",ex.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
updatePushStatus(id, 4, new Date(), pushBy,pushByName);
|
||||
failCount++;
|
||||
failMsg.append("id:").append(id).append("异常:").append(e.getMessage()).append(";");
|
||||
|
||||
Reference in New Issue
Block a user