Commit b0228682730a5c11e69d3c59dbbd174ab06e4e16

Authored by 潘钊
1 parent 4308447b

update...

src/main/java/com/bsth/server_ws/park_station/CompanyServiceSoap.java
1 package com.bsth.server_ws.park_station; 1 package com.bsth.server_ws.park_station;
2 2
3 import com.bsth.entity.OilInfo; 3 import com.bsth.entity.OilInfo;
  4 +import com.bsth.entity.SchedulePlanInfo;
4 import com.bsth.entity.ScheduleRealInfo; 5 import com.bsth.entity.ScheduleRealInfo;
5 import com.bsth.server_ws.util.Constants; 6 import com.bsth.server_ws.util.Constants;
6 import com.bsth.server_ws.util.ControlHttpUtils; 7 import com.bsth.server_ws.util.ControlHttpUtils;
@@ -122,12 +123,17 @@ public class CompanyServiceSoap implements CompanyService { @@ -122,12 +123,17 @@ public class CompanyServiceSoap implements CompanyService {
122 jdbcTemplate.query("select * from bsth_c_s_sp_info_real where gs_bm='"+company+"' and j_gh='"+workId+"' and schedule_date_str like '"+month+"-%'", 123 jdbcTemplate.query("select * from bsth_c_s_sp_info_real where gs_bm='"+company+"' and j_gh='"+workId+"' and schedule_date_str like '"+month+"-%'",
123 BeanPropertyRowMapper.newInstance(ScheduleRealInfo.class)); 124 BeanPropertyRowMapper.newInstance(ScheduleRealInfo.class));
124 125
  126 + //计划排班
  127 + List<SchedulePlanInfo> planList =
  128 + jdbcTemplate.query("select * from bsth_c_s_sp_info where gs_bm='"+company+"' and j_gh='"+workId+"' and schedule_date>sysdate() and schedule_date like '"+month+"-%' order by bcs",
  129 + BeanPropertyRowMapper.newInstance(SchedulePlanInfo.class));
  130 +
125 //油耗 131 //油耗
126 List<OilInfo> oilList = 132 List<OilInfo> oilList =
127 jdbcTemplate.query("select * from bsth_c_ylb where jsy='"+workId+"' and rq like '"+month+"-%'", 133 jdbcTemplate.query("select * from bsth_c_ylb where jsy='"+workId+"' and rq like '"+month+"-%'",
128 BeanPropertyRowMapper.newInstance(OilInfo.class)); 134 BeanPropertyRowMapper.newInstance(OilInfo.class));
129 135
130 - result.value = WSDataConver.to_getLSLC_PB(month, schList, oilList); 136 + result.value = WSDataConver.to_getLSLC_PB(month, schList, oilList, planList);
131 }catch(Exception e){ 137 }catch(Exception e){
132 fError.value = e.getMessage(); 138 fError.value = e.getMessage();
133 logger.error("", e); 139 logger.error("", e);