Commit b539b44c authored by hanbing's avatar hanbing

[update] 时间表下发适配UTC新增字段

parent 2a9c4318
......@@ -27,4 +27,6 @@ public interface CrossSchedulesMapper {
void resetStatus(String crossId);
void updateStatus(Integer scheduleId);
CrossSchedulesPO selectById(Integer scheduleId);
}
......@@ -30,6 +30,7 @@ import net.wanji.web.po.scheme.CrossLightsPO;
import net.wanji.web.po.scheme.CrossPhaseLightsPO;
import net.wanji.web.po.scheme.CrossPhasePO;
import net.wanji.web.po.scheme.CrossPlanPO;
import net.wanji.web.po.scheme.CrossSchedulesPO;
import net.wanji.web.po.scheme.CrossSchedulesPlanPO;
import net.wanji.web.po.scheme.CrossSchemePO;
import net.wanji.web.service.PlanSendService;
......@@ -534,6 +535,8 @@ public class PlanSendServiceImpl implements PlanSendService {
}
schedule.setWeeks(weeks);
schedule.setSpecialDays(specialDays);
CrossSchedulesPO crossSchedulesPO = crossSchedulesMapper.selectById(scheduleId);
schedule.setScheduleNo(crossSchedulesPO.getScheduleNo());
schedules.add(schedule);
return schedules;
}
......
......@@ -49,5 +49,12 @@
where cross_id = #{crossId} and schedule_no = #{scheduleNo}
</select>
<select id="selectById" resultType="net.wanji.web.po.scheme.CrossSchedulesPO">
select
id,schedule_no,name,status,cross_id,gmt_create,gmt_modified
from t_base_cross_schedules
where id = #{scheduleId}
</select>
</mapper>
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