Commit e73b6866f27b4b6e7347fd223775c5398d438c17

Authored by 徐烜
2 parents e16f191f 933fcbe6

Merge branch 'minhang' of http://222.66.0.204:8090//panzhaov5/bsth_control into minhang

Showing 50 changed files with 2372 additions and 445 deletions

Too many changes to show.

To preserve performance only 50 of 73 files are displayed.

src/main/java/com/bsth/Application.java
@@ -17,7 +17,7 @@ import java.util.concurrent.ScheduledExecutorService; @@ -17,7 +17,7 @@ import java.util.concurrent.ScheduledExecutorService;
17 @SpringBootApplication 17 @SpringBootApplication
18 public class Application extends SpringBootServletInitializer { 18 public class Application extends SpringBootServletInitializer {
19 19
20 - public static ScheduledExecutorService mainServices = Executors.newScheduledThreadPool(16); 20 + public static ScheduledExecutorService mainServices = Executors.newScheduledThreadPool(17);
21 21
22 @Override 22 @Override
23 protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { 23 protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
src/main/java/com/bsth/XDApplication.java
@@ -9,6 +9,7 @@ import com.bsth.data.gpsdata.thread.GpsDataLoaderThread; @@ -9,6 +9,7 @@ import com.bsth.data.gpsdata.thread.GpsDataLoaderThread;
9 import com.bsth.data.gpsdata.thread.OfflineMonitorThread; 9 import com.bsth.data.gpsdata.thread.OfflineMonitorThread;
10 import com.bsth.data.msg_queue.DirectivePushQueue; 10 import com.bsth.data.msg_queue.DirectivePushQueue;
11 import com.bsth.data.msg_queue.WebSocketPushQueue; 11 import com.bsth.data.msg_queue.WebSocketPushQueue;
  12 +import com.bsth.data.schedule.auto_exec.AutoExecScanThread;
12 import com.bsth.data.schedule.edit_logs.SeiPstThread; 13 import com.bsth.data.schedule.edit_logs.SeiPstThread;
13 import com.bsth.data.schedule.late_adjust.ScheduleLateThread; 14 import com.bsth.data.schedule.late_adjust.ScheduleLateThread;
14 import com.bsth.data.schedule.signal.SchSiginUpdateDBThread; 15 import com.bsth.data.schedule.signal.SchSiginUpdateDBThread;
@@ -64,6 +65,8 @@ public class XDApplication implements CommandLineRunner { @@ -64,6 +65,8 @@ public class XDApplication implements CommandLineRunner {
64 SampleTimeDataLoader sampleTimeDataLoader; 65 SampleTimeDataLoader sampleTimeDataLoader;
65 @Autowired 66 @Autowired
66 SchSiginUpdateDBThread schSiginUpdateDBThread; 67 SchSiginUpdateDBThread schSiginUpdateDBThread;
  68 + @Autowired
  69 + AutoExecScanThread autoExecScanThread;
67 70
68 private static long timeDiff; 71 private static long timeDiff;
69 private static long timeDiffTraffic; 72 private static long timeDiffTraffic;
@@ -111,6 +114,8 @@ public class XDApplication implements CommandLineRunner { @@ -111,6 +114,8 @@ public class XDApplication implements CommandLineRunner {
111 //sexec.scheduleWithFixedDelay(gpsDataLoader, 30, 2, TimeUnit.SECONDS); 114 //sexec.scheduleWithFixedDelay(gpsDataLoader, 30, 2, TimeUnit.SECONDS);
112 //实际排班更新线程 115 //实际排班更新线程
113 //sexec.scheduleWithFixedDelay(scheduleRefreshThread, 15, 240, TimeUnit.SECONDS); 116 //sexec.scheduleWithFixedDelay(scheduleRefreshThread, 15, 240, TimeUnit.SECONDS);
  117 + //sexec.scheduleWithFixedDelay(autoExecScanThread, 100, 50, TimeUnit.SECONDS);//班次自动执行
  118 + //WebSocketPushQueue.start();//消息队列 -webSocket ,推送至线调web页面的
114 //实际排班延迟入库线程 119 //实际排班延迟入库线程
115 //sexec.scheduleWithFixedDelay(schedulePstThread, 60, 15, TimeUnit.SECONDS); 120 //sexec.scheduleWithFixedDelay(schedulePstThread, 60, 15, TimeUnit.SECONDS);
116 //班次修正日志延迟入库 121 //班次修正日志延迟入库
@@ -137,6 +142,7 @@ public class XDApplication implements CommandLineRunner { @@ -137,6 +142,7 @@ public class XDApplication implements CommandLineRunner {
137 sexec.scheduleWithFixedDelay(threadMonotor, 240, 60, TimeUnit.SECONDS);//线程监听(防止重要的线程阻塞、异常结束。以及部分主备切换工作) 142 sexec.scheduleWithFixedDelay(threadMonotor, 240, 60, TimeUnit.SECONDS);//线程监听(防止重要的线程阻塞、异常结束。以及部分主备切换工作)
138 sexec.scheduleWithFixedDelay(sampleTimeDataLoader, 140, 120 * 60, TimeUnit.SECONDS);//到离站预测需要的站点间耗时数据 143 sexec.scheduleWithFixedDelay(sampleTimeDataLoader, 140, 120 * 60, TimeUnit.SECONDS);//到离站预测需要的站点间耗时数据
139 sexec.scheduleWithFixedDelay(basicDataLoader, 2, 2, TimeUnit.HOURS);//基础数据更新 144 sexec.scheduleWithFixedDelay(basicDataLoader, 2, 2, TimeUnit.HOURS);//基础数据更新
  145 + sexec.scheduleWithFixedDelay(autoExecScanThread, 160, 50, TimeUnit.SECONDS);//班次自动执行
140 DirectivePushQueue.start();//消息队列 -指令,系统下发的 146 DirectivePushQueue.start();//消息队列 -指令,系统下发的
141 WebSocketPushQueue.start();//消息队列 -webSocket ,推送至线调web页面的 147 WebSocketPushQueue.start();//消息队列 -webSocket ,推送至线调web页面的
142 148
src/main/java/com/bsth/controller/realcontrol/LineConfigController.java
@@ -116,4 +116,9 @@ public class LineConfigController extends BaseController<LineConfig, Integer>{ @@ -116,4 +116,9 @@ public class LineConfigController extends BaseController<LineConfig, Integer>{
116 public Map<String, Object> parkAndStationSet(@RequestParam Map<String, String> map){ 116 public Map<String, Object> parkAndStationSet(@RequestParam Map<String, String> map){
117 return lineConfigService.parkAndStationSet(map); 117 return lineConfigService.parkAndStationSet(map);
118 } 118 }
  119 +
  120 + @RequestMapping(value = "/setAutoExec", method = RequestMethod.POST)
  121 + public Map<String, Object> setAutoExec(@RequestParam Map<String, String> map){
  122 + return lineConfigService.setAutoExec(map);
  123 + }
119 } 124 }
src/main/java/com/bsth/controller/realcontrol/ScheduleRealInfoController.java
@@ -529,8 +529,8 @@ public class ScheduleRealInfoController extends BaseController&lt;ScheduleRealInfo, @@ -529,8 +529,8 @@ public class ScheduleRealInfoController extends BaseController&lt;ScheduleRealInfo,
529 } 529 }
530 530
531 @RequestMapping(value="/changeBcType/{id}", method=RequestMethod.POST) 531 @RequestMapping(value="/changeBcType/{id}", method=RequestMethod.POST)
532 - public Map<String, Object> changeBcType(@PathVariable("id") Long id, String bcType, String remarks){  
533 - return scheduleRealInfoService.changeBcType(id, bcType, remarks); 532 + public Map<String, Object> changeBcType(@PathVariable("id") Long id, String bcType, String remarks, String majorStationName){
  533 + return scheduleRealInfoService.changeBcType(id, bcType, remarks, majorStationName);
534 } 534 }
535 535
536 @RequestMapping(value="/history", method=RequestMethod.POST) 536 @RequestMapping(value="/history", method=RequestMethod.POST)
@@ -549,9 +549,9 @@ public class ScheduleRealInfoController extends BaseController&lt;ScheduleRealInfo, @@ -549,9 +549,9 @@ public class ScheduleRealInfoController extends BaseController&lt;ScheduleRealInfo,
549 public List<String> dateArray(@RequestParam(defaultValue = "0") int c){ 549 public List<String> dateArray(@RequestParam(defaultValue = "0") int c){
550 List<String> rs = new ArrayList<>(); 550 List<String> rs = new ArrayList<>();
551 551
552 - long t = new Date().getTime(); 552 + long t = System.currentTimeMillis();
553 if(c != 1) 553 if(c != 1)
554 - t -= ONE_DAY - (1000 * 60 * 60 * 2); 554 + t -= (ONE_DAY + (1000 * 60 * 60 * 2));
555 for(int i = 0; i < 3; i ++){ 555 for(int i = 0; i < 3; i ++){
556 rs.add(fmtyyyyMMdd.print(t)); 556 rs.add(fmtyyyyMMdd.print(t));
557 t -= ONE_DAY; 557 t -= ONE_DAY;
src/main/java/com/bsth/controller/realcontrol/summary/DestroySituationController.java 0 → 100644
  1 +package com.bsth.controller.realcontrol.summary;
  2 +
  3 +import com.bsth.controller.BaseController;
  4 +import com.bsth.data.summary.entity.DestroySituation;
  5 +import com.bsth.data.summary.service.DestroySituationService;
  6 +import org.springframework.beans.factory.annotation.Autowired;
  7 +import org.springframework.web.bind.annotation.RequestMapping;
  8 +import org.springframework.web.bind.annotation.RequestParam;
  9 +import org.springframework.web.bind.annotation.RestController;
  10 +
  11 +import javax.servlet.http.HttpServletRequest;
  12 +import javax.servlet.http.HttpServletResponse;
  13 +import java.util.Map;
  14 +
  15 +/**
  16 + * Created by panzhao on 2017/11/1.
  17 + */
  18 +@RestController
  19 +@RequestMapping("/summary/destroy_detail")
  20 +public class DestroySituationController extends BaseController<DestroySituation, Long> {
  21 +
  22 + @Autowired
  23 + DestroySituationService destroySituationService;
  24 +
  25 + @RequestMapping("excel")
  26 + public void excel(@RequestParam Map<String, Object> map, HttpServletRequest request, HttpServletResponse response) {
  27 + destroySituationService.excel(map, request, response);
  28 + }
  29 +}
src/main/java/com/bsth/data/gpsdata/arrival/GpsRealAnalyse.java
@@ -41,7 +41,7 @@ public class GpsRealAnalyse { @@ -41,7 +41,7 @@ public class GpsRealAnalyse {
41 @Autowired 41 @Autowired
42 GpsRealData gpsRealData; 42 GpsRealData gpsRealData;
43 43
44 - final static int POOL_SIZE = 15; 44 + final static int POOL_SIZE = 30;
45 static ExecutorService threadPool = Executors.newFixedThreadPool(POOL_SIZE + 1); 45 static ExecutorService threadPool = Executors.newFixedThreadPool(POOL_SIZE + 1);
46 46
47 public static long st; 47 public static long st;
@@ -68,7 +68,7 @@ public class GpsRealAnalyse { @@ -68,7 +68,7 @@ public class GpsRealAnalyse {
68 } 68 }
69 List<String> deviceList = new ArrayList<>(multimap.keySet()); 69 List<String> deviceList = new ArrayList<>(multimap.keySet());
70 70
71 - //数据均分给20个线程 71 + //数据均分给线程
72 ArrayListMultimap dataListMap = ArrayListMultimap.create(); 72 ArrayListMultimap dataListMap = ArrayListMultimap.create();
73 int size = deviceList.size(), threadIndex=0, threadSize = size / POOL_SIZE; 73 int size = deviceList.size(), threadIndex=0, threadSize = size / POOL_SIZE;
74 for(int i = 0; i < size; i++){ 74 for(int i = 0; i < size; i++){
src/main/java/com/bsth/data/gpsdata/arrival/handlers/InOutStationSignalHandle.java
@@ -70,14 +70,18 @@ public class InOutStationSignalHandle extends SignalHandle{ @@ -70,14 +70,18 @@ public class InOutStationSignalHandle extends SignalHandle{
70 return false; 70 return false;
71 } 71 }
72 72
73 - if(isNotEmpty(prevs)){  
74 - GpsEntity prev = prevs.getTail();  
75 - if(isOutStation(gps, prev))  
76 - outStation(gps, prev); 73 + try{
  74 + if(isNotEmpty(prevs)){
  75 + GpsEntity prev = prevs.getTail();
  76 + if(isOutStation(gps, prev))
  77 + outStation(gps, prev);
77 78
78 79
79 - if(isInStation(gps, prev))  
80 - inStation(gps, prev); 80 + if(isInStation(gps, prev))
  81 + inStation(gps, prev);
  82 + }
  83 + }catch (Exception e){
  84 + logger.error("in out error info ..", e);
81 } 85 }
82 86
83 return true; 87 return true;
src/main/java/com/bsth/data/schedule/auto_exec/AutoExecScanThread.java 0 → 100644
  1 +package com.bsth.data.schedule.auto_exec;
  2 +
  3 +import com.bsth.data.LineConfigData;
  4 +import com.bsth.data.schedule.DayOfSchedule;
  5 +import com.bsth.entity.realcontrol.LineConfig;
  6 +import com.bsth.entity.realcontrol.ScheduleRealInfo;
  7 +import org.slf4j.Logger;
  8 +import org.slf4j.LoggerFactory;
  9 +import org.springframework.beans.factory.annotation.Autowired;
  10 +import org.springframework.stereotype.Component;
  11 +
  12 +import java.util.ArrayList;
  13 +import java.util.Collection;
  14 +import java.util.List;
  15 +
  16 +/**
  17 + * 班次自动执行扫描线程
  18 + * Created by panzhao on 2017/10/31.
  19 + */
  20 +@Component
  21 +public class AutoExecScanThread extends Thread{
  22 +
  23 +
  24 + @Autowired
  25 + LineConfigData lineConfigData;
  26 +
  27 + @Autowired
  28 + DayOfSchedule dayOfSchedule;
  29 +
  30 + @Autowired
  31 + RealScheduleAutoExecHandler realScheduleAutoExecHandler;
  32 +
  33 + Logger logger = LoggerFactory.getLogger(this.getClass());
  34 +
  35 + @Override
  36 + public void run() {
  37 + try{
  38 + //要自动执行的线路
  39 + List<String> autos = new ArrayList<>();
  40 + Collection<LineConfig> lcs = lineConfigData.getAll();
  41 +
  42 + for(LineConfig config : lcs){
  43 + if(config.isAutoExec()){
  44 + autos.add(config.getLine().getLineCode());
  45 + }
  46 + }
  47 +
  48 + if(autos.size()==0)
  49 + return;
  50 + List<ScheduleRealInfo> all = new ArrayList<>(dayOfSchedule.findAll());
  51 + for(ScheduleRealInfo sch : all){
  52 + if(autos.contains(sch.getXlBm())){
  53 + realScheduleAutoExecHandler.exec(sch);
  54 + }
  55 + }
  56 + }catch (Exception e){
  57 + logger.error("", e);
  58 + }
  59 + }
  60 +}
src/main/java/com/bsth/data/schedule/auto_exec/RealScheduleAutoExecHandler.java 0 → 100644
  1 +package com.bsth.data.schedule.auto_exec;
  2 +
  3 +import com.bsth.data.schedule.DayOfSchedule;
  4 +import com.bsth.entity.realcontrol.ScheduleRealInfo;
  5 +import com.bsth.websocket.handler.SendUtils;
  6 +import org.springframework.beans.factory.annotation.Autowired;
  7 +import org.springframework.stereotype.Component;
  8 +
  9 +import java.util.ArrayList;
  10 +import java.util.List;
  11 +
  12 +/**
  13 + * 实际班次自动执行
  14 + * Created by panzhao on 2017/10/31.
  15 + */
  16 +@Component
  17 +public class RealScheduleAutoExecHandler {
  18 +
  19 + @Autowired
  20 + SendUtils sendUtils;
  21 + @Autowired
  22 + DayOfSchedule dayOfSchedule;
  23 +
  24 +
  25 + public void exec(ScheduleRealInfo sch) {
  26 + boolean flag = false;
  27 + long t = System.currentTimeMillis();
  28 +
  29 + if (sch.getDfsjT() < t) {
  30 + sch.setFcsjActualAll(sch.getDfsjT());
  31 + flag = true;
  32 + }
  33 +
  34 + if (sch.getZdsjT() < t) {
  35 + sch.setZdsjActualAll(sch.getZdsjT());
  36 + ScheduleRealInfo next = dayOfSchedule.nextByLp(sch);
  37 + if (null != next) {
  38 + next.setQdzArrDatesj(sch.getZdsjActual());
  39 +
  40 + List<ScheduleRealInfo> refs = new ArrayList<>();
  41 + refs.add(sch);
  42 + refs.add(next);
  43 + sendUtils.refreshSch(refs);
  44 + return;
  45 + }
  46 + }
  47 +
  48 + if (flag) {
  49 + sendUtils.refreshSch(sch);
  50 + }
  51 + }
  52 +}
src/main/java/com/bsth/data/summary/entity/DestroySituation.java 0 → 100644
  1 +package com.bsth.data.summary.entity;
  2 +
  3 +import javax.persistence.Entity;
  4 +import javax.persistence.Id;
  5 +import javax.persistence.Table;
  6 +
  7 +/**
  8 + * 烂班情况
  9 + * Created by panzhao on 2017/10/31.
  10 + */
  11 +@Entity
  12 +@Table(name = "z_calc_destroy_detail")
  13 +public class DestroySituation {
  14 +
  15 + @Id
  16 + private Long id;
  17 +
  18 + private String rq;
  19 +
  20 + private String gsBm;
  21 +
  22 + private String fgsBm;
  23 +
  24 + private String lineCode;
  25 +
  26 + private String lineName;
  27 +
  28 + private String nbbm;
  29 +
  30 + private String jGh;
  31 +
  32 + private String sGh;
  33 +
  34 + private String reason;
  35 +
  36 + private int size;
  37 +
  38 + private Double mileage;
  39 +
  40 + private Long t;
  41 +
  42 + private String remark;
  43 +
  44 + private String idsStr;
  45 +
  46 + public Long getId() {
  47 + return id;
  48 + }
  49 +
  50 + public void setId(Long id) {
  51 + this.id = id;
  52 + }
  53 +
  54 + public String getRq() {
  55 + return rq;
  56 + }
  57 +
  58 + public void setRq(String rq) {
  59 + this.rq = rq;
  60 + }
  61 +
  62 + public String getLineCode() {
  63 + return lineCode;
  64 + }
  65 +
  66 + public void setLineCode(String lineCode) {
  67 + this.lineCode = lineCode;
  68 + }
  69 +
  70 + public String getLineName() {
  71 + return lineName;
  72 + }
  73 +
  74 + public void setLineName(String lineName) {
  75 + this.lineName = lineName;
  76 + }
  77 +
  78 + public String getNbbm() {
  79 + return nbbm;
  80 + }
  81 +
  82 + public void setNbbm(String nbbm) {
  83 + this.nbbm = nbbm;
  84 + }
  85 +
  86 + public String getjGh() {
  87 + return jGh;
  88 + }
  89 +
  90 + public void setjGh(String jGh) {
  91 + this.jGh = jGh;
  92 + }
  93 +
  94 + public String getsGh() {
  95 + return sGh;
  96 + }
  97 +
  98 + public void setsGh(String sGh) {
  99 + this.sGh = sGh;
  100 + }
  101 +
  102 + public String getReason() {
  103 + return reason;
  104 + }
  105 +
  106 + public void setReason(String reason) {
  107 + this.reason = reason;
  108 + }
  109 +
  110 + public int getSize() {
  111 + return size;
  112 + }
  113 +
  114 + public void setSize(int size) {
  115 + this.size = size;
  116 + }
  117 +
  118 + public Double getMileage() {
  119 + return mileage;
  120 + }
  121 +
  122 + public void setMileage(Double mileage) {
  123 + this.mileage = mileage;
  124 + }
  125 +
  126 + public Long getT() {
  127 + return t;
  128 + }
  129 +
  130 + public void setT(Long t) {
  131 + this.t = t;
  132 + }
  133 +
  134 + public String getRemark() {
  135 + return remark;
  136 + }
  137 +
  138 + public void setRemark(String remark) {
  139 + this.remark = remark;
  140 + }
  141 +
  142 + public String getIdsStr() {
  143 + return idsStr;
  144 + }
  145 +
  146 + public void setIdsStr(String idsStr) {
  147 + this.idsStr = idsStr;
  148 + }
  149 +
  150 + public String getGsBm() {
  151 + return gsBm;
  152 + }
  153 +
  154 + public void setGsBm(String gsBm) {
  155 + this.gsBm = gsBm;
  156 + }
  157 +
  158 + public String getFgsBm() {
  159 + return fgsBm;
  160 + }
  161 +
  162 + public void setFgsBm(String fgsBm) {
  163 + this.fgsBm = fgsBm;
  164 + }
  165 +}
src/main/java/com/bsth/data/summary/entity/FastAndSlow.java
@@ -21,6 +21,22 @@ public class FastAndSlow { @@ -21,6 +21,22 @@ public class FastAndSlow {
21 private Long id; 21 private Long id;
22 22
23 /** 23 /**
  24 + * 驾驶员
  25 + */
  26 + private String jsy;
  27 +
  28 + /**
  29 + * 车辆自编号
  30 + */
  31 + private String nbbm;
  32 +
  33 + /**
  34 + * 路牌名称
  35 + */
  36 + @Column(name = "lp_name")
  37 + private String lpName;
  38 +
  39 + /**
24 * 发车站点 40 * 发车站点
25 */ 41 */
26 private String stationName; 42 private String stationName;
@@ -281,4 +297,28 @@ public class FastAndSlow { @@ -281,4 +297,28 @@ public class FastAndSlow {
281 public boolean isFast() { 297 public boolean isFast() {
282 return this.fcsjFast>0 || this.dfsjFast>0 || this.zdsjFast>0 || this.zdsjDfFast>0; 298 return this.fcsjFast>0 || this.dfsjFast>0 || this.zdsjFast>0 || this.zdsjDfFast>0;
283 } 299 }
  300 +
  301 + public String getLpName() {
  302 + return lpName;
  303 + }
  304 +
  305 + public void setLpName(String lpName) {
  306 + this.lpName = lpName;
  307 + }
  308 +
  309 + public String getNbbm() {
  310 + return nbbm;
  311 + }
  312 +
  313 + public void setNbbm(String nbbm) {
  314 + this.nbbm = nbbm;
  315 + }
  316 +
  317 + public String getJsy() {
  318 + return jsy;
  319 + }
  320 +
  321 + public void setJsy(String jsy) {
  322 + this.jsy = jsy;
  323 + }
284 } 324 }
285 \ No newline at end of file 325 \ No newline at end of file
src/main/java/com/bsth/data/summary/repository/DestroySituationRepository.java 0 → 100644
  1 +package com.bsth.data.summary.repository;
  2 +
  3 +import com.bsth.data.summary.entity.DestroySituation;
  4 +import com.bsth.repository.BaseRepository;
  5 +import org.springframework.stereotype.Repository;
  6 +
  7 +/**
  8 + * Created by panzhao on 2017/11/1.
  9 + */
  10 +@Repository
  11 +public interface DestroySituationRepository extends BaseRepository<DestroySituation, Long> {
  12 +}
src/main/java/com/bsth/data/summary/service/DestroySituationService.java 0 → 100644
  1 +package com.bsth.data.summary.service;
  2 +
  3 +import com.bsth.data.summary.entity.DestroySituation;
  4 +import com.bsth.service.BaseService;
  5 +
  6 +import javax.servlet.http.HttpServletRequest;
  7 +import javax.servlet.http.HttpServletResponse;
  8 +import java.util.Map;
  9 +
  10 +/**
  11 + * Created by panzhao on 2017/11/1.
  12 + */
  13 +public interface DestroySituationService extends BaseService<DestroySituation, Long> {
  14 + void excel(Map<String, Object> map, HttpServletRequest request, HttpServletResponse response);
  15 +}
0 \ No newline at end of file 16 \ No newline at end of file
src/main/java/com/bsth/data/summary/service/impl/DestroySituationServiceImpl.java 0 → 100644
  1 +package com.bsth.data.summary.service.impl;
  2 +
  3 +import com.bsth.data.summary.entity.DestroySituation;
  4 +import com.bsth.data.summary.service.DestroySituationService;
  5 +import com.bsth.data.utils.CustomStringUtils;
  6 +import com.bsth.service.impl.BaseServiceImpl;
  7 +import org.apache.poi.hssf.usermodel.HSSFWorkbook;
  8 +import org.apache.poi.poifs.filesystem.POIFSFileSystem;
  9 +import org.apache.poi.ss.usermodel.Row;
  10 +import org.apache.poi.ss.usermodel.Sheet;
  11 +import org.slf4j.Logger;
  12 +import org.slf4j.LoggerFactory;
  13 +import org.springframework.stereotype.Service;
  14 +
  15 +import javax.servlet.http.HttpServletRequest;
  16 +import javax.servlet.http.HttpServletResponse;
  17 +import java.io.FileInputStream;
  18 +import java.io.OutputStream;
  19 +import java.net.URLEncoder;
  20 +import java.text.SimpleDateFormat;
  21 +import java.util.*;
  22 +
  23 +/**
  24 + * Created by panzhao on 2017/11/1.
  25 + */
  26 +@Service
  27 +public class DestroySituationServiceImpl extends BaseServiceImpl<DestroySituation, Long> implements DestroySituationService {
  28 +
  29 + Logger logger = LoggerFactory.getLogger(this.getClass());
  30 +
  31 + @Override
  32 + public void excel(Map<String, Object> map, HttpServletRequest request, HttpServletResponse response) {
  33 + try {
  34 + map.put("rq_le", CustomStringUtils.maxEndTime(map.get("rq_ge").toString()
  35 + , map.get("rq_le").toString(), 62));
  36 +
  37 + List<DestroySituation> list = (List<DestroySituation>) super.list(map);
  38 +
  39 + if(list.size() == 0){
  40 + response.setHeader("Content-type", "text/html;charset=UTF-8");
  41 + response.getWriter().print("<span style='color:red;font-size:24px;'>根据查询条件没有搜索到数据,别导了!</span>");
  42 + return ;
  43 + }
  44 +
  45 + //排序
  46 + Collections.sort(list, new Comparator<DestroySituation>() {
  47 + @Override
  48 + public int compare(DestroySituation o1, DestroySituation o2) {
  49 + return (int) (o1.getT() - o2.getT());
  50 + }
  51 + });
  52 +
  53 + //输出excel
  54 + String basePath = Thread.currentThread().getContextClassLoader().getResource("").getPath();
  55 + String filePath = basePath + "/static/pages/summary/excel/烂班明细情况.xls";
  56 + POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(filePath));
  57 + HSSFWorkbook wb = new HSSFWorkbook(fs);
  58 +
  59 + //写入数据
  60 + Sheet sheet = wb.getSheetAt(0);
  61 + Row row;
  62 + DestroySituation dys;
  63 + SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
  64 + for(int i = 0; i < list.size(); i++){
  65 + dys = list.get(i);
  66 + row = sheet.createRow(i + 1);
  67 + row.createCell(0).setCellValue(dys.getRq());
  68 + row.createCell(1).setCellValue(dys.getLineName());
  69 + row.createCell(2).setCellValue(dys.getNbbm());
  70 + row.createCell(3).setCellValue(dys.getjGh());
  71 + row.createCell(4).setCellValue(dys.getsGh());
  72 + row.createCell(5).setCellValue(dys.getReason());
  73 + row.createCell(6).setCellValue(dys.getSize());
  74 + row.createCell(7).setCellValue(dys.getMileage());
  75 + row.createCell(8).setCellValue(sdf.format(new Date(dys.getT())));
  76 + row.createCell(9).setCellValue(dys.getRemark());
  77 + }
  78 +
  79 + String name = list.get(0).getLineName();
  80 + wb.setSheetName(0, name + "烂班明细");
  81 + //response 输出
  82 + String filename = name + map.get("rq_ge") + "至" + map.get("rq_le") + "烂班明细情况.xls";
  83 + response.setContentType("application/x-msdownload");
  84 + response.setHeader("content-disposition", "attachment;filename=" + URLEncoder.encode(filename, "UTF-8"));
  85 +
  86 + OutputStream os = response.getOutputStream();
  87 + wb.write(os);
  88 + os.flush();
  89 + os.close();
  90 + } catch (Exception e) {
  91 + logger.error("", e);
  92 + }
  93 + }
  94 +
  95 +}
0 \ No newline at end of file 96 \ No newline at end of file
src/main/java/com/bsth/data/summary/service/impl/FastAndSlowServiceImpl.java
@@ -4,6 +4,7 @@ import com.bsth.data.BasicData; @@ -4,6 +4,7 @@ import com.bsth.data.BasicData;
4 import com.bsth.data.summary.entity.FastAndSlow; 4 import com.bsth.data.summary.entity.FastAndSlow;
5 import com.bsth.data.summary.service.FastAndSlowService; 5 import com.bsth.data.summary.service.FastAndSlowService;
6 import com.bsth.data.utils.ConvertUtil; 6 import com.bsth.data.utils.ConvertUtil;
  7 +import com.bsth.data.utils.CustomStringUtils;
7 import com.bsth.service.impl.BaseServiceImpl; 8 import com.bsth.service.impl.BaseServiceImpl;
8 import com.google.common.collect.ArrayListMultimap; 9 import com.google.common.collect.ArrayListMultimap;
9 import org.apache.poi.hssf.usermodel.HSSFWorkbook; 10 import org.apache.poi.hssf.usermodel.HSSFWorkbook;
@@ -22,8 +23,6 @@ import javax.servlet.http.HttpServletResponse; @@ -22,8 +23,6 @@ import javax.servlet.http.HttpServletResponse;
22 import java.io.FileInputStream; 23 import java.io.FileInputStream;
23 import java.io.OutputStream; 24 import java.io.OutputStream;
24 import java.net.URLEncoder; 25 import java.net.URLEncoder;
25 -import java.text.ParseException;  
26 -import java.text.SimpleDateFormat;  
27 import java.util.*; 26 import java.util.*;
28 27
29 /** 28 /**
@@ -40,7 +39,7 @@ public class FastAndSlowServiceImpl extends BaseServiceImpl&lt;FastAndSlow, Long&gt; i @@ -40,7 +39,7 @@ public class FastAndSlowServiceImpl extends BaseServiceImpl&lt;FastAndSlow, Long&gt; i
40 public Iterable<FastAndSlow> list(Map<String, Object> map) { 39 public Iterable<FastAndSlow> list(Map<String, Object> map) {
41 try { 40 try {
42 //最多5天 41 //最多5天
43 - map.put("rq_le", maxEndTime(map.get("rq_ge").toString() 42 + map.put("rq_le", CustomStringUtils.maxEndTime(map.get("rq_ge").toString()
44 , map.get("rq_le").toString(), 4)); 43 , map.get("rq_le").toString(), 4));
45 44
46 List<FastAndSlow> list = (List) super.list(map); 45 List<FastAndSlow> list = (List) super.list(map);
@@ -58,7 +57,7 @@ public class FastAndSlowServiceImpl extends BaseServiceImpl&lt;FastAndSlow, Long&gt; i @@ -58,7 +57,7 @@ public class FastAndSlowServiceImpl extends BaseServiceImpl&lt;FastAndSlow, Long&gt; i
58 try { 57 try {
59 Map<String, Object> params = new HashMap(); 58 Map<String, Object> params = new HashMap();
60 //最多31天 59 //最多31天
61 - et = maxEndTime(st, et, 31); 60 + et = CustomStringUtils.maxEndTime(st, et, 31);
62 params.put("rq_ge", st); 61 params.put("rq_ge", st);
63 params.put("rq_le", et); 62 params.put("rq_le", et);
64 params.put("lineCode_eq", lineCode); 63 params.put("lineCode_eq", lineCode);
@@ -119,29 +118,33 @@ public class FastAndSlowServiceImpl extends BaseServiceImpl&lt;FastAndSlow, Long&gt; i @@ -119,29 +118,33 @@ public class FastAndSlowServiceImpl extends BaseServiceImpl&lt;FastAndSlow, Long&gt; i
119 //前4行是表头 118 //前4行是表头
120 Row row; 119 Row row;
121 row = sheet.getRow(0); 120 row = sheet.getRow(0);
122 - row.getCell(4).setCellValue(list.get(0).getRq()); 121 + row.getCell(0).setCellValue(list.get(0).getRq());
123 row.getCell(13).setCellValue(BasicData.lineCode2NameMap.get(list.get(0).getLineCode())); 122 row.getCell(13).setCellValue(BasicData.lineCode2NameMap.get(list.get(0).getLineCode()));
124 FastAndSlow fas; 123 FastAndSlow fas;
125 for(int i = 0; i < list.size(); i++){ 124 for(int i = 0; i < list.size(); i++){
126 fas = list.get(i); 125 fas = list.get(i);
127 row = sheet.createRow(i + 4); 126 row = sheet.createRow(i + 4);
128 row.createCell(0).setCellValue(i + 1); 127 row.createCell(0).setCellValue(i + 1);
129 - row.createCell(1).setCellValue(fas.getStationName());  
130 - row.createCell(2).setCellValue(fas.getUpDown());  
131 - row.createCell(3).setCellValue(fas.getFcsj());  
132 - row.createCell(4).setCellValue(fas.getDfsj());  
133 - row.createCell(5).setCellValue(fas.getFcsjActual());  
134 - row.createCell(6).setCellValue(fas.getFcsjFast());  
135 - row.createCell(7).setCellValue(fas.getFcsjSlow());  
136 - row.createCell(8).setCellValue(fas.getDfsjFast());  
137 - row.createCell(9).setCellValue(fas.getDfsjSlow());  
138 - row.createCell(10).setCellValue(fas.getZdsj());  
139 - row.createCell(11).setCellValue(fas.getZdsjDf());  
140 - row.createCell(12).setCellValue(fas.getZdsjActual());  
141 - row.createCell(13).setCellValue(fas.getZdsjFast());  
142 - row.createCell(14).setCellValue(fas.getZdsjSlow());  
143 - row.createCell(15).setCellValue(fas.getZdsjDfFast());  
144 - row.createCell(16).setCellValue(fas.getZdsjDfSlow()); 128 + row.createCell(1).setCellValue(fas.getLpName());
  129 + row.createCell(2).setCellValue(fas.getNbbm());
  130 + row.createCell(3).setCellValue(fas.getJsy());
  131 +
  132 + row.createCell(4).setCellValue(fas.getStationName());
  133 + row.createCell(5).setCellValue(fas.getUpDown());
  134 + row.createCell(6).setCellValue(fas.getFcsj());
  135 + row.createCell(7).setCellValue(fas.getDfsj());
  136 + row.createCell(8).setCellValue(fas.getFcsjActual());
  137 + row.createCell(9).setCellValue(fas.getFcsjFast());
  138 + row.createCell(10).setCellValue(fas.getFcsjSlow());
  139 + row.createCell(11).setCellValue(fas.getDfsjFast());
  140 + row.createCell(12).setCellValue(fas.getDfsjSlow());
  141 + row.createCell(13).setCellValue(fas.getZdsj());
  142 + row.createCell(14).setCellValue(fas.getZdsjDf());
  143 + row.createCell(15).setCellValue(fas.getZdsjActual());
  144 + row.createCell(16).setCellValue(fas.getZdsjFast());
  145 + row.createCell(17).setCellValue(fas.getZdsjSlow());
  146 + row.createCell(18).setCellValue(fas.getZdsjDfFast());
  147 + row.createCell(19).setCellValue(fas.getZdsjDfSlow());
145 148
146 if(fas.getUpDown()==0) 149 if(fas.getUpDown()==0)
147 ups.add(fas); 150 ups.add(fas);
@@ -151,28 +154,28 @@ public class FastAndSlowServiceImpl extends BaseServiceImpl&lt;FastAndSlow, Long&gt; i @@ -151,28 +154,28 @@ public class FastAndSlowServiceImpl extends BaseServiceImpl&lt;FastAndSlow, Long&gt; i
151 //合计 154 //合计
152 int size = list.size(); 155 int size = list.size();
153 row = sheet.createRow(size + 4); 156 row = sheet.createRow(size + 4);
154 - row.createCell(1).setCellValue("发车:上行(计划快误点:"+jhfcFast(ups)+" 累计时间:"+jhfcFastTime(ups)+" 待发快误点:"+dffcFast(ups)+" 累计时间:"+dffcFastTime(ups)+") ");  
155 - row.createCell(9).setCellValue("下行(计划快误点:"+jhfcFast(downs)+" 累计时间:"+jhfcFastTime(downs)+" 待发快误点:"+dffcFast(downs)+" 累计时间:"+dffcFastTime(downs)+")"); 157 + row.createCell(2).setCellValue("发车:上行(计划快误点:"+jhfcFast(ups)+" 累计时间:"+jhfcFastTime(ups)+" 待发快误点:"+dffcFast(ups)+" 累计时间:"+dffcFastTime(ups)+") ");
  158 + row.createCell(12).setCellValue("下行(计划快误点:"+jhfcFast(downs)+" 累计时间:"+jhfcFastTime(downs)+" 待发快误点:"+dffcFast(downs)+" 累计时间:"+dffcFastTime(downs)+")");
156 row = sheet.createRow(size + 5); 159 row = sheet.createRow(size + 5);
157 - row.createCell(1).setCellValue("发车:上行(计划慢误点:"+jhfcSlow(ups)+" 累计时间:"+jhfcSlowTime(ups)+" 待发慢误点:"+dffcSlow(ups)+" 累计时间:"+dffcSlowTime(ups)+") ");  
158 - row.createCell(9).setCellValue("下行(计划慢误点:"+jhfcSlow(downs)+" 累计时间:"+jhfcSlowTime(downs)+" 待发慢误点:"+dffcSlow(downs)+" 累计时间:"+dffcSlowTime(downs)+")"); 160 + row.createCell(2).setCellValue("发车:上行(计划慢误点:"+jhfcSlow(ups)+" 累计时间:"+jhfcSlowTime(ups)+" 待发慢误点:"+dffcSlow(ups)+" 累计时间:"+dffcSlowTime(ups)+") ");
  161 + row.createCell(12).setCellValue("下行(计划慢误点:"+jhfcSlow(downs)+" 累计时间:"+jhfcSlowTime(downs)+" 待发慢误点:"+dffcSlow(downs)+" 累计时间:"+dffcSlowTime(downs)+")");
159 row = sheet.createRow(size + 6); 162 row = sheet.createRow(size + 6);
160 - row.createCell(1).setCellValue("到达:上行(计划快误点:"+jhzdFast(ups)+" 累计时间:"+jhzdFastTime(ups)+" 待发快误点:"+dfzdFast(ups)+" 累计时间:"+dfzdFastTime(ups)+") ");  
161 - row.createCell(9).setCellValue("下行(计划快误点:"+jhzdFast(downs)+" 累计时间:"+jhzdFastTime(downs)+" 待发快误点:"+dfzdFast(downs)+" 累计时间:"+dfzdFastTime(downs)+")"); 163 + row.createCell(2).setCellValue("到达:上行(计划快误点:"+jhzdFast(ups)+" 累计时间:"+jhzdFastTime(ups)+" 待发快误点:"+dfzdFast(ups)+" 累计时间:"+dfzdFastTime(ups)+") ");
  164 + row.createCell(12).setCellValue("下行(计划快误点:"+jhzdFast(downs)+" 累计时间:"+jhzdFastTime(downs)+" 待发快误点:"+dfzdFast(downs)+" 累计时间:"+dfzdFastTime(downs)+")");
162 row = sheet.createRow(size + 7); 165 row = sheet.createRow(size + 7);
163 - row.createCell(1).setCellValue("到达:上行(计划慢误点:"+jhzdSlow(ups)+" 累计时间:"+jhzdSlowTime(ups)+" 待发慢误点:"+dfzdSlow(ups)+" 累计时间:"+dfzdSlowTime(ups)+") ");  
164 - row.createCell(9).setCellValue("下行(计划慢误点:"+jhzdSlow(downs)+" 累计时间:"+jhzdSlowTime(downs)+" 待发慢误点:"+dfzdSlow(downs)+" 累计时间:"+dfzdSlowTime(downs)+")"); 166 + row.createCell(2).setCellValue("到达:上行(计划慢误点:"+jhzdSlow(ups)+" 累计时间:"+jhzdSlowTime(ups)+" 待发慢误点:"+dfzdSlow(ups)+" 累计时间:"+dfzdSlowTime(ups)+") ");
  167 + row.createCell(12).setCellValue("下行(计划慢误点:"+jhzdSlow(downs)+" 累计时间:"+jhzdSlowTime(downs)+" 待发慢误点:"+dfzdSlow(downs)+" 累计时间:"+dfzdSlowTime(downs)+")");
165 //合并单元格 168 //合并单元格
166 - sheet.addMergedRegion(new CellRangeAddress(size + 4, size + 4, 1, 8));  
167 - sheet.addMergedRegion(new CellRangeAddress(size + 4, size + 4, 9, 16));  
168 - sheet.addMergedRegion(new CellRangeAddress(size + 5, size + 5, 1, 8));  
169 - sheet.addMergedRegion(new CellRangeAddress(size + 5, size + 5, 9, 16));  
170 - sheet.addMergedRegion(new CellRangeAddress(size + 6, size + 6, 1, 8));  
171 - sheet.addMergedRegion(new CellRangeAddress(size + 6, size + 6, 9, 16));  
172 - sheet.addMergedRegion(new CellRangeAddress(size + 7, size + 7, 1, 8));  
173 - sheet.addMergedRegion(new CellRangeAddress(size + 7, size + 7, 9, 16));  
174 -  
175 - sheet.addMergedRegion(new CellRangeAddress(size + 4, size + 7, 0, 0)); 169 + sheet.addMergedRegion(new CellRangeAddress(size + 4, size + 4, 2, 11));
  170 + sheet.addMergedRegion(new CellRangeAddress(size + 4, size + 4, 12, 19));
  171 + sheet.addMergedRegion(new CellRangeAddress(size + 5, size + 5, 2, 11));
  172 + sheet.addMergedRegion(new CellRangeAddress(size + 5, size + 5, 12, 19));
  173 + sheet.addMergedRegion(new CellRangeAddress(size + 6, size + 6, 2, 11));
  174 + sheet.addMergedRegion(new CellRangeAddress(size + 6, size + 6, 12, 19));
  175 + sheet.addMergedRegion(new CellRangeAddress(size + 7, size + 7, 2, 11));
  176 + sheet.addMergedRegion(new CellRangeAddress(size + 7, size + 7, 12, 19));
  177 +
  178 + sheet.addMergedRegion(new CellRangeAddress(size + 4, size + 7, 0, 1));
176 } 179 }
177 180
178 private List<FastAndSlow> filterByType(List<FastAndSlow> all, String type) { 181 private List<FastAndSlow> filterByType(List<FastAndSlow> all, String type) {
@@ -194,23 +197,6 @@ public class FastAndSlowServiceImpl extends BaseServiceImpl&lt;FastAndSlow, Long&gt; i @@ -194,23 +197,6 @@ public class FastAndSlowServiceImpl extends BaseServiceImpl&lt;FastAndSlow, Long&gt; i
194 } 197 }
195 198
196 199
197 - private String maxEndTime(String sStr, String eStr, int space) throws ParseException {  
198 - try {  
199 - SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");  
200 - long st = sdf.parse(sStr).getTime();  
201 - long et = sdf.parse(eStr).getTime();  
202 - long dayTime = 24 * 60 * 60 * 1000;  
203 - long spaceTime = dayTime * space;  
204 -  
205 - if (et - st > spaceTime) {  
206 - eStr = sdf.format(new Date(st + spaceTime));  
207 - }  
208 - } catch (Exception e) {  
209 - throw e;  
210 - }  
211 - return eStr;  
212 - }  
213 -  
214 /** 200 /**
215 * 计划发出快误点 201 * 计划发出快误点
216 * @param list 202 * @param list
src/main/java/com/bsth/data/utils/CustomStringUtils.java
@@ -2,6 +2,10 @@ package com.bsth.data.utils; @@ -2,6 +2,10 @@ package com.bsth.data.utils;
2 2
3 import org.apache.commons.lang3.StringUtils; 3 import org.apache.commons.lang3.StringUtils;
4 4
  5 +import java.text.ParseException;
  6 +import java.text.SimpleDateFormat;
  7 +import java.util.Date;
  8 +
5 /** 9 /**
6 * Created by panzhao on 2017/7/10. 10 * Created by panzhao on 2017/7/10.
7 */ 11 */
@@ -16,4 +20,21 @@ public class CustomStringUtils { @@ -16,4 +20,21 @@ public class CustomStringUtils {
16 } 20 }
17 return s1.equals(s2); 21 return s1.equals(s2);
18 } 22 }
  23 +
  24 + public static String maxEndTime(String sStr, String eStr, int space) throws ParseException {
  25 + try {
  26 + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
  27 + long st = sdf.parse(sStr).getTime();
  28 + long et = sdf.parse(eStr).getTime();
  29 + long dayTime = 24 * 60 * 60 * 1000;
  30 + long spaceTime = dayTime * space;
  31 +
  32 + if (et - st > spaceTime) {
  33 + eStr = sdf.format(new Date(st + spaceTime));
  34 + }
  35 + } catch (Exception e) {
  36 + throw e;
  37 + }
  38 + return eStr;
  39 + }
19 } 40 }
src/main/java/com/bsth/entity/oil/Dlb.java
@@ -73,7 +73,7 @@ public class Dlb { @@ -73,7 +73,7 @@ public class Dlb {
73 private String fgsname; 73 private String fgsname;
74 74
75 75
76 - 76 + private String lp;
77 77
78 public Integer getId() { 78 public Integer getId() {
79 return id; 79 return id;
@@ -383,6 +383,15 @@ public class Dlb { @@ -383,6 +383,15 @@ public class Dlb {
383 public void setUpdatetime(Date updatetime) { 383 public void setUpdatetime(Date updatetime) {
384 this.updatetime = updatetime; 384 this.updatetime = updatetime;
385 } 385 }
  386 +
  387 + public String getLp() {
  388 + return lp;
  389 + }
  390 +
  391 + public void setLp(String lp) {
  392 + this.lp = lp;
  393 + }
  394 +
386 395
387 396
388 } 397 }
src/main/java/com/bsth/entity/oil/Ylb.java
@@ -56,6 +56,7 @@ public class Ylb { @@ -56,6 +56,7 @@ public class Ylb {
56 //进场顺序(根据最先出场和最后进场来关联车辆的存油量) 56 //进场顺序(根据最先出场和最后进场来关联车辆的存油量)
57 private int jcsx; 57 private int jcsx;
58 58
  59 + private String lp;
59 @Transient 60 @Transient
60 private String bglyh; 61 private String bglyh;
61 62
@@ -330,5 +331,14 @@ public class Ylb { @@ -330,5 +331,14 @@ public class Ylb {
330 public void setUpdatetime(Date updatetime) { 331 public void setUpdatetime(Date updatetime) {
331 this.updatetime = updatetime; 332 this.updatetime = updatetime;
332 } 333 }
  334 +
  335 + public String getLp() {
  336 + return lp;
  337 + }
  338 +
  339 + public void setLp(String lp) {
  340 + this.lp = lp;
  341 + }
  342 +
333 343
334 } 344 }
src/main/java/com/bsth/entity/realcontrol/ChildTaskPlan.java
@@ -35,6 +35,7 @@ public class ChildTaskPlan { @@ -35,6 +35,7 @@ public class ChildTaskPlan {
35 35
36 /** 36 /**
37 * 任务类型2 37 * 任务类型2
  38 + * 1 正常 2 进场 3 出场
38 */ 39 */
39 private String type2; 40 private String type2;
40 41
@@ -99,6 +100,11 @@ public class ChildTaskPlan { @@ -99,6 +100,11 @@ public class ChildTaskPlan {
99 private String nbbm; 100 private String nbbm;
100 101
101 /** 102 /**
  103 + * 中途换车营运, 新车关联的主任务ID,子任务删除时,主任务ID将级联
  104 + */
  105 + private Long ccId;
  106 +
  107 + /**
102 * 为true 则无售票员, 否则继承主任务 108 * 为true 则无售票员, 否则继承主任务
103 */ 109 */
104 private boolean noClerk; 110 private boolean noClerk;
@@ -277,4 +283,12 @@ public class ChildTaskPlan { @@ -277,4 +283,12 @@ public class ChildTaskPlan {
277 public void setNoClerk(boolean noClerk) { 283 public void setNoClerk(boolean noClerk) {
278 this.noClerk = noClerk; 284 this.noClerk = noClerk;
279 } 285 }
  286 +
  287 + public Long getCcId() {
  288 + return ccId;
  289 + }
  290 +
  291 + public void setCcId(Long ccId) {
  292 + this.ccId = ccId;
  293 + }
280 } 294 }
src/main/java/com/bsth/entity/realcontrol/LineConfig.java
@@ -65,6 +65,8 @@ public class LineConfig { @@ -65,6 +65,8 @@ public class LineConfig {
65 /** 原线路回场 */ 65 /** 原线路回场 */
66 private boolean inParkForSource; 66 private boolean inParkForSource;
67 67
  68 + private boolean autoExec;
  69 +
68 /** 70 /**
69 * 到离站偏移值 71 * 到离站偏移值
70 */ 72 */
@@ -294,4 +296,12 @@ public class LineConfig { @@ -294,4 +296,12 @@ public class LineConfig {
294 public void setLockFirstOutTime(boolean lockFirstOutTime) { 296 public void setLockFirstOutTime(boolean lockFirstOutTime) {
295 this.lockFirstOutTime = lockFirstOutTime; 297 this.lockFirstOutTime = lockFirstOutTime;
296 } 298 }
  299 +
  300 + public boolean isAutoExec() {
  301 + return autoExec;
  302 + }
  303 +
  304 + public void setAutoExec(boolean autoExec) {
  305 + this.autoExec = autoExec;
  306 + }
297 } 307 }
src/main/java/com/bsth/entity/realcontrol/ScheduleRealInfo.java
@@ -108,6 +108,9 @@ public class ScheduleRealInfo { @@ -108,6 +108,9 @@ public class ScheduleRealInfo {
108 */ 108 */
109 private String bcType; 109 private String bcType;
110 110
  111 + //放站班次 站点名称
  112 + private String majorStationName;
  113 +
111 /** 创建人 */ 114 /** 创建人 */
112 @JsonIgnore 115 @JsonIgnore
113 @ManyToOne(fetch = FetchType.LAZY) 116 @ManyToOne(fetch = FetchType.LAZY)
@@ -225,6 +228,11 @@ public class ScheduleRealInfo { @@ -225,6 +228,11 @@ public class ScheduleRealInfo {
225 */ 228 */
226 private Integer driftStatus = 0; 229 private Integer driftStatus = 0;
227 230
  231 + /**
  232 + * 换车营运标记 true 表示该主任务由 【中途换车子任务】 级联生成
  233 + */
  234 + private boolean ccService;
  235 +
228 public boolean isDfAuto() { 236 public boolean isDfAuto() {
229 return dfAuto; 237 return dfAuto;
230 } 238 }
@@ -958,4 +966,20 @@ public class ScheduleRealInfo { @@ -958,4 +966,20 @@ public class ScheduleRealInfo {
958 public void setDriftStatus(Integer driftStatus) { 966 public void setDriftStatus(Integer driftStatus) {
959 this.driftStatus = driftStatus; 967 this.driftStatus = driftStatus;
960 } 968 }
  969 +
  970 + public boolean isCcService() {
  971 + return ccService;
  972 + }
  973 +
  974 + public void setCcService(boolean ccService) {
  975 + this.ccService = ccService;
  976 + }
  977 +
  978 + public String getMajorStationName() {
  979 + return majorStationName;
  980 + }
  981 +
  982 + public void setMajorStationName(String majorStationName) {
  983 + this.majorStationName = majorStationName;
  984 + }
961 } 985 }
src/main/java/com/bsth/repository/SectionRepository.java
1 package com.bsth.repository; 1 package com.bsth.repository;
2 2
3 -  
4 import org.springframework.data.jpa.repository.Modifying; 3 import org.springframework.data.jpa.repository.Modifying;
5 import org.springframework.data.jpa.repository.Query; 4 import org.springframework.data.jpa.repository.Query;
6 import org.springframework.stereotype.Repository; 5 import org.springframework.stereotype.Repository;
@@ -8,6 +7,8 @@ import org.springframework.transaction.annotation.Transactional; @@ -8,6 +7,8 @@ import org.springframework.transaction.annotation.Transactional;
8 7
9 import com.bsth.entity.Section; 8 import com.bsth.entity.Section;
10 9
  10 +import java.util.List;
  11 +
11 /** 12 /**
12 * 13 *
13 * @Interface: SectionRepository(路段Repository数据持久层接口) 14 * @Interface: SectionRepository(路段Repository数据持久层接口)
@@ -112,4 +113,8 @@ public interface SectionRepository extends BaseRepository&lt;Section, Integer&gt; { @@ -112,4 +113,8 @@ public interface SectionRepository extends BaseRepository&lt;Section, Integer&gt; {
112 Double speedLimit,String descriptions,Integer version,Integer createBy,String createDate, 113 Double speedLimit,String descriptions,Integer version,Integer createBy,String createDate,
113 114
114 Integer updateBy,String updateDate); 115 Integer updateBy,String updateDate);
  116 +
  117 + @Query(value = "SELECT AsText(s.bsection_vector) as section,r.directions as dir FROM bsth_c_section s left join bsth_c_sectionroute r on s.section_code = r.section_code " +
  118 + "where r.line = ?1 and directions = ?2 ORDER BY r.directions,r.sectionroute_code ",nativeQuery = true)
  119 + List<Object[]> getSectionDirByLineId(Integer lineId , Integer directions);
115 } 120 }
src/main/java/com/bsth/repository/oil/YlbRepository.java
@@ -125,8 +125,8 @@ public interface YlbRepository extends BaseRepository&lt;Ylb, Integer&gt;{ @@ -125,8 +125,8 @@ public interface YlbRepository extends BaseRepository&lt;Ylb, Integer&gt;{
125 125
126 @Query(value="select s from Ylb s " 126 @Query(value="select s from Ylb s "
127 + " where to_days(?1)=to_days(s.rq) " 127 + " where to_days(?1)=to_days(s.rq) "
128 - + " and s.ssgsdm like %?2% "  
129 - + " and s.fgsdm like %?3%" 128 + + " and s.ssgsdm =?2 "
  129 + + " and s.fgsdm =?3 "
130 + " and s.xlbm like %?4% " 130 + " and s.xlbm like %?4% "
131 + " and s.nbbm in ?5 order by nbbm,jcsx") 131 + " and s.nbbm in ?5 order by nbbm,jcsx")
132 List<Ylb> listYlb(String rq, String gsbm,String fgsbm,String xlbm,List<String> listNbbm); 132 List<Ylb> listYlb(String rq, String gsbm,String fgsbm,String xlbm,List<String> listNbbm);
src/main/java/com/bsth/repository/oil/YlxxbRepository.java
@@ -17,17 +17,17 @@ public interface YlxxbRepository extends BaseRepository&lt;Ylxxb, Integer&gt;{ @@ -17,17 +17,17 @@ public interface YlxxbRepository extends BaseRepository&lt;Ylxxb, Integer&gt;{
17 * @param rq 17 * @param rq
18 * @return 18 * @return
19 */ 19 */
20 - @Query(value="SELECT * FROM bsth_c_ylxxb where to_days(?1)=to_days(yyrq) and nylx=?2 and gsdm like %?3%",nativeQuery=true) 20 + @Query(value="SELECT * FROM bsth_c_ylxxb where yyrq=?1 and nylx=?2 and gsdm like %?3%",nativeQuery=true)
21 List<Ylxxb> obtainYlxx(String rq,int nylx,String gsdm); 21 List<Ylxxb> obtainYlxx(String rq,int nylx,String gsdm);
22 22
23 - @Query(value="SELECT * FROM bsth_c_ylxxb where to_days(?1)=to_days(yyrq) and gsdm=?2",nativeQuery=true) 23 + @Query(value="SELECT * FROM bsth_c_ylxxb where yyrq=?1 and gsdm=?2",nativeQuery=true)
24 List<Ylxxb> checkYlxx(String rq,String gs); 24 List<Ylxxb> checkYlxx(String rq,String gs);
25 25
26 - @Query(value="SELECT * FROM bsth_c_ylxxb where to_days(?1)=to_days(yyrq) and nbbm =?2 and jylx=1",nativeQuery=true) 26 + @Query(value="SELECT * FROM bsth_c_ylxxb where yyrq=?1 and nbbm =?2 and jylx=1",nativeQuery=true)
27 List<Ylxxb> obtainYlxx2(String rq,String nbbm); 27 List<Ylxxb> obtainYlxx2(String rq,String nbbm);
28 28
29 @Query(value="select * from bsth_c_ylxxb s where s.nbbm = ?1 and " 29 @Query(value="select * from bsth_c_ylxxb s where s.nbbm = ?1 and "
30 - + "to_days(s.yyrq) = to_days(?2)",nativeQuery=true) 30 + + "s.yyrq=?2",nativeQuery=true)
31 List<Ylxxb> queryListYlxxb(String clZbh,String date); 31 List<Ylxxb> queryListYlxxb(String clZbh,String date);
32 32
33 33
src/main/java/com/bsth/repository/realcontrol/ScheduleRealInfoRepository.java
@@ -129,7 +129,7 @@ public interface ScheduleRealInfoRepository extends BaseRepository&lt;ScheduleRealI @@ -129,7 +129,7 @@ public interface ScheduleRealInfoRepository extends BaseRepository&lt;ScheduleRealI
129 int countByLineCodeAndDate(String xlBm, String schDate); 129 int countByLineCodeAndDate(String xlBm, String schDate);
130 130
131 @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) 131 @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH)
132 - @Query(value = "select DISTINCT s from ScheduleRealInfo s where s.xlBm=?1 and s.scheduleDateStr=?2") 132 + @Query(value = "select DISTINCT s from ScheduleRealInfo s where s.xlBm=?1 and s.scheduleDateStr=?2 and ccService=false")
133 List<ScheduleRealInfo> findByLineCodeAndDate(String xlBm, String schDate); 133 List<ScheduleRealInfo> findByLineCodeAndDate(String xlBm, String schDate);
134 134
135 @Modifying 135 @Modifying
@@ -146,7 +146,14 @@ public interface ScheduleRealInfoRepository extends BaseRepository&lt;ScheduleRealI @@ -146,7 +146,14 @@ public interface ScheduleRealInfoRepository extends BaseRepository&lt;ScheduleRealI
146 @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm =?1 and s.scheduleDateStr = ?2 order by s.lpName, s.realExecDate,s.fcsj") 146 @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm =?1 and s.scheduleDateStr = ?2 order by s.lpName, s.realExecDate,s.fcsj")
147 List<ScheduleRealInfo> scheduleByDateAndLineQp(String line,String date); 147 List<ScheduleRealInfo> scheduleByDateAndLineQp(String line,String date);
148 148
149 - 149 + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH)
  150 + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm =?1 and s.scheduleDateStr = ?2 and s.ccService=false order by s.lpName, s.realExecDate,s.fcsj")
  151 + List<ScheduleRealInfo> scheduleDdrb(String line,String date);
  152 +
  153 + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH)
  154 + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr= ?2 and s.ccService=false order by s.xlDir,s.realExecDate,s.fcsj, s.lpName")
  155 + List<ScheduleRealInfo> scheduleDdrb2(String line,String date);
  156 +
150 @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) 157 @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH)
151 @Query(value="select DISTINCT s from ScheduleRealInfo s where gsBm like %?1% and fgsBm like %?2% and s.scheduleDateStr = ?3 order by s.xlDir,s.realExecDate,s.fcsj, s.lpName") 158 @Query(value="select DISTINCT s from ScheduleRealInfo s where gsBm like %?1% and fgsBm like %?2% and s.scheduleDateStr = ?3 order by s.xlDir,s.realExecDate,s.fcsj, s.lpName")
152 List<ScheduleRealInfo> scheduleByDateAndLineByGs_(String gsdm,String fgsdm,String date); 159 List<ScheduleRealInfo> scheduleByDateAndLineByGs_(String gsdm,String fgsdm,String date);
@@ -170,7 +177,7 @@ public interface ScheduleRealInfoRepository extends BaseRepository&lt;ScheduleRealI @@ -170,7 +177,7 @@ public interface ScheduleRealInfoRepository extends BaseRepository&lt;ScheduleRealI
170 177
171 //按照时间段统计 178 //按照时间段统计
172 @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) 179 @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH)
173 - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm like %?1% and s.scheduleDateStr >= ?2 and s.scheduleDateStr<= ?3 and gsBm like %?4% and fgsBm like %?5% order by s.xlBm") 180 + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm like %?1% and s.scheduleDateStr between ?2 and ?3 and gsBm = ?4 and fgsBm = ?5 order by s.xlBm")
174 List<ScheduleRealInfo> scheduleByDateAndLineTj(String line,String date,String date2,String gsdm,String fgsdm); 181 List<ScheduleRealInfo> scheduleByDateAndLineTj(String line,String date,String date2,String gsdm,String fgsdm);
175 182
176 //按照时间段统计 183 //按照时间段统计
@@ -183,10 +190,10 @@ public interface ScheduleRealInfoRepository extends BaseRepository&lt;ScheduleRealI @@ -183,10 +190,10 @@ public interface ScheduleRealInfoRepository extends BaseRepository&lt;ScheduleRealI
183 List<ScheduleRealInfo> scheduleByDateAndLineYbb(String line,String date,String date2); 190 List<ScheduleRealInfo> scheduleByDateAndLineYbb(String line,String date,String date2);
184 191
185 192
186 - @Query(value="select new map(s.scheduleDate as scheduleDate,s.xlBm as xlBm,s.clZbh as clZbh,s.jGh as jGh,min(s.fcsj) as fcsj ) from ScheduleRealInfo s where s.xlBm like %?1% and s.scheduleDateStr = ?2 and s.gsBm like %?3% and s.fgsBm like %?4% and s.clZbh like %?5% GROUP BY xlBm,clZbh,jGh,scheduleDate ORDER BY clZbh,fcsj") 193 + @Query(value="select new map(s.scheduleDate as scheduleDate,s.xlBm as xlBm,s.clZbh as clZbh,s.jGh as jGh,s.lpName as lpName,min(s.fcsj) as fcsj,min(s.realExecDate) as realExecDate ) from ScheduleRealInfo s where s.xlBm like %?1% and s.scheduleDateStr = ?2 and s.gsBm like %?3% and s.fgsBm like %?4% and s.clZbh like %?5% GROUP BY xlBm,clZbh,jGh,scheduleDate,lpName ORDER BY clZbh,realExecDate,fcsj")
187 List<Map<String,Object>> yesterdayDataList(String line,String date,String gsbm,String fgsbm,String nbbm); 194 List<Map<String,Object>> yesterdayDataList(String line,String date,String gsbm,String fgsbm,String nbbm);
188 195
189 - @Query(value="select new map(s.scheduleDate as scheduleDate,s.xlBm as xlBm,s.clZbh as clZbh,s.jGh as jGh,min(s.fcsj) as fcsj ) from ScheduleRealInfo s where s.xlBm =?1 and s.scheduleDateStr = ?2 and s.gsBm like %?3% and s.fgsBm like %?4% and s.clZbh like %?5% GROUP BY xlBm,clZbh,jGh,scheduleDate ORDER BY clZbh,fcsj") 196 + @Query(value="select new map(s.scheduleDate as scheduleDate,s.xlBm as xlBm,s.clZbh as clZbh,s.jGh as jGh,s.lpName as lpName,min(s.fcsj) as fcsj,min(s.realExecDate) as realExecDate ) from ScheduleRealInfo s where s.xlBm =?1 and s.scheduleDateStr = ?2 and s.gsBm like %?3% and s.fgsBm like %?4% and s.clZbh like %?5% GROUP BY xlBm,clZbh,jGh,scheduleDate,lpName ORDER BY clZbh,realExecDate,fcsj")
190 List<Map<String,Object>> yesterdayDataList_eq(String line,String date,String gsbm,String fgsbm,String nbbm); 197 List<Map<String,Object>> yesterdayDataList_eq(String line,String date,String gsbm,String fgsbm,String nbbm);
191 198
192 @Query(value="select s from ScheduleRealInfo s where s.scheduleDateStr = ?1 ORDER BY xlBm,lpName,clZbh,xlDir") 199 @Query(value="select s from ScheduleRealInfo s where s.scheduleDateStr = ?1 ORDER BY xlBm,lpName,clZbh,xlDir")
src/main/java/com/bsth/service/directive/DirectiveServiceImpl.java
@@ -110,8 +110,15 @@ public class DirectiveServiceImpl extends BaseServiceImpl&lt;D60, Integer&gt; implemen @@ -110,8 +110,15 @@ public class DirectiveServiceImpl extends BaseServiceImpl&lt;D60, Integer&gt; implemen
110 logger.warn("烂班不允许发送调度指令...."); 110 logger.warn("烂班不允许发送调度指令....");
111 return -1; 111 return -1;
112 } 112 }
113 - String text = "已完成" + finish + "个班次,下一发车时间" + fmtHHmm_CN.print(sch.getDfsjT()) + ",由"  
114 - + sch.getQdzName() + "发往" + sch.getZdzName(); 113 + String text = "您已完成" + finish + "个班次,下一发车时间" + fmtHHmm_CN.print(sch.getDfsjT()) + ",由"
  114 + + sch.getQdzName() + "发往" + sch.getZdzName() ;
  115 +
  116 + if(sch.getBcType().equals("venting")){
  117 + text += " (直放)";
  118 + }
  119 + else if(sch.getBcType().equals("major")){
  120 + text += " (放站到"+sch.getMajorStationName()+"带客)";
  121 + }
115 122
116 //下发0x01指令 调度指令(闹钟有效) 123 //下发0x01指令 调度指令(闹钟有效)
117 long t = System.currentTimeMillis() + 1000 * 30, 124 long t = System.currentTimeMillis() + 1000 * 30,
src/main/java/com/bsth/service/forms/impl/FormsServiceImpl.java
@@ -739,15 +739,29 @@ public class FormsServiceImpl implements FormsService { @@ -739,15 +739,29 @@ public class FormsServiceImpl implements FormsService {
739 ScheduleRealInfo s=listReal.get(j); 739 ScheduleRealInfo s=listReal.get(j);
740 if(s.getjGh().equals(jsy) && s.getClZbh().equals(clzbh) 740 if(s.getjGh().equals(jsy) && s.getClZbh().equals(clzbh)
741 &&s.getXlBm().equals(line)){ 741 &&s.getXlBm().equals(line)){
742 - newList.add(s);  
743 - Set<ChildTaskPlan> cts = s.getcTasks();  
744 - if(cts != null && cts.size() > 0){  
745 - newList_.add(s);  
746 - }else{  
747 - if(s.getZdsjActual()!=null){ 742 + if(y.getLp()==null){
  743 + newList.add(s);
  744 + Set<ChildTaskPlan> cts = s.getcTasks();
  745 + if(cts != null && cts.size() > 0){
748 newList_.add(s); 746 newList_.add(s);
  747 + }else{
  748 + if(s.getZdsjActual()!=null && s.getFcsjActual()!=null){
  749 + newList_.add(s);
  750 + }
749 } 751 }
750 - } 752 + }else{
  753 + if(y.getLp().equals(s.getLpName())){
  754 + newList.add(s);
  755 + Set<ChildTaskPlan> cts = s.getcTasks();
  756 + if(cts != null && cts.size() > 0){
  757 + newList_.add(s);
  758 + }else{
  759 + if(s.getZdsjActual()!=null && s.getFcsjActual()!=null){
  760 + newList_.add(s);
  761 + }
  762 + }
  763 + }
  764 + }
751 } 765 }
752 } 766 }
753 double jhgl=culateMileageService.culateJhgl(newList); 767 double jhgl=culateMileageService.culateJhgl(newList);
@@ -793,15 +807,29 @@ public class FormsServiceImpl implements FormsService { @@ -793,15 +807,29 @@ public class FormsServiceImpl implements FormsService {
793 ScheduleRealInfo s=listReal.get(j); 807 ScheduleRealInfo s=listReal.get(j);
794 if(s.getjGh().equals(jsy) && s.getClZbh().equals(clzbh) 808 if(s.getjGh().equals(jsy) && s.getClZbh().equals(clzbh)
795 &&s.getXlBm().equals(line)){ 809 &&s.getXlBm().equals(line)){
796 - newList.add(s);  
797 - Set<ChildTaskPlan> cts = s.getcTasks(); 810 + if(y.getLp()==null){
  811 + newList.add(s);
  812 + Set<ChildTaskPlan> cts = s.getcTasks();
798 if(cts != null && cts.size() > 0){ 813 if(cts != null && cts.size() > 0){
799 newList_.add(s); 814 newList_.add(s);
800 }else{ 815 }else{
801 - if(s.getZdsjActual()!=null){ 816 + if(s.getZdsjActual()!=null && s.getFcsjActual()!=null){
802 newList_.add(s); 817 newList_.add(s);
803 } 818 }
804 } 819 }
  820 + }else{
  821 + if(y.getLp().equals(s.getLpName())){
  822 + newList.add(s);
  823 + Set<ChildTaskPlan> cts = s.getcTasks();
  824 + if(cts != null && cts.size() > 0){
  825 + newList_.add(s);
  826 + }else{
  827 + if(s.getZdsjActual()!=null && s.getFcsjActual()!=null){
  828 + newList_.add(s);
  829 + }
  830 + }
  831 + }
  832 + }
805 } 833 }
806 } 834 }
807 double jhgl=culateMileageService.culateJhgl(newList); 835 double jhgl=culateMileageService.culateJhgl(newList);
@@ -884,7 +912,7 @@ public class FormsServiceImpl implements FormsService { @@ -884,7 +912,7 @@ public class FormsServiceImpl implements FormsService {
884 if(cts != null && cts.size() > 0){ 912 if(cts != null && cts.size() > 0){
885 newList_.add(s); 913 newList_.add(s);
886 }else{ 914 }else{
887 - if(s.getZdsjActual()!=null){ 915 + if(s.getZdsjActual()!=null && s.getFcsjActual()!=null){
888 newList_.add(s); 916 newList_.add(s);
889 } 917 }
890 } 918 }
@@ -1199,8 +1227,8 @@ public class FormsServiceImpl implements FormsService { @@ -1199,8 +1227,8 @@ public class FormsServiceImpl implements FormsService {
1199 1227
1200 String sql = "select gs_name, fgs_name, cl_zbh, fcsj, bc_type, xl_bm, xl_name, schedule_date" 1228 String sql = "select gs_name, fgs_name, cl_zbh, fcsj, bc_type, xl_bm, xl_name, schedule_date"
1201 + " from bsth_c_s_sp_info where gs_bm = '"+company+"' and fgs_bm = '"+subCompany+"' " 1229 + " from bsth_c_s_sp_info where gs_bm = '"+company+"' and fgs_bm = '"+subCompany+"' "
1202 - + "and schedule_date_str >= '"+startDate+"' "  
1203 - + "and schedule_date_str <= '"+endDate+"' "; 1230 + + "and DATE_FORMAT(schedule_date,'%Y-%m-%d') >= '"+startDate+"' "
  1231 + + "and DATE_FORMAT(schedule_date,'%Y-%m-%d') <= '"+endDate+"' ";
1204 if(line.trim().length() != 0){ 1232 if(line.trim().length() != 0){
1205 sql += "and xl_bm = '"+line+"' "; 1233 sql += "and xl_bm = '"+line+"' ";
1206 } 1234 }
@@ -1356,8 +1384,8 @@ public class FormsServiceImpl implements FormsService { @@ -1356,8 +1384,8 @@ public class FormsServiceImpl implements FormsService {
1356 1384
1357 String sql = " select b.xlgs, a.gs_bm,a.gs_name, a.fgs_bm,a.fgs_name , a.xl_bm,b.xl_name,b.sbc,b.sxl,b.scl,a.jbc ,a.jxl ,a.jcl,a.gslsbm,a.fgsbm,a.bc_type from " 1385 String sql = " select b.xlgs, a.gs_bm,a.gs_name, a.fgs_bm,a.fgs_name , a.xl_bm,b.xl_name,b.sbc,b.sxl,b.scl,a.jbc ,a.jxl ,a.jcl,a.gslsbm,a.fgsbm,a.bc_type from "
1358 + " (select count(DISTINCT gs_bm) gslsbm, gs_bm, count(DISTINCT fgs_bm) fgsbm,fgs_bm,gs_name,fgs_name ,xl_bm, count(*) as jbc,COUNT(DISTINCT xl_bm) as jxl ,COUNT(DISTINCT cl_zbh) as jcl,bc_type" 1386 + " (select count(DISTINCT gs_bm) gslsbm, gs_bm, count(DISTINCT fgs_bm) fgsbm,fgs_bm,gs_name,fgs_name ,xl_bm, count(*) as jbc,COUNT(DISTINCT xl_bm) as jxl ,COUNT(DISTINCT cl_zbh) as jcl,bc_type"
1359 - + " from bsth_c_s_sp_info" + " where schedule_date_str >= '"  
1360 - + map.get("startDate").toString() + "' and schedule_date_str <='" + map.get("endDate").toString() + "' and xl_bm='" 1387 + + " from bsth_c_s_sp_info" + " where DATE_FORMAT(schedule_date,'%Y-%m-%d') BETWEEN '"
  1388 + + map.get("startDate").toString() + "' and '" + map.get("endDate").toString() + "' and xl_bm='"
1361 + map.get("line").toString() + "' AND gs_bm is not null AND bc_type NOT IN ('in', 'out')" 1389 + map.get("line").toString() + "' AND gs_bm is not null AND bc_type NOT IN ('in', 'out')"
1362 + " and gs_bm='"+ map.get("gsdmEcecut").toString() + "'" 1390 + " and gs_bm='"+ map.get("gsdmEcecut").toString() + "'"
1363 + " and fgs_bm='"+ map.get("fgsdmEcecut").toString() + "'" 1391 + " and fgs_bm='"+ map.get("fgsdmEcecut").toString() + "'"
@@ -1440,8 +1468,8 @@ public class FormsServiceImpl implements FormsService { @@ -1440,8 +1468,8 @@ public class FormsServiceImpl implements FormsService {
1440 1468
1441 String sql = " select b.xlgs, a.gs_bm,a.gs_name, a.fgs_bm,a.fgs_name , a.xl_bm,b.xl_name,b.sbc,b.sxl,b.scl,a.jbc ,a.jxl ,a.jcl,a.gslsbm,a.fgsbm,a.bc_type from " 1469 String sql = " select b.xlgs, a.gs_bm,a.gs_name, a.fgs_bm,a.fgs_name , a.xl_bm,b.xl_name,b.sbc,b.sxl,b.scl,a.jbc ,a.jxl ,a.jcl,a.gslsbm,a.fgsbm,a.bc_type from "
1442 + " (select count(DISTINCT gs_bm) gslsbm, gs_bm, count(DISTINCT fgs_bm) fgsbm,fgs_bm,gs_name,fgs_name ,xl_bm, count(*) as jbc,COUNT(DISTINCT xl_bm) as jxl ,COUNT(DISTINCT cl_zbh) as jcl,bc_type" 1470 + " (select count(DISTINCT gs_bm) gslsbm, gs_bm, count(DISTINCT fgs_bm) fgsbm,fgs_bm,gs_name,fgs_name ,xl_bm, count(*) as jbc,COUNT(DISTINCT xl_bm) as jxl ,COUNT(DISTINCT cl_zbh) as jcl,bc_type"
1443 - + " from bsth_c_s_sp_info" + " where schedule_date_str >= '"  
1444 - + map.get("startDate").toString() + "' and schedule_date_str<= '" + map.get("endDate").toString() + "' and xl_bm='" 1471 + + " from bsth_c_s_sp_info" + " where DATE_FORMAT(schedule_date,'%Y-%m-%d') BETWEEN '"
  1472 + + map.get("startDate").toString() + "' and '" + map.get("endDate").toString() + "' and xl_bm='"
1445 + map.get("line").toString() + "' AND gs_bm is not null AND bc_type NOT IN ('in', 'out') " 1473 + map.get("line").toString() + "' AND gs_bm is not null AND bc_type NOT IN ('in', 'out') "
1446 + " and gs_bm='"+ map.get("gsdmAllline").toString() + "'" 1474 + " and gs_bm='"+ map.get("gsdmAllline").toString() + "'"
1447 + " and fgs_bm='"+ map.get("fgsdmAllline").toString() + "'" 1475 + " and fgs_bm='"+ map.get("fgsdmAllline").toString() + "'"
@@ -1604,7 +1632,7 @@ public class FormsServiceImpl implements FormsService { @@ -1604,7 +1632,7 @@ public class FormsServiceImpl implements FormsService {
1604 @Override 1632 @Override
1605 public int compare(Singledata o1, Singledata o2) { 1633 public int compare(Singledata o1, Singledata o2) {
1606 // TODO Auto-generated method stub 1634 // TODO Auto-generated method stub
1607 - return o2.getxL().compareTo(o1.getxL()); 1635 + return (o2.getxL()+o2.getClzbh()).compareTo((o1.getxL()+o1.getClzbh()));
1608 } 1636 }
1609 } 1637 }
1610 } 1638 }
src/main/java/com/bsth/service/impl/BusIntervalServiceImpl.java
@@ -57,7 +57,7 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -57,7 +57,7 @@ public class BusIntervalServiceImpl implements BusIntervalService {
57 57
58 try { 58 try {
59 59
60 - String sql = "select * from bsth_c_s_sp_info_real where DATE_FORMAT(schedule_date,'%Y-%m-%d') >= '"+startDate+"' and DATE_FORMAT(schedule_date,'%Y-%m-%d') <= '"+endDate+"'"; 60 + String sql = "select * from bsth_c_s_sp_info_real where schedule_date_str >= '"+startDate+"' and schedule_date_str <= '"+endDate+"'";
61 if(line.length() != 0){ 61 if(line.length() != 0){
62 sql += " and xl_bm = '"+line+"'"; 62 sql += " and xl_bm = '"+line+"'";
63 } 63 }
@@ -86,7 +86,7 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -86,7 +86,7 @@ public class BusIntervalServiceImpl implements BusIntervalService {
86 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException { 86 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
87 ScheduleRealInfo schedule = new ScheduleRealInfo(); 87 ScheduleRealInfo schedule = new ScheduleRealInfo();
88 schedule.setId(rs.getLong("id")); 88 schedule.setId(rs.getLong("id"));
89 - schedule.setScheduleDateStr(rs.getString("schedule_date_Str")); 89 + schedule.setScheduleDateStr(rs.getString("schedule_date_str"));
90 schedule.setRealExecDate(rs.getString("real_exec_date")); 90 schedule.setRealExecDate(rs.getString("real_exec_date"));
91 schedule.setXlBm(rs.getString("xl_bm")); 91 schedule.setXlBm(rs.getString("xl_bm"));
92 schedule.setXlName(rs.getString("xl_name")); 92 schedule.setXlName(rs.getString("xl_name"));
@@ -117,6 +117,7 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -117,6 +117,7 @@ public class BusIntervalServiceImpl implements BusIntervalService {
117 schedule.setjName(rs.getString("j_name")); 117 schedule.setjName(rs.getString("j_name"));
118 schedule.setSpId(rs.getLong("sp_id")); 118 schedule.setSpId(rs.getLong("sp_id"));
119 schedule.setSflj(rs.getBoolean("sflj")); 119 schedule.setSflj(rs.getBoolean("sflj"));
  120 + schedule.setCcService(rs.getBoolean("cc_service"));
120 121
121 if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){ 122 if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){
122 schedule.setFcsjActual(null); 123 schedule.setFcsjActual(null);
@@ -371,6 +372,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -371,6 +372,8 @@ public class BusIntervalServiceImpl implements BusIntervalService {
371 // int endTime = Integer.valueOf(split[1].split(":")[0])*60 + Integer.valueOf(split[1].split(":")[1]); 372 // int endTime = Integer.valueOf(split[1].split(":")[0])*60 + Integer.valueOf(split[1].split(":")[1]);
372 373
373 for(ScheduleRealInfo schedule : list){ 374 for(ScheduleRealInfo schedule : list){
  375 + if(schedule.isCcService())
  376 + continue;
374 String[] split1 = schedule.getFcsj().split(":"); 377 String[] split1 = schedule.getFcsj().split(":");
375 String[] split2 = schedule.getZdsj().split(":"); 378 String[] split2 = schedule.getZdsj().split(":");
376 long fcsj = Long.valueOf(split1[0])*60 + Long.valueOf(split1[1]); 379 long fcsj = Long.valueOf(split1[0])*60 + Long.valueOf(split1[1]);
@@ -674,10 +677,10 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -674,10 +677,10 @@ public class BusIntervalServiceImpl implements BusIntervalService {
674 // where += " and bc_type != 'in' and bc_type != 'out' and bc_type != 'ldks'"; 677 // where += " and bc_type != 'in' and bc_type != 'out' and bc_type != 'ldks'";
675 where += " and bc_type != 'ldks'"; 678 where += " and bc_type != 'ldks'";
676 679
677 - String sql = "select id, schedule_date_Str, real_exec_date, xl_name, lp_name, bcs, bcsj, jhlc, bc_type," 680 + String sql = "select id, schedule_date_str, real_exec_date, xl_name, lp_name, bcs, bcsj, jhlc, bc_type,"
678 + " fcsj, fcsj_actual, zdsj, zdsj_actual, qdz_name, zdz_name, xl_dir, status, remarks, gs_name, fgs_name, sp_id" 681 + " fcsj, fcsj_actual, zdsj, zdsj_actual, qdz_name, zdz_name, xl_dir, status, remarks, gs_name, fgs_name, sp_id"
679 - + " from bsth_c_s_sp_info_real where DATE_FORMAT(schedule_date,'%Y-%m-%d') >= '"+startDate+"'"  
680 - + " and DATE_FORMAT(schedule_date,'%Y-%m-%d') <= '"+endDate+"'"+where+""; 682 + + " ,cc_service from bsth_c_s_sp_info_real where schedule_date_str >= '"+startDate+"'"
  683 + + " and schedule_date_str <= '"+endDate+"'"+where+"";
681 684
682 list = jdbcTemplate.query(sql, 685 list = jdbcTemplate.query(sql,
683 new RowMapper<ScheduleRealInfo>(){ 686 new RowMapper<ScheduleRealInfo>(){
@@ -685,7 +688,7 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -685,7 +688,7 @@ public class BusIntervalServiceImpl implements BusIntervalService {
685 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException { 688 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
686 ScheduleRealInfo schedule = new ScheduleRealInfo(); 689 ScheduleRealInfo schedule = new ScheduleRealInfo();
687 schedule.setId(rs.getLong("id")); 690 schedule.setId(rs.getLong("id"));
688 - schedule.setScheduleDateStr(rs.getString("schedule_date_Str")); 691 + schedule.setScheduleDateStr(rs.getString("schedule_date_str"));
689 schedule.setRealExecDate(rs.getString("real_exec_date")); 692 schedule.setRealExecDate(rs.getString("real_exec_date"));
690 schedule.setXlName(rs.getString("xl_name")); 693 schedule.setXlName(rs.getString("xl_name"));
691 schedule.setLpName(rs.getString("lp_name")); 694 schedule.setLpName(rs.getString("lp_name"));
@@ -705,6 +708,7 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -705,6 +708,7 @@ public class BusIntervalServiceImpl implements BusIntervalService {
705 schedule.setGsName(rs.getString("gs_name")); 708 schedule.setGsName(rs.getString("gs_name"));
706 schedule.setFgsName(rs.getString("fgs_name")); 709 schedule.setFgsName(rs.getString("fgs_name"));
707 schedule.setSpId(rs.getLong("sp_id")); 710 schedule.setSpId(rs.getLong("sp_id"));
  711 + schedule.setCcService(rs.getBoolean("cc_service"));
708 712
709 if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){ 713 if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){
710 schedule.setFcsjActual(null); 714 schedule.setFcsjActual(null);
@@ -885,7 +889,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -885,7 +889,8 @@ public class BusIntervalServiceImpl implements BusIntervalService {
885 } 889 }
886 890
887 for(ScheduleRealInfo schedule : list){ 891 for(ScheduleRealInfo schedule : list){
888 - if(schedule.getXlName()==null || schedule.getXlName().trim().length()==0) 892 + if(schedule.getXlName()==null || schedule.getXlName().trim().length()==0
  893 + || schedule.isCcService())
889 continue; 894 continue;
890 if(model.length() != 0){ 895 if(model.length() != 0){
891 if(ttSet.contains(schedule.getSpId())){ 896 if(ttSet.contains(schedule.getSpId())){
@@ -1393,6 +1398,9 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -1393,6 +1398,9 @@ public class BusIntervalServiceImpl implements BusIntervalService {
1393 int endTime = Integer.valueOf(split[1].split(":")[0])*60 + Integer.valueOf(split[1].split(":")[1]); 1398 int endTime = Integer.valueOf(split[1].split(":")[0])*60 + Integer.valueOf(split[1].split(":")[1]);
1394 1399
1395 for(ScheduleRealInfo s : list){ 1400 for(ScheduleRealInfo s : list){
  1401 + if(s.isCcService()){
  1402 + continue;
  1403 + }
1396 String key = s.getScheduleDateStr() + "/" + s.getLpName(); 1404 String key = s.getScheduleDateStr() + "/" + s.getLpName();
1397 if(!keyMap.containsKey(key)) 1405 if(!keyMap.containsKey(key))
1398 keyMap.put(key, new ArrayList<ScheduleRealInfo>()); 1406 keyMap.put(key, new ArrayList<ScheduleRealInfo>());
@@ -1668,14 +1676,14 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -1668,14 +1676,14 @@ public class BusIntervalServiceImpl implements BusIntervalService {
1668 lc = new BigDecimal("0"+schedule.getJhlc()); 1676 lc = new BigDecimal("0"+schedule.getJhlc());
1669 } 1677 }
1670 1678
1671 - if(!schedule.isSflj()){ 1679 + if(!schedule.isSflj() && !schedule.isCcService()){
1672 jhbc++; 1680 jhbc++;
1673 jhlc = jhlc.add(lc); 1681 jhlc = jhlc.add(lc);
1674 } 1682 }
1675 - if(schedule.getStatus() != -1){ 1683 + if(schedule.getStatus() != -1 && !schedule.isCcService()){
1676 sjbc++; 1684 sjbc++;
1677 sjlc = sjlc.add(lc); 1685 sjlc = sjlc.add(lc);
1678 - } else if(schedule.getStatus() == -1){ 1686 + } else if(schedule.getStatus() == -1 && !schedule.isCcService()){
1679 if(schedule.getAdjustExps() != null && schedule.getAdjustExps().indexOf("路阻") != -1){ 1687 if(schedule.getAdjustExps() != null && schedule.getAdjustExps().indexOf("路阻") != -1){
1680 lzbc++; 1688 lzbc++;
1681 lzlc = lzlc.add(lc); 1689 lzlc = lzlc.add(lc);
@@ -1811,8 +1819,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -1811,8 +1819,8 @@ public class BusIntervalServiceImpl implements BusIntervalService {
1811 } 1819 }
1812 try { 1820 try {
1813 1821
1814 - String sql = "select * from bsth_c_s_sp_info_real where DATE_FORMAT(schedule_date,'%Y-%m-%d')"  
1815 - + " >= '"+startDate+"' and DATE_FORMAT(schedule_date,'%Y-%m-%d') <= '"+endDate+"'"; 1822 + String sql = "select * from bsth_c_s_sp_info_real where schedule_date_str"
  1823 + + " >= '"+startDate+"' and schedule_date_str <= '"+endDate+"'";
1816 if(line.length() != 0){ 1824 if(line.length() != 0){
1817 sql += " and xl_bm = '"+line+"'"; 1825 sql += " and xl_bm = '"+line+"'";
1818 } 1826 }
@@ -1829,7 +1837,7 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -1829,7 +1837,7 @@ public class BusIntervalServiceImpl implements BusIntervalService {
1829 } 1837 }
1830 } 1838 }
1831 if(company.length() != 0){ 1839 if(company.length() != 0){
1832 - sql += " and gs_bm = '"+company+"' and fgs_bm = '"+subCompany+"'"; 1840 + sql += " and (gs_bm = '"+company+"' and fgs_bm = '"+subCompany+"')";
1833 } 1841 }
1834 sql += " and bc_type != 'in' and bc_type != 'out' and bc_type != 'ldks'"; 1842 sql += " and bc_type != 'in' and bc_type != 'out' and bc_type != 'ldks'";
1835 1843
@@ -1838,7 +1846,7 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -1838,7 +1846,7 @@ public class BusIntervalServiceImpl implements BusIntervalService {
1838 @Override 1846 @Override
1839 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException { 1847 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
1840 ScheduleRealInfo schedule = new ScheduleRealInfo(); 1848 ScheduleRealInfo schedule = new ScheduleRealInfo();
1841 - schedule.setScheduleDateStr(rs.getString("schedule_date_Str")); 1849 + schedule.setScheduleDateStr(rs.getString("schedule_date_str"));
1842 schedule.setXlBm(rs.getString("xl_bm")); 1850 schedule.setXlBm(rs.getString("xl_bm"));
1843 schedule.setXlName(rs.getString("xl_name")); 1851 schedule.setXlName(rs.getString("xl_name"));
1844 schedule.setLpName(rs.getString("lp_name")); 1852 schedule.setLpName(rs.getString("lp_name"));
@@ -1864,6 +1872,7 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -1864,6 +1872,7 @@ public class BusIntervalServiceImpl implements BusIntervalService {
1864 schedule.setjGh(rs.getString("j_gh")); 1872 schedule.setjGh(rs.getString("j_gh"));
1865 schedule.setjName(rs.getString("j_name")); 1873 schedule.setjName(rs.getString("j_name"));
1866 schedule.setUpdateDate(rs.getDate("update_date")); 1874 schedule.setUpdateDate(rs.getDate("update_date"));
  1875 + schedule.setCcService(rs.getBoolean("cc_service"));
1867 1876
1868 if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){ 1877 if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){
1869 schedule.setFcsjActual(null); 1878 schedule.setFcsjActual(null);
@@ -1905,7 +1914,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -1905,7 +1914,8 @@ public class BusIntervalServiceImpl implements BusIntervalService {
1905 dxtz = 0, lbtz = 0; 1914 dxtz = 0, lbtz = 0;
1906 for(ScheduleRealInfo schedule : keyMap.get(key)){ 1915 for(ScheduleRealInfo schedule : keyMap.get(key)){
1907 boolean flag = false; 1916 boolean flag = false;
1908 - if(schedule.getFcsjActual() != null && schedule.getStatus() != -1){ 1917 + if(schedule.getFcsjActual() != null && schedule.getStatus() != -1
  1918 + && !schedule.isCcService()){
1909 sjbc++; 1919 sjbc++;
1910 if(schedule.getDfsj() != null && !schedule.getDfsj().equals(schedule.getFcsj())){ 1920 if(schedule.getDfsj() != null && !schedule.getDfsj().equals(schedule.getFcsj())){
1911 flag = true; 1921 flag = true;
@@ -1937,9 +1947,9 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -1937,9 +1947,9 @@ public class BusIntervalServiceImpl implements BusIntervalService {
1937 // tempMap.put("dxtz", dxtz); 1947 // tempMap.put("dxtz", dxtz);
1938 tempMap.put("lbtz", lbtz); 1948 tempMap.put("lbtz", lbtz);
1939 tempMap.put("correct", sddf + zddf + lbtz); 1949 tempMap.put("correct", sddf + zddf + lbtz);
1940 - tempMap.put("dfbl", df.format((double)(sddf + zddf)/sjbc*100) + "%"); 1950 + tempMap.put("dfbl", sjbc>0?df.format((double)(sddf + zddf)/sjbc*100):0 + "%");
1941 // tempMap.put("dxbl", df.format((double)(dxtz)/sjbc*100) + "%"); 1951 // tempMap.put("dxbl", df.format((double)(dxtz)/sjbc*100) + "%");
1942 - tempMap.put("lbbl", df.format((double)(lbtz)/sjbc*100) + "%"); 1952 + tempMap.put("lbbl", sjbc>0?df.format((double)(lbtz)/sjbc*100):0 + "%");
1943 // tempMap.put("correctbl", df.format((double)(sddf + zddf + dxtz + lbtz)/sjbc*100) + "%"); 1953 // tempMap.put("correctbl", df.format((double)(sddf + zddf + dxtz + lbtz)/sjbc*100) + "%");
1944 // tempMap.put("workList", tempList); 1954 // tempMap.put("workList", tempList);
1945 1955
@@ -2069,9 +2079,9 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -2069,9 +2079,9 @@ public class BusIntervalServiceImpl implements BusIntervalService {
2069 // tempMap.put("dxtz", dxtz); 2079 // tempMap.put("dxtz", dxtz);
2070 tempMap.put("lbtz", lbtz); 2080 tempMap.put("lbtz", lbtz);
2071 tempMap.put("correct", sddf + zddf + lbtz); 2081 tempMap.put("correct", sddf + zddf + lbtz);
2072 - tempMap.put("dfbl", df.format((double)(sddf + zddf)/sjbc*100) + "%"); 2082 + tempMap.put("dfbl", sjbc>0?df.format((double)(sddf + zddf)/sjbc*100):0 + "%");
2073 2083
2074 - tempMap.put("lbbl", df.format((double)(lbtz)/sjbc*100) + "%"); 2084 + tempMap.put("lbbl", sjbc>0?df.format((double)(lbtz)/sjbc*100):0 + "%");
2075 // tempMap.put("correctbl", df.format((double)(sddf + zddf + dxtz + lbtz)/sjbc*100) + "%"); 2085 // tempMap.put("correctbl", df.format((double)(sddf + zddf + dxtz + lbtz)/sjbc*100) + "%");
2076 resList.add(tempMap); 2086 resList.add(tempMap);
2077 } 2087 }
@@ -2097,8 +2107,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -2097,8 +2107,8 @@ public class BusIntervalServiceImpl implements BusIntervalService {
2097 resMap.put("dxbl", "0"); 2107 resMap.put("dxbl", "0");
2098 resMap.put("correctbl", "0"); 2108 resMap.put("correctbl", "0");
2099 }else{ 2109 }else{
2100 - resMap.put("dxbl", df.format((double)(dxtzz)/sjbc*100) + "%");  
2101 - resMap.put("correctbl", df.format((double)(correct+dxtzz)/sjbc*100) + "%"); 2110 + resMap.put("dxbl", sjbc>0?df.format((double)(dxtzz)/sjbc*100):0 + "%");
  2111 + resMap.put("correctbl", sjbc>0?df.format((double)(correct+dxtzz)/sjbc*100):0 + "%");
2102 } 2112 }
2103 2113
2104 2114
@@ -2152,8 +2162,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -2152,8 +2162,8 @@ public class BusIntervalServiceImpl implements BusIntervalService {
2152 resMap.put("dxbl", "0"); 2162 resMap.put("dxbl", "0");
2153 resMap.put("correctbl", "0"); 2163 resMap.put("correctbl", "0");
2154 }else{ 2164 }else{
2155 - resMap.put("dxbl", df.format((double)(dxtzf)/sjbc*100) + "%");  
2156 - resMap.put("correctbl", df.format((double)(correct+dxtzf)/sjbc*100) + "%"); 2165 + resMap.put("dxbl", sjbc>0?df.format((double)(dxtzf)/sjbc*100):0 + "%");
  2166 + resMap.put("correctbl", sjbc>0?df.format((double)(correct+dxtzf)/sjbc*100):0 + "%");
2157 } 2167 }
2158 resMap.put("xlname",BasicData.lineCode2NameMap.get(xlbm)); 2168 resMap.put("xlname",BasicData.lineCode2NameMap.get(xlbm));
2159 } 2169 }
src/main/java/com/bsth/service/impl/CarParkServiceImpl.java
@@ -30,6 +30,10 @@ public class CarParkServiceImpl extends BaseServiceImpl&lt;CarPark, Integer&gt; implem @@ -30,6 +30,10 @@ public class CarParkServiceImpl extends BaseServiceImpl&lt;CarPark, Integer&gt; implem
30 try { 30 try {
31 // 停车场编码 31 // 停车场编码
32 String parkCode = map.get("parkCode").equals("") ? null : map.get("parkCode").toString(); 32 String parkCode = map.get("parkCode").equals("") ? null : map.get("parkCode").toString();
  33 + if (!selectTccInfoByCode(map)) {
  34 + resultMap.put("status", ResponseCode.ERROR);
  35 + return resultMap;
  36 + }
33 // 停车场名称 37 // 停车场名称
34 String parkName = map.get("parkName").equals("") ? "" : map.get("parkName").toString(); 38 String parkName = map.get("parkName").equals("") ? "" : map.get("parkName").toString();
35 // 地理位置(百度坐标集合) 39 // 地理位置(百度坐标集合)
src/main/java/com/bsth/service/impl/TrafficManageServiceImpl.java
@@ -19,7 +19,6 @@ import com.bsth.service.TrafficManageService; @@ -19,7 +19,6 @@ import com.bsth.service.TrafficManageService;
19 import com.bsth.service.traffic.YgcBasicDataService; 19 import com.bsth.service.traffic.YgcBasicDataService;
20 import com.bsth.util.TimeUtils; 20 import com.bsth.util.TimeUtils;
21 import com.bsth.util.db.DBUtils_MS; 21 import com.bsth.util.db.DBUtils_MS;
22 -import com.bsth.webService.trafficManage.geotool.services.InternalPortType;  
23 import com.bsth.webService.trafficManage.org.tempuri.Results; 22 import com.bsth.webService.trafficManage.org.tempuri.Results;
24 import com.bsth.webService.trafficManage.org.tempuri.WebServiceLocator; 23 import com.bsth.webService.trafficManage.org.tempuri.WebServiceLocator;
25 import com.bsth.webService.trafficManage.org.tempuri.WebServiceSoap; 24 import com.bsth.webService.trafficManage.org.tempuri.WebServiceSoap;
@@ -40,6 +39,7 @@ import java.sql.ResultSet; @@ -40,6 +39,7 @@ import java.sql.ResultSet;
40 import java.text.DecimalFormat; 39 import java.text.DecimalFormat;
41 import java.text.SimpleDateFormat; 40 import java.text.SimpleDateFormat;
42 import java.util.*; 41 import java.util.*;
  42 +import java.util.regex.Matcher;
43 import java.util.regex.Pattern; 43 import java.util.regex.Pattern;
44 44
45 /** 45 /**
@@ -67,10 +67,16 @@ public class TrafficManageServiceImpl implements TrafficManageService{ @@ -67,10 +67,16 @@ public class TrafficManageServiceImpl implements TrafficManageService{
67 @Autowired 67 @Autowired
68 private LineRepository lineRepository; 68 private LineRepository lineRepository;
69 69
  70 + @Autowired
  71 + private LineInformationRepository lineInformationRepository;
  72 +
70 // 站点路由repository 73 // 站点路由repository
71 @Autowired 74 @Autowired
72 private StationRouteRepository stationRouteRepository; 75 private StationRouteRepository stationRouteRepository;
73 76
  77 + @Autowired
  78 + private SectionRepository sectionRepository;
  79 +
74 // 车辆repository 80 // 车辆repository
75 @Autowired 81 @Autowired
76 private CarsRepository carsRepository; 82 private CarsRepository carsRepository;
@@ -104,8 +110,8 @@ public class TrafficManageServiceImpl implements TrafficManageService{ @@ -104,8 +110,8 @@ public class TrafficManageServiceImpl implements TrafficManageService{
104 private YgcBasicDataService ygcBasicDataService; 110 private YgcBasicDataService ygcBasicDataService;
105 111
106 112
107 - // 运管处接口  
108 - private InternalPortType portType = null;//new Internal().getInternalHttpSoap11Endpoint(); 113 + // 运管处上传接口
  114 + private com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap webServiceSoapUp;
109 private WebServiceSoap ssop ; 115 private WebServiceSoap ssop ;
110 { 116 {
111 try { 117 try {
@@ -127,6 +133,23 @@ public class TrafficManageServiceImpl implements TrafficManageService{ @@ -127,6 +133,23 @@ public class TrafficManageServiceImpl implements TrafficManageService{
127 private final String userNameOther = "user"; 133 private final String userNameOther = "user";
128 // 密码 134 // 密码
129 private final String passwordOther = "user"; 135 private final String passwordOther = "user";
  136 +
  137 + // 用户名
  138 + private final String userNameUp = "user";
  139 + // 密码
  140 + private final String passwordUp = "user";
  141 +
  142 + private synchronized com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap getWebServiceSoapUp(){
  143 + try {
  144 + if(webServiceSoapUp == null){
  145 + webServiceSoapUp = new com.bsth.webService.trafficManage.up.org.tempuri.WebServiceLocator().getWebServiceSoap();
  146 + }
  147 + }catch (Exception e){
  148 + e.printStackTrace();
  149 + }finally {
  150 + return webServiceSoapUp;
  151 + }
  152 + }
130 /** 153 /**
131 * 上传线路信息 154 * 上传线路信息
132 */ 155 */
@@ -140,23 +163,38 @@ public class TrafficManageServiceImpl implements TrafficManageService{ @@ -140,23 +163,38 @@ public class TrafficManageServiceImpl implements TrafficManageService{
140 Map<String,Object> map = new HashMap<>(); 163 Map<String,Object> map = new HashMap<>();
141 map.put("lineCode_eq", id); 164 map.put("lineCode_eq", id);
142 Line line ; 165 Line line ;
  166 + LineInformation lineInformation;
143 line = lineRepository.findOne(new CustomerSpecs<Line>(map)); 167 line = lineRepository.findOne(new CustomerSpecs<Line>(map));
144 if(line == null){ 168 if(line == null){
145 continue; 169 continue;
146 } 170 }
147 List<StationRoute> upStationsList ;// 上行站点路由集 171 List<StationRoute> upStationsList ;// 上行站点路由集
148 - List<StationRoute> downStationsList = null;// 下行站点路由集  
149 - sBuffer.append("<Data>");  
150 - sBuffer.append("<RequestOrg>上海巴士拓华科技发展有限公司</RequestOrg>");  
151 - sBuffer.append("<DataList>"); 172 + List<StationRoute> downStationsList;// 下行站点路由集
  173 + List<Object[]> downPointList;// 下行站点集
  174 + List<Object[]> upPointList;// 上行站点集
  175 + sBuffer.append("<XLs>");
  176 + sBuffer.append("<XL>");
152 if(BasicData.lineId2ShangHaiCodeMap.get(line.getId()) == null){ 177 if(BasicData.lineId2ShangHaiCodeMap.get(line.getId()) == null){
153 return result; 178 return result;
154 } 179 }
155 - sBuffer.append("<LINE_ID>").append(line.getId()).append("</LINE_ID>");  
156 - sBuffer.append("<LINE_CODE>").append(BasicData.lineId2ShangHaiCodeMap.get(line.getId())).append("</LINE_CODE>");  
157 - sBuffer.append("<LINE_NAME>").append(line.getName()).append("</LINE_NAME>"); 180 + map = new HashMap<>();
  181 + map.put("line.id_eq",line.getId());
  182 + lineInformation = lineInformationRepository.findOne(new CustomerSpecs<LineInformation>(map));
  183 + if(lineInformation == null){
  184 + continue;
  185 + }
  186 + sBuffer.append("<XLBM>").append(BasicData.lineId2ShangHaiCodeMap.get(line.getId())).append("</XLBM>");
  187 + sBuffer.append("<XLMC>").append(line.getName()).append("</XLMC>");
  188 + sBuffer.append("<QDZ>").append(line.getStartStationName()).append("</QDZ>");
  189 + sBuffer.append("<ZDZ>").append(line.getEndStationName()).append("</ZDZ>");
  190 + sBuffer.append("<QZLC>").append(lineInformation.getUpMileage()).append("</QZLC>");
  191 + sBuffer.append("<ZQLC>").append(lineInformation.getDownMileage()).append("</ZQLC>");
  192 + sBuffer.append("<XLGH>").append(line.getLinePlayType()).append("</XLGH>");
  193 + sBuffer.append("<UPDATE_DATE>").append(sdfnyr.format(new Date())).append("</UPDATE_DATE>");
  194 +
158 // 循环添加站点信息 195 // 循环添加站点信息
159 - sBuffer.append("<LineStationList>"); 196 + sBuffer.append("<StationList>");
  197 +
160 // 先查上行 198 // 先查上行
161 upStationsList = stationRouteRepository.findByLine(line.getLineCode(), 0); 199 upStationsList = stationRouteRepository.findByLine(line.getLineCode(), 0);
162 int startId = 1; 200 int startId = 1;
@@ -167,25 +205,23 @@ public class TrafficManageServiceImpl implements TrafficManageService{ @@ -167,25 +205,23 @@ public class TrafficManageServiceImpl implements TrafficManageService{
167 downStationsList = stationRouteRepository.findByLine(line.getLineCode(), 1); 205 downStationsList = stationRouteRepository.findByLine(line.getLineCode(), 1);
168 packagStationXml(downStationsList, sBuffer, startId); 206 packagStationXml(downStationsList, sBuffer, startId);
169 } 207 }
170 - sBuffer.append("</LineStationList>"); 208 + sBuffer.append("</StationList>");
171 209
172 // 循环添加站点点位信息 210 // 循环添加站点点位信息
173 sBuffer.append("<LinePointList>"); 211 sBuffer.append("<LinePointList>");
  212 + upPointList = sectionRepository.getSectionDirByLineId(line.getId(),0);
174 startId = 1; 213 startId = 1;
175 - startId = packagStationPointXml(upStationsList, sBuffer, startId); 214 + startId = packagStationPointXml(upPointList, sBuffer, startId);
176 // 环线不查下行 215 // 环线不查下行
177 if(line.getLinePlayType() != 1){ 216 if(line.getLinePlayType() != 1){
178 - packagStationPointXml(downStationsList, sBuffer, startId); 217 + downPointList = sectionRepository.getSectionDirByLineId(line.getId(),1);
  218 + packagStationPointXml(downPointList, sBuffer, startId);
179 } 219 }
180 sBuffer.append("</LinePointList>"); 220 sBuffer.append("</LinePointList>");
181 - sBuffer.append("</DataList>");  
182 - sBuffer.append("</Data>"); 221 + sBuffer.append("</XL>");
  222 + sBuffer.append("</XLs>");
183 // 调用上传方法 223 // 调用上传方法
184 - result = ygcBasicDataService.invokeMethod("UpdateBusLineStation",sBuffer.toString());  
185 - String str = "ReturnCode";  
186 - // 解析返回值  
187 - result = result.substring(result.indexOf(str)+str.length()+1,result.lastIndexOf(str)-2);  
188 - if(result.equals("1")){ 224 + if(getWebServiceSoapUp().setXL(userNameUp,passwordUp,sBuffer.toString()).isSuccess()){
189 result = "success"; 225 result = "success";
190 }else{ 226 }else{
191 result = "failure"; 227 result = "failure";
@@ -1162,15 +1198,15 @@ public class TrafficManageServiceImpl implements TrafficManageService{ @@ -1162,15 +1198,15 @@ public class TrafficManageServiceImpl implements TrafficManageService{
1162 } 1198 }
1163 paraMap = packageYgcStationNumParam(srRoute,null); 1199 paraMap = packageYgcStationNumParam(srRoute,null);
1164 sBuffer.append("<Station>"); 1200 sBuffer.append("<Station>");
1165 - sBuffer.append("<STATION_ID>").append(getYgcStationNumByLineCodeAndDirectionAndStationName(paraMap)).append("</STATION_ID>");  
1166 - sBuffer.append("<UPDDOWN>").append(srRoute.getDirections()).append("</UPDDOWN>");  
1167 - sBuffer.append("<STATION_NO>").append(i).append("</STATION_NO>");  
1168 - sBuffer.append("<STATION_CODE>").append(srRoute.getStationCode()).append("</STATION_CODE>");  
1169 - sBuffer.append("<STATION_NAME>").append(srRoute.getStationName()).append("</STATION_NAME>");  
1170 - sBuffer.append("<STATION_LON>").append(srRoute.getStation().getgLonx()).append("</STATION_LON>");  
1171 - sBuffer.append("<STATION_LAT>").append(srRoute.getStation().getgLaty()).append("</STATION_LAT>");  
1172 - sBuffer.append("<STATION_TYPE>").append(zdlx).append("</STATION_TYPE>");  
1173 - sBuffer.append("<STATION_DISTANCE>").append(srRoute.getDistances()).append("</STATION_DISTANCE>"); 1201 + sBuffer.append("<ZDXH>").append(getYgcStationNumByLineCodeAndDirectionAndStationName(paraMap)).append("</ZDXH>");
  1202 + sBuffer.append("<SXX>").append(srRoute.getDirections()).append("</SXX>");
  1203 + sBuffer.append("<ZDMC>").append(srRoute.getStationName()).append("</ZDMC>");
  1204 + sBuffer.append("<ZDBM>").append(srRoute.getStationCode()).append("</ZDBM>");
  1205 + sBuffer.append("<ZDJD>").append(srRoute.getStation().getgLonx()).append("</ZDJD>");
  1206 + sBuffer.append("<ZDWD>").append(srRoute.getStation().getgLaty()).append("</ZDWD>");
  1207 + sBuffer.append("<ZZ>").append(srRoute.getStation().getAddr() == null ? "" : srRoute.getStation().getAddr()).append("</ZZ>");
  1208 + sBuffer.append("<ZDLX>").append(zdlx).append("</ZDLX>");
  1209 + sBuffer.append("<ZJLC>").append(srRoute.getDistances()).append("</ZJLC>");
1174 sBuffer.append("</Station>"); 1210 sBuffer.append("</Station>");
1175 startId++; 1211 startId++;
1176 } 1212 }
@@ -1178,35 +1214,37 @@ public class TrafficManageServiceImpl implements TrafficManageService{ @@ -1178,35 +1214,37 @@ public class TrafficManageServiceImpl implements TrafficManageService{
1178 } 1214 }
1179 1215
1180 /** 1216 /**
1181 - * @param stationsList 站点路由 1217 + * @param pointList 站点点位
1182 * @param sBuffer sBuffer 1218 * @param sBuffer sBuffer
1183 * @param startId 站点序号起始ID 1219 * @param startId 站点序号起始ID
1184 * 1220 *
1185 * @return 站点序号累加后的ID 1221 * @return 站点序号累加后的ID
1186 */ 1222 */
1187 - private int packagStationPointXml(List<StationRoute> stationsList,StringBuffer sBuffer,int startId){  
1188 - int size = stationsList.size();  
1189 - StationRoute srRoute;  
1190 - HashMap<String,String> paraMap;  
1191 - String zdlx ;// 站点类型:0:起点站、1:终点站、2:中途站 1223 + private int packagStationPointXml(List<Object[]> pointList,StringBuffer sBuffer,int startId){
  1224 + int size = pointList.size();
  1225 + Object[] objs;
  1226 + String bsection,dir,section;
  1227 + String[] sections ;
1192 for (int i = 0; i < size; i++) { 1228 for (int i = 0; i < size; i++) {
1193 - srRoute = stationsList.get(i);  
1194 - zdlx = srRoute.getStationMark();  
1195 - if(zdlx.equals("B")){  
1196 - zdlx = "0";  
1197 - }else if(zdlx.equals("E")){  
1198 - zdlx = "1";  
1199 - }else{  
1200 - zdlx = "2"; 1229 + objs = pointList.get(i);
  1230 + bsection = objs[0]+"";
  1231 + dir = objs[1]+"";
  1232 + // 取括号内的内容
  1233 + Pattern pattern = Pattern.compile("(?<=\\()(.+?)(?=\\))");
  1234 + Matcher matcher = pattern.matcher(bsection);
  1235 + if(matcher.find()){
  1236 + sections = matcher.group().split(",");
  1237 + for (int j = 0 ; j < sections.length ; j ++){
  1238 + section = sections[j];
  1239 + sBuffer.append("<LinePoint>");
  1240 + sBuffer.append("<ZDXH>").append(startId).append("</ZDXH>");
  1241 + sBuffer.append("<SXX>").append(dir).append("</SXX>");
  1242 + sBuffer.append("<ZDJD>").append(section.split(" ")[0]).append("</ZDJD>");
  1243 + sBuffer.append("<ZDWD>").append(section.split(" ")[1]).append("</ZDWD>");
  1244 + sBuffer.append("</LinePoint>");
  1245 + startId++;
  1246 + }
1201 } 1247 }
1202 - paraMap = packageYgcStationNumParam(srRoute,null);  
1203 - sBuffer.append("<Point>");  
1204 - sBuffer.append("<POINT_ID>").append(getYgcStationNumByLineCodeAndDirectionAndStationName(paraMap)).append("</POINT_ID>");  
1205 - sBuffer.append("<UPDDOWN>").append(srRoute.getDirections()).append("</UPDDOWN>");  
1206 - sBuffer.append("<POINTLON>").append(srRoute.getStation().getgLonx()).append("</POINTLON>");  
1207 - sBuffer.append("<POINTLAT>").append(srRoute.getStation().getgLaty()).append("</POINTLAT>");  
1208 - sBuffer.append("</Point>");  
1209 - startId++;  
1210 } 1248 }
1211 return startId; 1249 return startId;
1212 } 1250 }
src/main/java/com/bsth/service/oil/impl/DlbServiceImpl.java
@@ -427,7 +427,6 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS @@ -427,7 +427,6 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
427 // TODO Auto-generated method stub 427 // TODO Auto-generated method stub
428 // 当天YLB信息 428 // 当天YLB信息
429 List<Dlb> dlList = this.listOrderBy(rq,gsbm,fgsbm,line,nbbm,"nbbm"); 429 List<Dlb> dlList = this.listOrderBy(rq,gsbm,fgsbm,line,nbbm,"nbbm");
430 -// repository.obtainYl(rq,gsbm,fgsbm,line,nbbm,"nbbm");  
431 // 当天YLXXB信息 430 // 当天YLXXB信息
432 List<Ylxxb> ylxxList = ylxxbRepository.obtainYlxx(rq, 0,gsbm); 431 List<Ylxxb> ylxxList = ylxxbRepository.obtainYlxx(rq, 0,gsbm);
433 // 从排班表中计算出行驶的总里程 432 // 从排班表中计算出行驶的总里程
@@ -484,8 +483,7 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS @@ -484,8 +483,7 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
484 Map<String, Object> newMap_=new HashMap<String,Object>(); 483 Map<String, Object> newMap_=new HashMap<String,Object>();
485 List<Dlb> addList = new ArrayList<Dlb>(); 484 List<Dlb> addList = new ArrayList<Dlb>();
486 List<Dlb> updateList = new ArrayList<Dlb>(); 485 List<Dlb> updateList = new ArrayList<Dlb>();
487 - String ins="";  
488 - Map<String, Object> ylMap=new HashMap<String, Object>(); 486 + Map<String, Object> cMap=new HashMap<String, Object>();
489 List<Map<String, Object>> listpb_=listpb; 487 List<Map<String, Object>> listpb_=listpb;
490 Collections.sort(listpb,new NbbmJcsxMap()); 488 Collections.sort(listpb,new NbbmJcsxMap());
491 for (int x = 0; x < listpb_.size(); x++) { 489 for (int x = 0; x < listpb_.size(); x++) {
@@ -531,9 +529,24 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS @@ -531,9 +529,24 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
531 if (t1.getNbbm().equals(map.get("clZbh").toString()) 529 if (t1.getNbbm().equals(map.get("clZbh").toString())
532 && t1.getJsy().equals(map.get("jGh").toString()) 530 && t1.getJsy().equals(map.get("jGh").toString())
533 && t1.getXlbm().equals(map.get("xlBm").toString())) { 531 && t1.getXlbm().equals(map.get("xlBm").toString())) {
534 - t = t1;  
535 - type = "update"; 532 + if(t1.getLp()==null){
  533 + //同人同车同线路不同路牌的过滤 (考虑到历史数据)
  534 + if (cMap.get(map.get("clZbh").toString()+map.get("jGh").toString()+map.get("xlBm").toString())==null) {
  535 + t = t1;
  536 + type = "update";
  537 + cMap.put(map.get("clZbh").toString()+map.get("jGh").toString()+map.get("xlBm").toString(),
  538 + map.get("clZbh").toString());
  539 + }
  540 + }else{
  541 + if(t1.getLp().equals(map.get("lpName").toString())){
  542 + t = t1;
  543 + type = "update";
  544 + }
  545 +
  546 + }
536 } 547 }
  548 +
  549 +
537 } 550 }
538 Double lc= Double.parseDouble(map.get("totalKilometers").toString()); 551 Double lc= Double.parseDouble(map.get("totalKilometers").toString());
539 if(map.get("seqNumber").toString().equals("1")){ 552 if(map.get("seqNumber").toString().equals("1")){
@@ -593,7 +606,7 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS @@ -593,7 +606,7 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
593 t.setFgsdm(map.get("bCompany") == null ? "" : map.get("bCompany").toString()); 606 t.setFgsdm(map.get("bCompany") == null ? "" : map.get("bCompany").toString());
594 t.setJhsj(map.get("fcsj")==null?"":map.get("fcsj").toString()); 607 t.setJhsj(map.get("fcsj")==null?"":map.get("fcsj").toString());
595 t.setRq(sdf.parse(rq)); 608 t.setRq(sdf.parse(rq));
596 - 609 + t.setLp(map.get("lpName").toString());
597 if(!(t.getSsgsdm().equals("") || t.getFgsdm().equals(""))){ 610 if(!(t.getSsgsdm().equals("") || t.getFgsdm().equals(""))){
598 if(type.equals("add")){ 611 if(type.equals("add")){
599 t.setCreatetime(date); 612 t.setCreatetime(date);
@@ -601,10 +614,8 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS @@ -601,10 +614,8 @@ public class DlbServiceImpl extends BaseServiceImpl&lt;Dlb,Integer&gt; implements DlbS
601 }else{ 614 }else{
602 t.setUpdatetime(date); 615 t.setUpdatetime(date);
603 updateList.add(t); 616 updateList.add(t);
604 - ins += t.getId().toString()+",";  
605 } 617 }
606 } 618 }
607 -// repository.save(t);  
608 newMap.put("status", ResponseCode.SUCCESS); 619 newMap.put("status", ResponseCode.SUCCESS);
609 } 620 }
610 } 621 }
src/main/java/com/bsth/service/oil/impl/YlbServiceImpl.java
@@ -184,6 +184,7 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS @@ -184,6 +184,7 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS
184 t.setJcsx(Integer.parseInt(map.get("seqNumber").toString())); 184 t.setJcsx(Integer.parseInt(map.get("seqNumber").toString()));
185 t.setSsgsdm(map.get("company")==null?"":map.get("company").toString()); 185 t.setSsgsdm(map.get("company")==null?"":map.get("company").toString());
186 t.setFgsdm(map.get("bCompany")==null?"":map.get("bCompany").toString()); 186 t.setFgsdm(map.get("bCompany")==null?"":map.get("bCompany").toString());
  187 + t.setLp(map.get("lpName")==null?"":map.get("lpName").toString());
187 t.setJhsj(map.get("fcsj")==null?"":map.get("fcsj").toString()); 188 t.setJhsj(map.get("fcsj")==null?"":map.get("fcsj").toString());
188 t.setRq(sdf.parse(rq)); 189 t.setRq(sdf.parse(rq));
189 t.setCreatetime(dNow); 190 t.setCreatetime(dNow);
@@ -262,13 +263,16 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS @@ -262,13 +263,16 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS
262 // TODO Auto-generated method stub 263 // TODO Auto-generated method stub
263 // 当天YLB信息 264 // 当天YLB信息
264 List<Ylb> ylList = this.listOrderBy(rq,gsbm,fgsbm,line,nbbm,"nbbm"); 265 List<Ylb> ylList = this.listOrderBy(rq,gsbm,fgsbm,line,nbbm,"nbbm");
265 -// repository.obtainYl(rq,gsbm,fgsbm,line,nbbm,"nbbm"); 266 +
266 // 当天YLXXB信息 267 // 当天YLXXB信息
267 List<Ylxxb> ylxxList = ylxxbRepository.obtainYlxx(rq, 0,gsbm); 268 List<Ylxxb> ylxxList = ylxxbRepository.obtainYlxx(rq, 0,gsbm);
  269 +
268 // 前一天所有车辆最后进场班次信息 270 // 前一天所有车辆最后进场班次信息
269 // List<Ylb> ylListBe = repository.obtainYlbefore(rq, gsbm, fgsbm, line, nbbm); 271 // List<Ylb> ylListBe = repository.obtainYlbefore(rq, gsbm, fgsbm, line, nbbm);
270 List<Ylb> ylListBe =repository.listMaxRqJcsx(rq, gsbm, fgsbm, line, nbbm); 272 List<Ylb> ylListBe =repository.listMaxRqJcsx(rq, gsbm, fgsbm, line, nbbm);
  273 +
271 List<Cyl> clyList = cylRepository.obtainCyl(nbbm,gsbm); 274 List<Cyl> clyList = cylRepository.obtainCyl(nbbm,gsbm);
  275 +
272 // 从排班表中计算出行驶的总里程 276 // 从排班表中计算出行驶的总里程
273 List<Map<String, Object>> listpb =new ArrayList<Map<String, Object>>(); 277 List<Map<String, Object>> listpb =new ArrayList<Map<String, Object>>();
274 List<Map<String, Object>> listpbs=scheduleRealInfoService.yesterdayDataList(line, rq, gsbm, fgsbm, "", nbbm); 278 List<Map<String, Object>> listpbs=scheduleRealInfoService.yesterdayDataList(line, rq, gsbm, fgsbm, "", nbbm);
@@ -307,11 +311,12 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS @@ -307,11 +311,12 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS
307 } 311 }
308 } 312 }
309 } 313 }
310 - 314 +
311 List<Ylb> addList = new ArrayList<Ylb>(); 315 List<Ylb> addList = new ArrayList<Ylb>();
312 List<Ylb> updateList = new ArrayList<Ylb>(); 316 List<Ylb> updateList = new ArrayList<Ylb>();
313 - String ins="";  
314 Map<String, Object> ylMap=new HashMap<String, Object>(); 317 Map<String, Object> ylMap=new HashMap<String, Object>();
  318 +
  319 + Map<String, Object> cMap=new HashMap<String, Object>();
315 for (int x = 0; x < listpb.size(); x++) { 320 for (int x = 0; x < listpb.size(); x++) {
316 String type = "add"; 321 String type = "add";
317 boolean sfdc = true; 322 boolean sfdc = true;
@@ -328,12 +333,25 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS @@ -328,12 +333,25 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS
328 Ylb t1 = ylList.get(k); 333 Ylb t1 = ylList.get(k);
329 if (t1.getNbbm().equals(map.get("clZbh").toString()) 334 if (t1.getNbbm().equals(map.get("clZbh").toString())
330 && t1.getJsy().equals(map.get("jGh").toString()) 335 && t1.getJsy().equals(map.get("jGh").toString())
331 - && t1.getXlbm().equals(map.get("xlBm").toString())) {  
332 - t = t1;  
333 - type = "update"; 336 + && t1.getXlbm().equals(map.get("xlBm").toString()
  337 + )) {
  338 + if(t1.getLp()==null){
  339 + //同人同车同线路不同路牌的过滤 (考虑到历史数据)
  340 + if (cMap.get(map.get("clZbh").toString()+map.get("jGh").toString()+map.get("xlBm").toString())==null) {
  341 + t = t1;
  342 + type = "update";
  343 + cMap.put(map.get("clZbh").toString()+map.get("jGh").toString()+map.get("xlBm").toString(),
  344 + map.get("clZbh").toString());
  345 + }
  346 + }else{
  347 + if(t1.getLp().equals(map.get("lpName").toString())){
  348 + t = t1;
  349 + type = "update";
  350 + }
  351 +
  352 + }
334 } 353 }
335 } 354 }
336 -  
337 // 当日的第一个班次,出场油量等于前一天的最后一个班次的进场油量 355 // 当日的第一个班次,出场油量等于前一天的最后一个班次的进场油量
338 if (map.get("seqNumber").toString().equals("1")) { 356 if (map.get("seqNumber").toString().equals("1")) {
339 boolean fage = true; 357 boolean fage = true;
@@ -428,7 +446,7 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS @@ -428,7 +446,7 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS
428 t.setFgsdm(map.get("bCompany") == null ? "" : map.get("bCompany").toString()); 446 t.setFgsdm(map.get("bCompany") == null ? "" : map.get("bCompany").toString());
429 t.setJhsj(map.get("fcsj")==null?"":map.get("fcsj").toString()); 447 t.setJhsj(map.get("fcsj")==null?"":map.get("fcsj").toString());
430 t.setRq(sdf.parse(rq)); 448 t.setRq(sdf.parse(rq));
431 - 449 + t.setLp(map.get("lpName")==null?"":map.get("lpName").toString());
432 if(!(t.getSsgsdm().equals("") || t.getFgsdm().equals(""))){ 450 if(!(t.getSsgsdm().equals("") || t.getFgsdm().equals(""))){
433 if(type.equals("add")){ 451 if(type.equals("add")){
434 t.setCreatetime(date); 452 t.setCreatetime(date);
@@ -436,7 +454,6 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS @@ -436,7 +454,6 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS
436 }else{ 454 }else{
437 t.setUpdatetime(date); 455 t.setUpdatetime(date);
438 updateList.add(t); 456 updateList.add(t);
439 - ins += t.getId().toString()+",";  
440 } 457 }
441 } 458 }
442 // repository.save(t); 459 // repository.save(t);
@@ -456,7 +473,6 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS @@ -456,7 +473,6 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS
456 } 473 }
457 474
458 } 475 }
459 -  
460 if(updateList.size()>0){ 476 if(updateList.size()>0){
461 for (int i = 0; i < updateList.size(); i++) { 477 for (int i = 0; i < updateList.size(); i++) {
462 repository.save(updateList.get(i)); 478 repository.save(updateList.get(i));
@@ -1437,23 +1453,12 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS @@ -1437,23 +1453,12 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS
1437 t.setYh(yh); 1453 t.setYh(yh);
1438 t.setJzyl(ylxs); 1454 t.setJzyl(ylxs);
1439 nextJzyl=ylxs; 1455 nextJzyl=ylxs;
1440 -  
1441 -  
1442 }else{ 1456 }else{
1443 t.setYh(yh); 1457 t.setYh(yh);
1444 t.setJzyl(nextJzyl); 1458 t.setJzyl(nextJzyl);
1445 } 1459 }
1446 } 1460 }
1447 repository.save(t); 1461 repository.save(t);
1448 - for (int z = 0; z < cylList.size(); z++) {  
1449 - Cyl cyl = cylList.get(z);  
1450 - if (t.getNbbm().equals(cyl.getNbbm())) {  
1451 - cyl.setCyl(t.getJzyl());  
1452 - cyl.setUpdatetime(t.getRq());  
1453 - break;  
1454 - }  
1455 - cylRepository.save(cyl);  
1456 - }  
1457 } 1462 }
1458 newMap.put("status", ResponseCode.SUCCESS); 1463 newMap.put("status", ResponseCode.SUCCESS);
1459 } 1464 }
@@ -1547,7 +1552,7 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS @@ -1547,7 +1552,7 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS
1547 String px) { 1552 String px) {
1548 // TODO Auto-generated method stub 1553 // TODO Auto-generated method stub
1549 String sql="SELECT * FROM bsth_c_ylb " 1554 String sql="SELECT * FROM bsth_c_ylb "
1550 - + " where to_days('"+rq+"')=to_days(rq) and ssgsdm like '%"+gsdm+"%' " 1555 + + " where rq ='"+rq+"' and ssgsdm like '%"+gsdm+"%' "
1551 + " and fgsdm like '%"+fgsdm+"%'"; 1556 + " and fgsdm like '%"+fgsdm+"%'";
1552 if(xlbm.equals("")){ 1557 if(xlbm.equals("")){
1553 sql+= " and xlbm like '%"+xlbm+"%' "; 1558 sql+= " and xlbm like '%"+xlbm+"%' ";
src/main/java/com/bsth/service/realcontrol/LineConfigService.java
@@ -26,4 +26,6 @@ public interface LineConfigService extends BaseService&lt;LineConfig, Integer&gt;{ @@ -26,4 +26,6 @@ public interface LineConfigService extends BaseService&lt;LineConfig, Integer&gt;{
26 Map<String,Object> parkAndStationSet(Map<String, String> map); 26 Map<String,Object> parkAndStationSet(Map<String, String> map);
27 27
28 Map<String,Object> findByIdx(String idx); 28 Map<String,Object> findByIdx(String idx);
  29 +
  30 + Map<String,Object> setAutoExec(Map<String, String> map);
29 } 31 }
src/main/java/com/bsth/service/realcontrol/ScheduleRealInfoService.java
@@ -139,9 +139,9 @@ public interface ScheduleRealInfoService extends BaseService&lt;ScheduleRealInfo, L @@ -139,9 +139,9 @@ public interface ScheduleRealInfoService extends BaseService&lt;ScheduleRealInfo, L
139 139
140 Map<String, Object> multi_dftz(List<DfsjChange> dfsjcs); 140 Map<String, Object> multi_dftz(List<DfsjChange> dfsjcs);
141 141
142 - Map<String,Object> changeBcType(Long id, String bcType, String remarks); 142 + Map<String, Object> changeBcType(Long id, String bcType, String remarks, String majorStationName);
143 143
144 - Map<String,Object> historySave(ScheduleRealInfo sch); 144 + Map<String,Object> historySave(ScheduleRealInfo sch);
145 145
146 Map<String, Object> MapById(Long id) ; 146 Map<String, Object> MapById(Long id) ;
147 147
src/main/java/com/bsth/service/realcontrol/impl/ChildTaskPlanServiceImpl.java
@@ -46,14 +46,11 @@ public class ChildTaskPlanServiceImpl extends BaseServiceImpl&lt;ChildTaskPlan, Lon @@ -46,14 +46,11 @@ public class ChildTaskPlanServiceImpl extends BaseServiceImpl&lt;ChildTaskPlan, Lon
46 try { 46 try {
47 ScheduleRealInfo sch = dayOfSchedule.get(t.getSchedule().getId()); 47 ScheduleRealInfo sch = dayOfSchedule.get(t.getSchedule().getId());
48 //保存起终点名称 48 //保存起终点名称
49 - //String prefix = sch.getXlBm() + "_" + sch.getXlDir() + "_";  
50 if(StringUtils.isEmpty(t.getStartStationName())) 49 if(StringUtils.isEmpty(t.getStartStationName()))
51 t.setStartStationName(getStationName(sch.getXlBm(), t.getStartStation())); 50 t.setStartStationName(getStationName(sch.getXlBm(), t.getStartStation()));
52 - //t.setStartStationName(BasicData.getStationNameByCode(t.getStartStation(), prefix));  
53 51
54 if(StringUtils.isEmpty(t.getEndStationName())) 52 if(StringUtils.isEmpty(t.getEndStationName()))
55 t.setEndStationName(getStationName(sch.getXlBm(), t.getEndStation())); 53 t.setEndStationName(getStationName(sch.getXlBm(), t.getEndStation()));
56 - //t.setEndStationName(BasicData.getStationNameByCode(t.getEndStation(), prefix));  
57 if(t.getDestroyReason() == null) 54 if(t.getDestroyReason() == null)
58 t.setDestroyReason(""); 55 t.setDestroyReason("");
59 56
@@ -61,13 +58,63 @@ public class ChildTaskPlanServiceImpl extends BaseServiceImpl&lt;ChildTaskPlan, Lon @@ -61,13 +58,63 @@ public class ChildTaskPlanServiceImpl extends BaseServiceImpl&lt;ChildTaskPlan, Lon
61 if(t.isDestroy() && StringUtils.isEmpty(t.getDestroyReason())) 58 if(t.isDestroy() && StringUtils.isEmpty(t.getDestroyReason()))
62 t.setDestroyReason(t.getReason()); 59 t.setDestroyReason(t.getReason());
63 60
  61 + //中途换车出场子任务,级联生成一个主任务,供报表和对外接口计算用
  62 + if(StringUtils.isNotEmpty(t.getNbbm())){
  63 + ScheduleRealInfo ccServiceSch = new ScheduleRealInfo();
  64 + ccServiceSch.setSflj(sch.isSflj());
  65 + ccServiceSch.setjGh(sch.getjGh());
  66 + ccServiceSch.setjName(sch.getjName());
  67 + ccServiceSch.setsGh(sch.getsGh());
  68 + ccServiceSch.setsName(sch.getsName());
  69 + ccServiceSch.setGsBm(sch.getGsBm());
  70 + ccServiceSch.setFgsBm(sch.getFgsBm());
  71 + ccServiceSch.setGsName(sch.getGsName());
  72 + ccServiceSch.setFgsName(sch.getFgsName());
  73 + ccServiceSch.setLpName(sch.getLpName());
  74 + ccServiceSch.setXlBm(sch.getXlBm());
  75 + ccServiceSch.setXlName(sch.getXlName());
  76 + ccServiceSch.setXlDir(sch.getXlDir());
  77 + ccServiceSch.setScheduleDate(sch.getScheduleDate());
  78 + ccServiceSch.setScheduleDateStr(sch.getScheduleDateStr());
  79 + ccServiceSch.setRealExecDate(sch.getRealExecDate());
  80 +
  81 + ccServiceSch.setId(null);
  82 + ccServiceSch.setSpId(null);
  83 + ccServiceSch.setClZbh(t.getNbbm());
  84 + ccServiceSch.setCcService(true);
  85 + ccServiceSch.setFcsj(t.getStartDate());
  86 + ccServiceSch.setDfsj(t.getStartDate());
  87 + ccServiceSch.setZdsj(t.getEndDate());
  88 + ccServiceSch.setBcsj(0);
  89 + ccServiceSch.setJhlcOrig(Double.parseDouble(String.valueOf(t.getMileage())));
  90 + ccServiceSch.setJhlc(ccServiceSch.getJhlcOrig());
  91 + ccServiceSch.setQdzCode(t.getStartStation());
  92 + ccServiceSch.setZdzCode(t.getEndStation());
  93 + ccServiceSch.setQdzName(t.getStartStationName());
  94 + ccServiceSch.setZdzName(t.getEndStationName());
  95 + ccServiceSch.setFcsjActual(ccServiceSch.getDfsj());
  96 + ccServiceSch.setZdsjActual(ccServiceSch.getZdsj());
  97 + ccServiceSch.setRemarks(t.getRemarks());
  98 + ccServiceSch.setStatus(2);
  99 + if("1".equals(t.getType2())){
  100 + ccServiceSch.setBcType("normal");
  101 + }
  102 + else {
  103 + if("2".equals(t.getType2()))
  104 + ccServiceSch.setBcType("in");
  105 + else if("3".equals(t.getType2()))
  106 + ccServiceSch.setBcType("out");
  107 + }
  108 + //实时入库
  109 + ccServiceSch = scheduleRealInfoRepository.save(ccServiceSch);
  110 + t.setCcId(ccServiceSch.getId());
  111 + }
  112 +
64 //先持久化子任务 113 //先持久化子任务
65 rs = super.save(t); 114 rs = super.save(t);
66 //关联主任务 115 //关联主任务
67 sch.getcTasks().add(t); 116 sch.getcTasks().add(t);
68 dayOfSchedule.save(sch); 117 dayOfSchedule.save(sch);
69 - //直接持久化  
70 - //scheduleRealInfoRepository.save(sch);  
71 //站到场对照 118 //站到场对照
72 t.setSchedule(sch); 119 t.setSchedule(sch);
73 Station2ParkBuffer.put(t); 120 Station2ParkBuffer.put(t);
@@ -101,6 +148,11 @@ public class ChildTaskPlanServiceImpl extends BaseServiceImpl&lt;ChildTaskPlan, Lon @@ -101,6 +148,11 @@ public class ChildTaskPlanServiceImpl extends BaseServiceImpl&lt;ChildTaskPlan, Lon
101 148
102 //删除子任务 149 //删除子任务
103 rs = super.delete(id); 150 rs = super.delete(id);
  151 +
  152 + //删除级联生成的换车主任务
  153 + if(null != cPlan.getCcId()){
  154 + scheduleRealInfoRepository.delete(cPlan.getCcId());
  155 + }
104 //dayOfSchedule.save(sch); 156 //dayOfSchedule.save(sch);
105 //解除和主任务关联 157 //解除和主任务关联
106 ScheduleRealInfo sch = dayOfSchedule.get(cPlan.getSchedule().getId()); 158 ScheduleRealInfo sch = dayOfSchedule.get(cPlan.getSchedule().getId());
src/main/java/com/bsth/service/realcontrol/impl/LineConfigServiceImpl.java
@@ -224,4 +224,25 @@ public class LineConfigServiceImpl extends BaseServiceImpl&lt;LineConfig, Integer&gt; @@ -224,4 +224,25 @@ public class LineConfigServiceImpl extends BaseServiceImpl&lt;LineConfig, Integer&gt;
224 } 224 }
225 return rs; 225 return rs;
226 } 226 }
  227 +
  228 + @Override
  229 + public Map<String, Object> setAutoExec(Map<String, String> map) {
  230 + String lineCode = map.get("lineCode").toString();
  231 + boolean autoExec = Boolean.parseBoolean(map.get("autoExec").toString());
  232 +
  233 + Map<String, Object> rs = new HashMap<>();
  234 + try {
  235 + LineConfig conf = lineConfigData.get(lineCode);
  236 + conf.setAutoExec(autoExec);
  237 +
  238 + lineConfigData.set(conf);
  239 + rs.put("status", ResponseCode.SUCCESS);
  240 + rs.put("conf", conf);
  241 + } catch (Exception e) {
  242 + rs.put("status", ResponseCode.ERROR);
  243 + rs.put("msg", e.getMessage());
  244 + logger.error("", e);
  245 + }
  246 + return rs;
  247 + }
227 } 248 }
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
@@ -24,7 +24,6 @@ import com.bsth.data.utils.CustomStringUtils; @@ -24,7 +24,6 @@ import com.bsth.data.utils.CustomStringUtils;
24 import com.bsth.entity.Cars; 24 import com.bsth.entity.Cars;
25 import com.bsth.entity.Line; 25 import com.bsth.entity.Line;
26 import com.bsth.entity.Personnel; 26 import com.bsth.entity.Personnel;
27 -import com.bsth.entity.mcy_forms.Waybillday;  
28 import com.bsth.entity.oil.Dlb; 27 import com.bsth.entity.oil.Dlb;
29 import com.bsth.entity.oil.Ylb; 28 import com.bsth.entity.oil.Ylb;
30 import com.bsth.entity.oil.Ylxxb; 29 import com.bsth.entity.oil.Ylxxb;
@@ -873,7 +872,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -873,7 +872,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
873 if(cts != null && cts.size() > 0){ 872 if(cts != null && cts.size() > 0){
874 lists.add(s); 873 lists.add(s);
875 }else{ 874 }else{
876 - if(s.getZdsjActual()!=null){ 875 + if(s.getZdsjActual()!=null && s.getFcsjActual()!=null){
877 lists.add(s); 876 lists.add(s);
878 } 877 }
879 } 878 }
@@ -1743,30 +1742,28 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -1743,30 +1742,28 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
1743 if(cts != null && cts.size() > 0){ 1742 if(cts != null && cts.size() > 0){
1744 lists.add(s); 1743 lists.add(s);
1745 }else{ 1744 }else{
1746 - if(s.getZdsjActual()!=null){ 1745 + if(s.getFcsjActual() !=null&&s.getZdsjActual()!=null){
1747 lists.add(s); 1746 lists.add(s);
1748 } 1747 }
1749 } 1748 }
1750 } 1749 }
1751 - double ksgl=culateService.culateKsgl(list);  
1752 - double sjgl=culateService.culateSjgl(lists);  
1753 - double jccgl=culateService.culateJccgl(lists);  
1754 - double ljgl=culateService.culateLjgl(lists);  
1755 -  
1756 - map.put("jhlc", Arith.add(culateService.culateJhgl(list),culateService.culateJhJccgl(list))); //计划里程 1750 + map.put("jhbc", culateService.culateJhbc(list,""));//计划班次
  1751 + map.put("jhlc", Arith.add(culateService.culateJhgl(list),
  1752 + culateService.culateJhJccgl(list))); //计划总里程
  1753 + map.put("cjbc", culateService.culateLbbc(list));//烂班班次
1757 map.put("remMileage", culateService.culateLbgl(list)); //烂班公里 1754 map.put("remMileage", culateService.culateLbgl(list)); //烂班公里
  1755 + map.put("ljbc", culateService.culateLjbc(lists,""));//临加班次
  1756 + double ljgl=culateService.culateLjgl(lists);
1758 map.put("addMileage", ljgl); //临加公里 1757 map.put("addMileage", ljgl); //临加公里
1759 - map.put("yygl",Arith.add(sjgl,ljgl)); //实际公里  
1760 - map.put("ksgl", ksgl);//空驶公里  
1761 - map.put("realMileage",Arith.add(Arith.add(ksgl,jccgl ),Arith.add(sjgl,ljgl)));  
1762 -// map.put("realMileage", format.format(yygl + ksgl + jcclc+addMileage));  
1763 - map.put("jhbc", culateService.culateJhbc(list,""));  
1764 - map.put("cjbc", culateService.culateLbbc(list));  
1765 - map.put("ljbc", culateService.culateLjbc(lists,""));  
1766 map.put("sjbc", culateService.culateSjbc(lists,"") + culateService.culateLjbc(lists,"")); 1758 map.put("sjbc", culateService.culateSjbc(lists,"") + culateService.culateLjbc(lists,""));
1767 - map.put("jcclc", jccgl); 1759 + double ksgl=culateService.culateKsgl(list);//子任务空驶公里
  1760 + double jccgl=culateService.culateJccgl(lists);//空驶班次公里
  1761 + map.put("ksgl", ksgl);//空驶公里
  1762 + double sjgl=culateService.culateSjgl(lists);//实际营运公里
  1763 + map.put("realMileage",Arith.add(Arith.add(ksgl,jccgl ),Arith.add(sjgl,ljgl)));//总公里
1768 map.put("zkslc", Arith.add(ksgl,jccgl)); 1764 map.put("zkslc", Arith.add(ksgl,jccgl));
1769 -// map.put("zkslc", format.format(ksgl + jcclc+addMileageJc)); 1765 + map.put("jcclc", jccgl);
  1766 + map.put("yygl",Arith.add(sjgl,ljgl)); //总营运公里
1770 return map; 1767 return map;
1771 } 1768 }
1772 1769
@@ -1789,7 +1786,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -1789,7 +1786,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
1789 if(cts != null && cts.size() > 0){ 1786 if(cts != null && cts.size() > 0){
1790 lists.add(s); 1787 lists.add(s);
1791 }else{ 1788 }else{
1792 - if(s.getZdsjActual()!=null){ 1789 + if(s.getZdsjActual()!=null && s.getFcsjActual()!=null){
1793 lists.add(s); 1790 lists.add(s);
1794 } 1791 }
1795 } 1792 }
@@ -2139,20 +2136,24 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -2139,20 +2136,24 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
2139 for (int j = 0; j < listit.size(); j++) { 2136 for (int j = 0; j < listit.size(); j++) {
2140 ScheduleRealInfo t = new ScheduleRealInfo(); 2137 ScheduleRealInfo t = new ScheduleRealInfo();
2141 ChildTaskPlan childTaskPlan = listit.get(j); 2138 ChildTaskPlan childTaskPlan = listit.get(j);
2142 - if (childTaskPlan.isDestroy()) {  
2143 - t.setFcsjActual("");  
2144 - t.setZdsjActual("");  
2145 - t.setJhlc(0.0);  
2146 - } else {  
2147 - t.setFcsjActual(childTaskPlan.getStartDate());  
2148 - t.setZdsjActual(childTaskPlan.getEndDate());  
2149 - t.setJhlc(Double.parseDouble(String.valueOf(childTaskPlan.getMileage()))); 2139 + if(childTaskPlan.getCcId()==null){
  2140 + if (childTaskPlan.isDestroy()) {
  2141 + t.setFcsjActual("");
  2142 + t.setZdsjActual("");
  2143 + t.setJhlc(0.0);
  2144 + } else {
  2145 + t.setFcsjActual(childTaskPlan.getStartDate());
  2146 + t.setZdsjActual(childTaskPlan.getEndDate());
  2147 + t.setJhlc(Double.parseDouble(String.valueOf(childTaskPlan.getMileage())));
  2148 + }
  2149 + t.setFcsj(childTaskPlan.getStartDate());
  2150 + t.setZdsj(childTaskPlan.getEndDate());
  2151 + t.setQdzName(childTaskPlan.getStartStationName());
  2152 + t.setZdzName(childTaskPlan.getEndStationName());
  2153 + t.setRemarks(childTaskPlan.getRemarks());
  2154 + t.setAdjustExps("子");
  2155 + listSchedule.add(t);
2150 } 2156 }
2151 - t.setQdzName(childTaskPlan.getStartStationName());  
2152 - t.setZdzName(childTaskPlan.getEndStationName());  
2153 - t.setRemarks(childTaskPlan.getRemarks());  
2154 - t.setAdjustExps("子");  
2155 - listSchedule.add(t);  
2156 } 2157 }
2157 } 2158 }
2158 } 2159 }
@@ -2295,7 +2296,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -2295,7 +2296,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
2295 if(cts != null && cts.size() > 0){ 2296 if(cts != null && cts.size() > 0){
2296 lists.add(s); 2297 lists.add(s);
2297 }else{ 2298 }else{
2298 - if(s.getZdsjActual()!=null){ 2299 + if(s.getZdsjActual()!=null && s.getFcsjActual()!=null){
2299 lists.add(s); 2300 lists.add(s);
2300 } 2301 }
2301 } 2302 }
@@ -2370,7 +2371,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -2370,7 +2371,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
2370 if(cts != null && cts.size() > 0){ 2371 if(cts != null && cts.size() > 0){
2371 lists.add(s); 2372 lists.add(s);
2372 }else{ 2373 }else{
2373 - if(s.getZdsjActual()!=null){ 2374 + if(s.getZdsjActual()!=null && s.getFcsjActual()!=null){
2374 lists.add(s); 2375 lists.add(s);
2375 } 2376 }
2376 } 2377 }
@@ -2433,7 +2434,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -2433,7 +2434,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
2433 if(cts != null && cts.size() > 0){ 2434 if(cts != null && cts.size() > 0){
2434 lists.add(s); 2435 lists.add(s);
2435 }else{ 2436 }else{
2436 - if(s.getZdsjActual()!=null){ 2437 + if(s.getZdsjActual()!=null&& s.getFcsjActual()!=null){
2437 lists.add(s); 2438 lists.add(s);
2438 } 2439 }
2439 } 2440 }
@@ -2487,10 +2488,11 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -2487,10 +2488,11 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
2487 map.put("dtbc", 0); 2488 map.put("dtbc", 0);
2488 map.put("dtbc_m", 0); 2489 map.put("dtbc_m", 0);
2489 map.put("dtbc_a", 0); 2490 map.put("dtbc_a", 0);
2490 - map.put("djg", 0);  
2491 - map.put("djg_m", 0);  
2492 - map.put("djg_a", 0);  
2493 - map.put("djg_time", 0); 2491 + Map<String, Object> m_=culateService.culateDjg(lists, list.get(0).getXlBm());
  2492 + map.put("djg", m_.get("djgcsq"));
  2493 + map.put("djg_m", m_.get("djgcsz"));
  2494 + map.put("djg_a", m_.get("djgcsw"));
  2495 + map.put("djg_time", m_.get("djgsj"));
2494 } 2496 }
2495 return map; 2497 return map;
2496 } 2498 }
@@ -2515,7 +2517,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -2515,7 +2517,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
2515 if(cts != null && cts.size() > 0){ 2517 if(cts != null && cts.size() > 0){
2516 list_s.add(s); 2518 list_s.add(s);
2517 }else{ 2519 }else{
2518 - if(s.getZdsjActual()!=null){ 2520 + if(s.getZdsjActual()!=null && s.getFcsjActual()!=null){
2519 list_s.add(s); 2521 list_s.add(s);
2520 } 2522 }
2521 } 2523 }
@@ -2592,10 +2594,11 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -2592,10 +2594,11 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
2592 map.put("dtbc", 0); 2594 map.put("dtbc", 0);
2593 map.put("dtbc_m", 0); 2595 map.put("dtbc_m", 0);
2594 map.put("dtbc_a", 0); 2596 map.put("dtbc_a", 0);
2595 - map.put("djg", 0);  
2596 - map.put("djg_m", 0);  
2597 - map.put("djg_a", 0);  
2598 - map.put("djg_time", 0); 2597 + Map<String, Object> m_=culateService.culateDjg(list_s, list.get(0).getXlBm());
  2598 + map.put("djg", m_.get("djgcsq"));
  2599 + map.put("djg_m", m_.get("djgcsz"));
  2600 + map.put("djg_a", m_.get("djgcsw"));
  2601 + map.put("djg_time", m_.get("djgsj"));
2599 lMap.add(map); 2602 lMap.add(map);
2600 if (type != null && type.length() != 0 && type.equals("export")) { 2603 if (type != null && type.length() != 0 && type.equals("export")) {
2601 SimpleDateFormat sdfMonth = new SimpleDateFormat("yyyy-MM-dd"), 2604 SimpleDateFormat sdfMonth = new SimpleDateFormat("yyyy-MM-dd"),
@@ -2723,7 +2726,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -2723,7 +2726,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
2723 String zdsjActual = ""; 2726 String zdsjActual = "";
2724 String zdsj1 = ""; 2727 String zdsj1 = "";
2725 String zdsjActual1 = ""; 2728 String zdsjActual1 = "";
2726 - List<ScheduleRealInfo> listInfo = scheduleRealInfoRepository.scheduleByDateAndLineQp(line, date); 2729 + List<ScheduleRealInfo> listInfo = scheduleRealInfoRepository.scheduleDdrb(line, date);
2727 for (int i = 0; i < listInfo.size(); i++) { 2730 for (int i = 0; i < listInfo.size(); i++) {
2728 ScheduleRealInfo t = listInfo.get(i); 2731 ScheduleRealInfo t = listInfo.get(i);
2729 if (!lpName.equals(t.getLpName())) { 2732 if (!lpName.equals(t.getLpName())) {
@@ -2743,7 +2746,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -2743,7 +2746,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
2743 list.add(t); 2746 list.add(t);
2744 } 2747 }
2745 2748
2746 - List<ScheduleRealInfo> listInfo2 = scheduleRealInfoRepository.scheduleByDateAndLineQp2(line, date); 2749 + List<ScheduleRealInfo> listInfo2 = scheduleRealInfoRepository.scheduleDdrb2(line, date);
2747 List<ScheduleRealInfo> xList = new ArrayList<ScheduleRealInfo>(); 2750 List<ScheduleRealInfo> xList = new ArrayList<ScheduleRealInfo>();
2748 List<ScheduleRealInfo> yList = new ArrayList<ScheduleRealInfo>(); 2751 List<ScheduleRealInfo> yList = new ArrayList<ScheduleRealInfo>();
2749 List<ScheduleRealInfo> zList = new ArrayList<ScheduleRealInfo>(); 2752 List<ScheduleRealInfo> zList = new ArrayList<ScheduleRealInfo>();
@@ -2945,21 +2948,22 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -2945,21 +2948,22 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
2945 }else{ 2948 }else{
2946 yesterdayDataList=scheduleRealInfoRepository.yesterdayDataList_eq(line, date,gsbm,fgsbm,nbbm); 2949 yesterdayDataList=scheduleRealInfoRepository.yesterdayDataList_eq(line, date,gsbm,fgsbm,nbbm);
2947 } 2950 }
2948 - System.out.println("time2:"+new Date());  
2949 -  
2950 List<ScheduleRealInfo> lists = scheduleRealInfoRepository.queryListWaybill3(jGh, nbbm, date,gsbm,fgsbm); 2951 List<ScheduleRealInfo> lists = scheduleRealInfoRepository.queryListWaybill3(jGh, nbbm, date,gsbm,fgsbm);
2951 for (int x = 0; x < yesterdayDataList.size(); x++) { 2952 for (int x = 0; x < yesterdayDataList.size(); x++) {
2952 String jName = yesterdayDataList.get(x).get("jGh").toString(); 2953 String jName = yesterdayDataList.get(x).get("jGh").toString();
2953 String clZbh = yesterdayDataList.get(x).get("clZbh").toString(); 2954 String clZbh = yesterdayDataList.get(x).get("clZbh").toString();
2954 String xlbm = yesterdayDataList.get(x).get("xlBm").toString(); 2955 String xlbm = yesterdayDataList.get(x).get("xlBm").toString();
  2956 + String lp =yesterdayDataList.get(x).get("lpName").toString();
2955 Map<String, Object> map = new HashMap<String, Object>(); 2957 Map<String, Object> map = new HashMap<String, Object>();
2956 boolean fage = true; 2958 boolean fage = true;
2957 String company=""; 2959 String company="";
2958 String bCompany=""; 2960 String bCompany="";
2959 List<ScheduleRealInfo> listS=new ArrayList<ScheduleRealInfo>(); 2961 List<ScheduleRealInfo> listS=new ArrayList<ScheduleRealInfo>();
2960 for (ScheduleRealInfo scheduleRealInfo : lists) { 2962 for (ScheduleRealInfo scheduleRealInfo : lists) {
2961 - if(scheduleRealInfo.getjGh().equals(jName) && scheduleRealInfo.getClZbh().equals(clZbh)  
2962 - && scheduleRealInfo.getXlBm().equals(xlbm)){ 2963 + if(scheduleRealInfo.getjGh().equals(jName)
  2964 + && scheduleRealInfo.getClZbh().equals(clZbh)
  2965 + && scheduleRealInfo.getXlBm().equals(xlbm)
  2966 + && scheduleRealInfo.getLpName().equals(lp)){
2963 if (fage) { 2967 if (fage) {
2964 //根据线路代码获取公司 2968 //根据线路代码获取公司
2965 company=scheduleRealInfo.getGsBm(); 2969 company=scheduleRealInfo.getGsBm();
@@ -2976,7 +2980,6 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -2976,7 +2980,6 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
2976 } 2980 }
2977 } 2981 }
2978 } 2982 }
2979 -  
2980 yesterdayDataList.get(x).put("company", company); 2983 yesterdayDataList.get(x).put("company", company);
2981 yesterdayDataList.get(x).put("bCompany", bCompany); 2984 yesterdayDataList.get(x).put("bCompany", bCompany);
2982 Double ljgl=culateMieageService.culateLjgl(listS); 2985 Double ljgl=culateMieageService.culateLjgl(listS);
@@ -3001,6 +3004,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -3001,6 +3004,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
3001 } 3004 }
3002 } 3005 }
3003 } 3006 }
  3007 +
3004 return yesterdayDataList; 3008 return yesterdayDataList;
3005 } 3009 }
3006 3010
@@ -3237,7 +3241,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -3237,7 +3241,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
3237 * @return 3241 * @return
3238 */ 3242 */
3239 @Override 3243 @Override
3240 - public Map<String, Object> changeBcType(Long id, String bcType, String remarks) { 3244 + public Map<String, Object> changeBcType(Long id, String bcType, String remarks, String majorStationName) {
3241 Map<String, Object> rs = new HashMap<>(); 3245 Map<String, Object> rs = new HashMap<>();
3242 3246
3243 try { 3247 try {
@@ -3247,6 +3251,10 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -3247,6 +3251,10 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
3247 sch.addRemarks(remarks); 3251 sch.addRemarks(remarks);
3248 rs.put("status", ResponseCode.SUCCESS); 3252 rs.put("status", ResponseCode.SUCCESS);
3249 rs.put("t", sch); 3253 rs.put("t", sch);
  3254 +
  3255 + if("major".equals(bcType)){
  3256 + sch.setMajorStationName(majorStationName);
  3257 + }
3250 } 3258 }
3251 } catch (Exception e) { 3259 } catch (Exception e) {
3252 logger.error("", e); 3260 logger.error("", e);
@@ -3546,7 +3554,6 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -3546,7 +3554,6 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
3546 map.put("fast", ""); 3554 map.put("fast", "");
3547 map.put("slow", ""); 3555 map.put("slow", "");
3548 } 3556 }
3549 - System.out.println(map);  
3550 listMap.add(map); 3557 listMap.add(map);
3551 } catch (Exception e) { 3558 } catch (Exception e) {
3552 e.printStackTrace(); 3559 e.printStackTrace();
@@ -3737,26 +3744,46 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -3737,26 +3744,46 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
3737 type=0; 3744 type=0;
3738 for (int i = 0; i < listYlb.size(); i++) { 3745 for (int i = 0; i < listYlb.size(); i++) {
3739 Ylb y = listYlb.get(i); 3746 Ylb y = listYlb.get(i);
3740 - ccyl=Arith.add(ccyl, y.getCzyl());  
3741 - jcyl=Arith.add(jcyl, y.getJzyl());  
3742 - yh =Arith.add(yh ,y.getYh());  
3743 - jzl =Arith.add(jzl, y.getJzl());  
3744 - zlc =Arith.add(zlc, y.getZlc()); 3747 + if(y.getLp()==null){
  3748 + ccyl=Arith.add(ccyl, y.getCzyl());
  3749 + jcyl=Arith.add(jcyl, y.getJzyl());
  3750 + yh =Arith.add(yh ,y.getYh());
  3751 + jzl =Arith.add(jzl, y.getJzl());
  3752 + zlc =Arith.add(zlc, y.getZlc());
  3753 + }else{
  3754 + if(y.getLp().equals(s.getLpName())){
  3755 + ccyl=Arith.add(ccyl, y.getCzyl());
  3756 + jcyl=Arith.add(jcyl, y.getJzyl());
  3757 + yh =Arith.add(yh ,y.getYh());
  3758 + jzl =Arith.add(jzl, y.getJzl());
  3759 + zlc =Arith.add(zlc, y.getZlc());
  3760 + }
  3761 + }
  3762 +
3745 } 3763 }
3746 }else{ 3764 }else{
3747 type=1; 3765 type=1;
3748 for (int i = 0; i < listDlb.size(); i++) { 3766 for (int i = 0; i < listDlb.size(); i++) {
3749 Dlb d=listDlb.get(i); 3767 Dlb d=listDlb.get(i);
3750 - ccyl=Arith.add(ccyl, d.getCzcd());  
3751 - jcyl=Arith.add(jcyl, d.getJzcd());  
3752 - yh =Arith.add(yh ,d.getHd());  
3753 - jzl =Arith.add(jzl, d.getCdl());  
3754 - zlc =Arith.add(zlc, d.getZlc()); 3768 + if(d.getLp()==null){
  3769 + ccyl=Arith.add(ccyl, d.getCzcd());
  3770 + jcyl=Arith.add(jcyl, d.getJzcd());
  3771 + yh =Arith.add(yh ,d.getHd());
  3772 + jzl =Arith.add(jzl, d.getCdl());
  3773 + zlc =Arith.add(zlc, d.getZlc());
  3774 + }else{
  3775 + if(d.getLp().equals(s.getLpName())){
  3776 + ccyl=Arith.add(ccyl, d.getCzcd());
  3777 + jcyl=Arith.add(jcyl, d.getJzcd());
  3778 + yh =Arith.add(yh ,d.getHd());
  3779 + jzl =Arith.add(jzl, d.getCdl());
  3780 + zlc =Arith.add(zlc, d.getZlc());
  3781 + }
  3782 + }
  3783 +
3755 } 3784 }
3756 } 3785 }
3757 3786
3758 -  
3759 -  
3760 map.put("jzl", jzl); 3787 map.put("jzl", jzl);
3761 map.put("yh", yh); 3788 map.put("yh", yh);
3762 map.put("ccyl", ccyl); 3789 map.put("ccyl", ccyl);
@@ -4211,7 +4238,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf @@ -4211,7 +4238,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl&lt;ScheduleRealInf
4211 if(cts != null && cts.size() > 0){ 4238 if(cts != null && cts.size() > 0){
4212 lists.add(s); 4239 lists.add(s);
4213 }else{ 4240 }else{
4214 - if(s.getZdsjActual()!=null){ 4241 + if(s.getZdsjActual()!=null && s.getFcsjActual()!=null){
4215 lists.add(s); 4242 lists.add(s);
4216 } 4243 }
4217 } 4244 }
src/main/java/com/bsth/service/report/CulateMileageService.java
@@ -39,6 +39,8 @@ public interface CulateMileageService { @@ -39,6 +39,8 @@ public interface CulateMileageService {
39 Map<String, Object> culateWdbcs(List<ScheduleRealInfo> lists); 39 Map<String, Object> culateWdbcs(List<ScheduleRealInfo> lists);
40 40
41 int culateDtfzbc(List<ScheduleRealInfo> lists,String type,String status,String item); 41 int culateDtfzbc(List<ScheduleRealInfo> lists,String type,String status,String item);
  42 +
  43 +
42 //以下计算方法供新报表使用 44 //以下计算方法供新报表使用
43 Map<String, Double> culateSjlcMap(List<ScheduleRealInfo> lists);//计划内营运and计划外营运 45 Map<String, Double> culateSjlcMap(List<ScheduleRealInfo> lists);//计划内营运and计划外营运
44 46
src/main/java/com/bsth/service/report/impl/CulateMileageServiceImpl.java
1 package com.bsth.service.report.impl; 1 package com.bsth.service.report.impl;
2 2
3 -import java.sql.ResultSet;  
4 -import java.sql.SQLException;  
5 -import java.text.DecimalFormat;  
6 -import java.text.ParseException;  
7 -import java.text.SimpleDateFormat;  
8 -import java.util.ArrayList;  
9 -import java.util.Collections;  
10 -import java.util.HashMap;  
11 -import java.util.Iterator;  
12 -import java.util.List;  
13 -import java.util.Map;  
14 -import java.util.Set;  
15 -  
16 -import org.apache.commons.lang.StringUtils;  
17 -import org.springframework.beans.factory.annotation.Autowired;  
18 -import org.springframework.jdbc.core.JdbcTemplate;  
19 -import org.springframework.jdbc.core.RowMapper;  
20 -import org.springframework.stereotype.Service;  
21 -  
22 -import com.bsth.data.BasicData;  
23 import com.bsth.entity.realcontrol.ChildTaskPlan; 3 import com.bsth.entity.realcontrol.ChildTaskPlan;
24 import com.bsth.entity.realcontrol.ScheduleRealInfo; 4 import com.bsth.entity.realcontrol.ScheduleRealInfo;
25 import com.bsth.entity.sys.Interval; 5 import com.bsth.entity.sys.Interval;
@@ -27,8 +7,18 @@ import com.bsth.service.report.CulateMileageService; @@ -27,8 +7,18 @@ import com.bsth.service.report.CulateMileageService;
27 import com.bsth.util.Arith; 7 import com.bsth.util.Arith;
28 import com.bsth.util.ComparableChild; 8 import com.bsth.util.ComparableChild;
29 import com.bsth.util.ComparableJob; 9 import com.bsth.util.ComparableJob;
30 -import com.bsth.util.ReportUtils;  
31 -import com.google.common.util.concurrent.AbstractScheduledService.Scheduler; 10 +import org.apache.commons.lang.StringUtils;
  11 +import org.springframework.beans.factory.annotation.Autowired;
  12 +import org.springframework.jdbc.core.JdbcTemplate;
  13 +import org.springframework.jdbc.core.RowMapper;
  14 +import org.springframework.stereotype.Service;
  15 +
  16 +import java.sql.ResultSet;
  17 +import java.sql.SQLException;
  18 +import java.text.DecimalFormat;
  19 +import java.text.ParseException;
  20 +import java.text.SimpleDateFormat;
  21 +import java.util.*;
32 22
33 @Service 23 @Service
34 public class CulateMileageServiceImpl implements CulateMileageService{ 24 public class CulateMileageServiceImpl implements CulateMileageService{
@@ -179,10 +169,12 @@ public class CulateMileageServiceImpl implements CulateMileageService{ @@ -179,10 +169,12 @@ public class CulateMileageServiceImpl implements CulateMileageService{
179 Iterator<ChildTaskPlan> it = childTaskPlans.iterator(); 169 Iterator<ChildTaskPlan> it = childTaskPlans.iterator();
180 while (it.hasNext()) { 170 while (it.hasNext()) {
181 ChildTaskPlan childTaskPlan = it.next(); 171 ChildTaskPlan childTaskPlan = it.next();
182 - if(childTaskPlan.getMileageType().equals("service")){  
183 - if (childTaskPlan.isDestroy()) {  
184 - zlblc=Arith.add(zlblc,childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage());  
185 - } 172 + if(childTaskPlan.getCcId()==null){
  173 + if(childTaskPlan.getMileageType().equals("service")){
  174 + if (childTaskPlan.isDestroy()) {
  175 + zlblc=Arith.add(zlblc,childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage());
  176 + }
  177 + }
186 } 178 }
187 } 179 }
188 } 180 }
@@ -198,30 +190,11 @@ public class CulateMileageServiceImpl implements CulateMileageService{ @@ -198,30 +190,11 @@ public class CulateMileageServiceImpl implements CulateMileageService{
198 for (int i = 0; i < lists.size(); i++) { 190 for (int i = 0; i < lists.size(); i++) {
199 ScheduleRealInfo scheduleRealInfo=lists.get(i); 191 ScheduleRealInfo scheduleRealInfo=lists.get(i);
200 if (!isInOut(scheduleRealInfo)) { 192 if (!isInOut(scheduleRealInfo)) {
201 -// Set<ChildTaskPlan> childTaskPlans = scheduleRealInfo.getcTasks();  
202 -// if(childTaskPlans.isEmpty()){ 193 + if(!scheduleRealInfo.isCcService()){
203 if(scheduleRealInfo.getStatus() == -1){ 194 if(scheduleRealInfo.getStatus() == -1){
204 lbbc++; 195 lbbc++;
205 } 196 }
206 -// }  
207 - /*else{  
208 - if(scheduleRealInfo.getStatus() == -1){  
209 - boolean fage=true;  
210 - Iterator<ChildTaskPlan> it = childTaskPlans.iterator();  
211 - if(it.hasNext()){  
212 - ChildTaskPlan childTaskPlan = it.next();  
213 - if(!childTaskPlan.isDestroy()){  
214 - if(childTaskPlan.getMileageType().equals("service")){  
215 - fage=false;  
216 - }  
217 - }  
218 -  
219 - }  
220 - if(fage){  
221 - lbbc++;  
222 - }  
223 - }  
224 - }*/ 197 + }
225 } 198 }
226 } 199 }
227 return lbbc; 200 return lbbc;
@@ -378,7 +351,7 @@ public class CulateMileageServiceImpl implements CulateMileageService{ @@ -378,7 +351,7 @@ public class CulateMileageServiceImpl implements CulateMileageService{
378 Iterator<ChildTaskPlan> it = childTaskPlans.iterator(); 351 Iterator<ChildTaskPlan> it = childTaskPlans.iterator();
379 while (it.hasNext()) { 352 while (it.hasNext()) {
380 ChildTaskPlan childTaskPlan = it.next(); 353 ChildTaskPlan childTaskPlan = it.next();
381 - if(childTaskPlan.getMileageType().equals("service")){ 354 + if(childTaskPlan.getMileageType().equals("service") && childTaskPlan.getCcId()==null){
382 if (!childTaskPlan.isDestroy()) { 355 if (!childTaskPlan.isDestroy()) {
383 Float jhgl=childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage(); 356 Float jhgl=childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage();
384 ljgl=Arith.add(ljgl,jhgl); 357 ljgl=Arith.add(ljgl,jhgl);
@@ -399,11 +372,13 @@ public class CulateMileageServiceImpl implements CulateMileageService{ @@ -399,11 +372,13 @@ public class CulateMileageServiceImpl implements CulateMileageService{
399 Iterator<ChildTaskPlan> it = childTaskPlans.iterator(); 372 Iterator<ChildTaskPlan> it = childTaskPlans.iterator();
400 while (it.hasNext()) { 373 while (it.hasNext()) {
401 ChildTaskPlan childTaskPlan = it.next(); 374 ChildTaskPlan childTaskPlan = it.next();
402 - if("service".equals(childTaskPlan.getMileageType())&&"临加".equals(childTaskPlan.getType1())){  
403 - if (!childTaskPlan.isDestroy()) {  
404 - Float jhgl=childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage();  
405 - ljgl=Arith.add(ljgl,jhgl);  
406 - } 375 + if(childTaskPlan.getCcId()==null){
  376 + if("service".equals(childTaskPlan.getMileageType())&&"临加".equals(childTaskPlan.getType1())){
  377 + if (!childTaskPlan.isDestroy()) {
  378 + Float jhgl=childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage();
  379 + ljgl=Arith.add(ljgl,jhgl);
  380 + }
  381 + }
407 } 382 }
408 } 383 }
409 } 384 }
@@ -463,7 +438,7 @@ public class CulateMileageServiceImpl implements CulateMileageService{ @@ -463,7 +438,7 @@ public class CulateMileageServiceImpl implements CulateMileageService{
463 for (int i = 0; i < lists.size(); i++) { 438 for (int i = 0; i < lists.size(); i++) {
464 ScheduleRealInfo scheduleRealInfo=lists.get(i); 439 ScheduleRealInfo scheduleRealInfo=lists.get(i);
465 if (!isInOut(scheduleRealInfo)) { 440 if (!isInOut(scheduleRealInfo)) {
466 - if(!scheduleRealInfo.isSflj()){ 441 + if(!scheduleRealInfo.isSflj() && !scheduleRealInfo.isCcService()){
467 jhgl=Arith.add(jhgl,scheduleRealInfo.getJhlcOrig()==null?0:scheduleRealInfo.getJhlcOrig()); 442 jhgl=Arith.add(jhgl,scheduleRealInfo.getJhlcOrig()==null?0:scheduleRealInfo.getJhlcOrig());
468 } 443 }
469 } 444 }
@@ -504,7 +479,7 @@ public class CulateMileageServiceImpl implements CulateMileageService{ @@ -504,7 +479,7 @@ public class CulateMileageServiceImpl implements CulateMileageService{
504 for (int i = 0; i < lists.size(); i++) { 479 for (int i = 0; i < lists.size(); i++) {
505 ScheduleRealInfo scheduleRealInfo=lists.get(i); 480 ScheduleRealInfo scheduleRealInfo=lists.get(i);
506 if (!isInOut(scheduleRealInfo)) { 481 if (!isInOut(scheduleRealInfo)) {
507 - if(!scheduleRealInfo.isSflj()){ 482 + if(!scheduleRealInfo.isSflj() && !scheduleRealInfo.isCcService()){
508 String[] fcsjStr = scheduleRealInfo.getFcsj().split(":"); 483 String[] fcsjStr = scheduleRealInfo.getFcsj().split(":");
509 long fcsj= Long.parseLong(fcsjStr[0])*60+Long.parseLong(fcsjStr[1]); 484 long fcsj= Long.parseLong(fcsjStr[0])*60+Long.parseLong(fcsjStr[1]);
510 if(item.equals("zgf")){ 485 if(item.equals("zgf")){
@@ -535,21 +510,23 @@ public class CulateMileageServiceImpl implements CulateMileageService{ @@ -535,21 +510,23 @@ public class CulateMileageServiceImpl implements CulateMileageService{
535 Set<ChildTaskPlan> childTaskPlans = scheduleRealInfo.getcTasks(); 510 Set<ChildTaskPlan> childTaskPlans = scheduleRealInfo.getcTasks();
536 if(!scheduleRealInfo.isSflj()){ 511 if(!scheduleRealInfo.isSflj()){
537 if(childTaskPlans.isEmpty()){ 512 if(childTaskPlans.isEmpty()){
538 - if(!scheduleRealInfo.isDestroy()){  
539 - double jhlcOrig=scheduleRealInfo.getJhlcOrig()==null?0:scheduleRealInfo.getJhlcOrig();  
540 - double jhlc=scheduleRealInfo.getJhlc()==null?0:scheduleRealInfo.getJhlc();  
541 - if(jhlc-jhlcOrig>0){  
542 - sjgl=Arith.add(sjgl,jhlcOrig);  
543 - }else{  
544 - sjgl=Arith.add(sjgl,jhlc);  
545 - }  
546 - 513 + if(!scheduleRealInfo.isDestroy()){
  514 + double jhlcOrig=scheduleRealInfo.getJhlcOrig()==null?0:scheduleRealInfo.getJhlcOrig();
  515 + double jhlc=scheduleRealInfo.getJhlc()==null?0:scheduleRealInfo.getJhlc();
  516 + if(jhlc-jhlcOrig>0){
  517 + sjgl=Arith.add(sjgl,jhlcOrig);
  518 + }else{
  519 + sjgl=Arith.add(sjgl,jhlc);
547 } 520 }
  521 +
  522 + }
548 }else{ 523 }else{
549 Iterator<ChildTaskPlan> it = childTaskPlans.iterator(); 524 Iterator<ChildTaskPlan> it = childTaskPlans.iterator();
550 while (it.hasNext()) { 525 while (it.hasNext()) {
551 ChildTaskPlan childTaskPlan = it.next(); 526 ChildTaskPlan childTaskPlan = it.next();
552 - if(childTaskPlan.getMileageType().equals("service")&&"正常".equals(childTaskPlan.getType1())){ 527 + if(childTaskPlan.getMileageType().equals("service")
  528 + &&"正常".equals(childTaskPlan.getType1())
  529 + && childTaskPlan.getCcId()==null){
553 if (!childTaskPlan.isDestroy()) { 530 if (!childTaskPlan.isDestroy()) {
554 Float jhgl=childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage(); 531 Float jhgl=childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage();
555 sjgl=Arith.add(sjgl,jhgl); 532 sjgl=Arith.add(sjgl,jhgl);
@@ -649,8 +626,7 @@ public class CulateMileageServiceImpl implements CulateMileageService{ @@ -649,8 +626,7 @@ public class CulateMileageServiceImpl implements CulateMileageService{
649 for (int i = 0; i < lists.size(); i++) { 626 for (int i = 0; i < lists.size(); i++) {
650 ScheduleRealInfo scheduleRealInfo=lists.get(i); 627 ScheduleRealInfo scheduleRealInfo=lists.get(i);
651 if (!isInOut(scheduleRealInfo)) { 628 if (!isInOut(scheduleRealInfo)) {
652 - Set<ChildTaskPlan> childTaskPlans = scheduleRealInfo.getcTasks();  
653 - if(!scheduleRealInfo.isSflj()){ 629 + if(!scheduleRealInfo.isSflj() && !scheduleRealInfo.isCcService()){
654 String time=""; 630 String time="";
655 if(item.equals("zgf") || item.equals("wgf")){ 631 if(item.equals("zgf") || item.equals("wgf")){
656 if(scheduleRealInfo.getFcsjActual()!=null){ 632 if(scheduleRealInfo.getFcsjActual()!=null){
@@ -681,62 +657,6 @@ public class CulateMileageServiceImpl implements CulateMileageService{ @@ -681,62 +657,6 @@ public class CulateMileageServiceImpl implements CulateMileageService{
681 } 657 }
682 658
683 } 659 }
684 - /*if(childTaskPlans.isEmpty()){  
685 - if(scheduleRealInfo.getStatus()!=-1){  
686 - if(item.equals("zgf")){  
687 - if(fcsj>=zgf1 && fcsj<=zgf2){  
688 - sjbc++;  
689 - }  
690 - }else if(item.equals("wgf")){  
691 - if(fcsj>=wgf1 && fcsj<=wgf2){  
692 - sjbc++;  
693 - }  
694 - }else{  
695 - sjbc++;  
696 - }  
697 -  
698 - }  
699 - }else{  
700 - if(scheduleRealInfo.getStatus() == -1){  
701 - boolean fage=false;  
702 - Iterator<ChildTaskPlan> it = childTaskPlans.iterator();  
703 - while(it.hasNext()){  
704 - ChildTaskPlan childTaskPlan = it.next();  
705 - if(!childTaskPlan.isDestroy()){  
706 - if(childTaskPlan.getMileageType().equals("service")){  
707 - fage=true;  
708 - }  
709 - }  
710 -  
711 - }  
712 - if(fage){  
713 - if(item.equals("zgf")){  
714 - if(fcsj>=zgf1 && fcsj<=zgf2){  
715 - sjbc++;  
716 - }  
717 - }else if(item.equals("wgf")){  
718 - if(fcsj>=wgf1 && fcsj<=wgf2){  
719 - sjbc++;  
720 - }  
721 - }else{  
722 - sjbc++;  
723 - }  
724 - }  
725 -  
726 - }else{  
727 - if(item.equals("zgf")){  
728 - if(fcsj>=zgf1 && fcsj<=zgf2){  
729 - sjbc++;  
730 - }  
731 - }else if(item.equals("wgf")){  
732 - if(fcsj>=wgf1 && fcsj<=wgf2){  
733 - sjbc++;  
734 - }  
735 - }else{  
736 - sjbc++;  
737 - }  
738 - }  
739 - }*/  
740 } 660 }
741 } 661 }
742 } 662 }
@@ -750,14 +670,13 @@ public class CulateMileageServiceImpl implements CulateMileageService{ @@ -750,14 +670,13 @@ public class CulateMileageServiceImpl implements CulateMileageService{
750 double ksgl =0; 670 double ksgl =0;
751 for (int i = 0; i < lists.size(); i++) { 671 for (int i = 0; i < lists.size(); i++) {
752 ScheduleRealInfo scheduleRealInfo=lists.get(i); 672 ScheduleRealInfo scheduleRealInfo=lists.get(i);
753 - if (!(scheduleRealInfo.getBcType().equals("in")  
754 - || scheduleRealInfo.getBcType().equals("out"))) { 673 + if (!isInOut(scheduleRealInfo)) {
755 Set<ChildTaskPlan> childTaskPlans = scheduleRealInfo.getcTasks(); 674 Set<ChildTaskPlan> childTaskPlans = scheduleRealInfo.getcTasks();
756 if(!childTaskPlans.isEmpty()){ 675 if(!childTaskPlans.isEmpty()){
757 Iterator<ChildTaskPlan> it = childTaskPlans.iterator(); 676 Iterator<ChildTaskPlan> it = childTaskPlans.iterator();
758 while (it.hasNext()) { 677 while (it.hasNext()) {
759 ChildTaskPlan childTaskPlan = it.next(); 678 ChildTaskPlan childTaskPlan = it.next();
760 - if(childTaskPlan.getMileageType().equals("empty")){ 679 + if(childTaskPlan.getMileageType().equals("empty") && childTaskPlan.getCcId()==null){
761 if (!childTaskPlan.isDestroy()) { 680 if (!childTaskPlan.isDestroy()) {
762 Float jhgl=childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage(); 681 Float jhgl=childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage();
763 ksgl=Arith.add(ksgl,jhgl); 682 ksgl=Arith.add(ksgl,jhgl);
@@ -786,7 +705,7 @@ public class CulateMileageServiceImpl implements CulateMileageService{ @@ -786,7 +705,7 @@ public class CulateMileageServiceImpl implements CulateMileageService{
786 Iterator<ChildTaskPlan> it = childTaskPlans.iterator(); 705 Iterator<ChildTaskPlan> it = childTaskPlans.iterator();
787 while (it.hasNext()) { 706 while (it.hasNext()) {
788 ChildTaskPlan childTaskPlan = it.next(); 707 ChildTaskPlan childTaskPlan = it.next();
789 - if(childTaskPlan.getMileageType().equals("empty")){ 708 + if(childTaskPlan.getMileageType().equals("empty") && childTaskPlan.getCcId()==null){
790 if (!childTaskPlan.isDestroy()) { 709 if (!childTaskPlan.isDestroy()) {
791 Float jhgl=childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage(); 710 Float jhgl=childTaskPlan.getMileage()==null?0:childTaskPlan.getMileage();
792 jcclc=Arith.add(jcclc,jhgl); 711 jcclc=Arith.add(jcclc,jhgl);
@@ -907,7 +826,7 @@ public class CulateMileageServiceImpl implements CulateMileageService{ @@ -907,7 +826,7 @@ public class CulateMileageServiceImpl implements CulateMileageService{
907 double jcclc =0; 826 double jcclc =0;
908 for (int i = 0; i < lists.size(); i++) { 827 for (int i = 0; i < lists.size(); i++) {
909 ScheduleRealInfo scheduleRealInfo=lists.get(i); 828 ScheduleRealInfo scheduleRealInfo=lists.get(i);
910 - if(!scheduleRealInfo.isSflj()){ 829 + if(!scheduleRealInfo.isSflj() && !scheduleRealInfo.isCcService()){
911 if (scheduleRealInfo.getBcType().equals("in") 830 if (scheduleRealInfo.getBcType().equals("in")
912 || scheduleRealInfo.getBcType().equals("out")|| scheduleRealInfo.getBcType().equals("ldks")) { 831 || scheduleRealInfo.getBcType().equals("out")|| scheduleRealInfo.getBcType().equals("ldks")) {
913 if(!scheduleRealInfo.isSflj()){ 832 if(!scheduleRealInfo.isSflj()){
@@ -946,16 +865,17 @@ public class CulateMileageServiceImpl implements CulateMileageService{ @@ -946,16 +865,17 @@ public class CulateMileageServiceImpl implements CulateMileageService{
946 //有子任务 865 //有子任务
947 if (cts != null && cts.size() > 0) { 866 if (cts != null && cts.size() > 0) {
948 for(ChildTaskPlan c : cts){ 867 for(ChildTaskPlan c : cts){
949 - if(item.equals("其他")){  
950 - if(c.isDestroy() &&  
951 - ((c.getDestroyReason()==null?"": c.getDestroyReason()).equals(item)||  
952 - (c.getDestroyReason()==null?"": c.getDestroyReason()).equals("")))  
953 - sum = Arith.add(sum, c.getMileage());  
954 - }else{  
955 - if(c.isDestroy() && (c.getDestroyReason()==null?"": c.getDestroyReason()).equals(item))  
956 - sum = Arith.add(sum, c.getMileage()); 868 + if(c.getCcId()==null){
  869 + if(item.equals("其他")){
  870 + if(c.isDestroy() &&
  871 + ((c.getDestroyReason()==null?"": c.getDestroyReason()).equals(item)||
  872 + (c.getDestroyReason()==null?"": c.getDestroyReason()).equals("")))
  873 + sum = Arith.add(sum, c.getMileage());
  874 + }else{
  875 + if(c.isDestroy() && (c.getDestroyReason()==null?"": c.getDestroyReason()).equals(item))
  876 + sum = Arith.add(sum, c.getMileage());
  877 + }
957 } 878 }
958 -  
959 } 879 }
960 } 880 }
961 else if(isInOut(sch)) 881 else if(isInOut(sch))
@@ -984,7 +904,8 @@ public class CulateMileageServiceImpl implements CulateMileageService{ @@ -984,7 +904,8 @@ public class CulateMileageServiceImpl implements CulateMileageService{
984 int fzbc=0; 904 int fzbc=0;
985 for (int i = 0; i < lists.size(); i++) { 905 for (int i = 0; i < lists.size(); i++) {
986 ScheduleRealInfo scheduleRealInfo=lists.get(i); 906 ScheduleRealInfo scheduleRealInfo=lists.get(i);
987 - if (scheduleRealInfo.getBcType().equals("venting")) { 907 + if (scheduleRealInfo.getBcType().equals("venting")
  908 + || scheduleRealInfo.getBcType().equals("major")) {
988 // if(!scheduleRealInfo.isSflj()){ 909 // if(!scheduleRealInfo.isSflj()){
989 String[] fcsjStr = scheduleRealInfo.getFcsj().split(":"); 910 String[] fcsjStr = scheduleRealInfo.getFcsj().split(":");
990 long fcsj= Long.parseLong(fcsjStr[0])*60+Long.parseLong(fcsjStr[1]); 911 long fcsj= Long.parseLong(fcsjStr[0])*60+Long.parseLong(fcsjStr[1]);
src/main/java/com/bsth/service/report/impl/ReportServiceImpl.java
@@ -1838,7 +1838,7 @@ public class ReportServiceImpl implements ReportService{ @@ -1838,7 +1838,7 @@ public class ReportServiceImpl implements ReportService{
1838 || scheduleRealInfo.getBcType().equals("ldks"))) { 1838 || scheduleRealInfo.getBcType().equals("ldks"))) {
1839 // Set<ChildTaskPlan> childTaskPlans = scheduleRealInfo.getcTasks(); 1839 // Set<ChildTaskPlan> childTaskPlans = scheduleRealInfo.getcTasks();
1840 // if(childTaskPlans.isEmpty()){ 1840 // if(childTaskPlans.isEmpty()){
1841 - if(scheduleRealInfo.isSflj()){ 1841 + if(scheduleRealInfo.isSflj() && !scheduleRealInfo.isCcService()){
1842 Map<String, Object> newMap=new HashMap<String,Object>(); 1842 Map<String, Object> newMap=new HashMap<String,Object>();
1843 newMap.put("lp", scheduleRealInfo.getLpName()); 1843 newMap.put("lp", scheduleRealInfo.getLpName());
1844 newMap.put("nbbm", scheduleRealInfo.getClZbh()); 1844 newMap.put("nbbm", scheduleRealInfo.getClZbh());
@@ -1916,7 +1916,7 @@ public class ReportServiceImpl implements ReportService{ @@ -1916,7 +1916,7 @@ public class ReportServiceImpl implements ReportService{
1916 if(cts != null && cts.size() > 0){ 1916 if(cts != null && cts.size() > 0){
1917 lists.add(s); 1917 lists.add(s);
1918 }else{ 1918 }else{
1919 - if(s.getZdsjActual()!=null){ 1919 + if(s.getZdsjActual()!=null && s.getFcsjActual()!=null){
1920 lists.add(s); 1920 lists.add(s);
1921 } 1921 }
1922 } 1922 }
@@ -2534,7 +2534,7 @@ public class ReportServiceImpl implements ReportService{ @@ -2534,7 +2534,7 @@ public class ReportServiceImpl implements ReportService{
2534 if(cts != null && cts.size() > 0){ 2534 if(cts != null && cts.size() > 0){
2535 lists.add(s); 2535 lists.add(s);
2536 }else{ 2536 }else{
2537 - if(s.getZdsjActual()!=null){ 2537 + if(s.getZdsjActual()!=null && s.getFcsjActual()!=null){
2538 lists.add(s); 2538 lists.add(s);
2539 } 2539 }
2540 } 2540 }
src/main/java/com/bsth/service/schedule/impl/PeopleCarPlanServiceImpl.java
@@ -42,7 +42,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -42,7 +42,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
42 List<ScheduleRealInfo> list = new ArrayList<ScheduleRealInfo>(); 42 List<ScheduleRealInfo> list = new ArrayList<ScheduleRealInfo>();
43 43
44 try { 44 try {
45 - String sql = "select * from bsth_c_s_sp_info_real where DATE_FORMAT(schedule_date,'%Y-%m-%d') = '"+date+"'"; 45 + String sql = "select * from bsth_c_s_sp_info_real where schedule_date_str = '"+date+"'";
46 46
47 if(line.length() != 0) 47 if(line.length() != 0)
48 sql += " and xl_bm = '"+line+"'"; 48 sql += " and xl_bm = '"+line+"'";
@@ -54,7 +54,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -54,7 +54,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
54 @Override 54 @Override
55 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException { 55 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
56 ScheduleRealInfo schedule = new ScheduleRealInfo(); 56 ScheduleRealInfo schedule = new ScheduleRealInfo();
57 - schedule.setScheduleDateStr(rs.getString("schedule_date_Str")); 57 + schedule.setScheduleDateStr(rs.getString("schedule_date_str"));
58 schedule.setRealExecDate(rs.getString("real_exec_date")); 58 schedule.setRealExecDate(rs.getString("real_exec_date"));
59 schedule.setXlName(rs.getString("xl_name")); 59 schedule.setXlName(rs.getString("xl_name"));
60 schedule.setLpName(rs.getString("lp_name")); 60 schedule.setLpName(rs.getString("lp_name"));
@@ -80,6 +80,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -80,6 +80,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
80 schedule.setsGh(rs.getString("s_gh")); 80 schedule.setsGh(rs.getString("s_gh"));
81 schedule.setsName(rs.getString("s_name")); 81 schedule.setsName(rs.getString("s_name"));
82 schedule.setSpId(rs.getLong("sp_id")); 82 schedule.setSpId(rs.getLong("sp_id"));
  83 + schedule.setCcService(rs.getBoolean("cc_service"));
83 84
84 if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){ 85 if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){
85 schedule.setFcsjActual(null); 86 schedule.setFcsjActual(null);
@@ -175,7 +176,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -175,7 +176,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
175 } 176 }
176 177
177 if(map.get("subCompany")!=null){ 178 if(map.get("subCompany")!=null){
178 - subCompany=map.get("subCompany").toString(); 179 + subCompany = map.get("subCompany").toString();
179 } 180 }
180 String line = map.get("line").toString(); 181 String line = map.get("line").toString();
181 String date = map.get("date").toString(); 182 String date = map.get("date").toString();
@@ -187,7 +188,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -187,7 +188,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
187 188
188 try { 189 try {
189 190
190 - String sql = "select * from bsth_c_s_sp_info where DATE_FORMAT(schedule_date,'%Y-%m-%d') = '"+date+"'"; 191 + String sql = "select * from bsth_c_s_sp_info where schedule_date = '"+date+"'";
191 if(line.length() != 0){ 192 if(line.length() != 0){
192 sql += " and xl_bm = '"+line+"'"; 193 sql += " and xl_bm = '"+line+"'";
193 } 194 }
@@ -364,7 +365,10 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -364,7 +365,10 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
364 int jhsb = 0, sjsb = 0, jhmb = 0, sjmb = 0; 365 int jhsb = 0, sjsb = 0, jhmb = 0, sjmb = 0;
365 int jhzgf = 0, sjzgf = 0, jhwgf = 0, sjwgf = 0; 366 int jhzgf = 0, sjzgf = 0, jhwgf = 0, sjwgf = 0;
366 for(ScheduleRealInfo schedule : keyMap.get(key)){ 367 for(ScheduleRealInfo schedule : keyMap.get(key)){
367 -// schedule.setFcsjAll(schedule.getFcsj()); 368 + if(schedule.isCcService()){
  369 + continue;
  370 + }
  371 +
368 if(companyName.length() == 0 && schedule.getGsName() != null) 372 if(companyName.length() == 0 && schedule.getGsName() != null)
369 companyName = schedule.getGsName(); 373 companyName = schedule.getGsName();
370 if(subCompanyName.length() == 0 && schedule.getFgsName() != null) 374 if(subCompanyName.length() == 0 && schedule.getFgsName() != null)
@@ -547,7 +551,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -547,7 +551,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
547 } 551 }
548 try { 552 try {
549 553
550 - String sql = "select * from bsth_c_s_sp_info_real where DATE_FORMAT(schedule_date,'%Y-%m-%d') >= '"+startDate+"' and DATE_FORMAT(schedule_date,'%Y-%m-%d') <= '"+endDate+"'"; 554 + String sql = "select * from bsth_c_s_sp_info_real where schedule_date_str >= '"+startDate+"' and schedule_date_str <= '"+endDate+"'";
551 if(line.length() != 0){ 555 if(line.length() != 0){
552 sql += " and xl_bm = '"+line+"'"; 556 sql += " and xl_bm = '"+line+"'";
553 } 557 }
@@ -565,7 +569,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -565,7 +569,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
565 @Override 569 @Override
566 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException { 570 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
567 ScheduleRealInfo schedule = new ScheduleRealInfo(); 571 ScheduleRealInfo schedule = new ScheduleRealInfo();
568 - schedule.setScheduleDateStr(rs.getString("schedule_date_Str")); 572 + schedule.setScheduleDateStr(rs.getString("schedule_date_str"));
569 schedule.setXlName(rs.getString("xl_name")); 573 schedule.setXlName(rs.getString("xl_name"));
570 schedule.setBcType(rs.getString("bc_type")); 574 schedule.setBcType(rs.getString("bc_type"));
571 schedule.setGsName(rs.getString("gs_name")); 575 schedule.setGsName(rs.getString("gs_name"));
@@ -579,6 +583,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -579,6 +583,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
579 schedule.setBcsj(rs.getInt("bcsj")); 583 schedule.setBcsj(rs.getInt("bcsj"));
580 schedule.setQdzName(rs.getString("qdz_name")); 584 schedule.setQdzName(rs.getString("qdz_name"));
581 schedule.setSpId(rs.getLong("sp_id")); 585 schedule.setSpId(rs.getLong("sp_id"));
  586 + schedule.setCcService(rs.getBoolean("cc_service"));
582 587
583 if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){ 588 if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){
584 schedule.setFcsjActual(null); 589 schedule.setFcsjActual(null);
@@ -636,6 +641,9 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -636,6 +641,9 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
636 641
637 //分组计算 同时判断是否所选时刻信息 642 //分组计算 同时判断是否所选时刻信息
638 for(ScheduleRealInfo schedule : list){ 643 for(ScheduleRealInfo schedule : list){
  644 + if(schedule.isCcService()){
  645 + continue;
  646 + }
639 DO:{ 647 DO:{
640 if(model.length() != 0){ 648 if(model.length() != 0){
641 for(Long tt : ttList){ 649 for(Long tt : ttList){
@@ -840,7 +848,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -840,7 +848,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
840 } 848 }
841 try { 849 try {
842 850
843 - String sql = "select * from bsth_c_s_sp_info_real where DATE_FORMAT(schedule_date,'%Y-%m-%d') >= '"+startDate+"' and DATE_FORMAT(schedule_date,'%Y-%m-%d') <= '"+endDate+"'"; 851 + String sql = "select * from bsth_c_s_sp_info_real where schedule_date_str >= '"+startDate+"' and schedule_date_str <= '"+endDate+"'";
844 if(line.length() != 0){ 852 if(line.length() != 0){
845 sql += " and xl_bm = '"+line+"'"; 853 sql += " and xl_bm = '"+line+"'";
846 } 854 }
@@ -862,7 +870,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -862,7 +870,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
862 @Override 870 @Override
863 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException { 871 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
864 ScheduleRealInfo schedule = new ScheduleRealInfo(); 872 ScheduleRealInfo schedule = new ScheduleRealInfo();
865 - schedule.setScheduleDateStr(rs.getString("schedule_date_Str")); 873 + schedule.setScheduleDateStr(rs.getString("schedule_date_str"));
866 schedule.setRealExecDate(rs.getString("real_exec_date")); 874 schedule.setRealExecDate(rs.getString("real_exec_date"));
867 schedule.setXlName(rs.getString("xl_name")); 875 schedule.setXlName(rs.getString("xl_name"));
868 schedule.setBcType(rs.getString("bc_type")); 876 schedule.setBcType(rs.getString("bc_type"));
@@ -878,6 +886,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -878,6 +886,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
878 schedule.setBcsj(rs.getInt("bcsj")); 886 schedule.setBcsj(rs.getInt("bcsj"));
879 schedule.setQdzName(rs.getString("qdz_name")); 887 schedule.setQdzName(rs.getString("qdz_name"));
880 schedule.setSpId(rs.getLong("sp_id")); 888 schedule.setSpId(rs.getLong("sp_id"));
  889 + schedule.setCcService(rs.getBoolean("cc_service"));
881 890
882 if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){ 891 if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){
883 schedule.setFcsjActual(null); 892 schedule.setFcsjActual(null);
@@ -973,6 +982,10 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -973,6 +982,10 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
973 982
974 //按时间段分组 983 //按时间段分组
975 for(ScheduleRealInfo schedule : list){ 984 for(ScheduleRealInfo schedule : list){
  985 + if(schedule.isCcService()){
  986 + continue;
  987 + }
  988 +
976 if(companyName.length()==0&&schedule.getGsName()!=null 989 if(companyName.length()==0&&schedule.getGsName()!=null
977 &&schedule.getGsName().trim().length()!=0){ 990 &&schedule.getGsName().trim().length()!=0){
978 companyName = schedule.getGsName(); 991 companyName = schedule.getGsName();
@@ -1230,9 +1243,9 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -1230,9 +1243,9 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
1230 date = sdf.format(new Date()); 1243 date = sdf.format(new Date());
1231 1244
1232 try { 1245 try {
1233 - 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,"  
1234 - + " b.start_opt from bsth_c_s_sp_info_real a left join (select line, start_opt from bsth_c_line_config order by id desc) b on a.xl_bm = b.line"  
1235 - + " where DATE_FORMAT(schedule_date,'%Y-%m-%d') = '"+date+"'" 1246 + 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,"
  1247 + + " a.cc_service, b.start_opt from bsth_c_s_sp_info_real a left join (select line, start_opt from bsth_c_line_config order by id desc) b on a.xl_bm = b.line"
  1248 + + " where schedule_date_str = '"+date+"'"
1236 + " and bc_type != 'in' and bc_type != 'out' and bc_type != 'ldks' and bc_type != 'region'"; 1249 + " and bc_type != 'in' and bc_type != 'out' and bc_type != 'ldks' and bc_type != 'region'";
1237 if(line.trim().length() != 0) 1250 if(line.trim().length() != 0)
1238 sql += " and xl_bm = '"+line+"'"; 1251 sql += " and xl_bm = '"+line+"'";
@@ -1244,7 +1257,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -1244,7 +1257,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
1244 @Override 1257 @Override
1245 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException { 1258 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
1246 ScheduleRealInfo schedule = new ScheduleRealInfo(); 1259 ScheduleRealInfo schedule = new ScheduleRealInfo();
1247 - schedule.setScheduleDateStr(rs.getString("schedule_date_Str")); 1260 + schedule.setScheduleDateStr(rs.getString("schedule_date_str"));
1248 schedule.setRealExecDate(rs.getString("real_exec_date")); 1261 schedule.setRealExecDate(rs.getString("real_exec_date"));
1249 schedule.setXlName(rs.getString("xl_name")); 1262 schedule.setXlName(rs.getString("xl_name"));
1250 schedule.setFcsj(rs.getString("fcsj")); 1263 schedule.setFcsj(rs.getString("fcsj"));
@@ -1257,6 +1270,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -1257,6 +1270,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
1257 schedule.setStatus(rs.getInt("status")); 1270 schedule.setStatus(rs.getInt("status"));
1258 schedule.setGsName(rs.getString("gs_name")); 1271 schedule.setGsName(rs.getString("gs_name"));
1259 schedule.setFgsName(rs.getString("fgs_name")); 1272 schedule.setFgsName(rs.getString("fgs_name"));
  1273 + schedule.setCcService(rs.getBoolean("cc_service"));
1260 1274
1261 int startOpt = 0; 1275 int startOpt = 0;
1262 if(rs.getString("start_opt") != null && rs.getString("start_opt").trim().length() != 0){ 1276 if(rs.getString("start_opt") != null && rs.getString("start_opt").trim().length() != 0){
@@ -1298,7 +1312,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -1298,7 +1312,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
1298 String companyName = "", subCompanyName = ""; 1312 String companyName = "", subCompanyName = "";
1299 1313
1300 for(ScheduleRealInfo s : list){ 1314 for(ScheduleRealInfo s : list){
1301 - if(lineSet.contains(s.getXlName())){ 1315 + if(lineSet.contains(s.getXlName()) || s.isCcService()){
1302 continue; 1316 continue;
1303 } 1317 }
1304 String xlName = s.getXlName(); 1318 String xlName = s.getXlName();
@@ -1456,9 +1470,9 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -1456,9 +1470,9 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
1456 } 1470 }
1457 1471
1458 try { 1472 try {
1459 - 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,"  
1460 - + " b.start_opt from bsth_c_s_sp_info_real a left join (select line, start_opt from bsth_c_line_config order by id desc) b on a.xl_bm = b.line"  
1461 - + " where DATE_FORMAT(schedule_date,'%Y-%m-%d') >= '"+startDate+"' and DATE_FORMAT(schedule_date,'%Y-%m-%d') <= '"+endDate+"'" 1473 + 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,"
  1474 + + " a.cc_service, b.start_opt from bsth_c_s_sp_info_real a left join (select line, start_opt from bsth_c_line_config order by id desc) b on a.xl_bm = b.line"
  1475 + + " where schedule_date_str >= '"+startDate+"' and schedule_date_str <= '"+endDate+"'"
1462 + " and bc_type != 'in' and bc_type != 'out' and bc_type != 'ldks' and bc_type != 'region'"; 1476 + " and bc_type != 'in' and bc_type != 'out' and bc_type != 'ldks' and bc_type != 'region'";
1463 if(line.length() != 0) 1477 if(line.length() != 0)
1464 sql += " and xl_bm = '"+line+"'"; 1478 sql += " and xl_bm = '"+line+"'";
@@ -1470,7 +1484,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -1470,7 +1484,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
1470 @Override 1484 @Override
1471 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException { 1485 public ScheduleRealInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
1472 ScheduleRealInfo schedule = new ScheduleRealInfo(); 1486 ScheduleRealInfo schedule = new ScheduleRealInfo();
1473 - schedule.setScheduleDateStr(rs.getString("schedule_date_Str")); 1487 + schedule.setScheduleDateStr(rs.getString("schedule_date_str"));
1474 schedule.setRealExecDate(rs.getString("real_exec_date")); 1488 schedule.setRealExecDate(rs.getString("real_exec_date"));
1475 schedule.setXlName(rs.getString("xl_name")); 1489 schedule.setXlName(rs.getString("xl_name"));
1476 schedule.setFcsj(rs.getString("fcsj")); 1490 schedule.setFcsj(rs.getString("fcsj"));
@@ -1483,6 +1497,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -1483,6 +1497,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
1483 schedule.setStatus(rs.getInt("status")); 1497 schedule.setStatus(rs.getInt("status"));
1484 schedule.setGsName(rs.getString("gs_name")); 1498 schedule.setGsName(rs.getString("gs_name"));
1485 schedule.setFgsName(rs.getString("fgs_name")); 1499 schedule.setFgsName(rs.getString("fgs_name"));
  1500 + schedule.setCcService(rs.getBoolean("cc_service"));
1486 1501
1487 int startOpt = 0; 1502 int startOpt = 0;
1488 if(rs.getString("start_opt") != null && rs.getString("start_opt").trim().length() != 0){ 1503 if(rs.getString("start_opt") != null && rs.getString("start_opt").trim().length() != 0){
@@ -1524,7 +1539,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -1524,7 +1539,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
1524 String companyName = "", subCompanyName = ""; 1539 String companyName = "", subCompanyName = "";
1525 1540
1526 for(ScheduleRealInfo s : list){ 1541 for(ScheduleRealInfo s : list){
1527 - if(lineSet.contains(s.getXlName())){ 1542 + if(lineSet.contains(s.getXlName()) || s.isCcService()){
1528 continue; 1543 continue;
1529 } 1544 }
1530 String xlName = s.getXlName(); 1545 String xlName = s.getXlName();
@@ -1716,7 +1731,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -1716,7 +1731,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
1716 1731
1717 String sql = 1732 String sql =
1718 "select r.id, r.schedule_date_str, r.xl_name, r.cl_zbh, r.j_gh, r.j_name, r.fcsj, d.timestamp, d.reply46, d.reply47, d.reply46time, d.reply47time, r.gs_name, r.fgs_name " + 1733 "select r.id, r.schedule_date_str, r.xl_name, r.cl_zbh, r.j_gh, r.j_name, r.fcsj, d.timestamp, d.reply46, d.reply47, d.reply46time, d.reply47time, r.gs_name, r.fgs_name " +
1719 - "FROM bsth_c_s_sp_info_real as r left join bsth_v_directive_60 as d on r.id = d.sch and d.is_dispatch = 1 where DATE_FORMAT(schedule_date,'%Y-%m-%d') = '"+date+"'"; 1734 + "FROM bsth_c_s_sp_info_real as r left join bsth_v_directive_60 as d on r.id = d.sch and d.is_dispatch = 1 where schedule_date_str = '"+date+"'";
1720 if(line.length() != 0){ 1735 if(line.length() != 0){
1721 sql += " and xl_bm = '"+line+"'"; 1736 sql += " and xl_bm = '"+line+"'";
1722 } 1737 }
@@ -1728,7 +1743,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -1728,7 +1743,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
1728 } 1743 }
1729 sql += " union " + 1744 sql += " union " +
1730 "select r.id, r.schedule_date_str, r.xl_name, r.cl_zbh, r.j_gh, r.j_name, r.fcsj, d.timestamp, d.reply46, d.reply47, d.reply46time, d.reply47time, r.gs_name, r.fgs_name " + 1745 "select r.id, r.schedule_date_str, r.xl_name, r.cl_zbh, r.j_gh, r.j_name, r.fcsj, d.timestamp, d.reply46, d.reply47, d.reply46time, d.reply47time, r.gs_name, r.fgs_name " +
1731 - "FROM bsth_c_s_sp_info_real as r right join bsth_v_directive_60 as d on r.id = d.sch where d.is_dispatch = 1 and DATE_FORMAT(schedule_date,'%Y-%m-%d') = '"+date+"'"; 1746 + "FROM bsth_c_s_sp_info_real as r right join bsth_v_directive_60 as d on r.id = d.sch where d.is_dispatch = 1 and schedule_date_str = '"+date+"'";
1732 if(line.length() != 0){ 1747 if(line.length() != 0){
1733 sql += " and xl_bm = '"+line+"'"; 1748 sql += " and xl_bm = '"+line+"'";
1734 } 1749 }
src/main/java/com/bsth/service/traffic/impl/YgcBasicDataServiceImpl.java
@@ -45,6 +45,7 @@ public class YgcBasicDataServiceImpl implements YgcBasicDataService{ @@ -45,6 +45,7 @@ public class YgcBasicDataServiceImpl implements YgcBasicDataService{
45 45
46 private static String IP = "218.242.195.76:9091"; 46 private static String IP = "218.242.195.76:9091";
47 private static String downTargetEndpoint = "http://" + IP +"/ygc.TransManager.Basicdown?wsdl"; 47 private static String downTargetEndpoint = "http://" + IP +"/ygc.TransManager.Basicdown?wsdl";
  48 + // 此地址作废
48 private static String upTargetEndpoint = "http://" + IP +"/ygc.TransManager.BasicUpload?wsdl"; 49 private static String upTargetEndpoint = "http://" + IP +"/ygc.TransManager.BasicUpload?wsdl";
49 private static String namespace = "http://service.shygc.com"; 50 private static String namespace = "http://service.shygc.com";
50 private static String userName = "admin"; 51 private static String userName = "admin";
src/main/java/com/bsth/webService/trafficManage/up/org/tempuri/Results.java 0 → 100644
  1 +/**
  2 + * Results.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.webService.trafficManage.up.org.tempuri;
  9 +
  10 +public class Results implements java.io.Serializable {
  11 + private boolean success;
  12 +
  13 + private java.lang.String message;
  14 +
  15 + public Results() {
  16 + }
  17 +
  18 + public Results(
  19 + boolean success,
  20 + java.lang.String message) {
  21 + this.success = success;
  22 + this.message = message;
  23 + }
  24 +
  25 +
  26 + /**
  27 + * Gets the success value for this Results.
  28 + *
  29 + * @return success
  30 + */
  31 + public boolean isSuccess() {
  32 + return success;
  33 + }
  34 +
  35 +
  36 + /**
  37 + * Sets the success value for this Results.
  38 + *
  39 + * @param success
  40 + */
  41 + public void setSuccess(boolean success) {
  42 + this.success = success;
  43 + }
  44 +
  45 +
  46 + /**
  47 + * Gets the message value for this Results.
  48 + *
  49 + * @return message
  50 + */
  51 + public java.lang.String getMessage() {
  52 + return message;
  53 + }
  54 +
  55 +
  56 + /**
  57 + * Sets the message value for this Results.
  58 + *
  59 + * @param message
  60 + */
  61 + public void setMessage(java.lang.String message) {
  62 + this.message = message;
  63 + }
  64 +
  65 + private java.lang.Object __equalsCalc = null;
  66 + public synchronized boolean equals(java.lang.Object obj) {
  67 + if (!(obj instanceof Results)) return false;
  68 + Results other = (Results) obj;
  69 + if (obj == null) return false;
  70 + if (this == obj) return true;
  71 + if (__equalsCalc != null) {
  72 + return (__equalsCalc == obj);
  73 + }
  74 + __equalsCalc = obj;
  75 + boolean _equals;
  76 + _equals = true &&
  77 + this.success == other.isSuccess() &&
  78 + ((this.message==null && other.getMessage()==null) ||
  79 + (this.message!=null &&
  80 + this.message.equals(other.getMessage())));
  81 + __equalsCalc = null;
  82 + return _equals;
  83 + }
  84 +
  85 + private boolean __hashCodeCalc = false;
  86 + public synchronized int hashCode() {
  87 + if (__hashCodeCalc) {
  88 + return 0;
  89 + }
  90 + __hashCodeCalc = true;
  91 + int _hashCode = 1;
  92 + _hashCode += (isSuccess() ? Boolean.TRUE : Boolean.FALSE).hashCode();
  93 + if (getMessage() != null) {
  94 + _hashCode += getMessage().hashCode();
  95 + }
  96 + __hashCodeCalc = false;
  97 + return _hashCode;
  98 + }
  99 +
  100 + // Type metadata
  101 + private static org.apache.axis.description.TypeDesc typeDesc =
  102 + new org.apache.axis.description.TypeDesc(Results.class, true);
  103 +
  104 + static {
  105 + typeDesc.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", "Results"));
  106 + org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  107 + elemField.setFieldName("success");
  108 + elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "success"));
  109 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  110 + elemField.setNillable(false);
  111 + typeDesc.addFieldDesc(elemField);
  112 + elemField = new org.apache.axis.description.ElementDesc();
  113 + elemField.setFieldName("message");
  114 + elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "message"));
  115 + elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  116 + elemField.setMinOccurs(0);
  117 + elemField.setNillable(false);
  118 + typeDesc.addFieldDesc(elemField);
  119 + }
  120 +
  121 + /**
  122 + * Return type metadata object
  123 + */
  124 + public static org.apache.axis.description.TypeDesc getTypeDesc() {
  125 + return typeDesc;
  126 + }
  127 +
  128 + /**
  129 + * Get Custom Serializer
  130 + */
  131 + public static org.apache.axis.encoding.Serializer getSerializer(
  132 + java.lang.String mechType,
  133 + java.lang.Class _javaType,
  134 + javax.xml.namespace.QName _xmlType) {
  135 + return
  136 + new org.apache.axis.encoding.ser.BeanSerializer(
  137 + _javaType, _xmlType, typeDesc);
  138 + }
  139 +
  140 + /**
  141 + * Get Custom Deserializer
  142 + */
  143 + public static org.apache.axis.encoding.Deserializer getDeserializer(
  144 + java.lang.String mechType,
  145 + java.lang.Class _javaType,
  146 + javax.xml.namespace.QName _xmlType) {
  147 + return
  148 + new org.apache.axis.encoding.ser.BeanDeserializer(
  149 + _javaType, _xmlType, typeDesc);
  150 + }
  151 +
  152 +}
src/main/java/com/bsth/webService/trafficManage/up/org/tempuri/WebService.java 0 → 100644
  1 +/**
  2 + * WebService.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.webService.trafficManage.up.org.tempuri;
  9 +
  10 +public interface WebService extends javax.xml.rpc.Service {
  11 + public java.lang.String getWebServiceSoapAddress();
  12 +
  13 + public com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap getWebServiceSoap() throws javax.xml.rpc.ServiceException;
  14 +
  15 + public com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap getWebServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
  16 +}
src/main/java/com/bsth/webService/trafficManage/up/org/tempuri/WebServiceLocator.java 0 → 100644
  1 +/**
  2 + * WebServiceLocator.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.webService.trafficManage.up.org.tempuri;
  9 +
  10 +public class WebServiceLocator extends org.apache.axis.client.Service implements com.bsth.webService.trafficManage.up.org.tempuri.WebService {
  11 +
  12 + public WebServiceLocator() {
  13 + }
  14 +
  15 +
  16 + public WebServiceLocator(org.apache.axis.EngineConfiguration config) {
  17 + super(config);
  18 + }
  19 +
  20 + public WebServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
  21 + super(wsdlLoc, sName);
  22 + }
  23 +
  24 + // Use to get a proxy class for WebServiceSoap
  25 + private java.lang.String WebServiceSoap_address = "http://218.242.195.76:8411/WebService_test/WebService.asmx";
  26 +
  27 + public java.lang.String getWebServiceSoapAddress() {
  28 + return WebServiceSoap_address;
  29 + }
  30 +
  31 + // The WSDD service name defaults to the port name.
  32 + private java.lang.String WebServiceSoapWSDDServiceName = "WebServiceSoap";
  33 +
  34 + public java.lang.String getWebServiceSoapWSDDServiceName() {
  35 + return WebServiceSoapWSDDServiceName;
  36 + }
  37 +
  38 + public void setWebServiceSoapWSDDServiceName(java.lang.String name) {
  39 + WebServiceSoapWSDDServiceName = name;
  40 + }
  41 +
  42 + public com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap getWebServiceSoap() throws javax.xml.rpc.ServiceException {
  43 + java.net.URL endpoint;
  44 + try {
  45 + endpoint = new java.net.URL(WebServiceSoap_address);
  46 + }
  47 + catch (java.net.MalformedURLException e) {
  48 + throw new javax.xml.rpc.ServiceException(e);
  49 + }
  50 + return getWebServiceSoap(endpoint);
  51 + }
  52 +
  53 + public com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap getWebServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
  54 + try {
  55 + com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoapStub _stub = new com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoapStub(portAddress, this);
  56 + _stub.setPortName(getWebServiceSoapWSDDServiceName());
  57 + return _stub;
  58 + }
  59 + catch (org.apache.axis.AxisFault e) {
  60 + return null;
  61 + }
  62 + }
  63 +
  64 + public void setWebServiceSoapEndpointAddress(java.lang.String address) {
  65 + WebServiceSoap_address = address;
  66 + }
  67 +
  68 + /**
  69 + * For the given interface, get the stub implementation.
  70 + * If this service has no port for the given interface,
  71 + * then ServiceException is thrown.
  72 + */
  73 + public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
  74 + try {
  75 + if (com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap.class.isAssignableFrom(serviceEndpointInterface)) {
  76 + com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoapStub _stub = new com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoapStub(new java.net.URL(WebServiceSoap_address), this);
  77 + _stub.setPortName(getWebServiceSoapWSDDServiceName());
  78 + return _stub;
  79 + }
  80 + }
  81 + catch (java.lang.Throwable t) {
  82 + throw new javax.xml.rpc.ServiceException(t);
  83 + }
  84 + throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
  85 + }
  86 +
  87 + /**
  88 + * For the given interface, get the stub implementation.
  89 + * If this service has no port for the given interface,
  90 + * then ServiceException is thrown.
  91 + */
  92 + public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
  93 + if (portName == null) {
  94 + return getPort(serviceEndpointInterface);
  95 + }
  96 + java.lang.String inputPortName = portName.getLocalPart();
  97 + if ("WebServiceSoap".equals(inputPortName)) {
  98 + return getWebServiceSoap();
  99 + }
  100 + else {
  101 + java.rmi.Remote _stub = getPort(serviceEndpointInterface);
  102 + ((org.apache.axis.client.Stub) _stub).setPortName(portName);
  103 + return _stub;
  104 + }
  105 + }
  106 +
  107 + public javax.xml.namespace.QName getServiceName() {
  108 + return new javax.xml.namespace.QName("http://tempuri.org/", "WebService");
  109 + }
  110 +
  111 + private java.util.HashSet ports = null;
  112 +
  113 + public java.util.Iterator getPorts() {
  114 + if (ports == null) {
  115 + ports = new java.util.HashSet();
  116 + ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "WebServiceSoap"));
  117 + }
  118 + return ports.iterator();
  119 + }
  120 +
  121 + /**
  122 + * Set the endpoint address for the specified port name.
  123 + */
  124 + public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
  125 +
  126 +if ("WebServiceSoap".equals(portName)) {
  127 + setWebServiceSoapEndpointAddress(address);
  128 + }
  129 + else
  130 +{ // Unknown Port Name
  131 + throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
  132 + }
  133 + }
  134 +
  135 + /**
  136 + * Set the endpoint address for the specified port name.
  137 + */
  138 + public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
  139 + setEndpointAddress(portName.getLocalPart(), address);
  140 + }
  141 +
  142 +}
src/main/java/com/bsth/webService/trafficManage/up/org/tempuri/WebServiceSoap.java 0 → 100644
  1 +/**
  2 + * WebServiceSoap.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.webService.trafficManage.up.org.tempuri;
  9 +
  10 +public interface WebServiceSoap extends java.rmi.Remote {
  11 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setXL(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException;
  12 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setCL(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException;
  13 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setLD(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException;
  14 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setDDRB(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException;
  15 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setJHBC(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException;
  16 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setSKB(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException;
  17 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setSJ(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException;
  18 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setLCYH(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException;
  19 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setXLPC(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException;
  20 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setCS(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException;
  21 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setFZCKGM(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException;
  22 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setJJZD(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException;
  23 +}
src/main/java/com/bsth/webService/trafficManage/up/org/tempuri/WebServiceSoapProxy.java 0 → 100644
  1 +package com.bsth.webService.trafficManage.up.org.tempuri;
  2 +
  3 +public class WebServiceSoapProxy implements com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap {
  4 + private String _endpoint = null;
  5 + private com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap webServiceSoap = null;
  6 +
  7 + public WebServiceSoapProxy() {
  8 + _initWebServiceSoapProxy();
  9 + }
  10 +
  11 + public WebServiceSoapProxy(String endpoint) {
  12 + _endpoint = endpoint;
  13 + _initWebServiceSoapProxy();
  14 + }
  15 +
  16 + private void _initWebServiceSoapProxy() {
  17 + try {
  18 + webServiceSoap = (new com.bsth.webService.trafficManage.up.org.tempuri.WebServiceLocator()).getWebServiceSoap();
  19 + if (webServiceSoap != null) {
  20 + if (_endpoint != null)
  21 + ((javax.xml.rpc.Stub)webServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
  22 + else
  23 + _endpoint = (String)((javax.xml.rpc.Stub)webServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
  24 + }
  25 +
  26 + }
  27 + catch (javax.xml.rpc.ServiceException serviceException) {}
  28 + }
  29 +
  30 + public String getEndpoint() {
  31 + return _endpoint;
  32 + }
  33 +
  34 + public void setEndpoint(String endpoint) {
  35 + _endpoint = endpoint;
  36 + if (webServiceSoap != null)
  37 + ((javax.xml.rpc.Stub)webServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
  38 +
  39 + }
  40 +
  41 + public com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap getWebServiceSoap() {
  42 + if (webServiceSoap == null)
  43 + _initWebServiceSoapProxy();
  44 + return webServiceSoap;
  45 + }
  46 +
  47 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setXL(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{
  48 + if (webServiceSoap == null)
  49 + _initWebServiceSoapProxy();
  50 + return webServiceSoap.setXL(uName, uPass, sXml);
  51 + }
  52 +
  53 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setCL(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{
  54 + if (webServiceSoap == null)
  55 + _initWebServiceSoapProxy();
  56 + return webServiceSoap.setCL(uName, uPass, sXml);
  57 + }
  58 +
  59 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setLD(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{
  60 + if (webServiceSoap == null)
  61 + _initWebServiceSoapProxy();
  62 + return webServiceSoap.setLD(uName, uPass, sXml);
  63 + }
  64 +
  65 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setDDRB(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{
  66 + if (webServiceSoap == null)
  67 + _initWebServiceSoapProxy();
  68 + return webServiceSoap.setDDRB(uName, uPass, sXml);
  69 + }
  70 +
  71 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setJHBC(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{
  72 + if (webServiceSoap == null)
  73 + _initWebServiceSoapProxy();
  74 + return webServiceSoap.setJHBC(uName, uPass, sXml);
  75 + }
  76 +
  77 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setSKB(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{
  78 + if (webServiceSoap == null)
  79 + _initWebServiceSoapProxy();
  80 + return webServiceSoap.setSKB(uName, uPass, sXml);
  81 + }
  82 +
  83 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setSJ(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{
  84 + if (webServiceSoap == null)
  85 + _initWebServiceSoapProxy();
  86 + return webServiceSoap.setSJ(uName, uPass, sXml);
  87 + }
  88 +
  89 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setLCYH(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{
  90 + if (webServiceSoap == null)
  91 + _initWebServiceSoapProxy();
  92 + return webServiceSoap.setLCYH(uName, uPass, sXml);
  93 + }
  94 +
  95 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setXLPC(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{
  96 + if (webServiceSoap == null)
  97 + _initWebServiceSoapProxy();
  98 + return webServiceSoap.setXLPC(uName, uPass, sXml);
  99 + }
  100 +
  101 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setCS(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{
  102 + if (webServiceSoap == null)
  103 + _initWebServiceSoapProxy();
  104 + return webServiceSoap.setCS(uName, uPass, sXml);
  105 + }
  106 +
  107 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setFZCKGM(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{
  108 + if (webServiceSoap == null)
  109 + _initWebServiceSoapProxy();
  110 + return webServiceSoap.setFZCKGM(uName, uPass, sXml);
  111 + }
  112 +
  113 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setJJZD(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException{
  114 + if (webServiceSoap == null)
  115 + _initWebServiceSoapProxy();
  116 + return webServiceSoap.setJJZD(uName, uPass, sXml);
  117 + }
  118 +
  119 +
  120 +}
0 \ No newline at end of file 121 \ No newline at end of file
src/main/java/com/bsth/webService/trafficManage/up/org/tempuri/WebServiceSoapStub.java 0 → 100644
  1 +/**
  2 + * WebServiceSoapStub.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.webService.trafficManage.up.org.tempuri;
  9 +
  10 +public class WebServiceSoapStub extends org.apache.axis.client.Stub implements com.bsth.webService.trafficManage.up.org.tempuri.WebServiceSoap {
  11 + private java.util.Vector cachedSerClasses = new java.util.Vector();
  12 + private java.util.Vector cachedSerQNames = new java.util.Vector();
  13 + private java.util.Vector cachedSerFactories = new java.util.Vector();
  14 + private java.util.Vector cachedDeserFactories = new java.util.Vector();
  15 +
  16 + static org.apache.axis.description.OperationDesc [] _operations;
  17 +
  18 + static {
  19 + _operations = new org.apache.axis.description.OperationDesc[12];
  20 + _initOperationDesc1();
  21 + _initOperationDesc2();
  22 + }
  23 +
  24 + private static void _initOperationDesc1(){
  25 + org.apache.axis.description.OperationDesc oper;
  26 + org.apache.axis.description.ParameterDesc param;
  27 + oper = new org.apache.axis.description.OperationDesc();
  28 + oper.setName("setXL");
  29 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  30 + param.setOmittable(true);
  31 + oper.addParameter(param);
  32 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  33 + param.setOmittable(true);
  34 + oper.addParameter(param);
  35 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  36 + param.setOmittable(true);
  37 + oper.addParameter(param);
  38 + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results"));
  39 + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  40 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setXLResult"));
  41 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  42 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  43 + _operations[0] = oper;
  44 +
  45 + oper = new org.apache.axis.description.OperationDesc();
  46 + oper.setName("setCL");
  47 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  48 + param.setOmittable(true);
  49 + oper.addParameter(param);
  50 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  51 + param.setOmittable(true);
  52 + oper.addParameter(param);
  53 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  54 + param.setOmittable(true);
  55 + oper.addParameter(param);
  56 + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results"));
  57 + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  58 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setCLResult"));
  59 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  60 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  61 + _operations[1] = oper;
  62 +
  63 + oper = new org.apache.axis.description.OperationDesc();
  64 + oper.setName("setLD");
  65 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  66 + param.setOmittable(true);
  67 + oper.addParameter(param);
  68 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  69 + param.setOmittable(true);
  70 + oper.addParameter(param);
  71 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  72 + param.setOmittable(true);
  73 + oper.addParameter(param);
  74 + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results"));
  75 + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  76 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setLDResult"));
  77 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  78 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  79 + _operations[2] = oper;
  80 +
  81 + oper = new org.apache.axis.description.OperationDesc();
  82 + oper.setName("setDDRB");
  83 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  84 + param.setOmittable(true);
  85 + oper.addParameter(param);
  86 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  87 + param.setOmittable(true);
  88 + oper.addParameter(param);
  89 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  90 + param.setOmittable(true);
  91 + oper.addParameter(param);
  92 + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results"));
  93 + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  94 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setDDRBResult"));
  95 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  96 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  97 + _operations[3] = oper;
  98 +
  99 + oper = new org.apache.axis.description.OperationDesc();
  100 + oper.setName("setJHBC");
  101 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  102 + param.setOmittable(true);
  103 + oper.addParameter(param);
  104 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  105 + param.setOmittable(true);
  106 + oper.addParameter(param);
  107 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  108 + param.setOmittable(true);
  109 + oper.addParameter(param);
  110 + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results"));
  111 + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  112 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setJHBCResult"));
  113 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  114 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  115 + _operations[4] = oper;
  116 +
  117 + oper = new org.apache.axis.description.OperationDesc();
  118 + oper.setName("setSKB");
  119 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  120 + param.setOmittable(true);
  121 + oper.addParameter(param);
  122 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  123 + param.setOmittable(true);
  124 + oper.addParameter(param);
  125 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  126 + param.setOmittable(true);
  127 + oper.addParameter(param);
  128 + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results"));
  129 + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  130 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setSKBResult"));
  131 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  132 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  133 + _operations[5] = oper;
  134 +
  135 + oper = new org.apache.axis.description.OperationDesc();
  136 + oper.setName("setSJ");
  137 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  138 + param.setOmittable(true);
  139 + oper.addParameter(param);
  140 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  141 + param.setOmittable(true);
  142 + oper.addParameter(param);
  143 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  144 + param.setOmittable(true);
  145 + oper.addParameter(param);
  146 + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results"));
  147 + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  148 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setSJResult"));
  149 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  150 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  151 + _operations[6] = oper;
  152 +
  153 + oper = new org.apache.axis.description.OperationDesc();
  154 + oper.setName("setLCYH");
  155 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  156 + param.setOmittable(true);
  157 + oper.addParameter(param);
  158 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  159 + param.setOmittable(true);
  160 + oper.addParameter(param);
  161 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  162 + param.setOmittable(true);
  163 + oper.addParameter(param);
  164 + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results"));
  165 + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  166 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setLCYHResult"));
  167 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  168 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  169 + _operations[7] = oper;
  170 +
  171 + oper = new org.apache.axis.description.OperationDesc();
  172 + oper.setName("setXLPC");
  173 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  174 + param.setOmittable(true);
  175 + oper.addParameter(param);
  176 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  177 + param.setOmittable(true);
  178 + oper.addParameter(param);
  179 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  180 + param.setOmittable(true);
  181 + oper.addParameter(param);
  182 + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results"));
  183 + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  184 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setXLPCResult"));
  185 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  186 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  187 + _operations[8] = oper;
  188 +
  189 + oper = new org.apache.axis.description.OperationDesc();
  190 + oper.setName("setCS");
  191 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  192 + param.setOmittable(true);
  193 + oper.addParameter(param);
  194 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  195 + param.setOmittable(true);
  196 + oper.addParameter(param);
  197 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  198 + param.setOmittable(true);
  199 + oper.addParameter(param);
  200 + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results"));
  201 + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  202 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setCSResult"));
  203 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  204 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  205 + _operations[9] = oper;
  206 +
  207 + }
  208 +
  209 + private static void _initOperationDesc2(){
  210 + org.apache.axis.description.OperationDesc oper;
  211 + org.apache.axis.description.ParameterDesc param;
  212 + oper = new org.apache.axis.description.OperationDesc();
  213 + oper.setName("setFZCKGM");
  214 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  215 + param.setOmittable(true);
  216 + oper.addParameter(param);
  217 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  218 + param.setOmittable(true);
  219 + oper.addParameter(param);
  220 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  221 + param.setOmittable(true);
  222 + oper.addParameter(param);
  223 + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results"));
  224 + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  225 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setFZCKGMResult"));
  226 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  227 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  228 + _operations[10] = oper;
  229 +
  230 + oper = new org.apache.axis.description.OperationDesc();
  231 + oper.setName("setJJZD");
  232 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  233 + param.setOmittable(true);
  234 + oper.addParameter(param);
  235 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "uPass"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  236 + param.setOmittable(true);
  237 + oper.addParameter(param);
  238 + param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "sXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  239 + param.setOmittable(true);
  240 + oper.addParameter(param);
  241 + oper.setReturnType(new javax.xml.namespace.QName("http://tempuri.org/", "Results"));
  242 + oper.setReturnClass(com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  243 + oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "setJJZDResult"));
  244 + oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  245 + oper.setUse(org.apache.axis.constants.Use.LITERAL);
  246 + _operations[11] = oper;
  247 +
  248 + }
  249 +
  250 + public WebServiceSoapStub() throws org.apache.axis.AxisFault {
  251 + this(null);
  252 + }
  253 +
  254 + public WebServiceSoapStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
  255 + this(service);
  256 + super.cachedEndpoint = endpointURL;
  257 + }
  258 +
  259 + public WebServiceSoapStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
  260 + if (service == null) {
  261 + super.service = new org.apache.axis.client.Service();
  262 + } else {
  263 + super.service = service;
  264 + }
  265 + ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
  266 + java.lang.Class cls;
  267 + javax.xml.namespace.QName qName;
  268 + javax.xml.namespace.QName qName2;
  269 + java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
  270 + java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
  271 + java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
  272 + java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
  273 + java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
  274 + java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
  275 + java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
  276 + java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
  277 + java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
  278 + java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
  279 + qName = new javax.xml.namespace.QName("http://tempuri.org/", "Results");
  280 + cachedSerQNames.add(qName);
  281 + cls = com.bsth.webService.trafficManage.up.org.tempuri.Results.class;
  282 + cachedSerClasses.add(cls);
  283 + cachedSerFactories.add(beansf);
  284 + cachedDeserFactories.add(beandf);
  285 +
  286 + }
  287 +
  288 + protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
  289 + try {
  290 + org.apache.axis.client.Call _call = super._createCall();
  291 + if (super.maintainSessionSet) {
  292 + _call.setMaintainSession(super.maintainSession);
  293 + }
  294 + if (super.cachedUsername != null) {
  295 + _call.setUsername(super.cachedUsername);
  296 + }
  297 + if (super.cachedPassword != null) {
  298 + _call.setPassword(super.cachedPassword);
  299 + }
  300 + if (super.cachedEndpoint != null) {
  301 + _call.setTargetEndpointAddress(super.cachedEndpoint);
  302 + }
  303 + if (super.cachedTimeout != null) {
  304 + _call.setTimeout(super.cachedTimeout);
  305 + }
  306 + if (super.cachedPortName != null) {
  307 + _call.setPortName(super.cachedPortName);
  308 + }
  309 + java.util.Enumeration keys = super.cachedProperties.keys();
  310 + while (keys.hasMoreElements()) {
  311 + java.lang.String key = (java.lang.String) keys.nextElement();
  312 + _call.setProperty(key, super.cachedProperties.get(key));
  313 + }
  314 + // All the type mapping information is registered
  315 + // when the first call is made.
  316 + // The type mapping information is actually registered in
  317 + // the TypeMappingRegistry of the service, which
  318 + // is the reason why registration is only needed for the first call.
  319 + synchronized (this) {
  320 + if (firstCall()) {
  321 + // must set encoding style before registering serializers
  322 + _call.setEncodingStyle(null);
  323 + for (int i = 0; i < cachedSerFactories.size(); ++i) {
  324 + java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
  325 + javax.xml.namespace.QName qName =
  326 + (javax.xml.namespace.QName) cachedSerQNames.get(i);
  327 + java.lang.Object x = cachedSerFactories.get(i);
  328 + if (x instanceof Class) {
  329 + java.lang.Class sf = (java.lang.Class)
  330 + cachedSerFactories.get(i);
  331 + java.lang.Class df = (java.lang.Class)
  332 + cachedDeserFactories.get(i);
  333 + _call.registerTypeMapping(cls, qName, sf, df, false);
  334 + }
  335 + else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
  336 + org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
  337 + cachedSerFactories.get(i);
  338 + org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
  339 + cachedDeserFactories.get(i);
  340 + _call.registerTypeMapping(cls, qName, sf, df, false);
  341 + }
  342 + }
  343 + }
  344 + }
  345 + return _call;
  346 + }
  347 + catch (java.lang.Throwable _t) {
  348 + throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
  349 + }
  350 + }
  351 +
  352 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setXL(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException {
  353 + if (super.cachedEndpoint == null) {
  354 + throw new org.apache.axis.NoEndPointException();
  355 + }
  356 + org.apache.axis.client.Call _call = createCall();
  357 + _call.setOperation(_operations[0]);
  358 + _call.setUseSOAPAction(true);
  359 + _call.setSOAPActionURI("http://tempuri.org/setXL");
  360 + _call.setEncodingStyle(null);
  361 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  362 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  363 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  364 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setXL"));
  365 +
  366 + setRequestHeaders(_call);
  367 + setAttachments(_call);
  368 + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml});
  369 +
  370 + if (_resp instanceof java.rmi.RemoteException) {
  371 + throw (java.rmi.RemoteException)_resp;
  372 + }
  373 + else {
  374 + extractAttachments(_call);
  375 + try {
  376 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp;
  377 + } catch (java.lang.Exception _exception) {
  378 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  379 + }
  380 + }
  381 + } catch (org.apache.axis.AxisFault axisFaultException) {
  382 + throw axisFaultException;
  383 +}
  384 + }
  385 +
  386 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setCL(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException {
  387 + if (super.cachedEndpoint == null) {
  388 + throw new org.apache.axis.NoEndPointException();
  389 + }
  390 + org.apache.axis.client.Call _call = createCall();
  391 + _call.setOperation(_operations[1]);
  392 + _call.setUseSOAPAction(true);
  393 + _call.setSOAPActionURI("http://tempuri.org/setCL");
  394 + _call.setEncodingStyle(null);
  395 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  396 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  397 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  398 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setCL"));
  399 +
  400 + setRequestHeaders(_call);
  401 + setAttachments(_call);
  402 + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml});
  403 +
  404 + if (_resp instanceof java.rmi.RemoteException) {
  405 + throw (java.rmi.RemoteException)_resp;
  406 + }
  407 + else {
  408 + extractAttachments(_call);
  409 + try {
  410 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp;
  411 + } catch (java.lang.Exception _exception) {
  412 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  413 + }
  414 + }
  415 + } catch (org.apache.axis.AxisFault axisFaultException) {
  416 + throw axisFaultException;
  417 +}
  418 + }
  419 +
  420 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setLD(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException {
  421 + if (super.cachedEndpoint == null) {
  422 + throw new org.apache.axis.NoEndPointException();
  423 + }
  424 + org.apache.axis.client.Call _call = createCall();
  425 + _call.setOperation(_operations[2]);
  426 + _call.setUseSOAPAction(true);
  427 + _call.setSOAPActionURI("http://tempuri.org/setLD");
  428 + _call.setEncodingStyle(null);
  429 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  430 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  431 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  432 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setLD"));
  433 +
  434 + setRequestHeaders(_call);
  435 + setAttachments(_call);
  436 + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml});
  437 +
  438 + if (_resp instanceof java.rmi.RemoteException) {
  439 + throw (java.rmi.RemoteException)_resp;
  440 + }
  441 + else {
  442 + extractAttachments(_call);
  443 + try {
  444 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp;
  445 + } catch (java.lang.Exception _exception) {
  446 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  447 + }
  448 + }
  449 + } catch (org.apache.axis.AxisFault axisFaultException) {
  450 + throw axisFaultException;
  451 +}
  452 + }
  453 +
  454 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setDDRB(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException {
  455 + if (super.cachedEndpoint == null) {
  456 + throw new org.apache.axis.NoEndPointException();
  457 + }
  458 + org.apache.axis.client.Call _call = createCall();
  459 + _call.setOperation(_operations[3]);
  460 + _call.setUseSOAPAction(true);
  461 + _call.setSOAPActionURI("http://tempuri.org/setDDRB");
  462 + _call.setEncodingStyle(null);
  463 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  464 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  465 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  466 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setDDRB"));
  467 +
  468 + setRequestHeaders(_call);
  469 + setAttachments(_call);
  470 + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml});
  471 +
  472 + if (_resp instanceof java.rmi.RemoteException) {
  473 + throw (java.rmi.RemoteException)_resp;
  474 + }
  475 + else {
  476 + extractAttachments(_call);
  477 + try {
  478 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp;
  479 + } catch (java.lang.Exception _exception) {
  480 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  481 + }
  482 + }
  483 + } catch (org.apache.axis.AxisFault axisFaultException) {
  484 + throw axisFaultException;
  485 +}
  486 + }
  487 +
  488 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setJHBC(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException {
  489 + if (super.cachedEndpoint == null) {
  490 + throw new org.apache.axis.NoEndPointException();
  491 + }
  492 + org.apache.axis.client.Call _call = createCall();
  493 + _call.setOperation(_operations[4]);
  494 + _call.setUseSOAPAction(true);
  495 + _call.setSOAPActionURI("http://tempuri.org/setJHBC");
  496 + _call.setEncodingStyle(null);
  497 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  498 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  499 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  500 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setJHBC"));
  501 +
  502 + setRequestHeaders(_call);
  503 + setAttachments(_call);
  504 + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml});
  505 +
  506 + if (_resp instanceof java.rmi.RemoteException) {
  507 + throw (java.rmi.RemoteException)_resp;
  508 + }
  509 + else {
  510 + extractAttachments(_call);
  511 + try {
  512 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp;
  513 + } catch (java.lang.Exception _exception) {
  514 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  515 + }
  516 + }
  517 + } catch (org.apache.axis.AxisFault axisFaultException) {
  518 + throw axisFaultException;
  519 +}
  520 + }
  521 +
  522 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setSKB(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException {
  523 + if (super.cachedEndpoint == null) {
  524 + throw new org.apache.axis.NoEndPointException();
  525 + }
  526 + org.apache.axis.client.Call _call = createCall();
  527 + _call.setOperation(_operations[5]);
  528 + _call.setUseSOAPAction(true);
  529 + _call.setSOAPActionURI("http://tempuri.org/setSKB");
  530 + _call.setEncodingStyle(null);
  531 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  532 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  533 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  534 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setSKB"));
  535 +
  536 + setRequestHeaders(_call);
  537 + setAttachments(_call);
  538 + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml});
  539 +
  540 + if (_resp instanceof java.rmi.RemoteException) {
  541 + throw (java.rmi.RemoteException)_resp;
  542 + }
  543 + else {
  544 + extractAttachments(_call);
  545 + try {
  546 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp;
  547 + } catch (java.lang.Exception _exception) {
  548 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  549 + }
  550 + }
  551 + } catch (org.apache.axis.AxisFault axisFaultException) {
  552 + throw axisFaultException;
  553 +}
  554 + }
  555 +
  556 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setSJ(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException {
  557 + if (super.cachedEndpoint == null) {
  558 + throw new org.apache.axis.NoEndPointException();
  559 + }
  560 + org.apache.axis.client.Call _call = createCall();
  561 + _call.setOperation(_operations[6]);
  562 + _call.setUseSOAPAction(true);
  563 + _call.setSOAPActionURI("http://tempuri.org/setSJ");
  564 + _call.setEncodingStyle(null);
  565 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  566 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  567 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  568 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setSJ"));
  569 +
  570 + setRequestHeaders(_call);
  571 + setAttachments(_call);
  572 + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml});
  573 +
  574 + if (_resp instanceof java.rmi.RemoteException) {
  575 + throw (java.rmi.RemoteException)_resp;
  576 + }
  577 + else {
  578 + extractAttachments(_call);
  579 + try {
  580 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp;
  581 + } catch (java.lang.Exception _exception) {
  582 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  583 + }
  584 + }
  585 + } catch (org.apache.axis.AxisFault axisFaultException) {
  586 + throw axisFaultException;
  587 +}
  588 + }
  589 +
  590 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setLCYH(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException {
  591 + if (super.cachedEndpoint == null) {
  592 + throw new org.apache.axis.NoEndPointException();
  593 + }
  594 + org.apache.axis.client.Call _call = createCall();
  595 + _call.setOperation(_operations[7]);
  596 + _call.setUseSOAPAction(true);
  597 + _call.setSOAPActionURI("http://tempuri.org/setLCYH");
  598 + _call.setEncodingStyle(null);
  599 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  600 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  601 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  602 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setLCYH"));
  603 +
  604 + setRequestHeaders(_call);
  605 + setAttachments(_call);
  606 + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml});
  607 +
  608 + if (_resp instanceof java.rmi.RemoteException) {
  609 + throw (java.rmi.RemoteException)_resp;
  610 + }
  611 + else {
  612 + extractAttachments(_call);
  613 + try {
  614 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp;
  615 + } catch (java.lang.Exception _exception) {
  616 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  617 + }
  618 + }
  619 + } catch (org.apache.axis.AxisFault axisFaultException) {
  620 + throw axisFaultException;
  621 +}
  622 + }
  623 +
  624 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setXLPC(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException {
  625 + if (super.cachedEndpoint == null) {
  626 + throw new org.apache.axis.NoEndPointException();
  627 + }
  628 + org.apache.axis.client.Call _call = createCall();
  629 + _call.setOperation(_operations[8]);
  630 + _call.setUseSOAPAction(true);
  631 + _call.setSOAPActionURI("http://tempuri.org/setXLPC");
  632 + _call.setEncodingStyle(null);
  633 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  634 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  635 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  636 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setXLPC"));
  637 +
  638 + setRequestHeaders(_call);
  639 + setAttachments(_call);
  640 + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml});
  641 +
  642 + if (_resp instanceof java.rmi.RemoteException) {
  643 + throw (java.rmi.RemoteException)_resp;
  644 + }
  645 + else {
  646 + extractAttachments(_call);
  647 + try {
  648 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp;
  649 + } catch (java.lang.Exception _exception) {
  650 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  651 + }
  652 + }
  653 + } catch (org.apache.axis.AxisFault axisFaultException) {
  654 + throw axisFaultException;
  655 +}
  656 + }
  657 +
  658 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setCS(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException {
  659 + if (super.cachedEndpoint == null) {
  660 + throw new org.apache.axis.NoEndPointException();
  661 + }
  662 + org.apache.axis.client.Call _call = createCall();
  663 + _call.setOperation(_operations[9]);
  664 + _call.setUseSOAPAction(true);
  665 + _call.setSOAPActionURI("http://tempuri.org/setCS");
  666 + _call.setEncodingStyle(null);
  667 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  668 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  669 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  670 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setCS"));
  671 +
  672 + setRequestHeaders(_call);
  673 + setAttachments(_call);
  674 + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml});
  675 +
  676 + if (_resp instanceof java.rmi.RemoteException) {
  677 + throw (java.rmi.RemoteException)_resp;
  678 + }
  679 + else {
  680 + extractAttachments(_call);
  681 + try {
  682 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp;
  683 + } catch (java.lang.Exception _exception) {
  684 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  685 + }
  686 + }
  687 + } catch (org.apache.axis.AxisFault axisFaultException) {
  688 + throw axisFaultException;
  689 +}
  690 + }
  691 +
  692 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setFZCKGM(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException {
  693 + if (super.cachedEndpoint == null) {
  694 + throw new org.apache.axis.NoEndPointException();
  695 + }
  696 + org.apache.axis.client.Call _call = createCall();
  697 + _call.setOperation(_operations[10]);
  698 + _call.setUseSOAPAction(true);
  699 + _call.setSOAPActionURI("http://tempuri.org/setFZCKGM");
  700 + _call.setEncodingStyle(null);
  701 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  702 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  703 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  704 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setFZCKGM"));
  705 +
  706 + setRequestHeaders(_call);
  707 + setAttachments(_call);
  708 + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml});
  709 +
  710 + if (_resp instanceof java.rmi.RemoteException) {
  711 + throw (java.rmi.RemoteException)_resp;
  712 + }
  713 + else {
  714 + extractAttachments(_call);
  715 + try {
  716 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp;
  717 + } catch (java.lang.Exception _exception) {
  718 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  719 + }
  720 + }
  721 + } catch (org.apache.axis.AxisFault axisFaultException) {
  722 + throw axisFaultException;
  723 +}
  724 + }
  725 +
  726 + public com.bsth.webService.trafficManage.up.org.tempuri.Results setJJZD(java.lang.String uName, java.lang.String uPass, java.lang.String sXml) throws java.rmi.RemoteException {
  727 + if (super.cachedEndpoint == null) {
  728 + throw new org.apache.axis.NoEndPointException();
  729 + }
  730 + org.apache.axis.client.Call _call = createCall();
  731 + _call.setOperation(_operations[11]);
  732 + _call.setUseSOAPAction(true);
  733 + _call.setSOAPActionURI("http://tempuri.org/setJJZD");
  734 + _call.setEncodingStyle(null);
  735 + _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  736 + _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  737 + _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  738 + _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "setJJZD"));
  739 +
  740 + setRequestHeaders(_call);
  741 + setAttachments(_call);
  742 + try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {uName, uPass, sXml});
  743 +
  744 + if (_resp instanceof java.rmi.RemoteException) {
  745 + throw (java.rmi.RemoteException)_resp;
  746 + }
  747 + else {
  748 + extractAttachments(_call);
  749 + try {
  750 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) _resp;
  751 + } catch (java.lang.Exception _exception) {
  752 + return (com.bsth.webService.trafficManage.up.org.tempuri.Results) org.apache.axis.utils.JavaUtils.convert(_resp, com.bsth.webService.trafficManage.up.org.tempuri.Results.class);
  753 + }
  754 + }
  755 + } catch (org.apache.axis.AxisFault axisFaultException) {
  756 + throw axisFaultException;
  757 +}
  758 + }
  759 +
  760 +}
src/main/resources/fatso/start.js
@@ -16,7 +16,7 @@ var platform = process.platform; @@ -16,7 +16,7 @@ var platform = process.platform;
16 var iswin = platform=='win32'; 16 var iswin = platform=='win32';
17 var sp = platform=='win32'?'\\':'/'; 17 var sp = platform=='win32'?'\\':'/';
18 //不参与的目录 18 //不参与的目录
19 -var excludes = ['scheduleApp', 'trafficManage', 'control', 'permission'+sp+'authorize_all', 'summary', 'report'+sp+'oil'] 19 +var excludes = ['scheduleApp', 'trafficManage', 'control', 'permission'+sp+'authorize_all', 'summary', 'history_sch' ,'report'+sp+'oil']
20 ,ep = new EventProxy() 20 ,ep = new EventProxy()
21 ,pName = 'bsth_control' 21 ,pName = 'bsth_control'
22 ,path = process.cwd() 22 ,path = process.cwd()
src/main/resources/static/pages/base/carpark/js/add-form-wizard.js
@@ -25,7 +25,7 @@ var FormWizard = function() { @@ -25,7 +25,7 @@ var FormWizard = function() {
25 rules : { 25 rules : {
26 'parkNamebooxt' : {required : true,},// 停车场名称 必填项 26 'parkNamebooxt' : {required : true,},// 停车场名称 必填项
27 'parkName' : {required : true,},// 停车场名称 必填项 27 'parkName' : {required : true,},// 停车场名称 必填项
28 - 'parkCode' : {required : true,alnum:true, remote : { 28 + 'parkCode' : {required : true,rangelength:[8,8], alnum:true, remote : {
29 type : "get",// 异步发送请求到服务器,验证parkCode 29 type : "get",// 异步发送请求到服务器,验证parkCode
30 url : "/carpark/isHaveParkCode",//需要服务器controllor 中提供停车场编码检查的方法 30 url : "/carpark/isHaveParkCode",//需要服务器controllor 中提供停车场编码检查的方法
31 cache:false, 31 cache:false,
@@ -40,7 +40,8 @@ var FormWizard = function() { @@ -40,7 +40,8 @@ var FormWizard = function() {
40 'descriptions' : {maxlength: 200,},// 描述/说明 最大长度200 40 'descriptions' : {maxlength: 200,},// 描述/说明 最大长度200
41 }, 41 },
42 messages:{ 42 messages:{
43 - 'parkCode':{remote:'停车场编码系统已存在,请您重新输入!',}, 43 + 'parkCode':{remote:'停车场编码系统已存在,请您重新输入!',
  44 + rangelength:'请填写8位长度的编码!'},
44 }, 45 },
45 /** 46 /**
46 * 类型:Callback。当未通过验证的表单提交时,可以在该回调函数中处理一些事情。 47 * 类型:Callback。当未通过验证的表单提交时,可以在该回调函数中处理一些事情。