Commit f577bb05 authored by hanbing's avatar hanbing

Merge remote-tracking branch 'origin/master'

parents 58a331d4 f1fadf26
......@@ -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