Commit 6a9a90ae4b9e225f2c256474922adc9ca08aa46c
1 parent
8a31cb0a
线路首末班查询空指针问题修复。
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/com/bsth/service/schedule/impl/PeopleCarPlanServiceImpl.java
| ... | ... | @@ -1354,7 +1354,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { |
| 1354 | 1354 | try { |
| 1355 | 1355 | List<String> objList = new ArrayList<String>(); |
| 1356 | 1356 | String sql = "select a.schedule_date_str, a.real_exec_date, a.xl_name, a.fcsj, a.fcsj_actual, a.zdsj, a.zdsj_actual, a.qdz_name, a.zdz_name, a.xl_dir, a.status, a.gs_name, a.fgs_name," |
| 1357 | - + " a.xl_bm, a.fgs_bm, a.cc_service, (select start_opt from bsth_c_line_config where id =" | |
| 1357 | + + " a.bc_type, a.xl_bm, a.fgs_bm, a.cc_service, (select start_opt from bsth_c_line_config where id =" | |
| 1358 | 1358 | + " (select max(id) from bsth_c_line_config where line = (select id from bsth_c_line where line_code = a.xl_bm))) start_opt" |
| 1359 | 1359 | + " from bsth_c_s_sp_info_real a where schedule_date_str = ?" |
| 1360 | 1360 | + " and bc_type != 'in' and bc_type != 'out' and bc_type != 'ldks' and bc_type != 'region'"; |
| ... | ... | @@ -1381,6 +1381,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { |
| 1381 | 1381 | ScheduleRealInfo schedule = new ScheduleRealInfo(); |
| 1382 | 1382 | schedule.setScheduleDateStr(rs.getString("schedule_date_str")); |
| 1383 | 1383 | schedule.setRealExecDate(rs.getString("real_exec_date")); |
| 1384 | + schedule.setBcType(rs.getString("bc_type")); | |
| 1384 | 1385 | schedule.setXlName(rs.getString("xl_name")); |
| 1385 | 1386 | schedule.setXlBm(rs.getString("xl_Bm")); |
| 1386 | 1387 | schedule.setFcsj(rs.getString("fcsj")); | ... | ... |