rev:更新组盘时的状态,外部系统请求响应异常反馈

This commit is contained in:
zhangzq
2024-08-23 10:02:44 +08:00
parent 7b63a1c84f
commit bc9f06e656
3 changed files with 10 additions and 0 deletions

View File

@@ -16,4 +16,9 @@
<option name="DEBUGGING_INFO" value="false" />
<option name="DEPRECATION" value="false" />
</component>
<component name="JavacSettings">
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
<module name="nladmin-system" options="-parameters" />
</option>
</component>
</project>

View File

@@ -39,6 +39,10 @@ public class InterationUtil {
.body(String.valueOf(param))
.execute().body();
JSONObject response = JSONObject.parseObject(resultMsg);
String status = response.getString("status");
if (!status.equals("200")){
throw new BadRequestException("acs申请任务失败"+response.getString("message"));
}
log.info("ACS相应参数----------------------------------------+"+api+",---"+response.toString());
return response.toJavaObject(TableDataInfo.class);
} catch (Exception ex) {

View File

@@ -108,6 +108,7 @@ public class MdGruopDickServiceImpl extends ServiceImpl<MdGruopDickMapper, MdGru
dick.setVehicle_code(vehicle_code);
dick.setCode(CodeUtil.getNewCode("md_group_dick"));
dick.setId(IdUtil.getStringId());
dick.setStatus(StatusEnum.FORM_STATUS.code("执行中"));
map.put(vehicle_code,dick);
vehicleMater.setGroup_id(dick.getId());
}else {