Commit f1fadf26 authored by duanruiming's avatar duanruiming

[update] 下发日期优化调度编号与返回编码校验

parent 998ed34e
......@@ -192,6 +192,7 @@ public class HKControlCommandServiceImpl implements ControlCommandService {
});
schedule1.setWeeks(weeks);
schedule1.setPlanNo(planNo);
schedule1.setScheduleId(Integer.valueOf(schedule.getScheduleNo()));
schedules.add(schedule1);
}
}
......
......@@ -65,7 +65,7 @@ public class HkPlanSectionServiceImpl implements HkPlanSectionService {
* @param hkResponse
*/
private void insertPlanSection(String crossId, HKResponse hkResponse) {
if (Objects.nonNull(hkResponse) && Objects.equals(hkResponse.getCode(), Constants.HK_SUCCESS_CODE)) {
if (Objects.nonNull(hkResponse) && Objects.equals(hkResponse.getCode(), Constants.HK_SUCCESS_STRING_CODE)) {
String dataStr = String.valueOf(hkResponse.getData());
List<PlanSectionResponseListPO> planSectionResponseListPOS = JSONObject.parseObject(dataStr, new TypeReference<List<PlanSectionResponseListPO>>() {});
for (PlanSectionResponseListPO planSectionResponseListPO : planSectionResponseListPOS) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment