Commit 605d55ab496876c9ab8e1530e348c0264de17065

Authored by 王通
1 parent db61e544

1.

Showing 74 changed files with 74 additions and 13936 deletions
src/main/java/com/bsth/CXFConfig.java
... ... @@ -13,28 +13,16 @@ import com.bsth.server_rs.bigdata.BigdataService;
13 13 import com.bsth.server_rs.bigdata.BigscreenService;
14 14 import com.bsth.server_rs.departure.DepartureRestService;
15 15 import com.bsth.server_rs.destroy.DestroyDetailRestService;
16   -import com.bsth.server_rs.directive.DirectiveRestService;
17   -import com.bsth.server_rs.dks.DksRestService;
18   -import com.bsth.server_rs.electric.ElectricService;
19 16 import com.bsth.server_rs.exception.AesExceptionMapper;
20 17 import com.bsth.server_rs.gps.GpsRestService;
21   -import com.bsth.server_rs.info_publish.XxfbRestService;
22 18 import com.bsth.server_rs.logs.RealLogRestService;
23 19 import com.bsth.server_rs.rate.RateService;
24   -import com.bsth.server_rs.schedule.plan.SchedulePlanService;
25   -import com.bsth.server_rs.schedule.real.ScheduleRealService;
26   -import com.bsth.server_rs.schedule.real.StaffViewRealService;
27 20 import com.bsth.server_rs.waybill.WaybillRestService;
28   -import com.bsth.server_ws.attendance.AttendanceServiceSoap;
29   -import com.bsth.server_ws.electric_oil.OilServiceSoap;
30   -import com.bsth.server_ws.park_station.CompanyServiceSoap;
31   -import com.bsth.server_ws.waybill.LD_ServiceSoap;
32 21 import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
33 22 import org.apache.cxf.Bus;
34 23 import org.apache.cxf.bus.spring.SpringBus;
35 24 import org.apache.cxf.endpoint.Server;
36 25 import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;
37   -import org.apache.cxf.jaxws.EndpointImpl;
38 26 import org.apache.cxf.transport.servlet.CXFServlet;
39 27 import org.springframework.beans.factory.annotation.Autowired;
40 28 import org.springframework.boot.web.servlet.ServletRegistrationBean;
... ... @@ -42,7 +30,6 @@ import org.springframework.context.annotation.Bean;
42 30 import org.springframework.context.annotation.Configuration;
43 31 import org.springframework.core.Ordered;
44 32  
45   -import javax.xml.ws.Endpoint;
46 33 import java.util.Arrays;
47 34  
48 35 /**
... ... @@ -57,73 +44,22 @@ public class CXFConfig {
57 44 }
58 45  
59 46 @Autowired
60   - CompanyServiceSoap companyServiceSoap;
61   - @Autowired
62   - LD_ServiceSoap ld_serviceSoap;
63   - @Autowired
64   - AttendanceServiceSoap attendanceServiceSoap;
65   - @Autowired
66   - OilServiceSoap oilServiceSoap;
67   -
68   - @Bean
69   - public Endpoint companyEndpoint() {
70   - EndpointImpl endpoint = new EndpointImpl(springBus(), companyServiceSoap);
71   - endpoint.publish("/CompanyService");
72   - //endpoint.getInInterceptors().add(new AuthInterceptor());
73   - return endpoint;
74   - }
75   -
76   - @Bean
77   - public Endpoint ldServiceEndpoint() {
78   - EndpointImpl endpoint = new EndpointImpl(springBus(), ld_serviceSoap);
79   - endpoint.publish("/LD_Service");
80   - //endpoint.getInInterceptors().add(new AuthInterceptor());
81   - return endpoint;
82   - }
83   -
84   - @Bean
85   - public Endpoint attendanceServiceEndpoint() {
86   - EndpointImpl endpoint = new EndpointImpl(springBus(), attendanceServiceSoap);
87   - endpoint.publish("/attendanceService");
88   - //endpoint.getInInterceptors().add(new AuthInterceptor());
89   - return endpoint;
90   - }
91   -
92   - @Bean
93   - public Endpoint electricServiceEndpoint() {
94   - EndpointImpl endpoint = new EndpointImpl(springBus(), oilServiceSoap);
95   - endpoint.publish("/oilServiceSoap");
96   - //endpoint.getInInterceptors().add(new AuthInterceptor());
97   - return endpoint;
98   - }
99   -
100   - @Autowired
101   - ScheduleRealService scheduleRealService;
102   - @Autowired
103 47 StationRestService stationRestService;
104 48 @Autowired
105 49 LD_SectionRestService ldSectionRestService;
106 50 @Autowired
107   - SchedulePlanService schedulePlanService;
108   - @Autowired
109 51 RealLogRestService realLogRestService;
110 52 @Autowired
111 53 GpsRestService gpsRestService;
112 54 @Autowired
113 55 WaybillRestService waybillRestService;
114 56 @Autowired
115   - DirectiveRestService directiveRestService;
116   - @Autowired
117 57 LD_RoadSpeedRestService ld_roadSpeedRestService;
118 58 @Autowired
119   - ElectricService electricService;
120   - @Autowired
121 59 BigdataService bigdataService;
122 60 @Autowired
123 61 BigscreenService bigscreenService;
124 62 @Autowired
125   - StaffViewRealService staffViewRealService;
126   - @Autowired
127 63 RateService rateService;
128 64 @Autowired
129 65 private DestroyDetailRestService destroyDetailRestService;
... ... @@ -131,10 +67,6 @@ public class CXFConfig {
131 67 private CarparkRestService carparkRestService;
132 68 @Autowired
133 69 private DepartureRestService departureRestService;
134   - @Autowired
135   - private DksRestService dksRestService;
136   - @Autowired
137   - private XxfbRestService xxfbRestService;
138 70  
139 71 @Bean
140 72 public Server rsServer() {
... ... @@ -147,23 +79,16 @@ public class CXFConfig {
147 79 new PersonRestService(),
148 80 gpsRestService,
149 81 waybillRestService,
150   - scheduleRealService,
151 82 stationRestService,
152 83 ldSectionRestService,
153   - schedulePlanService,
154 84 realLogRestService,
155   - directiveRestService,
156 85 ld_roadSpeedRestService,
157   - electricService,
158   - staffViewRealService,
159 86 bigdataService,
160 87 bigscreenService,
161 88 rateService,
162 89 destroyDetailRestService,
163 90 carparkRestService,
164   - departureRestService,
165   - dksRestService,
166   - xxfbRestService));
  91 + departureRestService));
167 92 endpoint.setProviders(Arrays.asList(new JacksonJsonProvider(), new AesExceptionMapper()));
168 93 //endpoint.setFeatures(Arrays.asList(new Swagger2Feature()));
169 94 endpoint.getInInterceptors().add(new AuthorizeInterceptor_IN());
... ...
src/main/java/com/bsth/StartCommand.java
1   -package com.bsth;
2   -
3   -
4   -import com.bsth.server_rs.gps.buffer.BasicDataRefreshThread;
5   -import com.bsth.server_rs.gps.buffer.GpsRefreshThread;
6   -import com.bsth.server_rs.schedule.real.thread.ExecSchDataRefreshThread;
7   -import com.bsth.server_rs.schedule.real.thread.SchInOutDataRefreshThread;
8   -import com.bsth.server_rs.thread.RfidCardInfoPersistenceThread;
9   -import org.springframework.beans.factory.annotation.Autowired;
10   -import org.springframework.boot.CommandLineRunner;
11   -import org.springframework.stereotype.Component;
12   -
13   -import java.util.concurrent.ScheduledExecutorService;
14   -import java.util.concurrent.TimeUnit;
15   -
16   -
17   -/**
18   - * 随应用启动运行
19   - * @author PanZhao
20   - *
21   - */
22   -@Component
23   -public class StartCommand implements CommandLineRunner{
24   -
25   -
26   - @Autowired
27   - RfidCardInfoPersistenceThread rfidCardInfoPersistenceThread;
28   - @Autowired
29   - SchInOutDataRefreshThread schInOutDataRefreshThread;
30   - @Autowired
31   - ExecSchDataRefreshThread execSchDataRefreshThread;
32   - @Autowired
33   - GpsRefreshThread gpsRefreshThread;
34   - @Autowired
35   - BasicDataRefreshThread basicDataRefreshThread;
36   -
37   - @Override
38   - public void run(String... arg0){
39   -
40   - try {
41   - ScheduledExecutorService sexec = Application.mainServices;
42   - //定时将人车卡数据入库
43   - sexec.scheduleWithFixedDelay(rfidCardInfoPersistenceThread, 120, 60 * 10, TimeUnit.SECONDS);
44   - //定时从调度系统刷新进出场数据
45   - sexec.scheduleWithFixedDelay(schInOutDataRefreshThread, 40, 60, TimeUnit.SECONDS);
46   - //定时从调度系统刷新车辆正在的执行班次
47   - sexec.scheduleWithFixedDelay(execSchDataRefreshThread, 20, 60, TimeUnit.SECONDS);
48   - //定时刷新实时gps缓存
49   - Application.mainServices.scheduleWithFixedDelay(gpsRefreshThread, 10, 7, TimeUnit.SECONDS);
50   - //定时刷新基础信息
51   - Application.mainServices.scheduleWithFixedDelay(basicDataRefreshThread, 30, 30, TimeUnit.MINUTES);
52   -
53   - } catch (Exception e) {
54   - e.printStackTrace();
55   - }
56   - }
57   -}
  1 +package com.bsth;
  2 +
  3 +
  4 +import com.bsth.server_rs.gps.buffer.BasicDataRefreshThread;
  5 +import com.bsth.server_rs.gps.buffer.GpsRefreshThread;
  6 +import com.bsth.server_rs.thread.RfidCardInfoPersistenceThread;
  7 +import org.springframework.beans.factory.annotation.Autowired;
  8 +import org.springframework.boot.CommandLineRunner;
  9 +import org.springframework.stereotype.Component;
  10 +
  11 +import java.util.concurrent.ScheduledExecutorService;
  12 +import java.util.concurrent.TimeUnit;
  13 +
  14 +
  15 +/**
  16 + * 随应用启动运行
  17 + * @author PanZhao
  18 + *
  19 + */
  20 +@Component
  21 +public class StartCommand implements CommandLineRunner{
  22 +
  23 +
  24 + @Autowired
  25 + RfidCardInfoPersistenceThread rfidCardInfoPersistenceThread;
  26 + @Autowired
  27 + GpsRefreshThread gpsRefreshThread;
  28 + @Autowired
  29 + BasicDataRefreshThread basicDataRefreshThread;
  30 +
  31 + @Override
  32 + public void run(String... arg0){
  33 +
  34 + try {
  35 + ScheduledExecutorService sexec = Application.mainServices;
  36 + //定时将人车卡数据入库
  37 + sexec.scheduleWithFixedDelay(rfidCardInfoPersistenceThread, 120, 60 * 10, TimeUnit.SECONDS);
  38 + //定时刷新实时gps缓存
  39 + Application.mainServices.scheduleWithFixedDelay(gpsRefreshThread, 10, 7, TimeUnit.SECONDS);
  40 + //定时刷新基础信息
  41 + Application.mainServices.scheduleWithFixedDelay(basicDataRefreshThread, 30, 30, TimeUnit.MINUTES);
  42 +
  43 + } catch (Exception e) {
  44 + e.printStackTrace();
  45 + }
  46 + }
  47 +}
... ...
src/main/java/com/bsth/old_sys_wsclient/OldWSClient.java deleted 100644 → 0
1   -package com.bsth.old_sys_wsclient;
2   -
3   -import com.bsth.old_sys_wsclient.company_service.CompanyService;
4   -import com.bsth.old_sys_wsclient.company_service.CompanyServiceLocator;
5   -import com.bsth.old_sys_wsclient.company_service.CompanyServiceSoap;
6   -import com.bsth.old_sys_wsclient.company_service.holders.copy.ArrayOfStringHolder;
7   -import com.bsth.old_sys_wsclient.nh_ld.ClsLDInfo;
8   -import com.bsth.old_sys_wsclient.nh_ld.LD_Service;
9   -import com.bsth.old_sys_wsclient.nh_ld.LD_ServiceLocator;
10   -import com.bsth.old_sys_wsclient.nh_ld.holders.ArrayOfClsLDInfoHolder;
11   -import com.bsth.server_ws.util.Constants;
12   -import org.joda.time.format.DateTimeFormat;
13   -import org.joda.time.format.DateTimeFormatter;
14   -import org.slf4j.Logger;
15   -import org.slf4j.LoggerFactory;
16   -
17   -import javax.xml.rpc.ServiceException;
18   -import javax.xml.rpc.holders.StringHolder;
19   -import java.rmi.RemoteException;
20   -import java.util.Calendar;
21   -
22   -/**
23   - * 老调度系统 webservice 客户端
24   - * Created by panzhao on 2017/3/9.
25   - */
26   -public class OldWSClient {
27   -
28   - static Logger logger = LoggerFactory.getLogger(OldWSClient.class);
29   -
30   - /**
31   - * 返回出场信息
32   - *
33   - * @return
34   - */
35   - public static String[] returnCCInfo(String company, String rq) {
36   - CompanyService service = new CompanyServiceLocator();
37   -
38   - ArrayOfStringHolder arrayResult = new ArrayOfStringHolder();
39   - StringHolder fError = new StringHolder();
40   - try {
41   - service.getCompanyServiceSoap().returnCCInfo(Constants.OLD_SYS_PASSWORD, company, rq, arrayResult,
42   - fError);
43   -
44   - } catch (Exception e) {
45   - logger.error("", e);
46   - return new String[0];
47   - }
48   -
49   - return arrayResult.value;
50   - }
51   -
52   - /**
53   - * 返回进场信息
54   - *
55   - * @return
56   - */
57   - public static String[] returnJCInfo(String company, String rq) {
58   - CompanyService service = new CompanyServiceLocator();
59   -
60   - ArrayOfStringHolder arrayResult = new ArrayOfStringHolder();
61   - StringHolder fError = new StringHolder();
62   - try {
63   - service.getCompanyServiceSoap().returnJCInfo(Constants.OLD_SYS_PASSWORD, company, rq, arrayResult,
64   - fError);
65   -
66   - } catch (Exception e) {
67   - logger.error("", e);
68   - return new String[0];
69   - }
70   -
71   - return arrayResult.value;
72   - }
73   -
74   - /**
75   - * 获取当日排班
76   - *
77   - * @return
78   - */
79   - public static String[] getCurrentDayPlan(String workId, String company) {
80   - ArrayOfStringHolder arrayResult = new ArrayOfStringHolder();
81   - try {
82   - CompanyService mainService = new CompanyServiceLocator();
83   - CompanyServiceSoap client = mainService.getCompanyServiceSoap();
84   - StringHolder fError = new StringHolder();
85   - client.getCurrentDayPlan("10.10.150.24", "SNGjIPS_2013_BsTHbS", "123904D6-21CE-33B0-AC41-375EB1BBC0sN", workId, company, arrayResult, fError);
86   - } catch (Exception e) {
87   - logger.error("", e);
88   - return new String[0];
89   - }
90   - return arrayResult.value;
91   - }
92   -
93   - private static DateTimeFormatter fmtyyyyMMdd = DateTimeFormat.forPattern("yyyy-MM-dd");
94   -
95   - /**
96   - * 获取南汇路单信息(原老系统与票务接口)
97   - *
98   - * @param company
99   - * @param rq
100   - * @return
101   - */
102   - public static ClsLDInfo[] getNH_LD(String company, String rq) throws ServiceException, RemoteException {
103   - Calendar calendar = Calendar.getInstance();
104   - calendar.setTimeInMillis(fmtyyyyMMdd.parseMillis(rq));
105   -
106   - ArrayOfClsLDInfoHolder array = new ArrayOfClsLDInfoHolder();
107   -
108   - LD_Service ldService = new LD_ServiceLocator();
109   - ldService.getLD_ServiceSoap()
110   - .NH_LDInterface("10.10.150.24", "BsTh@BstH!NH", "bSTH@BStHNH", "163404D6-21CE-35B0-AC41-345EB1BBC0Nh", calendar, array);
111   - return array.value;
112   - }
113   -}
src/main/java/com/bsth/old_sys_wsclient/company_service/CompanyService.java deleted 100644 → 0
1   -/**
2   - * CompanyService.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.old_sys_wsclient.company_service;
9   -
10   -public interface CompanyService extends javax.xml.rpc.Service {
11   - public String getCompanyServiceSoapAddress();
12   -
13   - public CompanyServiceSoap getCompanyServiceSoap() throws javax.xml.rpc.ServiceException;
14   -
15   - public CompanyServiceSoap getCompanyServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
16   -}
src/main/java/com/bsth/old_sys_wsclient/company_service/CompanyServiceLocator.java deleted 100644 → 0
1   -/**
2   - * CompanyServiceLocator.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.old_sys_wsclient.company_service;
9   -
10   -@SuppressWarnings("serial")
11   -public class CompanyServiceLocator extends org.apache.axis.client.Service implements CompanyService {
12   -
13   - public CompanyServiceLocator() {
14   - }
15   -
16   -
17   - public CompanyServiceLocator(org.apache.axis.EngineConfiguration config) {
18   - super(config);
19   - }
20   -
21   - public CompanyServiceLocator(String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
22   - super(wsdlLoc, sName);
23   - }
24   -
25   - // Use to get a proxy class for CompanyServiceSoap
26   - //private String CompanyServiceSoap_address = "http://114.80.178.12:8030/CompanyService.asmx";
27   - private String CompanyServiceSoap_address = "http://10.10.200.61:8030/CompanyService.asmx";
28   -
29   - public String getCompanyServiceSoapAddress() {
30   - return CompanyServiceSoap_address;
31   - }
32   -
33   - // The WSDD service name defaults to the port name.
34   - private String CompanyServiceSoapWSDDServiceName = "CompanyServiceSoap";
35   -
36   - public String getCompanyServiceSoapWSDDServiceName() {
37   - return CompanyServiceSoapWSDDServiceName;
38   - }
39   -
40   - public void setCompanyServiceSoapWSDDServiceName(String name) {
41   - CompanyServiceSoapWSDDServiceName = name;
42   - }
43   -
44   - public CompanyServiceSoap getCompanyServiceSoap() throws javax.xml.rpc.ServiceException {
45   - java.net.URL endpoint;
46   - try {
47   - endpoint = new java.net.URL(CompanyServiceSoap_address);
48   - }
49   - catch (java.net.MalformedURLException e) {
50   - throw new javax.xml.rpc.ServiceException(e);
51   - }
52   - return getCompanyServiceSoap(endpoint);
53   - }
54   -
55   - public CompanyServiceSoap getCompanyServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
56   - try {
57   - CompanyServiceSoapStub _stub = new CompanyServiceSoapStub(portAddress, this);
58   - _stub.setPortName(getCompanyServiceSoapWSDDServiceName());
59   - _stub.setTimeout(6000);
60   - return _stub;
61   - }
62   - catch (org.apache.axis.AxisFault e) {
63   - return null;
64   - }
65   - }
66   -
67   - public void setCompanyServiceSoapEndpointAddress(String address) {
68   - CompanyServiceSoap_address = address;
69   - }
70   -
71   - /**
72   - * For the given interface, get the stub implementation.
73   - * If this service has no port for the given interface,
74   - * then ServiceException is thrown.
75   - */
76   - @SuppressWarnings("rawtypes")
77   - public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
78   - try {
79   - if (CompanyServiceSoap.class.isAssignableFrom(serviceEndpointInterface)) {
80   - CompanyServiceSoapStub _stub = new CompanyServiceSoapStub(new java.net.URL(CompanyServiceSoap_address), this);
81   - _stub.setPortName(getCompanyServiceSoapWSDDServiceName());
82   - return _stub;
83   - }
84   - }
85   - catch (Throwable t) {
86   - throw new javax.xml.rpc.ServiceException(t);
87   - }
88   - throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
89   - }
90   -
91   - /**
92   - * For the given interface, get the stub implementation.
93   - * If this service has no port for the given interface,
94   - * then ServiceException is thrown.
95   - */
96   - @SuppressWarnings("rawtypes")
97   - public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
98   - if (portName == null) {
99   - return getPort(serviceEndpointInterface);
100   - }
101   - String inputPortName = portName.getLocalPart();
102   - if ("CompanyServiceSoap".equals(inputPortName)) {
103   - return getCompanyServiceSoap();
104   - }
105   - else {
106   - java.rmi.Remote _stub = getPort(serviceEndpointInterface);
107   - ((org.apache.axis.client.Stub) _stub).setPortName(portName);
108   - return _stub;
109   - }
110   - }
111   -
112   - public javax.xml.namespace.QName getServiceName() {
113   - return new javax.xml.namespace.QName("http://tempuri.org/", "CompanyService");
114   - }
115   -
116   - @SuppressWarnings("rawtypes")
117   - private java.util.HashSet ports = null;
118   -
119   - @SuppressWarnings({ "rawtypes", "unchecked" })
120   - public java.util.Iterator getPorts() {
121   - if (ports == null) {
122   - ports = new java.util.HashSet();
123   - ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "CompanyServiceSoap"));
124   - }
125   - return ports.iterator();
126   - }
127   -
128   - /**
129   - * Set the endpoint address for the specified port name.
130   - */
131   - public void setEndpointAddress(String portName, String address) throws javax.xml.rpc.ServiceException {
132   -
133   -if ("CompanyServiceSoap".equals(portName)) {
134   - setCompanyServiceSoapEndpointAddress(address);
135   - }
136   - else
137   -{ // Unknown Port Name
138   - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
139   - }
140   - }
141   -
142   - /**
143   - * Set the endpoint address for the specified port name.
144   - */
145   - public void setEndpointAddress(javax.xml.namespace.QName portName, String address) throws javax.xml.rpc.ServiceException {
146   - setEndpointAddress(portName.getLocalPart(), address);
147   - }
148   -
149   -}
src/main/java/com/bsth/old_sys_wsclient/company_service/CompanyServiceSoap.java deleted 100644 → 0
1   -/**
2   - * CompanyServiceSoap.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.old_sys_wsclient.company_service;
9   -
10   -import com.bsth.old_sys_wsclient.company_service.holders.copy.ArrayOfStringHolder;
11   -import com.bsth.old_sys_wsclient.company_service.holders.copy.GetHistoryJCCByXLBMResponseFDataTableHolder;
12   -
13   -public interface CompanyServiceSoap extends java.rmi.Remote {
14   -
15   - /**
16   - * 车辆路单
17   - */
18   - public boolean returnCarOilInfo(String fUserName, String fPassword, String fGsdm, String fDate, ArrayOfStringHolder fCarLd, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException;
19   -
20   - /**
21   - * 车辆信息
22   - */
23   - public boolean returnClInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fClInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException;
24   -
25   - /**
26   - * 线路信息
27   - */
28   - public boolean returnXlInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fXlInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException;
29   -
30   - /**
31   - * 站点信息
32   - */
33   - public boolean returnZDInfo(String fUserName, String fPassword, String fGsdm, String fXlid, ArrayOfStringHolder fZDInfo, javax.xml.rpc.holders.StringHolder fTimeInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException;
34   -
35   - /**
36   - * 出场
37   - */
38   - public boolean returnCCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fCCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException;
39   -
40   - /**
41   - * 进场
42   - */
43   - public boolean returnJCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fJCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException;
44   - public boolean getLSLC_PB(String fIPAddress, String fUserName, String fPassword, String fDate, String fJSYGH, String fGSDM, ArrayOfStringHolder fStrLSLCArr, ArrayOfStringHolder fStrPBXX, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.StringHolder fJSYMC, javax.xml.rpc.holders.StringHolder fGSMC) throws java.rmi.RemoteException;
45   - public boolean getCurrentDayPlan(String fIPAddress, String fUserName, String fPassword, String fJSYGH, String fGSDM, ArrayOfStringHolder fCurrentDayPlan, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException;
46   - public void getHistoryJCCByXLBM(String fIPAddress, String fUserName, String fPassword, String fXLBM, String fDate, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.BooleanHolder getHistoryJCCByXLBMResult, GetHistoryJCCByXLBMResponseFDataTableHolder fDataTable) throws java.rmi.RemoteException;
47   - public boolean getUnusual(String fIPAddress, String fUserName, String fPassword, String fDate, String fGSDM, String fFGSDM, ArrayOfStringHolder fDriverRequestArr, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException;
48   -}
src/main/java/com/bsth/old_sys_wsclient/company_service/CompanyServiceSoapProxy.java deleted 100644 → 0
1   -package com.bsth.old_sys_wsclient.company_service;
2   -
3   -import com.bsth.old_sys_wsclient.company_service.holders.copy.ArrayOfStringHolder;
4   -import com.bsth.old_sys_wsclient.company_service.holders.copy.GetHistoryJCCByXLBMResponseFDataTableHolder;
5   -
6   -public class CompanyServiceSoapProxy implements CompanyServiceSoap {
7   - private String _endpoint = null;
8   - private CompanyServiceSoap companyServiceSoap = null;
9   -
10   - public CompanyServiceSoapProxy() {
11   - _initCompanyServiceSoapProxy();
12   - }
13   -
14   - public CompanyServiceSoapProxy(String endpoint) {
15   - _endpoint = endpoint;
16   - _initCompanyServiceSoapProxy();
17   - }
18   -
19   - private void _initCompanyServiceSoapProxy() {
20   - try {
21   - companyServiceSoap = (new CompanyServiceLocator()).getCompanyServiceSoap();
22   - if (companyServiceSoap != null) {
23   - if (_endpoint != null)
24   - ((javax.xml.rpc.Stub)companyServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
25   - else
26   - _endpoint = (String)((javax.xml.rpc.Stub)companyServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
27   - }
28   -
29   - }
30   - catch (javax.xml.rpc.ServiceException serviceException) {}
31   - }
32   -
33   - public String getEndpoint() {
34   - return _endpoint;
35   - }
36   -
37   - public void setEndpoint(String endpoint) {
38   - _endpoint = endpoint;
39   - if (companyServiceSoap != null)
40   - ((javax.xml.rpc.Stub)companyServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
41   -
42   - }
43   -
44   - public CompanyServiceSoap getCompanyServiceSoap() {
45   - if (companyServiceSoap == null)
46   - _initCompanyServiceSoapProxy();
47   - return companyServiceSoap;
48   - }
49   -
50   - public boolean returnCarOilInfo(String fUserName, String fPassword, String fGsdm, String fDate, ArrayOfStringHolder fCarLd, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{
51   - if (companyServiceSoap == null)
52   - _initCompanyServiceSoapProxy();
53   - return companyServiceSoap.returnCarOilInfo(fUserName, fPassword, fGsdm, fDate, fCarLd, fError);
54   - }
55   -
56   - public boolean returnClInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fClInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{
57   - if (companyServiceSoap == null)
58   - _initCompanyServiceSoapProxy();
59   - return companyServiceSoap.returnClInfo(fUserName, fPassword, fGsdm, fClInfo, fError);
60   - }
61   -
62   - public boolean returnXlInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fXlInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{
63   - if (companyServiceSoap == null)
64   - _initCompanyServiceSoapProxy();
65   - return companyServiceSoap.returnXlInfo(fUserName, fPassword, fGsdm, fXlInfo, fError);
66   - }
67   -
68   - public boolean returnZDInfo(String fUserName, String fPassword, String fGsdm, String fXlid, ArrayOfStringHolder fZDInfo, javax.xml.rpc.holders.StringHolder fTimeInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{
69   - if (companyServiceSoap == null)
70   - _initCompanyServiceSoapProxy();
71   - return companyServiceSoap.returnZDInfo(fUserName, fPassword, fGsdm, fXlid, fZDInfo, fTimeInfo, fError);
72   - }
73   -
74   - public boolean returnCCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fCCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException{
75   - if (companyServiceSoap == null)
76   - _initCompanyServiceSoapProxy();
77   - return companyServiceSoap.returnCCInfo(fPassword, fGsdm, fRQ, fCCInfo, error);
78   - }
79   -
80   - public boolean returnJCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fJCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException{
81   - if (companyServiceSoap == null)
82   - _initCompanyServiceSoapProxy();
83   - return companyServiceSoap.returnJCInfo(fPassword, fGsdm, fRQ, fJCInfo, error);
84   - }
85   -
86   - public boolean getLSLC_PB(String fIPAddress, String fUserName, String fPassword, String fDate, String fJSYGH, String fGSDM, ArrayOfStringHolder fStrLSLCArr, ArrayOfStringHolder fStrPBXX, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.StringHolder fJSYMC, javax.xml.rpc.holders.StringHolder fGSMC) throws java.rmi.RemoteException{
87   - if (companyServiceSoap == null)
88   - _initCompanyServiceSoapProxy();
89   - return companyServiceSoap.getLSLC_PB(fIPAddress, fUserName, fPassword, fDate, fJSYGH, fGSDM, fStrLSLCArr, fStrPBXX, fError, fJSYMC, fGSMC);
90   - }
91   -
92   - public boolean getCurrentDayPlan(String fIPAddress, String fUserName, String fPassword, String fJSYGH, String fGSDM, ArrayOfStringHolder fCurrentDayPlan, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{
93   - if (companyServiceSoap == null)
94   - _initCompanyServiceSoapProxy();
95   - return companyServiceSoap.getCurrentDayPlan(fIPAddress, fUserName, fPassword, fJSYGH, fGSDM, fCurrentDayPlan, fError);
96   - }
97   -
98   - public void getHistoryJCCByXLBM(String fIPAddress, String fUserName, String fPassword, String fXLBM, String fDate, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.BooleanHolder getHistoryJCCByXLBMResult, GetHistoryJCCByXLBMResponseFDataTableHolder fDataTable) throws java.rmi.RemoteException{
99   - if (companyServiceSoap == null)
100   - _initCompanyServiceSoapProxy();
101   - companyServiceSoap.getHistoryJCCByXLBM(fIPAddress, fUserName, fPassword, fXLBM, fDate, fError, getHistoryJCCByXLBMResult, fDataTable);
102   - }
103   -
104   - public boolean getUnusual(String fIPAddress, String fUserName, String fPassword, String fDate, String fGSDM, String fFGSDM, ArrayOfStringHolder fDriverRequestArr, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{
105   - if (companyServiceSoap == null)
106   - _initCompanyServiceSoapProxy();
107   - return companyServiceSoap.getUnusual(fIPAddress, fUserName, fPassword, fDate, fGSDM, fFGSDM, fDriverRequestArr, fError);
108   - }
109   -
110   -
111   -}
112 0 \ No newline at end of file
src/main/java/com/bsth/old_sys_wsclient/company_service/CompanyServiceSoapStub.java deleted 100644 → 0
1   -/**
2   - * CompanyServiceSoapStub.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.old_sys_wsclient.company_service;
9   -
10   -import com.bsth.old_sys_wsclient.company_service.holders.copy.ArrayOfStringHolder;
11   -import com.bsth.old_sys_wsclient.company_service.holders.copy.GetHistoryJCCByXLBMResponseFDataTableHolder;
12   -
13   -public class CompanyServiceSoapStub extends org.apache.axis.client.Stub implements CompanyServiceSoap {
14   - @SuppressWarnings("rawtypes")
15   - private java.util.Vector cachedSerClasses = new java.util.Vector();
16   - @SuppressWarnings("rawtypes")
17   - private java.util.Vector cachedSerQNames = new java.util.Vector();
18   - @SuppressWarnings("rawtypes")
19   - private java.util.Vector cachedSerFactories = new java.util.Vector();
20   - @SuppressWarnings("rawtypes")
21   - private java.util.Vector cachedDeserFactories = new java.util.Vector();
22   -
23   - static org.apache.axis.description.OperationDesc [] _operations;
24   -
25   - static {
26   - _operations = new org.apache.axis.description.OperationDesc[10];
27   - _initOperationDesc1();
28   - }
29   -
30   - private static void _initOperationDesc1(){
31   - org.apache.axis.description.OperationDesc oper;
32   - org.apache.axis.description.ParameterDesc param;
33   - oper = new org.apache.axis.description.OperationDesc();
34   - oper.setName("ReturnCarOilInfo");
35   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
36   - param.setOmittable(true);
37   - oper.addParameter(param);
38   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
39   - param.setOmittable(true);
40   - oper.addParameter(param);
41   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGsdm"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
42   - param.setOmittable(true);
43   - oper.addParameter(param);
44   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
45   - param.setOmittable(true);
46   - oper.addParameter(param);
47   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fCarLd"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
48   - param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
49   - param.setOmittable(true);
50   - oper.addParameter(param);
51   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
52   - param.setOmittable(true);
53   - oper.addParameter(param);
54   - oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
55   - oper.setReturnClass(boolean.class);
56   - oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnCarOilInfoResult"));
57   - oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
58   - oper.setUse(org.apache.axis.constants.Use.LITERAL);
59   - _operations[0] = oper;
60   -
61   - oper = new org.apache.axis.description.OperationDesc();
62   - oper.setName("ReturnClInfo");
63   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
64   - param.setOmittable(true);
65   - oper.addParameter(param);
66   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
67   - param.setOmittable(true);
68   - oper.addParameter(param);
69   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGsdm"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
70   - param.setOmittable(true);
71   - oper.addParameter(param);
72   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fClInfo"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
73   - param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
74   - param.setOmittable(true);
75   - oper.addParameter(param);
76   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
77   - param.setOmittable(true);
78   - oper.addParameter(param);
79   - oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
80   - oper.setReturnClass(boolean.class);
81   - oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnClInfoResult"));
82   - oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
83   - oper.setUse(org.apache.axis.constants.Use.LITERAL);
84   - _operations[1] = oper;
85   -
86   - oper = new org.apache.axis.description.OperationDesc();
87   - oper.setName("ReturnXlInfo");
88   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
89   - param.setOmittable(true);
90   - oper.addParameter(param);
91   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
92   - param.setOmittable(true);
93   - oper.addParameter(param);
94   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGsdm"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
95   - param.setOmittable(true);
96   - oper.addParameter(param);
97   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fXlInfo"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
98   - param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
99   - param.setOmittable(true);
100   - oper.addParameter(param);
101   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
102   - param.setOmittable(true);
103   - oper.addParameter(param);
104   - oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
105   - oper.setReturnClass(boolean.class);
106   - oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnXlInfoResult"));
107   - oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
108   - oper.setUse(org.apache.axis.constants.Use.LITERAL);
109   - _operations[2] = oper;
110   -
111   - oper = new org.apache.axis.description.OperationDesc();
112   - oper.setName("ReturnZDInfo");
113   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
114   - param.setOmittable(true);
115   - oper.addParameter(param);
116   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
117   - param.setOmittable(true);
118   - oper.addParameter(param);
119   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGsdm"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), 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/", "fXlid"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), 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/", "fZDInfo"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
126   - param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
127   - param.setOmittable(true);
128   - oper.addParameter(param);
129   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fTimeInfo"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
130   - param.setOmittable(true);
131   - oper.addParameter(param);
132   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
133   - param.setOmittable(true);
134   - oper.addParameter(param);
135   - oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
136   - oper.setReturnClass(boolean.class);
137   - oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnZDInfoResult"));
138   - oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
139   - oper.setUse(org.apache.axis.constants.Use.LITERAL);
140   - _operations[3] = oper;
141   -
142   - oper = new org.apache.axis.description.OperationDesc();
143   - oper.setName("ReturnCCInfo");
144   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
145   - param.setOmittable(true);
146   - oper.addParameter(param);
147   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGsdm"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
148   - param.setOmittable(true);
149   - oper.addParameter(param);
150   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fRQ"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
151   - param.setOmittable(true);
152   - oper.addParameter(param);
153   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fCCInfo"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
154   - param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
155   - param.setOmittable(true);
156   - oper.addParameter(param);
157   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "error"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
158   - param.setOmittable(true);
159   - oper.addParameter(param);
160   - oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
161   - oper.setReturnClass(boolean.class);
162   - oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnCCInfoResult"));
163   - oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
164   - oper.setUse(org.apache.axis.constants.Use.LITERAL);
165   - _operations[4] = oper;
166   -
167   - oper = new org.apache.axis.description.OperationDesc();
168   - oper.setName("ReturnJCInfo");
169   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
170   - param.setOmittable(true);
171   - oper.addParameter(param);
172   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGsdm"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
173   - param.setOmittable(true);
174   - oper.addParameter(param);
175   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fRQ"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
176   - param.setOmittable(true);
177   - oper.addParameter(param);
178   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fJCInfo"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
179   - param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
180   - param.setOmittable(true);
181   - oper.addParameter(param);
182   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "error"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
183   - param.setOmittable(true);
184   - oper.addParameter(param);
185   - oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
186   - oper.setReturnClass(boolean.class);
187   - oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnJCInfoResult"));
188   - oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
189   - oper.setUse(org.apache.axis.constants.Use.LITERAL);
190   - _operations[5] = oper;
191   -
192   - oper = new org.apache.axis.description.OperationDesc();
193   - oper.setName("getLSLC_PB");
194   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fIPAddress"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), 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/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
198   - param.setOmittable(true);
199   - oper.addParameter(param);
200   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
201   - param.setOmittable(true);
202   - oper.addParameter(param);
203   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
204   - param.setOmittable(true);
205   - oper.addParameter(param);
206   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fJSYGH"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
207   - param.setOmittable(true);
208   - oper.addParameter(param);
209   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGSDM"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
210   - param.setOmittable(true);
211   - oper.addParameter(param);
212   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fStrLSLCArr"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
213   - param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
214   - param.setOmittable(true);
215   - oper.addParameter(param);
216   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fStrPBXX"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
217   - param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
218   - param.setOmittable(true);
219   - oper.addParameter(param);
220   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
221   - param.setOmittable(true);
222   - oper.addParameter(param);
223   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fJSYMC"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
224   - param.setOmittable(true);
225   - oper.addParameter(param);
226   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGSMC"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
227   - param.setOmittable(true);
228   - oper.addParameter(param);
229   - oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
230   - oper.setReturnClass(boolean.class);
231   - oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "getLSLC_PBResult"));
232   - oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
233   - oper.setUse(org.apache.axis.constants.Use.LITERAL);
234   - _operations[6] = oper;
235   -
236   - oper = new org.apache.axis.description.OperationDesc();
237   - oper.setName("getCurrentDayPlan");
238   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fIPAddress"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
239   - param.setOmittable(true);
240   - oper.addParameter(param);
241   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
242   - param.setOmittable(true);
243   - oper.addParameter(param);
244   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
245   - param.setOmittable(true);
246   - oper.addParameter(param);
247   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fJSYGH"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
248   - param.setOmittable(true);
249   - oper.addParameter(param);
250   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGSDM"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
251   - param.setOmittable(true);
252   - oper.addParameter(param);
253   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fCurrentDayPlan"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
254   - param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
255   - param.setOmittable(true);
256   - oper.addParameter(param);
257   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
258   - param.setOmittable(true);
259   - oper.addParameter(param);
260   - oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
261   - oper.setReturnClass(boolean.class);
262   - oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "getCurrentDayPlanResult"));
263   - oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
264   - oper.setUse(org.apache.axis.constants.Use.LITERAL);
265   - _operations[7] = oper;
266   -
267   - oper = new org.apache.axis.description.OperationDesc();
268   - oper.setName("getHistoryJCCByXLBM");
269   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fIPAddress"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
270   - param.setOmittable(true);
271   - oper.addParameter(param);
272   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
273   - param.setOmittable(true);
274   - oper.addParameter(param);
275   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
276   - param.setOmittable(true);
277   - oper.addParameter(param);
278   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fXLBM"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
279   - param.setOmittable(true);
280   - oper.addParameter(param);
281   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
282   - param.setOmittable(true);
283   - oper.addParameter(param);
284   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
285   - param.setOmittable(true);
286   - oper.addParameter(param);
287   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "getHistoryJCCByXLBMResult"), org.apache.axis.description.ParameterDesc.OUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false);
288   - oper.addParameter(param);
289   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fDataTable"), org.apache.axis.description.ParameterDesc.OUT, new javax.xml.namespace.QName("http://tempuri.org/", ">>getHistoryJCCByXLBMResponse>fDataTable"), GetHistoryJCCByXLBMResponseFDataTable.class, false, false);
290   - param.setOmittable(true);
291   - oper.addParameter(param);
292   - oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
293   - oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
294   - oper.setUse(org.apache.axis.constants.Use.LITERAL);
295   - _operations[8] = oper;
296   -
297   - oper = new org.apache.axis.description.OperationDesc();
298   - oper.setName("getUnusual");
299   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fIPAddress"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
300   - param.setOmittable(true);
301   - oper.addParameter(param);
302   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
303   - param.setOmittable(true);
304   - oper.addParameter(param);
305   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
306   - param.setOmittable(true);
307   - oper.addParameter(param);
308   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
309   - param.setOmittable(true);
310   - oper.addParameter(param);
311   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fGSDM"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
312   - param.setOmittable(true);
313   - oper.addParameter(param);
314   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fFGSDM"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
315   - param.setOmittable(true);
316   - oper.addParameter(param);
317   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fDriverRequestArr"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString"), String[].class, false, false);
318   - param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
319   - param.setOmittable(true);
320   - oper.addParameter(param);
321   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "fError"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
322   - param.setOmittable(true);
323   - oper.addParameter(param);
324   - oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
325   - oper.setReturnClass(boolean.class);
326   - oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "getUnusualResult"));
327   - oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
328   - oper.setUse(org.apache.axis.constants.Use.LITERAL);
329   - _operations[9] = oper;
330   -
331   - }
332   -
333   - public CompanyServiceSoapStub() throws org.apache.axis.AxisFault {
334   - this(null);
335   - }
336   -
337   - public CompanyServiceSoapStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
338   - this(service);
339   - super.cachedEndpoint = endpointURL;
340   - }
341   -
342   - @SuppressWarnings({ "rawtypes", "unused", "unchecked" })
343   - public CompanyServiceSoapStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
344   - if (service == null) {
345   - super.service = new org.apache.axis.client.Service();
346   - } else {
347   - super.service = service;
348   - }
349   - ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
350   - Class cls;
351   - javax.xml.namespace.QName qName;
352   - javax.xml.namespace.QName qName2;
353   - Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
354   - Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
355   - Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
356   - Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
357   - Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
358   - Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
359   - Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
360   - Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
361   - Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
362   - Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
363   - qName = new javax.xml.namespace.QName("http://tempuri.org/", ">>getHistoryJCCByXLBMResponse>fDataTable");
364   - cachedSerQNames.add(qName);
365   - cls = GetHistoryJCCByXLBMResponseFDataTable.class;
366   - cachedSerClasses.add(cls);
367   - cachedSerFactories.add(beansf);
368   - cachedDeserFactories.add(beandf);
369   -
370   - qName = new javax.xml.namespace.QName("http://tempuri.org/", ">getUnusual");
371   - cachedSerQNames.add(qName);
372   - cls = GetUnusual.class;
373   - cachedSerClasses.add(cls);
374   - cachedSerFactories.add(beansf);
375   - cachedDeserFactories.add(beandf);
376   -
377   - qName = new javax.xml.namespace.QName("http://tempuri.org/", ">getUnusualResponse");
378   - cachedSerQNames.add(qName);
379   - cls = GetUnusualResponse.class;
380   - cachedSerClasses.add(cls);
381   - cachedSerFactories.add(beansf);
382   - cachedDeserFactories.add(beandf);
383   -
384   - qName = new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfString");
385   - cachedSerQNames.add(qName);
386   - cls = String[].class;
387   - cachedSerClasses.add(cls);
388   - qName = new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string");
389   - qName2 = new javax.xml.namespace.QName("http://tempuri.org/", "string");
390   - cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
391   - cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
392   -
393   - }
394   -
395   - @SuppressWarnings("rawtypes")
396   - protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
397   - try {
398   - org.apache.axis.client.Call _call = super._createCall();
399   - if (super.maintainSessionSet) {
400   - _call.setMaintainSession(super.maintainSession);
401   - }
402   - if (super.cachedUsername != null) {
403   - _call.setUsername(super.cachedUsername);
404   - }
405   - if (super.cachedPassword != null) {
406   - _call.setPassword(super.cachedPassword);
407   - }
408   - if (super.cachedEndpoint != null) {
409   - _call.setTargetEndpointAddress(super.cachedEndpoint);
410   - }
411   - if (super.cachedTimeout != null) {
412   - _call.setTimeout(super.cachedTimeout);
413   - }
414   - if (super.cachedPortName != null) {
415   - _call.setPortName(super.cachedPortName);
416   - }
417   - java.util.Enumeration keys = super.cachedProperties.keys();
418   - while (keys.hasMoreElements()) {
419   - String key = (String) keys.nextElement();
420   - _call.setProperty(key, super.cachedProperties.get(key));
421   - }
422   - // All the type mapping information is registered
423   - // when the first call is made.
424   - // The type mapping information is actually registered in
425   - // the TypeMappingRegistry of the service, which
426   - // is the reason why registration is only needed for the first call.
427   - synchronized (this) {
428   - if (firstCall()) {
429   - // must set encoding style before registering serializers
430   - _call.setEncodingStyle(null);
431   - for (int i = 0; i < cachedSerFactories.size(); ++i) {
432   - Class cls = (Class) cachedSerClasses.get(i);
433   - javax.xml.namespace.QName qName =
434   - (javax.xml.namespace.QName) cachedSerQNames.get(i);
435   - Object x = cachedSerFactories.get(i);
436   - if (x instanceof Class) {
437   - Class sf = (Class)
438   - cachedSerFactories.get(i);
439   - Class df = (Class)
440   - cachedDeserFactories.get(i);
441   - _call.registerTypeMapping(cls, qName, sf, df, false);
442   - }
443   - else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
444   - org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
445   - cachedSerFactories.get(i);
446   - org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
447   - cachedDeserFactories.get(i);
448   - _call.registerTypeMapping(cls, qName, sf, df, false);
449   - }
450   - }
451   - }
452   - }
453   - return _call;
454   - }
455   - catch (Throwable _t) {
456   - throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
457   - }
458   - }
459   -
460   - @SuppressWarnings("rawtypes")
461   - public boolean returnCarOilInfo(String fUserName, String fPassword, String fGsdm, String fDate, ArrayOfStringHolder fCarLd, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException {
462   - if (super.cachedEndpoint == null) {
463   - throw new org.apache.axis.NoEndPointException();
464   - }
465   - org.apache.axis.client.Call _call = createCall();
466   - _call.setOperation(_operations[0]);
467   - _call.setUseSOAPAction(true);
468   - _call.setSOAPActionURI("http://tempuri.org/ReturnCarOilInfo");
469   - _call.setEncodingStyle(null);
470   - _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
471   - _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
472   - _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
473   - _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnCarOilInfo"));
474   -
475   - setRequestHeaders(_call);
476   - setAttachments(_call);
477   - try { Object _resp = _call.invoke(new Object[] {fUserName, fPassword, fGsdm, fDate, fCarLd.value, fError.value});
478   -
479   - if (_resp instanceof java.rmi.RemoteException) {
480   - throw (java.rmi.RemoteException)_resp;
481   - }
482   - else {
483   - extractAttachments(_call);
484   - java.util.Map _output;
485   - _output = _call.getOutputParams();
486   - try {
487   - fCarLd.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fCarLd"));
488   - } catch (Exception _exception) {
489   - fCarLd.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fCarLd")), String[].class);
490   - }
491   - try {
492   - fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
493   - } catch (Exception _exception) {
494   - fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
495   - }
496   - try {
497   - return ((Boolean) _resp).booleanValue();
498   - } catch (Exception _exception) {
499   - return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
500   - }
501   - }
502   - } catch (org.apache.axis.AxisFault axisFaultException) {
503   - throw axisFaultException;
504   -}
505   - }
506   -
507   - @SuppressWarnings("rawtypes")
508   - public boolean returnClInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fClInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException {
509   - if (super.cachedEndpoint == null) {
510   - throw new org.apache.axis.NoEndPointException();
511   - }
512   - org.apache.axis.client.Call _call = createCall();
513   - _call.setOperation(_operations[1]);
514   - _call.setUseSOAPAction(true);
515   - _call.setSOAPActionURI("http://tempuri.org/ReturnClInfo");
516   - _call.setEncodingStyle(null);
517   - _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
518   - _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
519   - _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
520   - _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnClInfo"));
521   -
522   - setRequestHeaders(_call);
523   - setAttachments(_call);
524   - try { Object _resp = _call.invoke(new Object[] {fUserName, fPassword, fGsdm, fClInfo.value, fError.value});
525   -
526   - if (_resp instanceof java.rmi.RemoteException) {
527   - throw (java.rmi.RemoteException)_resp;
528   - }
529   - else {
530   - extractAttachments(_call);
531   - java.util.Map _output;
532   - _output = _call.getOutputParams();
533   - try {
534   - fClInfo.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fClInfo"));
535   - } catch (Exception _exception) {
536   - fClInfo.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fClInfo")), String[].class);
537   - }
538   - try {
539   - fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
540   - } catch (Exception _exception) {
541   - fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
542   - }
543   - try {
544   - return ((Boolean) _resp).booleanValue();
545   - } catch (Exception _exception) {
546   - return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
547   - }
548   - }
549   - } catch (org.apache.axis.AxisFault axisFaultException) {
550   - throw axisFaultException;
551   -}
552   - }
553   -
554   - @SuppressWarnings("rawtypes")
555   - public boolean returnXlInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fXlInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException {
556   - if (super.cachedEndpoint == null) {
557   - throw new org.apache.axis.NoEndPointException();
558   - }
559   - org.apache.axis.client.Call _call = createCall();
560   - _call.setOperation(_operations[2]);
561   - _call.setUseSOAPAction(true);
562   - _call.setSOAPActionURI("http://tempuri.org/ReturnXlInfo");
563   - _call.setEncodingStyle(null);
564   - _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
565   - _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
566   - _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
567   - _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnXlInfo"));
568   -
569   - setRequestHeaders(_call);
570   - setAttachments(_call);
571   - try { Object _resp = _call.invoke(new Object[] {fUserName, fPassword, fGsdm, fXlInfo.value, fError.value});
572   -
573   - if (_resp instanceof java.rmi.RemoteException) {
574   - throw (java.rmi.RemoteException)_resp;
575   - }
576   - else {
577   - extractAttachments(_call);
578   - java.util.Map _output;
579   - _output = _call.getOutputParams();
580   - try {
581   - fXlInfo.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fXlInfo"));
582   - } catch (Exception _exception) {
583   - fXlInfo.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fXlInfo")), String[].class);
584   - }
585   - try {
586   - fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
587   - } catch (Exception _exception) {
588   - fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
589   - }
590   - try {
591   - return ((Boolean) _resp).booleanValue();
592   - } catch (Exception _exception) {
593   - return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
594   - }
595   - }
596   - } catch (org.apache.axis.AxisFault axisFaultException) {
597   - throw axisFaultException;
598   -}
599   - }
600   -
601   - @SuppressWarnings("rawtypes")
602   - public boolean returnZDInfo(String fUserName, String fPassword, String fGsdm, String fXlid, ArrayOfStringHolder fZDInfo, javax.xml.rpc.holders.StringHolder fTimeInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException {
603   - if (super.cachedEndpoint == null) {
604   - throw new org.apache.axis.NoEndPointException();
605   - }
606   - org.apache.axis.client.Call _call = createCall();
607   - _call.setOperation(_operations[3]);
608   - _call.setUseSOAPAction(true);
609   - _call.setSOAPActionURI("http://tempuri.org/ReturnZDInfo");
610   - _call.setEncodingStyle(null);
611   - _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
612   - _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
613   - _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
614   - _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnZDInfo"));
615   -
616   - setRequestHeaders(_call);
617   - setAttachments(_call);
618   - try { Object _resp = _call.invoke(new Object[] {fUserName, fPassword, fGsdm, fXlid, fZDInfo.value, fTimeInfo.value, fError.value});
619   -
620   - if (_resp instanceof java.rmi.RemoteException) {
621   - throw (java.rmi.RemoteException)_resp;
622   - }
623   - else {
624   - extractAttachments(_call);
625   - java.util.Map _output;
626   - _output = _call.getOutputParams();
627   - try {
628   - fZDInfo.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fZDInfo"));
629   - } catch (Exception _exception) {
630   - fZDInfo.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fZDInfo")), String[].class);
631   - }
632   - try {
633   - fTimeInfo.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fTimeInfo"));
634   - } catch (Exception _exception) {
635   - fTimeInfo.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fTimeInfo")), String.class);
636   - }
637   - try {
638   - fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
639   - } catch (Exception _exception) {
640   - fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
641   - }
642   - try {
643   - return ((Boolean) _resp).booleanValue();
644   - } catch (Exception _exception) {
645   - return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
646   - }
647   - }
648   - } catch (org.apache.axis.AxisFault axisFaultException) {
649   - throw axisFaultException;
650   -}
651   - }
652   -
653   - @SuppressWarnings("rawtypes")
654   - public boolean returnCCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fCCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException {
655   - if (super.cachedEndpoint == null) {
656   - throw new org.apache.axis.NoEndPointException();
657   - }
658   - org.apache.axis.client.Call _call = createCall();
659   - _call.setOperation(_operations[4]);
660   - _call.setUseSOAPAction(true);
661   - _call.setSOAPActionURI("http://tempuri.org/ReturnCCInfo");
662   - _call.setEncodingStyle(null);
663   - _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
664   - _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
665   - _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
666   - _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnCCInfo"));
667   -
668   - setRequestHeaders(_call);
669   - setAttachments(_call);
670   - try { Object _resp = _call.invoke(new Object[] {fPassword, fGsdm, fRQ, fCCInfo.value, error.value});
671   -
672   - if (_resp instanceof java.rmi.RemoteException) {
673   - throw (java.rmi.RemoteException)_resp;
674   - }
675   - else {
676   - extractAttachments(_call);
677   - java.util.Map _output;
678   - _output = _call.getOutputParams();
679   - try {
680   - fCCInfo.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fCCInfo"));
681   - } catch (Exception _exception) {
682   - fCCInfo.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fCCInfo")), String[].class);
683   - }
684   - try {
685   - error.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "error"));
686   - } catch (Exception _exception) {
687   - error.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "error")), String.class);
688   - }
689   - try {
690   - return ((Boolean) _resp).booleanValue();
691   - } catch (Exception _exception) {
692   - return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
693   - }
694   - }
695   - } catch (org.apache.axis.AxisFault axisFaultException) {
696   - throw axisFaultException;
697   -}
698   - }
699   -
700   - @SuppressWarnings("rawtypes")
701   - public boolean returnJCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fJCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException {
702   - if (super.cachedEndpoint == null) {
703   - throw new org.apache.axis.NoEndPointException();
704   - }
705   - org.apache.axis.client.Call _call = createCall();
706   - _call.setOperation(_operations[5]);
707   - _call.setUseSOAPAction(true);
708   - _call.setSOAPActionURI("http://tempuri.org/ReturnJCInfo");
709   - _call.setEncodingStyle(null);
710   - _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
711   - _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
712   - _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
713   - _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "ReturnJCInfo"));
714   -
715   - setRequestHeaders(_call);
716   - setAttachments(_call);
717   - try { Object _resp = _call.invoke(new Object[] {fPassword, fGsdm, fRQ, fJCInfo.value, error.value});
718   -
719   - if (_resp instanceof java.rmi.RemoteException) {
720   - throw (java.rmi.RemoteException)_resp;
721   - }
722   - else {
723   - extractAttachments(_call);
724   - java.util.Map _output;
725   - _output = _call.getOutputParams();
726   - try {
727   - fJCInfo.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fJCInfo"));
728   - } catch (Exception _exception) {
729   - fJCInfo.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fJCInfo")), String[].class);
730   - }
731   - try {
732   - error.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "error"));
733   - } catch (Exception _exception) {
734   - error.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "error")), String.class);
735   - }
736   - try {
737   - return ((Boolean) _resp).booleanValue();
738   - } catch (Exception _exception) {
739   - return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
740   - }
741   - }
742   - } catch (org.apache.axis.AxisFault axisFaultException) {
743   - throw axisFaultException;
744   -}
745   - }
746   -
747   - @SuppressWarnings("rawtypes")
748   - public boolean getLSLC_PB(String fIPAddress, String fUserName, String fPassword, String fDate, String fJSYGH, String fGSDM, ArrayOfStringHolder fStrLSLCArr, ArrayOfStringHolder fStrPBXX, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.StringHolder fJSYMC, javax.xml.rpc.holders.StringHolder fGSMC) throws java.rmi.RemoteException {
749   - if (super.cachedEndpoint == null) {
750   - throw new org.apache.axis.NoEndPointException();
751   - }
752   - org.apache.axis.client.Call _call = createCall();
753   - _call.setOperation(_operations[6]);
754   - _call.setUseSOAPAction(true);
755   - _call.setSOAPActionURI("http://tempuri.org/getLSLC_PB");
756   - _call.setEncodingStyle(null);
757   - _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
758   - _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
759   - _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
760   - _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "getLSLC_PB"));
761   -
762   - setRequestHeaders(_call);
763   - setAttachments(_call);
764   - try { Object _resp = _call.invoke(new Object[] {fIPAddress, fUserName, fPassword, fDate, fJSYGH, fGSDM, fStrLSLCArr.value, fStrPBXX.value, fError.value, fJSYMC.value, fGSMC.value});
765   -
766   - if (_resp instanceof java.rmi.RemoteException) {
767   - throw (java.rmi.RemoteException)_resp;
768   - }
769   - else {
770   - extractAttachments(_call);
771   - java.util.Map _output;
772   - _output = _call.getOutputParams();
773   - try {
774   - fStrLSLCArr.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fStrLSLCArr"));
775   - } catch (Exception _exception) {
776   - fStrLSLCArr.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fStrLSLCArr")), String[].class);
777   - }
778   - try {
779   - fStrPBXX.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fStrPBXX"));
780   - } catch (Exception _exception) {
781   - fStrPBXX.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fStrPBXX")), String[].class);
782   - }
783   - try {
784   - fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
785   - } catch (Exception _exception) {
786   - fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
787   - }
788   - try {
789   - fJSYMC.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fJSYMC"));
790   - } catch (Exception _exception) {
791   - fJSYMC.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fJSYMC")), String.class);
792   - }
793   - try {
794   - fGSMC.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fGSMC"));
795   - } catch (Exception _exception) {
796   - fGSMC.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fGSMC")), String.class);
797   - }
798   - try {
799   - return ((Boolean) _resp).booleanValue();
800   - } catch (Exception _exception) {
801   - return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
802   - }
803   - }
804   - } catch (org.apache.axis.AxisFault axisFaultException) {
805   - throw axisFaultException;
806   -}
807   - }
808   -
809   - @SuppressWarnings("rawtypes")
810   - public boolean getCurrentDayPlan(String fIPAddress, String fUserName, String fPassword, String fJSYGH, String fGSDM, ArrayOfStringHolder fCurrentDayPlan, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException {
811   - if (super.cachedEndpoint == null) {
812   - throw new org.apache.axis.NoEndPointException();
813   - }
814   - org.apache.axis.client.Call _call = createCall();
815   - _call.setOperation(_operations[7]);
816   - _call.setUseSOAPAction(true);
817   - _call.setSOAPActionURI("http://tempuri.org/getCurrentDayPlan");
818   - _call.setEncodingStyle(null);
819   - _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
820   - _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
821   - _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
822   - _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "getCurrentDayPlan"));
823   -
824   - setRequestHeaders(_call);
825   - setAttachments(_call);
826   - try { Object _resp = _call.invoke(new Object[] {fIPAddress, fUserName, fPassword, fJSYGH, fGSDM, fCurrentDayPlan.value, fError.value});
827   -
828   - if (_resp instanceof java.rmi.RemoteException) {
829   - throw (java.rmi.RemoteException)_resp;
830   - }
831   - else {
832   - extractAttachments(_call);
833   - java.util.Map _output;
834   - _output = _call.getOutputParams();
835   - try {
836   - fCurrentDayPlan.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fCurrentDayPlan"));
837   - } catch (Exception _exception) {
838   - fCurrentDayPlan.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fCurrentDayPlan")), String[].class);
839   - }
840   - try {
841   - fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
842   - } catch (Exception _exception) {
843   - fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
844   - }
845   - try {
846   - return ((Boolean) _resp).booleanValue();
847   - } catch (Exception _exception) {
848   - return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
849   - }
850   - }
851   - } catch (org.apache.axis.AxisFault axisFaultException) {
852   - throw axisFaultException;
853   -}
854   - }
855   -
856   - @SuppressWarnings("rawtypes")
857   - public void getHistoryJCCByXLBM(String fIPAddress, String fUserName, String fPassword, String fXLBM, String fDate, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.BooleanHolder getHistoryJCCByXLBMResult, GetHistoryJCCByXLBMResponseFDataTableHolder fDataTable) throws java.rmi.RemoteException {
858   - if (super.cachedEndpoint == null) {
859   - throw new org.apache.axis.NoEndPointException();
860   - }
861   - org.apache.axis.client.Call _call = createCall();
862   - _call.setOperation(_operations[8]);
863   - _call.setUseSOAPAction(true);
864   - _call.setSOAPActionURI("http://tempuri.org/getHistoryJCCByXLBM");
865   - _call.setEncodingStyle(null);
866   - _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
867   - _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
868   - _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
869   - _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "getHistoryJCCByXLBM"));
870   -
871   - setRequestHeaders(_call);
872   - setAttachments(_call);
873   - try { Object _resp = _call.invoke(new Object[] {fIPAddress, fUserName, fPassword, fXLBM, fDate, fError.value});
874   -
875   - if (_resp instanceof java.rmi.RemoteException) {
876   - throw (java.rmi.RemoteException)_resp;
877   - }
878   - else {
879   - extractAttachments(_call);
880   - java.util.Map _output;
881   - _output = _call.getOutputParams();
882   - try {
883   - fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
884   - } catch (Exception _exception) {
885   - fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
886   - }
887   - try {
888   - getHistoryJCCByXLBMResult.value = ((Boolean) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "getHistoryJCCByXLBMResult"))).booleanValue();
889   - } catch (Exception _exception) {
890   - getHistoryJCCByXLBMResult.value = ((Boolean) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "getHistoryJCCByXLBMResult")), boolean.class)).booleanValue();
891   - }
892   - try {
893   - fDataTable.value = (GetHistoryJCCByXLBMResponseFDataTable) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fDataTable"));
894   - } catch (Exception _exception) {
895   - fDataTable.value = (GetHistoryJCCByXLBMResponseFDataTable) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fDataTable")), GetHistoryJCCByXLBMResponseFDataTable.class);
896   - }
897   - }
898   - } catch (org.apache.axis.AxisFault axisFaultException) {
899   - throw axisFaultException;
900   -}
901   - }
902   -
903   - @SuppressWarnings("rawtypes")
904   - public boolean getUnusual(String fIPAddress, String fUserName, String fPassword, String fDate, String fGSDM, String fFGSDM, ArrayOfStringHolder fDriverRequestArr, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException {
905   - if (super.cachedEndpoint == null) {
906   - throw new org.apache.axis.NoEndPointException();
907   - }
908   - org.apache.axis.client.Call _call = createCall();
909   - _call.setOperation(_operations[9]);
910   - _call.setUseSOAPAction(true);
911   - _call.setSOAPActionURI("http://tempuri.org/getUnusual");
912   - _call.setEncodingStyle(null);
913   - _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
914   - _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
915   - _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
916   - _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "getUnusual"));
917   -
918   - setRequestHeaders(_call);
919   - setAttachments(_call);
920   - try { Object _resp = _call.invoke(new Object[] {fIPAddress, fUserName, fPassword, fDate, fGSDM, fFGSDM, fDriverRequestArr.value, fError.value});
921   -
922   - if (_resp instanceof java.rmi.RemoteException) {
923   - throw (java.rmi.RemoteException)_resp;
924   - }
925   - else {
926   - extractAttachments(_call);
927   - java.util.Map _output;
928   - _output = _call.getOutputParams();
929   - try {
930   - fDriverRequestArr.value = (String[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fDriverRequestArr"));
931   - } catch (Exception _exception) {
932   - fDriverRequestArr.value = (String[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fDriverRequestArr")), String[].class);
933   - }
934   - try {
935   - fError.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
936   - } catch (Exception _exception) {
937   - fError.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "fError")), String.class);
938   - }
939   - try {
940   - return ((Boolean) _resp).booleanValue();
941   - } catch (Exception _exception) {
942   - return ((Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
943   - }
944   - }
945   - } catch (org.apache.axis.AxisFault axisFaultException) {
946   - throw axisFaultException;
947   -}
948   - }
949   -
950   -}
src/main/java/com/bsth/old_sys_wsclient/company_service/GetHistoryJCCByXLBMResponseFDataTable.java deleted 100644 → 0
1   -/**
2   - * GetHistoryJCCByXLBMResponseFDataTable.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.old_sys_wsclient.company_service;
9   -
10   -@SuppressWarnings("serial")
11   -public class GetHistoryJCCByXLBMResponseFDataTable implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
12   - private org.apache.axis.message.MessageElement [] _any;
13   -
14   - private org.apache.axis.message.MessageElement [] _any2;
15   -
16   - public GetHistoryJCCByXLBMResponseFDataTable() {
17   - }
18   -
19   - public GetHistoryJCCByXLBMResponseFDataTable(
20   - org.apache.axis.message.MessageElement [] _any,
21   - org.apache.axis.message.MessageElement [] _any2) {
22   - this._any = _any;
23   - this._any2 = _any2;
24   - }
25   -
26   -
27   - /**
28   - * Gets the _any value for this GetHistoryJCCByXLBMResponseFDataTable.
29   - *
30   - * @return _any
31   - */
32   - public org.apache.axis.message.MessageElement [] get_any() {
33   - return _any;
34   - }
35   -
36   -
37   - /**
38   - * Sets the _any value for this GetHistoryJCCByXLBMResponseFDataTable.
39   - *
40   - * @param _any
41   - */
42   - public void set_any(org.apache.axis.message.MessageElement [] _any) {
43   - this._any = _any;
44   - }
45   -
46   -
47   - /**
48   - * Gets the _any2 value for this GetHistoryJCCByXLBMResponseFDataTable.
49   - *
50   - * @return _any2
51   - */
52   - public org.apache.axis.message.MessageElement [] get_any2() {
53   - return _any2;
54   - }
55   -
56   -
57   - /**
58   - * Sets the _any2 value for this GetHistoryJCCByXLBMResponseFDataTable.
59   - *
60   - * @param _any2
61   - */
62   - public void set_any2(org.apache.axis.message.MessageElement [] _any2) {
63   - this._any2 = _any2;
64   - }
65   -
66   - private Object __equalsCalc = null;
67   - @SuppressWarnings("unused")
68   - public synchronized boolean equals(Object obj) {
69   - if (!(obj instanceof GetHistoryJCCByXLBMResponseFDataTable)) return false;
70   - GetHistoryJCCByXLBMResponseFDataTable other = (GetHistoryJCCByXLBMResponseFDataTable) obj;
71   - if (obj == null) return false;
72   - if (this == obj) return true;
73   - if (__equalsCalc != null) {
74   - return (__equalsCalc == obj);
75   - }
76   - __equalsCalc = obj;
77   - boolean _equals;
78   - _equals = true &&
79   - ((this._any==null && other.get_any()==null) ||
80   - (this._any!=null &&
81   - java.util.Arrays.equals(this._any, other.get_any()))) &&
82   - ((this._any2==null && other.get_any2()==null) ||
83   - (this._any2!=null &&
84   - java.util.Arrays.equals(this._any2, other.get_any2())));
85   - __equalsCalc = null;
86   - return _equals;
87   - }
88   -
89   - private boolean __hashCodeCalc = false;
90   - public synchronized int hashCode() {
91   - if (__hashCodeCalc) {
92   - return 0;
93   - }
94   - __hashCodeCalc = true;
95   - int _hashCode = 1;
96   - if (get_any() != null) {
97   - for (int i=0;
98   - i<java.lang.reflect.Array.getLength(get_any());
99   - i++) {
100   - Object obj = java.lang.reflect.Array.get(get_any(), i);
101   - if (obj != null &&
102   - !obj.getClass().isArray()) {
103   - _hashCode += obj.hashCode();
104   - }
105   - }
106   - }
107   - if (get_any2() != null) {
108   - for (int i=0;
109   - i<java.lang.reflect.Array.getLength(get_any2());
110   - i++) {
111   - Object obj = java.lang.reflect.Array.get(get_any2(), i);
112   - if (obj != null &&
113   - !obj.getClass().isArray()) {
114   - _hashCode += obj.hashCode();
115   - }
116   - }
117   - }
118   - __hashCodeCalc = false;
119   - return _hashCode;
120   - }
121   -
122   - // Type metadata
123   - private static org.apache.axis.description.TypeDesc typeDesc =
124   - new org.apache.axis.description.TypeDesc(GetHistoryJCCByXLBMResponseFDataTable.class, true);
125   -
126   - static {
127   - typeDesc.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", ">>getHistoryJCCByXLBMResponse>fDataTable"));
128   - }
129   -
130   - /**
131   - * Return type metadata object
132   - */
133   - public static org.apache.axis.description.TypeDesc getTypeDesc() {
134   - return typeDesc;
135   - }
136   -
137   - /**
138   - * Get Custom Serializer
139   - */
140   - @SuppressWarnings("rawtypes")
141   - public static org.apache.axis.encoding.Serializer getSerializer(
142   - String mechType,
143   - Class _javaType,
144   - javax.xml.namespace.QName _xmlType) {
145   - return
146   - new org.apache.axis.encoding.ser.BeanSerializer(
147   - _javaType, _xmlType, typeDesc);
148   - }
149   -
150   - /**
151   - * Get Custom Deserializer
152   - */
153   - @SuppressWarnings("rawtypes")
154   - public static org.apache.axis.encoding.Deserializer getDeserializer(
155   - String mechType,
156   - Class _javaType,
157   - javax.xml.namespace.QName _xmlType) {
158   - return
159   - new org.apache.axis.encoding.ser.BeanDeserializer(
160   - _javaType, _xmlType, typeDesc);
161   - }
162   -
163   -}
src/main/java/com/bsth/old_sys_wsclient/company_service/GetUnusual.java deleted 100644 → 0
1   -/**
2   - * GetUnusual.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.old_sys_wsclient.company_service;
9   -
10   -@SuppressWarnings("serial")
11   -public class GetUnusual implements java.io.Serializable {
12   - private String fIPAddress;
13   -
14   - private String fUserName;
15   -
16   - private String fPassword;
17   -
18   - private String fDate;
19   -
20   - private String fGSDM;
21   -
22   - private String fFGSDM;
23   -
24   - private String[] fDriverRequestArr;
25   -
26   - private String fError;
27   -
28   - public GetUnusual() {
29   - }
30   -
31   - public GetUnusual(
32   - String fIPAddress,
33   - String fUserName,
34   - String fPassword,
35   - String fDate,
36   - String fGSDM,
37   - String fFGSDM,
38   - String[] fDriverRequestArr,
39   - String fError) {
40   - this.fIPAddress = fIPAddress;
41   - this.fUserName = fUserName;
42   - this.fPassword = fPassword;
43   - this.fDate = fDate;
44   - this.fGSDM = fGSDM;
45   - this.fFGSDM = fFGSDM;
46   - this.fDriverRequestArr = fDriverRequestArr;
47   - this.fError = fError;
48   - }
49   -
50   -
51   - /**
52   - * Gets the fIPAddress value for this GetUnusual.
53   - *
54   - * @return fIPAddress
55   - */
56   - public String getFIPAddress() {
57   - return fIPAddress;
58   - }
59   -
60   -
61   - /**
62   - * Sets the fIPAddress value for this GetUnusual.
63   - *
64   - * @param fIPAddress
65   - */
66   - public void setFIPAddress(String fIPAddress) {
67   - this.fIPAddress = fIPAddress;
68   - }
69   -
70   -
71   - /**
72   - * Gets the fUserName value for this GetUnusual.
73   - *
74   - * @return fUserName
75   - */
76   - public String getFUserName() {
77   - return fUserName;
78   - }
79   -
80   -
81   - /**
82   - * Sets the fUserName value for this GetUnusual.
83   - *
84   - * @param fUserName
85   - */
86   - public void setFUserName(String fUserName) {
87   - this.fUserName = fUserName;
88   - }
89   -
90   -
91   - /**
92   - * Gets the fPassword value for this GetUnusual.
93   - *
94   - * @return fPassword
95   - */
96   - public String getFPassword() {
97   - return fPassword;
98   - }
99   -
100   -
101   - /**
102   - * Sets the fPassword value for this GetUnusual.
103   - *
104   - * @param fPassword
105   - */
106   - public void setFPassword(String fPassword) {
107   - this.fPassword = fPassword;
108   - }
109   -
110   -
111   - /**
112   - * Gets the fDate value for this GetUnusual.
113   - *
114   - * @return fDate
115   - */
116   - public String getFDate() {
117   - return fDate;
118   - }
119   -
120   -
121   - /**
122   - * Sets the fDate value for this GetUnusual.
123   - *
124   - * @param fDate
125   - */
126   - public void setFDate(String fDate) {
127   - this.fDate = fDate;
128   - }
129   -
130   -
131   - /**
132   - * Gets the fGSDM value for this GetUnusual.
133   - *
134   - * @return fGSDM
135   - */
136   - public String getFGSDM() {
137   - return fGSDM;
138   - }
139   -
140   -
141   - /**
142   - * Sets the fGSDM value for this GetUnusual.
143   - *
144   - * @param fGSDM
145   - */
146   - public void setFGSDM(String fGSDM) {
147   - this.fGSDM = fGSDM;
148   - }
149   -
150   -
151   - /**
152   - * Gets the fFGSDM value for this GetUnusual.
153   - *
154   - * @return fFGSDM
155   - */
156   - public String getFFGSDM() {
157   - return fFGSDM;
158   - }
159   -
160   -
161   - /**
162   - * Sets the fFGSDM value for this GetUnusual.
163   - *
164   - * @param fFGSDM
165   - */
166   - public void setFFGSDM(String fFGSDM) {
167   - this.fFGSDM = fFGSDM;
168   - }
169   -
170   -
171   - /**
172   - * Gets the fDriverRequestArr value for this GetUnusual.
173   - *
174   - * @return fDriverRequestArr
175   - */
176   - public String[] getFDriverRequestArr() {
177   - return fDriverRequestArr;
178   - }
179   -
180   -
181   - /**
182   - * Sets the fDriverRequestArr value for this GetUnusual.
183   - *
184   - * @param fDriverRequestArr
185   - */
186   - public void setFDriverRequestArr(String[] fDriverRequestArr) {
187   - this.fDriverRequestArr = fDriverRequestArr;
188   - }
189   -
190   -
191   - /**
192   - * Gets the fError value for this GetUnusual.
193   - *
194   - * @return fError
195   - */
196   - public String getFError() {
197   - return fError;
198   - }
199   -
200   -
201   - /**
202   - * Sets the fError value for this GetUnusual.
203   - *
204   - * @param fError
205   - */
206   - public void setFError(String fError) {
207   - this.fError = fError;
208   - }
209   -
210   - private Object __equalsCalc = null;
211   - @SuppressWarnings("unused")
212   - public synchronized boolean equals(Object obj) {
213   - if (!(obj instanceof GetUnusual)) return false;
214   - GetUnusual other = (GetUnusual) obj;
215   - if (obj == null) return false;
216   - if (this == obj) return true;
217   - if (__equalsCalc != null) {
218   - return (__equalsCalc == obj);
219   - }
220   - __equalsCalc = obj;
221   - boolean _equals;
222   - _equals = true &&
223   - ((this.fIPAddress==null && other.getFIPAddress()==null) ||
224   - (this.fIPAddress!=null &&
225   - this.fIPAddress.equals(other.getFIPAddress()))) &&
226   - ((this.fUserName==null && other.getFUserName()==null) ||
227   - (this.fUserName!=null &&
228   - this.fUserName.equals(other.getFUserName()))) &&
229   - ((this.fPassword==null && other.getFPassword()==null) ||
230   - (this.fPassword!=null &&
231   - this.fPassword.equals(other.getFPassword()))) &&
232   - ((this.fDate==null && other.getFDate()==null) ||
233   - (this.fDate!=null &&
234   - this.fDate.equals(other.getFDate()))) &&
235   - ((this.fGSDM==null && other.getFGSDM()==null) ||
236   - (this.fGSDM!=null &&
237   - this.fGSDM.equals(other.getFGSDM()))) &&
238   - ((this.fFGSDM==null && other.getFFGSDM()==null) ||
239   - (this.fFGSDM!=null &&
240   - this.fFGSDM.equals(other.getFFGSDM()))) &&
241   - ((this.fDriverRequestArr==null && other.getFDriverRequestArr()==null) ||
242   - (this.fDriverRequestArr!=null &&
243   - java.util.Arrays.equals(this.fDriverRequestArr, other.getFDriverRequestArr()))) &&
244   - ((this.fError==null && other.getFError()==null) ||
245   - (this.fError!=null &&
246   - this.fError.equals(other.getFError())));
247   - __equalsCalc = null;
248   - return _equals;
249   - }
250   -
251   - private boolean __hashCodeCalc = false;
252   - public synchronized int hashCode() {
253   - if (__hashCodeCalc) {
254   - return 0;
255   - }
256   - __hashCodeCalc = true;
257   - int _hashCode = 1;
258   - if (getFIPAddress() != null) {
259   - _hashCode += getFIPAddress().hashCode();
260   - }
261   - if (getFUserName() != null) {
262   - _hashCode += getFUserName().hashCode();
263   - }
264   - if (getFPassword() != null) {
265   - _hashCode += getFPassword().hashCode();
266   - }
267   - if (getFDate() != null) {
268   - _hashCode += getFDate().hashCode();
269   - }
270   - if (getFGSDM() != null) {
271   - _hashCode += getFGSDM().hashCode();
272   - }
273   - if (getFFGSDM() != null) {
274   - _hashCode += getFFGSDM().hashCode();
275   - }
276   - if (getFDriverRequestArr() != null) {
277   - for (int i=0;
278   - i<java.lang.reflect.Array.getLength(getFDriverRequestArr());
279   - i++) {
280   - Object obj = java.lang.reflect.Array.get(getFDriverRequestArr(), i);
281   - if (obj != null &&
282   - !obj.getClass().isArray()) {
283   - _hashCode += obj.hashCode();
284   - }
285   - }
286   - }
287   - if (getFError() != null) {
288   - _hashCode += getFError().hashCode();
289   - }
290   - __hashCodeCalc = false;
291   - return _hashCode;
292   - }
293   -
294   - // Type metadata
295   - private static org.apache.axis.description.TypeDesc typeDesc =
296   - new org.apache.axis.description.TypeDesc(GetUnusual.class, true);
297   -
298   - static {
299   - typeDesc.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", ">getUnusual"));
300   - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
301   - elemField.setFieldName("FIPAddress");
302   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fIPAddress"));
303   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
304   - elemField.setMinOccurs(0);
305   - elemField.setNillable(false);
306   - typeDesc.addFieldDesc(elemField);
307   - elemField = new org.apache.axis.description.ElementDesc();
308   - elemField.setFieldName("FUserName");
309   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fUserName"));
310   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
311   - elemField.setMinOccurs(0);
312   - elemField.setNillable(false);
313   - typeDesc.addFieldDesc(elemField);
314   - elemField = new org.apache.axis.description.ElementDesc();
315   - elemField.setFieldName("FPassword");
316   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fPassword"));
317   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
318   - elemField.setMinOccurs(0);
319   - elemField.setNillable(false);
320   - typeDesc.addFieldDesc(elemField);
321   - elemField = new org.apache.axis.description.ElementDesc();
322   - elemField.setFieldName("FDate");
323   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fDate"));
324   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
325   - elemField.setMinOccurs(0);
326   - elemField.setNillable(false);
327   - typeDesc.addFieldDesc(elemField);
328   - elemField = new org.apache.axis.description.ElementDesc();
329   - elemField.setFieldName("FGSDM");
330   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fGSDM"));
331   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
332   - elemField.setMinOccurs(0);
333   - elemField.setNillable(false);
334   - typeDesc.addFieldDesc(elemField);
335   - elemField = new org.apache.axis.description.ElementDesc();
336   - elemField.setFieldName("FFGSDM");
337   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fFGSDM"));
338   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
339   - elemField.setMinOccurs(0);
340   - elemField.setNillable(false);
341   - typeDesc.addFieldDesc(elemField);
342   - elemField = new org.apache.axis.description.ElementDesc();
343   - elemField.setFieldName("FDriverRequestArr");
344   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fDriverRequestArr"));
345   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
346   - elemField.setMinOccurs(0);
347   - elemField.setNillable(false);
348   - elemField.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
349   - typeDesc.addFieldDesc(elemField);
350   - elemField = new org.apache.axis.description.ElementDesc();
351   - elemField.setFieldName("FError");
352   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
353   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
354   - elemField.setMinOccurs(0);
355   - elemField.setNillable(false);
356   - typeDesc.addFieldDesc(elemField);
357   - }
358   -
359   - /**
360   - * Return type metadata object
361   - */
362   - public static org.apache.axis.description.TypeDesc getTypeDesc() {
363   - return typeDesc;
364   - }
365   -
366   - /**
367   - * Get Custom Serializer
368   - */
369   - @SuppressWarnings("rawtypes")
370   - public static org.apache.axis.encoding.Serializer getSerializer(
371   - String mechType,
372   - Class _javaType,
373   - javax.xml.namespace.QName _xmlType) {
374   - return
375   - new org.apache.axis.encoding.ser.BeanSerializer(
376   - _javaType, _xmlType, typeDesc);
377   - }
378   -
379   - /**
380   - * Get Custom Deserializer
381   - */
382   - @SuppressWarnings("rawtypes")
383   - public static org.apache.axis.encoding.Deserializer getDeserializer(
384   - String mechType,
385   - Class _javaType,
386   - javax.xml.namespace.QName _xmlType) {
387   - return
388   - new org.apache.axis.encoding.ser.BeanDeserializer(
389   - _javaType, _xmlType, typeDesc);
390   - }
391   -
392   -}
src/main/java/com/bsth/old_sys_wsclient/company_service/GetUnusualResponse.java deleted 100644 → 0
1   -/**
2   - * GetUnusualResponse.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.old_sys_wsclient.company_service;
9   -
10   -@SuppressWarnings("serial")
11   -public class GetUnusualResponse implements java.io.Serializable {
12   - private boolean getUnusualResult;
13   -
14   - private String[] fDriverRequestArr;
15   -
16   - private String fError;
17   -
18   - public GetUnusualResponse() {
19   - }
20   -
21   - public GetUnusualResponse(
22   - boolean getUnusualResult,
23   - String[] fDriverRequestArr,
24   - String fError) {
25   - this.getUnusualResult = getUnusualResult;
26   - this.fDriverRequestArr = fDriverRequestArr;
27   - this.fError = fError;
28   - }
29   -
30   -
31   - /**
32   - * Gets the getUnusualResult value for this GetUnusualResponse.
33   - *
34   - * @return getUnusualResult
35   - */
36   - public boolean isGetUnusualResult() {
37   - return getUnusualResult;
38   - }
39   -
40   -
41   - /**
42   - * Sets the getUnusualResult value for this GetUnusualResponse.
43   - *
44   - * @param getUnusualResult
45   - */
46   - public void setGetUnusualResult(boolean getUnusualResult) {
47   - this.getUnusualResult = getUnusualResult;
48   - }
49   -
50   -
51   - /**
52   - * Gets the fDriverRequestArr value for this GetUnusualResponse.
53   - *
54   - * @return fDriverRequestArr
55   - */
56   - public String[] getFDriverRequestArr() {
57   - return fDriverRequestArr;
58   - }
59   -
60   -
61   - /**
62   - * Sets the fDriverRequestArr value for this GetUnusualResponse.
63   - *
64   - * @param fDriverRequestArr
65   - */
66   - public void setFDriverRequestArr(String[] fDriverRequestArr) {
67   - this.fDriverRequestArr = fDriverRequestArr;
68   - }
69   -
70   -
71   - /**
72   - * Gets the fError value for this GetUnusualResponse.
73   - *
74   - * @return fError
75   - */
76   - public String getFError() {
77   - return fError;
78   - }
79   -
80   -
81   - /**
82   - * Sets the fError value for this GetUnusualResponse.
83   - *
84   - * @param fError
85   - */
86   - public void setFError(String fError) {
87   - this.fError = fError;
88   - }
89   -
90   - private Object __equalsCalc = null;
91   - @SuppressWarnings("unused")
92   - public synchronized boolean equals(Object obj) {
93   - if (!(obj instanceof GetUnusualResponse)) return false;
94   - GetUnusualResponse other = (GetUnusualResponse) obj;
95   - if (obj == null) return false;
96   - if (this == obj) return true;
97   - if (__equalsCalc != null) {
98   - return (__equalsCalc == obj);
99   - }
100   - __equalsCalc = obj;
101   - boolean _equals;
102   - _equals = true &&
103   - this.getUnusualResult == other.isGetUnusualResult() &&
104   - ((this.fDriverRequestArr==null && other.getFDriverRequestArr()==null) ||
105   - (this.fDriverRequestArr!=null &&
106   - java.util.Arrays.equals(this.fDriverRequestArr, other.getFDriverRequestArr()))) &&
107   - ((this.fError==null && other.getFError()==null) ||
108   - (this.fError!=null &&
109   - this.fError.equals(other.getFError())));
110   - __equalsCalc = null;
111   - return _equals;
112   - }
113   -
114   - private boolean __hashCodeCalc = false;
115   - public synchronized int hashCode() {
116   - if (__hashCodeCalc) {
117   - return 0;
118   - }
119   - __hashCodeCalc = true;
120   - int _hashCode = 1;
121   - _hashCode += (isGetUnusualResult() ? Boolean.TRUE : Boolean.FALSE).hashCode();
122   - if (getFDriverRequestArr() != null) {
123   - for (int i=0;
124   - i<java.lang.reflect.Array.getLength(getFDriverRequestArr());
125   - i++) {
126   - Object obj = java.lang.reflect.Array.get(getFDriverRequestArr(), i);
127   - if (obj != null &&
128   - !obj.getClass().isArray()) {
129   - _hashCode += obj.hashCode();
130   - }
131   - }
132   - }
133   - if (getFError() != null) {
134   - _hashCode += getFError().hashCode();
135   - }
136   - __hashCodeCalc = false;
137   - return _hashCode;
138   - }
139   -
140   - // Type metadata
141   - private static org.apache.axis.description.TypeDesc typeDesc =
142   - new org.apache.axis.description.TypeDesc(GetUnusualResponse.class, true);
143   -
144   - static {
145   - typeDesc.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", ">getUnusualResponse"));
146   - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
147   - elemField.setFieldName("getUnusualResult");
148   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "getUnusualResult"));
149   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
150   - elemField.setNillable(false);
151   - typeDesc.addFieldDesc(elemField);
152   - elemField = new org.apache.axis.description.ElementDesc();
153   - elemField.setFieldName("FDriverRequestArr");
154   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fDriverRequestArr"));
155   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
156   - elemField.setMinOccurs(0);
157   - elemField.setNillable(false);
158   - elemField.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "string"));
159   - typeDesc.addFieldDesc(elemField);
160   - elemField = new org.apache.axis.description.ElementDesc();
161   - elemField.setFieldName("FError");
162   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "fError"));
163   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
164   - elemField.setMinOccurs(0);
165   - elemField.setNillable(false);
166   - typeDesc.addFieldDesc(elemField);
167   - }
168   -
169   - /**
170   - * Return type metadata object
171   - */
172   - public static org.apache.axis.description.TypeDesc getTypeDesc() {
173   - return typeDesc;
174   - }
175   -
176   - /**
177   - * Get Custom Serializer
178   - */
179   - @SuppressWarnings("rawtypes")
180   - public static org.apache.axis.encoding.Serializer getSerializer(
181   - String mechType,
182   - Class _javaType,
183   - javax.xml.namespace.QName _xmlType) {
184   - return
185   - new org.apache.axis.encoding.ser.BeanSerializer(
186   - _javaType, _xmlType, typeDesc);
187   - }
188   -
189   - /**
190   - * Get Custom Deserializer
191   - */
192   - @SuppressWarnings("rawtypes")
193   - public static org.apache.axis.encoding.Deserializer getDeserializer(
194   - String mechType,
195   - Class _javaType,
196   - javax.xml.namespace.QName _xmlType) {
197   - return
198   - new org.apache.axis.encoding.ser.BeanDeserializer(
199   - _javaType, _xmlType, typeDesc);
200   - }
201   -
202   -}
src/main/java/com/bsth/old_sys_wsclient/company_service/holders/GetHistoryJCCByXLBMResponseFDataTableHolder.java deleted 100644 → 0
1   -/**
2   - * GetHistoryJCCByXLBMResponseFDataTableHolder.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.old_sys_wsclient.company_service.holders;
9   -
10   -import com.bsth.old_sys_wsclient.company_service.GetHistoryJCCByXLBMResponseFDataTable;
11   -
12   -public final class GetHistoryJCCByXLBMResponseFDataTableHolder implements javax.xml.rpc.holders.Holder {
13   - public GetHistoryJCCByXLBMResponseFDataTable value;
14   -
15   - public GetHistoryJCCByXLBMResponseFDataTableHolder() {
16   - }
17   -
18   - public GetHistoryJCCByXLBMResponseFDataTableHolder(GetHistoryJCCByXLBMResponseFDataTable value) {
19   - this.value = value;
20   - }
21   -
22   -}
src/main/java/com/bsth/old_sys_wsclient/company_service/holders/copy/ArrayOfStringHolder.java deleted 100644 → 0
1   -/**
2   - * ArrayOfStringHolder.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.old_sys_wsclient.company_service.holders.copy;
9   -
10   -public final class ArrayOfStringHolder implements javax.xml.rpc.holders.Holder {
11   - public String[] value;
12   -
13   - public ArrayOfStringHolder() {
14   - }
15   -
16   - public ArrayOfStringHolder(String[] value) {
17   - this.value = value;
18   - }
19   -
20   -}
src/main/java/com/bsth/old_sys_wsclient/company_service/holders/copy/GetHistoryJCCByXLBMResponseFDataTableHolder.java deleted 100644 → 0
1   -/**
2   - * GetHistoryJCCByXLBMResponseFDataTableHolder.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.old_sys_wsclient.company_service.holders.copy;
9   -
10   -import com.bsth.old_sys_wsclient.company_service.GetHistoryJCCByXLBMResponseFDataTable;
11   -
12   -public final class GetHistoryJCCByXLBMResponseFDataTableHolder implements javax.xml.rpc.holders.Holder {
13   - public GetHistoryJCCByXLBMResponseFDataTable value;
14   -
15   - public GetHistoryJCCByXLBMResponseFDataTableHolder() {
16   - }
17   -
18   - public GetHistoryJCCByXLBMResponseFDataTableHolder(GetHistoryJCCByXLBMResponseFDataTable value) {
19   - this.value = value;
20   - }
21   -
22   -}
src/main/java/com/bsth/old_sys_wsclient/nh_ld/ClsLDInfo.java deleted 100644 → 0
1   -package com.bsth.old_sys_wsclient.nh_ld;
2   -
3   -/**
4   - * ClsLDInfo.java
5   - *
6   - * This file was auto-generated from WSDL
7   - * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
8   - */
9   -
10   -
11   -public class ClsLDInfo implements java.io.Serializable {
12   - private java.lang.String m_strYYRQ;
13   -
14   - private java.lang.String m_strNBBM;
15   -
16   - private java.lang.String m_strXLBM;
17   -
18   - private ClsSubInfo[] m_SubInfos;
19   -
20   - public ClsLDInfo() {
21   - }
22   -
23   - public ClsLDInfo(
24   - java.lang.String m_strYYRQ,
25   - java.lang.String m_strNBBM,
26   - java.lang.String m_strXLBM,
27   - ClsSubInfo[] m_SubInfos) {
28   - this.m_strYYRQ = m_strYYRQ;
29   - this.m_strNBBM = m_strNBBM;
30   - this.m_strXLBM = m_strXLBM;
31   - this.m_SubInfos = m_SubInfos;
32   - }
33   -
34   -
35   - /**
36   - * Gets the m_strYYRQ value for this ClsLDInfo.
37   - *
38   - * @return m_strYYRQ
39   - */
40   - public java.lang.String getM_strYYRQ() {
41   - return m_strYYRQ;
42   - }
43   -
44   -
45   - /**
46   - * Sets the m_strYYRQ value for this ClsLDInfo.
47   - *
48   - * @param m_strYYRQ
49   - */
50   - public void setM_strYYRQ(java.lang.String m_strYYRQ) {
51   - this.m_strYYRQ = m_strYYRQ;
52   - }
53   -
54   -
55   - /**
56   - * Gets the m_strNBBM value for this ClsLDInfo.
57   - *
58   - * @return m_strNBBM
59   - */
60   - public java.lang.String getM_strNBBM() {
61   - return m_strNBBM;
62   - }
63   -
64   -
65   - /**
66   - * Sets the m_strNBBM value for this ClsLDInfo.
67   - *
68   - * @param m_strNBBM
69   - */
70   - public void setM_strNBBM(java.lang.String m_strNBBM) {
71   - this.m_strNBBM = m_strNBBM;
72   - }
73   -
74   -
75   - /**
76   - * Gets the m_strXLBM value for this ClsLDInfo.
77   - *
78   - * @return m_strXLBM
79   - */
80   - public java.lang.String getM_strXLBM() {
81   - return m_strXLBM;
82   - }
83   -
84   -
85   - /**
86   - * Sets the m_strXLBM value for this ClsLDInfo.
87   - *
88   - * @param m_strXLBM
89   - */
90   - public void setM_strXLBM(java.lang.String m_strXLBM) {
91   - this.m_strXLBM = m_strXLBM;
92   - }
93   -
94   -
95   - /**
96   - * Gets the m_SubInfos value for this ClsLDInfo.
97   - *
98   - * @return m_SubInfos
99   - */
100   - public ClsSubInfo[] getM_SubInfos() {
101   - return m_SubInfos;
102   - }
103   -
104   -
105   - /**
106   - * Sets the m_SubInfos value for this ClsLDInfo.
107   - *
108   - * @param m_SubInfos
109   - */
110   - public void setM_SubInfos(ClsSubInfo[] m_SubInfos) {
111   - this.m_SubInfos = m_SubInfos;
112   - }
113   -
114   - private java.lang.Object __equalsCalc = null;
115   - public synchronized boolean equals(java.lang.Object obj) {
116   - if (!(obj instanceof ClsLDInfo)) return false;
117   - ClsLDInfo other = (ClsLDInfo) obj;
118   - if (obj == null) return false;
119   - if (this == obj) return true;
120   - if (__equalsCalc != null) {
121   - return (__equalsCalc == obj);
122   - }
123   - __equalsCalc = obj;
124   - boolean _equals;
125   - _equals = true &&
126   - ((this.m_strYYRQ==null && other.getM_strYYRQ()==null) ||
127   - (this.m_strYYRQ!=null &&
128   - this.m_strYYRQ.equals(other.getM_strYYRQ()))) &&
129   - ((this.m_strNBBM==null && other.getM_strNBBM()==null) ||
130   - (this.m_strNBBM!=null &&
131   - this.m_strNBBM.equals(other.getM_strNBBM()))) &&
132   - ((this.m_strXLBM==null && other.getM_strXLBM()==null) ||
133   - (this.m_strXLBM!=null &&
134   - this.m_strXLBM.equals(other.getM_strXLBM()))) &&
135   - ((this.m_SubInfos==null && other.getM_SubInfos()==null) ||
136   - (this.m_SubInfos!=null &&
137   - java.util.Arrays.equals(this.m_SubInfos, other.getM_SubInfos())));
138   - __equalsCalc = null;
139   - return _equals;
140   - }
141   -
142   - private boolean __hashCodeCalc = false;
143   - public synchronized int hashCode() {
144   - if (__hashCodeCalc) {
145   - return 0;
146   - }
147   - __hashCodeCalc = true;
148   - int _hashCode = 1;
149   - if (getM_strYYRQ() != null) {
150   - _hashCode += getM_strYYRQ().hashCode();
151   - }
152   - if (getM_strNBBM() != null) {
153   - _hashCode += getM_strNBBM().hashCode();
154   - }
155   - if (getM_strXLBM() != null) {
156   - _hashCode += getM_strXLBM().hashCode();
157   - }
158   - if (getM_SubInfos() != null) {
159   - for (int i=0;
160   - i<java.lang.reflect.Array.getLength(getM_SubInfos());
161   - i++) {
162   - java.lang.Object obj = java.lang.reflect.Array.get(getM_SubInfos(), i);
163   - if (obj != null &&
164   - !obj.getClass().isArray()) {
165   - _hashCode += obj.hashCode();
166   - }
167   - }
168   - }
169   - __hashCodeCalc = false;
170   - return _hashCode;
171   - }
172   -
173   - // Type metadata
174   - private static org.apache.axis.description.TypeDesc typeDesc =
175   - new org.apache.axis.description.TypeDesc(ClsLDInfo.class, true);
176   -
177   - static {
178   - typeDesc.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", "clsLDInfo"));
179   - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
180   - elemField.setFieldName("m_strYYRQ");
181   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strYYRQ"));
182   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
183   - elemField.setMinOccurs(0);
184   - elemField.setNillable(false);
185   - typeDesc.addFieldDesc(elemField);
186   - elemField = new org.apache.axis.description.ElementDesc();
187   - elemField.setFieldName("m_strNBBM");
188   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strNBBM"));
189   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
190   - elemField.setMinOccurs(0);
191   - elemField.setNillable(false);
192   - typeDesc.addFieldDesc(elemField);
193   - elemField = new org.apache.axis.description.ElementDesc();
194   - elemField.setFieldName("m_strXLBM");
195   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strXLBM"));
196   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
197   - elemField.setMinOccurs(0);
198   - elemField.setNillable(false);
199   - typeDesc.addFieldDesc(elemField);
200   - elemField = new org.apache.axis.description.ElementDesc();
201   - elemField.setFieldName("m_SubInfos");
202   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_SubInfos"));
203   - elemField.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", "clsSubInfo"));
204   - elemField.setMinOccurs(0);
205   - elemField.setNillable(false);
206   - elemField.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "clsSubInfo"));
207   - typeDesc.addFieldDesc(elemField);
208   - }
209   -
210   - /**
211   - * Return type metadata object
212   - */
213   - public static org.apache.axis.description.TypeDesc getTypeDesc() {
214   - return typeDesc;
215   - }
216   -
217   - /**
218   - * Get Custom Serializer
219   - */
220   - public static org.apache.axis.encoding.Serializer getSerializer(
221   - java.lang.String mechType,
222   - java.lang.Class _javaType,
223   - javax.xml.namespace.QName _xmlType) {
224   - return
225   - new org.apache.axis.encoding.ser.BeanSerializer(
226   - _javaType, _xmlType, typeDesc);
227   - }
228   -
229   - /**
230   - * Get Custom Deserializer
231   - */
232   - public static org.apache.axis.encoding.Deserializer getDeserializer(
233   - java.lang.String mechType,
234   - java.lang.Class _javaType,
235   - javax.xml.namespace.QName _xmlType) {
236   - return
237   - new org.apache.axis.encoding.ser.BeanDeserializer(
238   - _javaType, _xmlType, typeDesc);
239   - }
240   -
241   -}
src/main/java/com/bsth/old_sys_wsclient/nh_ld/ClsSubInfo.java deleted 100644 → 0
1   -package com.bsth.old_sys_wsclient.nh_ld;
2   -
3   -/**
4   - * ClsSubInfo.java
5   - *
6   - * This file was auto-generated from WSDL
7   - * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
8   - */
9   -
10   -
11   -public class ClsSubInfo implements java.io.Serializable {
12   - private double m_dblJZL1;
13   -
14   - private double m_dblJZL2;
15   -
16   - private java.lang.String m_strYHLX1;
17   -
18   - private java.lang.String m_strYHLX2;
19   -
20   - private java.lang.String m_strJYD1;
21   -
22   - private java.lang.String m_strJYD2;
23   -
24   - private java.lang.String m_strJYG1;
25   -
26   - private java.lang.String m_strJYG2;
27   -
28   - private double m_dblCCCY;
29   -
30   - private double m_dblYH;
31   -
32   - private double m_dblJCCY;
33   -
34   - private double m_dblJCLC;
35   -
36   - private double m_dblCCLC;
37   -
38   - private double m_dblNS;
39   -
40   - private java.lang.String m_strDDY;
41   -
42   - private java.lang.String m_strLP;
43   -
44   - private java.lang.String m_strYYZT;
45   -
46   - private java.lang.String m_strJSY;
47   -
48   - private java.lang.String m_strJSYKQ;
49   -
50   - private java.lang.String m_strSPY;
51   -
52   - private java.lang.String m_strSPYKQ;
53   -
54   - private double m_dblJHLC;
55   -
56   - private double m_dblYYLC;
57   -
58   - private double m_dblKSLC;
59   -
60   - private double m_dblCJLC;
61   -
62   - private double m_dblZJLC;
63   -
64   - private double m_dblSJJHLC;
65   -
66   - private double m_dblZLC;
67   -
68   - private int m_intJHBC;
69   -
70   - private int m_intSJBC;
71   -
72   - private int m_intCJBC;
73   -
74   - private int m_intZJBC;
75   -
76   - private int m_intSJJHBC;
77   -
78   - private java.lang.String m_strCJYY;
79   -
80   - private java.lang.String m_strBZ;
81   -
82   - private double m_dblLBGS;
83   -
84   - private double m_dblLBLC;
85   -
86   - private java.lang.String m_strLBYY;
87   -
88   - public ClsSubInfo() {
89   - }
90   -
91   - public ClsSubInfo(
92   - double m_dblJZL1,
93   - double m_dblJZL2,
94   - java.lang.String m_strYHLX1,
95   - java.lang.String m_strYHLX2,
96   - java.lang.String m_strJYD1,
97   - java.lang.String m_strJYD2,
98   - java.lang.String m_strJYG1,
99   - java.lang.String m_strJYG2,
100   - double m_dblCCCY,
101   - double m_dblYH,
102   - double m_dblJCCY,
103   - double m_dblJCLC,
104   - double m_dblCCLC,
105   - double m_dblNS,
106   - java.lang.String m_strDDY,
107   - java.lang.String m_strLP,
108   - java.lang.String m_strYYZT,
109   - java.lang.String m_strJSY,
110   - java.lang.String m_strJSYKQ,
111   - java.lang.String m_strSPY,
112   - java.lang.String m_strSPYKQ,
113   - double m_dblJHLC,
114   - double m_dblYYLC,
115   - double m_dblKSLC,
116   - double m_dblCJLC,
117   - double m_dblZJLC,
118   - double m_dblSJJHLC,
119   - double m_dblZLC,
120   - int m_intJHBC,
121   - int m_intSJBC,
122   - int m_intCJBC,
123   - int m_intZJBC,
124   - int m_intSJJHBC,
125   - java.lang.String m_strCJYY,
126   - java.lang.String m_strBZ,
127   - double m_dblLBGS,
128   - double m_dblLBLC,
129   - java.lang.String m_strLBYY) {
130   - this.m_dblJZL1 = m_dblJZL1;
131   - this.m_dblJZL2 = m_dblJZL2;
132   - this.m_strYHLX1 = m_strYHLX1;
133   - this.m_strYHLX2 = m_strYHLX2;
134   - this.m_strJYD1 = m_strJYD1;
135   - this.m_strJYD2 = m_strJYD2;
136   - this.m_strJYG1 = m_strJYG1;
137   - this.m_strJYG2 = m_strJYG2;
138   - this.m_dblCCCY = m_dblCCCY;
139   - this.m_dblYH = m_dblYH;
140   - this.m_dblJCCY = m_dblJCCY;
141   - this.m_dblJCLC = m_dblJCLC;
142   - this.m_dblCCLC = m_dblCCLC;
143   - this.m_dblNS = m_dblNS;
144   - this.m_strDDY = m_strDDY;
145   - this.m_strLP = m_strLP;
146   - this.m_strYYZT = m_strYYZT;
147   - this.m_strJSY = m_strJSY;
148   - this.m_strJSYKQ = m_strJSYKQ;
149   - this.m_strSPY = m_strSPY;
150   - this.m_strSPYKQ = m_strSPYKQ;
151   - this.m_dblJHLC = m_dblJHLC;
152   - this.m_dblYYLC = m_dblYYLC;
153   - this.m_dblKSLC = m_dblKSLC;
154   - this.m_dblCJLC = m_dblCJLC;
155   - this.m_dblZJLC = m_dblZJLC;
156   - this.m_dblSJJHLC = m_dblSJJHLC;
157   - this.m_dblZLC = m_dblZLC;
158   - this.m_intJHBC = m_intJHBC;
159   - this.m_intSJBC = m_intSJBC;
160   - this.m_intCJBC = m_intCJBC;
161   - this.m_intZJBC = m_intZJBC;
162   - this.m_intSJJHBC = m_intSJJHBC;
163   - this.m_strCJYY = m_strCJYY;
164   - this.m_strBZ = m_strBZ;
165   - this.m_dblLBGS = m_dblLBGS;
166   - this.m_dblLBLC = m_dblLBLC;
167   - this.m_strLBYY = m_strLBYY;
168   - }
169   -
170   -
171   - /**
172   - * Gets the m_dblJZL1 value for this ClsSubInfo.
173   - *
174   - * @return m_dblJZL1
175   - */
176   - public double getM_dblJZL1() {
177   - return m_dblJZL1;
178   - }
179   -
180   -
181   - /**
182   - * Sets the m_dblJZL1 value for this ClsSubInfo.
183   - *
184   - * @param m_dblJZL1
185   - */
186   - public void setM_dblJZL1(double m_dblJZL1) {
187   - this.m_dblJZL1 = m_dblJZL1;
188   - }
189   -
190   -
191   - /**
192   - * Gets the m_dblJZL2 value for this ClsSubInfo.
193   - *
194   - * @return m_dblJZL2
195   - */
196   - public double getM_dblJZL2() {
197   - return m_dblJZL2;
198   - }
199   -
200   -
201   - /**
202   - * Sets the m_dblJZL2 value for this ClsSubInfo.
203   - *
204   - * @param m_dblJZL2
205   - */
206   - public void setM_dblJZL2(double m_dblJZL2) {
207   - this.m_dblJZL2 = m_dblJZL2;
208   - }
209   -
210   -
211   - /**
212   - * Gets the m_strYHLX1 value for this ClsSubInfo.
213   - *
214   - * @return m_strYHLX1
215   - */
216   - public java.lang.String getM_strYHLX1() {
217   - return m_strYHLX1;
218   - }
219   -
220   -
221   - /**
222   - * Sets the m_strYHLX1 value for this ClsSubInfo.
223   - *
224   - * @param m_strYHLX1
225   - */
226   - public void setM_strYHLX1(java.lang.String m_strYHLX1) {
227   - this.m_strYHLX1 = m_strYHLX1;
228   - }
229   -
230   -
231   - /**
232   - * Gets the m_strYHLX2 value for this ClsSubInfo.
233   - *
234   - * @return m_strYHLX2
235   - */
236   - public java.lang.String getM_strYHLX2() {
237   - return m_strYHLX2;
238   - }
239   -
240   -
241   - /**
242   - * Sets the m_strYHLX2 value for this ClsSubInfo.
243   - *
244   - * @param m_strYHLX2
245   - */
246   - public void setM_strYHLX2(java.lang.String m_strYHLX2) {
247   - this.m_strYHLX2 = m_strYHLX2;
248   - }
249   -
250   -
251   - /**
252   - * Gets the m_strJYD1 value for this ClsSubInfo.
253   - *
254   - * @return m_strJYD1
255   - */
256   - public java.lang.String getM_strJYD1() {
257   - return m_strJYD1;
258   - }
259   -
260   -
261   - /**
262   - * Sets the m_strJYD1 value for this ClsSubInfo.
263   - *
264   - * @param m_strJYD1
265   - */
266   - public void setM_strJYD1(java.lang.String m_strJYD1) {
267   - this.m_strJYD1 = m_strJYD1;
268   - }
269   -
270   -
271   - /**
272   - * Gets the m_strJYD2 value for this ClsSubInfo.
273   - *
274   - * @return m_strJYD2
275   - */
276   - public java.lang.String getM_strJYD2() {
277   - return m_strJYD2;
278   - }
279   -
280   -
281   - /**
282   - * Sets the m_strJYD2 value for this ClsSubInfo.
283   - *
284   - * @param m_strJYD2
285   - */
286   - public void setM_strJYD2(java.lang.String m_strJYD2) {
287   - this.m_strJYD2 = m_strJYD2;
288   - }
289   -
290   -
291   - /**
292   - * Gets the m_strJYG1 value for this ClsSubInfo.
293   - *
294   - * @return m_strJYG1
295   - */
296   - public java.lang.String getM_strJYG1() {
297   - return m_strJYG1;
298   - }
299   -
300   -
301   - /**
302   - * Sets the m_strJYG1 value for this ClsSubInfo.
303   - *
304   - * @param m_strJYG1
305   - */
306   - public void setM_strJYG1(java.lang.String m_strJYG1) {
307   - this.m_strJYG1 = m_strJYG1;
308   - }
309   -
310   -
311   - /**
312   - * Gets the m_strJYG2 value for this ClsSubInfo.
313   - *
314   - * @return m_strJYG2
315   - */
316   - public java.lang.String getM_strJYG2() {
317   - return m_strJYG2;
318   - }
319   -
320   -
321   - /**
322   - * Sets the m_strJYG2 value for this ClsSubInfo.
323   - *
324   - * @param m_strJYG2
325   - */
326   - public void setM_strJYG2(java.lang.String m_strJYG2) {
327   - this.m_strJYG2 = m_strJYG2;
328   - }
329   -
330   -
331   - /**
332   - * Gets the m_dblCCCY value for this ClsSubInfo.
333   - *
334   - * @return m_dblCCCY
335   - */
336   - public double getM_dblCCCY() {
337   - return m_dblCCCY;
338   - }
339   -
340   -
341   - /**
342   - * Sets the m_dblCCCY value for this ClsSubInfo.
343   - *
344   - * @param m_dblCCCY
345   - */
346   - public void setM_dblCCCY(double m_dblCCCY) {
347   - this.m_dblCCCY = m_dblCCCY;
348   - }
349   -
350   -
351   - /**
352   - * Gets the m_dblYH value for this ClsSubInfo.
353   - *
354   - * @return m_dblYH
355   - */
356   - public double getM_dblYH() {
357   - return m_dblYH;
358   - }
359   -
360   -
361   - /**
362   - * Sets the m_dblYH value for this ClsSubInfo.
363   - *
364   - * @param m_dblYH
365   - */
366   - public void setM_dblYH(double m_dblYH) {
367   - this.m_dblYH = m_dblYH;
368   - }
369   -
370   -
371   - /**
372   - * Gets the m_dblJCCY value for this ClsSubInfo.
373   - *
374   - * @return m_dblJCCY
375   - */
376   - public double getM_dblJCCY() {
377   - return m_dblJCCY;
378   - }
379   -
380   -
381   - /**
382   - * Sets the m_dblJCCY value for this ClsSubInfo.
383   - *
384   - * @param m_dblJCCY
385   - */
386   - public void setM_dblJCCY(double m_dblJCCY) {
387   - this.m_dblJCCY = m_dblJCCY;
388   - }
389   -
390   -
391   - /**
392   - * Gets the m_dblJCLC value for this ClsSubInfo.
393   - *
394   - * @return m_dblJCLC
395   - */
396   - public double getM_dblJCLC() {
397   - return m_dblJCLC;
398   - }
399   -
400   -
401   - /**
402   - * Sets the m_dblJCLC value for this ClsSubInfo.
403   - *
404   - * @param m_dblJCLC
405   - */
406   - public void setM_dblJCLC(double m_dblJCLC) {
407   - this.m_dblJCLC = m_dblJCLC;
408   - }
409   -
410   -
411   - /**
412   - * Gets the m_dblCCLC value for this ClsSubInfo.
413   - *
414   - * @return m_dblCCLC
415   - */
416   - public double getM_dblCCLC() {
417   - return m_dblCCLC;
418   - }
419   -
420   -
421   - /**
422   - * Sets the m_dblCCLC value for this ClsSubInfo.
423   - *
424   - * @param m_dblCCLC
425   - */
426   - public void setM_dblCCLC(double m_dblCCLC) {
427   - this.m_dblCCLC = m_dblCCLC;
428   - }
429   -
430   -
431   - /**
432   - * Gets the m_dblNS value for this ClsSubInfo.
433   - *
434   - * @return m_dblNS
435   - */
436   - public double getM_dblNS() {
437   - return m_dblNS;
438   - }
439   -
440   -
441   - /**
442   - * Sets the m_dblNS value for this ClsSubInfo.
443   - *
444   - * @param m_dblNS
445   - */
446   - public void setM_dblNS(double m_dblNS) {
447   - this.m_dblNS = m_dblNS;
448   - }
449   -
450   -
451   - /**
452   - * Gets the m_strDDY value for this ClsSubInfo.
453   - *
454   - * @return m_strDDY
455   - */
456   - public java.lang.String getM_strDDY() {
457   - return m_strDDY;
458   - }
459   -
460   -
461   - /**
462   - * Sets the m_strDDY value for this ClsSubInfo.
463   - *
464   - * @param m_strDDY
465   - */
466   - public void setM_strDDY(java.lang.String m_strDDY) {
467   - this.m_strDDY = m_strDDY;
468   - }
469   -
470   -
471   - /**
472   - * Gets the m_strLP value for this ClsSubInfo.
473   - *
474   - * @return m_strLP
475   - */
476   - public java.lang.String getM_strLP() {
477   - return m_strLP;
478   - }
479   -
480   -
481   - /**
482   - * Sets the m_strLP value for this ClsSubInfo.
483   - *
484   - * @param m_strLP
485   - */
486   - public void setM_strLP(java.lang.String m_strLP) {
487   - this.m_strLP = m_strLP;
488   - }
489   -
490   -
491   - /**
492   - * Gets the m_strYYZT value for this ClsSubInfo.
493   - *
494   - * @return m_strYYZT
495   - */
496   - public java.lang.String getM_strYYZT() {
497   - return m_strYYZT;
498   - }
499   -
500   -
501   - /**
502   - * Sets the m_strYYZT value for this ClsSubInfo.
503   - *
504   - * @param m_strYYZT
505   - */
506   - public void setM_strYYZT(java.lang.String m_strYYZT) {
507   - this.m_strYYZT = m_strYYZT;
508   - }
509   -
510   -
511   - /**
512   - * Gets the m_strJSY value for this ClsSubInfo.
513   - *
514   - * @return m_strJSY
515   - */
516   - public java.lang.String getM_strJSY() {
517   - return m_strJSY;
518   - }
519   -
520   -
521   - /**
522   - * Sets the m_strJSY value for this ClsSubInfo.
523   - *
524   - * @param m_strJSY
525   - */
526   - public void setM_strJSY(java.lang.String m_strJSY) {
527   - this.m_strJSY = m_strJSY;
528   - }
529   -
530   -
531   - /**
532   - * Gets the m_strJSYKQ value for this ClsSubInfo.
533   - *
534   - * @return m_strJSYKQ
535   - */
536   - public java.lang.String getM_strJSYKQ() {
537   - return m_strJSYKQ;
538   - }
539   -
540   -
541   - /**
542   - * Sets the m_strJSYKQ value for this ClsSubInfo.
543   - *
544   - * @param m_strJSYKQ
545   - */
546   - public void setM_strJSYKQ(java.lang.String m_strJSYKQ) {
547   - this.m_strJSYKQ = m_strJSYKQ;
548   - }
549   -
550   -
551   - /**
552   - * Gets the m_strSPY value for this ClsSubInfo.
553   - *
554   - * @return m_strSPY
555   - */
556   - public java.lang.String getM_strSPY() {
557   - return m_strSPY;
558   - }
559   -
560   -
561   - /**
562   - * Sets the m_strSPY value for this ClsSubInfo.
563   - *
564   - * @param m_strSPY
565   - */
566   - public void setM_strSPY(java.lang.String m_strSPY) {
567   - this.m_strSPY = m_strSPY;
568   - }
569   -
570   -
571   - /**
572   - * Gets the m_strSPYKQ value for this ClsSubInfo.
573   - *
574   - * @return m_strSPYKQ
575   - */
576   - public java.lang.String getM_strSPYKQ() {
577   - return m_strSPYKQ;
578   - }
579   -
580   -
581   - /**
582   - * Sets the m_strSPYKQ value for this ClsSubInfo.
583   - *
584   - * @param m_strSPYKQ
585   - */
586   - public void setM_strSPYKQ(java.lang.String m_strSPYKQ) {
587   - this.m_strSPYKQ = m_strSPYKQ;
588   - }
589   -
590   -
591   - /**
592   - * Gets the m_dblJHLC value for this ClsSubInfo.
593   - *
594   - * @return m_dblJHLC
595   - */
596   - public double getM_dblJHLC() {
597   - return m_dblJHLC;
598   - }
599   -
600   -
601   - /**
602   - * Sets the m_dblJHLC value for this ClsSubInfo.
603   - *
604   - * @param m_dblJHLC
605   - */
606   - public void setM_dblJHLC(double m_dblJHLC) {
607   - this.m_dblJHLC = m_dblJHLC;
608   - }
609   -
610   -
611   - /**
612   - * Gets the m_dblYYLC value for this ClsSubInfo.
613   - *
614   - * @return m_dblYYLC
615   - */
616   - public double getM_dblYYLC() {
617   - return m_dblYYLC;
618   - }
619   -
620   -
621   - /**
622   - * Sets the m_dblYYLC value for this ClsSubInfo.
623   - *
624   - * @param m_dblYYLC
625   - */
626   - public void setM_dblYYLC(double m_dblYYLC) {
627   - this.m_dblYYLC = m_dblYYLC;
628   - }
629   -
630   -
631   - /**
632   - * Gets the m_dblKSLC value for this ClsSubInfo.
633   - *
634   - * @return m_dblKSLC
635   - */
636   - public double getM_dblKSLC() {
637   - return m_dblKSLC;
638   - }
639   -
640   -
641   - /**
642   - * Sets the m_dblKSLC value for this ClsSubInfo.
643   - *
644   - * @param m_dblKSLC
645   - */
646   - public void setM_dblKSLC(double m_dblKSLC) {
647   - this.m_dblKSLC = m_dblKSLC;
648   - }
649   -
650   -
651   - /**
652   - * Gets the m_dblCJLC value for this ClsSubInfo.
653   - *
654   - * @return m_dblCJLC
655   - */
656   - public double getM_dblCJLC() {
657   - return m_dblCJLC;
658   - }
659   -
660   -
661   - /**
662   - * Sets the m_dblCJLC value for this ClsSubInfo.
663   - *
664   - * @param m_dblCJLC
665   - */
666   - public void setM_dblCJLC(double m_dblCJLC) {
667   - this.m_dblCJLC = m_dblCJLC;
668   - }
669   -
670   -
671   - /**
672   - * Gets the m_dblZJLC value for this ClsSubInfo.
673   - *
674   - * @return m_dblZJLC
675   - */
676   - public double getM_dblZJLC() {
677   - return m_dblZJLC;
678   - }
679   -
680   -
681   - /**
682   - * Sets the m_dblZJLC value for this ClsSubInfo.
683   - *
684   - * @param m_dblZJLC
685   - */
686   - public void setM_dblZJLC(double m_dblZJLC) {
687   - this.m_dblZJLC = m_dblZJLC;
688   - }
689   -
690   -
691   - /**
692   - * Gets the m_dblSJJHLC value for this ClsSubInfo.
693   - *
694   - * @return m_dblSJJHLC
695   - */
696   - public double getM_dblSJJHLC() {
697   - return m_dblSJJHLC;
698   - }
699   -
700   -
701   - /**
702   - * Sets the m_dblSJJHLC value for this ClsSubInfo.
703   - *
704   - * @param m_dblSJJHLC
705   - */
706   - public void setM_dblSJJHLC(double m_dblSJJHLC) {
707   - this.m_dblSJJHLC = m_dblSJJHLC;
708   - }
709   -
710   -
711   - /**
712   - * Gets the m_dblZLC value for this ClsSubInfo.
713   - *
714   - * @return m_dblZLC
715   - */
716   - public double getM_dblZLC() {
717   - return m_dblZLC;
718   - }
719   -
720   -
721   - /**
722   - * Sets the m_dblZLC value for this ClsSubInfo.
723   - *
724   - * @param m_dblZLC
725   - */
726   - public void setM_dblZLC(double m_dblZLC) {
727   - this.m_dblZLC = m_dblZLC;
728   - }
729   -
730   -
731   - /**
732   - * Gets the m_intJHBC value for this ClsSubInfo.
733   - *
734   - * @return m_intJHBC
735   - */
736   - public int getM_intJHBC() {
737   - return m_intJHBC;
738   - }
739   -
740   -
741   - /**
742   - * Sets the m_intJHBC value for this ClsSubInfo.
743   - *
744   - * @param m_intJHBC
745   - */
746   - public void setM_intJHBC(int m_intJHBC) {
747   - this.m_intJHBC = m_intJHBC;
748   - }
749   -
750   -
751   - /**
752   - * Gets the m_intSJBC value for this ClsSubInfo.
753   - *
754   - * @return m_intSJBC
755   - */
756   - public int getM_intSJBC() {
757   - return m_intSJBC;
758   - }
759   -
760   -
761   - /**
762   - * Sets the m_intSJBC value for this ClsSubInfo.
763   - *
764   - * @param m_intSJBC
765   - */
766   - public void setM_intSJBC(int m_intSJBC) {
767   - this.m_intSJBC = m_intSJBC;
768   - }
769   -
770   -
771   - /**
772   - * Gets the m_intCJBC value for this ClsSubInfo.
773   - *
774   - * @return m_intCJBC
775   - */
776   - public int getM_intCJBC() {
777   - return m_intCJBC;
778   - }
779   -
780   -
781   - /**
782   - * Sets the m_intCJBC value for this ClsSubInfo.
783   - *
784   - * @param m_intCJBC
785   - */
786   - public void setM_intCJBC(int m_intCJBC) {
787   - this.m_intCJBC = m_intCJBC;
788   - }
789   -
790   -
791   - /**
792   - * Gets the m_intZJBC value for this ClsSubInfo.
793   - *
794   - * @return m_intZJBC
795   - */
796   - public int getM_intZJBC() {
797   - return m_intZJBC;
798   - }
799   -
800   -
801   - /**
802   - * Sets the m_intZJBC value for this ClsSubInfo.
803   - *
804   - * @param m_intZJBC
805   - */
806   - public void setM_intZJBC(int m_intZJBC) {
807   - this.m_intZJBC = m_intZJBC;
808   - }
809   -
810   -
811   - /**
812   - * Gets the m_intSJJHBC value for this ClsSubInfo.
813   - *
814   - * @return m_intSJJHBC
815   - */
816   - public int getM_intSJJHBC() {
817   - return m_intSJJHBC;
818   - }
819   -
820   -
821   - /**
822   - * Sets the m_intSJJHBC value for this ClsSubInfo.
823   - *
824   - * @param m_intSJJHBC
825   - */
826   - public void setM_intSJJHBC(int m_intSJJHBC) {
827   - this.m_intSJJHBC = m_intSJJHBC;
828   - }
829   -
830   -
831   - /**
832   - * Gets the m_strCJYY value for this ClsSubInfo.
833   - *
834   - * @return m_strCJYY
835   - */
836   - public java.lang.String getM_strCJYY() {
837   - return m_strCJYY;
838   - }
839   -
840   -
841   - /**
842   - * Sets the m_strCJYY value for this ClsSubInfo.
843   - *
844   - * @param m_strCJYY
845   - */
846   - public void setM_strCJYY(java.lang.String m_strCJYY) {
847   - this.m_strCJYY = m_strCJYY;
848   - }
849   -
850   -
851   - /**
852   - * Gets the m_strBZ value for this ClsSubInfo.
853   - *
854   - * @return m_strBZ
855   - */
856   - public java.lang.String getM_strBZ() {
857   - return m_strBZ;
858   - }
859   -
860   -
861   - /**
862   - * Sets the m_strBZ value for this ClsSubInfo.
863   - *
864   - * @param m_strBZ
865   - */
866   - public void setM_strBZ(java.lang.String m_strBZ) {
867   - this.m_strBZ = m_strBZ;
868   - }
869   -
870   -
871   - /**
872   - * Gets the m_dblLBGS value for this ClsSubInfo.
873   - *
874   - * @return m_dblLBGS
875   - */
876   - public double getM_dblLBGS() {
877   - return m_dblLBGS;
878   - }
879   -
880   -
881   - /**
882   - * Sets the m_dblLBGS value for this ClsSubInfo.
883   - *
884   - * @param m_dblLBGS
885   - */
886   - public void setM_dblLBGS(double m_dblLBGS) {
887   - this.m_dblLBGS = m_dblLBGS;
888   - }
889   -
890   -
891   - /**
892   - * Gets the m_dblLBLC value for this ClsSubInfo.
893   - *
894   - * @return m_dblLBLC
895   - */
896   - public double getM_dblLBLC() {
897   - return m_dblLBLC;
898   - }
899   -
900   -
901   - /**
902   - * Sets the m_dblLBLC value for this ClsSubInfo.
903   - *
904   - * @param m_dblLBLC
905   - */
906   - public void setM_dblLBLC(double m_dblLBLC) {
907   - this.m_dblLBLC = m_dblLBLC;
908   - }
909   -
910   -
911   - /**
912   - * Gets the m_strLBYY value for this ClsSubInfo.
913   - *
914   - * @return m_strLBYY
915   - */
916   - public java.lang.String getM_strLBYY() {
917   - return m_strLBYY;
918   - }
919   -
920   -
921   - /**
922   - * Sets the m_strLBYY value for this ClsSubInfo.
923   - *
924   - * @param m_strLBYY
925   - */
926   - public void setM_strLBYY(java.lang.String m_strLBYY) {
927   - this.m_strLBYY = m_strLBYY;
928   - }
929   -
930   - private java.lang.Object __equalsCalc = null;
931   - public synchronized boolean equals(java.lang.Object obj) {
932   - if (!(obj instanceof ClsSubInfo)) return false;
933   - ClsSubInfo other = (ClsSubInfo) obj;
934   - if (obj == null) return false;
935   - if (this == obj) return true;
936   - if (__equalsCalc != null) {
937   - return (__equalsCalc == obj);
938   - }
939   - __equalsCalc = obj;
940   - boolean _equals;
941   - _equals = true &&
942   - this.m_dblJZL1 == other.getM_dblJZL1() &&
943   - this.m_dblJZL2 == other.getM_dblJZL2() &&
944   - ((this.m_strYHLX1==null && other.getM_strYHLX1()==null) ||
945   - (this.m_strYHLX1!=null &&
946   - this.m_strYHLX1.equals(other.getM_strYHLX1()))) &&
947   - ((this.m_strYHLX2==null && other.getM_strYHLX2()==null) ||
948   - (this.m_strYHLX2!=null &&
949   - this.m_strYHLX2.equals(other.getM_strYHLX2()))) &&
950   - ((this.m_strJYD1==null && other.getM_strJYD1()==null) ||
951   - (this.m_strJYD1!=null &&
952   - this.m_strJYD1.equals(other.getM_strJYD1()))) &&
953   - ((this.m_strJYD2==null && other.getM_strJYD2()==null) ||
954   - (this.m_strJYD2!=null &&
955   - this.m_strJYD2.equals(other.getM_strJYD2()))) &&
956   - ((this.m_strJYG1==null && other.getM_strJYG1()==null) ||
957   - (this.m_strJYG1!=null &&
958   - this.m_strJYG1.equals(other.getM_strJYG1()))) &&
959   - ((this.m_strJYG2==null && other.getM_strJYG2()==null) ||
960   - (this.m_strJYG2!=null &&
961   - this.m_strJYG2.equals(other.getM_strJYG2()))) &&
962   - this.m_dblCCCY == other.getM_dblCCCY() &&
963   - this.m_dblYH == other.getM_dblYH() &&
964   - this.m_dblJCCY == other.getM_dblJCCY() &&
965   - this.m_dblJCLC == other.getM_dblJCLC() &&
966   - this.m_dblCCLC == other.getM_dblCCLC() &&
967   - this.m_dblNS == other.getM_dblNS() &&
968   - ((this.m_strDDY==null && other.getM_strDDY()==null) ||
969   - (this.m_strDDY!=null &&
970   - this.m_strDDY.equals(other.getM_strDDY()))) &&
971   - ((this.m_strLP==null && other.getM_strLP()==null) ||
972   - (this.m_strLP!=null &&
973   - this.m_strLP.equals(other.getM_strLP()))) &&
974   - ((this.m_strYYZT==null && other.getM_strYYZT()==null) ||
975   - (this.m_strYYZT!=null &&
976   - this.m_strYYZT.equals(other.getM_strYYZT()))) &&
977   - ((this.m_strJSY==null && other.getM_strJSY()==null) ||
978   - (this.m_strJSY!=null &&
979   - this.m_strJSY.equals(other.getM_strJSY()))) &&
980   - ((this.m_strJSYKQ==null && other.getM_strJSYKQ()==null) ||
981   - (this.m_strJSYKQ!=null &&
982   - this.m_strJSYKQ.equals(other.getM_strJSYKQ()))) &&
983   - ((this.m_strSPY==null && other.getM_strSPY()==null) ||
984   - (this.m_strSPY!=null &&
985   - this.m_strSPY.equals(other.getM_strSPY()))) &&
986   - ((this.m_strSPYKQ==null && other.getM_strSPYKQ()==null) ||
987   - (this.m_strSPYKQ!=null &&
988   - this.m_strSPYKQ.equals(other.getM_strSPYKQ()))) &&
989   - this.m_dblJHLC == other.getM_dblJHLC() &&
990   - this.m_dblYYLC == other.getM_dblYYLC() &&
991   - this.m_dblKSLC == other.getM_dblKSLC() &&
992   - this.m_dblCJLC == other.getM_dblCJLC() &&
993   - this.m_dblZJLC == other.getM_dblZJLC() &&
994   - this.m_dblSJJHLC == other.getM_dblSJJHLC() &&
995   - this.m_dblZLC == other.getM_dblZLC() &&
996   - this.m_intJHBC == other.getM_intJHBC() &&
997   - this.m_intSJBC == other.getM_intSJBC() &&
998   - this.m_intCJBC == other.getM_intCJBC() &&
999   - this.m_intZJBC == other.getM_intZJBC() &&
1000   - this.m_intSJJHBC == other.getM_intSJJHBC() &&
1001   - ((this.m_strCJYY==null && other.getM_strCJYY()==null) ||
1002   - (this.m_strCJYY!=null &&
1003   - this.m_strCJYY.equals(other.getM_strCJYY()))) &&
1004   - ((this.m_strBZ==null && other.getM_strBZ()==null) ||
1005   - (this.m_strBZ!=null &&
1006   - this.m_strBZ.equals(other.getM_strBZ()))) &&
1007   - this.m_dblLBGS == other.getM_dblLBGS() &&
1008   - this.m_dblLBLC == other.getM_dblLBLC() &&
1009   - ((this.m_strLBYY==null && other.getM_strLBYY()==null) ||
1010   - (this.m_strLBYY!=null &&
1011   - this.m_strLBYY.equals(other.getM_strLBYY())));
1012   - __equalsCalc = null;
1013   - return _equals;
1014   - }
1015   -
1016   - private boolean __hashCodeCalc = false;
1017   - public synchronized int hashCode() {
1018   - if (__hashCodeCalc) {
1019   - return 0;
1020   - }
1021   - __hashCodeCalc = true;
1022   - int _hashCode = 1;
1023   - _hashCode += new Double(getM_dblJZL1()).hashCode();
1024   - _hashCode += new Double(getM_dblJZL2()).hashCode();
1025   - if (getM_strYHLX1() != null) {
1026   - _hashCode += getM_strYHLX1().hashCode();
1027   - }
1028   - if (getM_strYHLX2() != null) {
1029   - _hashCode += getM_strYHLX2().hashCode();
1030   - }
1031   - if (getM_strJYD1() != null) {
1032   - _hashCode += getM_strJYD1().hashCode();
1033   - }
1034   - if (getM_strJYD2() != null) {
1035   - _hashCode += getM_strJYD2().hashCode();
1036   - }
1037   - if (getM_strJYG1() != null) {
1038   - _hashCode += getM_strJYG1().hashCode();
1039   - }
1040   - if (getM_strJYG2() != null) {
1041   - _hashCode += getM_strJYG2().hashCode();
1042   - }
1043   - _hashCode += new Double(getM_dblCCCY()).hashCode();
1044   - _hashCode += new Double(getM_dblYH()).hashCode();
1045   - _hashCode += new Double(getM_dblJCCY()).hashCode();
1046   - _hashCode += new Double(getM_dblJCLC()).hashCode();
1047   - _hashCode += new Double(getM_dblCCLC()).hashCode();
1048   - _hashCode += new Double(getM_dblNS()).hashCode();
1049   - if (getM_strDDY() != null) {
1050   - _hashCode += getM_strDDY().hashCode();
1051   - }
1052   - if (getM_strLP() != null) {
1053   - _hashCode += getM_strLP().hashCode();
1054   - }
1055   - if (getM_strYYZT() != null) {
1056   - _hashCode += getM_strYYZT().hashCode();
1057   - }
1058   - if (getM_strJSY() != null) {
1059   - _hashCode += getM_strJSY().hashCode();
1060   - }
1061   - if (getM_strJSYKQ() != null) {
1062   - _hashCode += getM_strJSYKQ().hashCode();
1063   - }
1064   - if (getM_strSPY() != null) {
1065   - _hashCode += getM_strSPY().hashCode();
1066   - }
1067   - if (getM_strSPYKQ() != null) {
1068   - _hashCode += getM_strSPYKQ().hashCode();
1069   - }
1070   - _hashCode += new Double(getM_dblJHLC()).hashCode();
1071   - _hashCode += new Double(getM_dblYYLC()).hashCode();
1072   - _hashCode += new Double(getM_dblKSLC()).hashCode();
1073   - _hashCode += new Double(getM_dblCJLC()).hashCode();
1074   - _hashCode += new Double(getM_dblZJLC()).hashCode();
1075   - _hashCode += new Double(getM_dblSJJHLC()).hashCode();
1076   - _hashCode += new Double(getM_dblZLC()).hashCode();
1077   - _hashCode += getM_intJHBC();
1078   - _hashCode += getM_intSJBC();
1079   - _hashCode += getM_intCJBC();
1080   - _hashCode += getM_intZJBC();
1081   - _hashCode += getM_intSJJHBC();
1082   - if (getM_strCJYY() != null) {
1083   - _hashCode += getM_strCJYY().hashCode();
1084   - }
1085   - if (getM_strBZ() != null) {
1086   - _hashCode += getM_strBZ().hashCode();
1087   - }
1088   - _hashCode += new Double(getM_dblLBGS()).hashCode();
1089   - _hashCode += new Double(getM_dblLBLC()).hashCode();
1090   - if (getM_strLBYY() != null) {
1091   - _hashCode += getM_strLBYY().hashCode();
1092   - }
1093   - __hashCodeCalc = false;
1094   - return _hashCode;
1095   - }
1096   -
1097   - // Type metadata
1098   - private static org.apache.axis.description.TypeDesc typeDesc =
1099   - new org.apache.axis.description.TypeDesc(ClsSubInfo.class, true);
1100   -
1101   - static {
1102   - typeDesc.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", "clsSubInfo"));
1103   - org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
1104   - elemField.setFieldName("m_dblJZL1");
1105   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblJZL1"));
1106   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1107   - elemField.setNillable(false);
1108   - typeDesc.addFieldDesc(elemField);
1109   - elemField = new org.apache.axis.description.ElementDesc();
1110   - elemField.setFieldName("m_dblJZL2");
1111   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblJZL2"));
1112   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1113   - elemField.setNillable(false);
1114   - typeDesc.addFieldDesc(elemField);
1115   - elemField = new org.apache.axis.description.ElementDesc();
1116   - elemField.setFieldName("m_strYHLX1");
1117   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strYHLX1"));
1118   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1119   - elemField.setMinOccurs(0);
1120   - elemField.setNillable(false);
1121   - typeDesc.addFieldDesc(elemField);
1122   - elemField = new org.apache.axis.description.ElementDesc();
1123   - elemField.setFieldName("m_strYHLX2");
1124   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strYHLX2"));
1125   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1126   - elemField.setMinOccurs(0);
1127   - elemField.setNillable(false);
1128   - typeDesc.addFieldDesc(elemField);
1129   - elemField = new org.apache.axis.description.ElementDesc();
1130   - elemField.setFieldName("m_strJYD1");
1131   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strJYD1"));
1132   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1133   - elemField.setMinOccurs(0);
1134   - elemField.setNillable(false);
1135   - typeDesc.addFieldDesc(elemField);
1136   - elemField = new org.apache.axis.description.ElementDesc();
1137   - elemField.setFieldName("m_strJYD2");
1138   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strJYD2"));
1139   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1140   - elemField.setMinOccurs(0);
1141   - elemField.setNillable(false);
1142   - typeDesc.addFieldDesc(elemField);
1143   - elemField = new org.apache.axis.description.ElementDesc();
1144   - elemField.setFieldName("m_strJYG1");
1145   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strJYG1"));
1146   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1147   - elemField.setMinOccurs(0);
1148   - elemField.setNillable(false);
1149   - typeDesc.addFieldDesc(elemField);
1150   - elemField = new org.apache.axis.description.ElementDesc();
1151   - elemField.setFieldName("m_strJYG2");
1152   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strJYG2"));
1153   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1154   - elemField.setMinOccurs(0);
1155   - elemField.setNillable(false);
1156   - typeDesc.addFieldDesc(elemField);
1157   - elemField = new org.apache.axis.description.ElementDesc();
1158   - elemField.setFieldName("m_dblCCCY");
1159   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblCCCY"));
1160   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1161   - elemField.setNillable(false);
1162   - typeDesc.addFieldDesc(elemField);
1163   - elemField = new org.apache.axis.description.ElementDesc();
1164   - elemField.setFieldName("m_dblYH");
1165   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblYH"));
1166   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1167   - elemField.setNillable(false);
1168   - typeDesc.addFieldDesc(elemField);
1169   - elemField = new org.apache.axis.description.ElementDesc();
1170   - elemField.setFieldName("m_dblJCCY");
1171   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblJCCY"));
1172   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1173   - elemField.setNillable(false);
1174   - typeDesc.addFieldDesc(elemField);
1175   - elemField = new org.apache.axis.description.ElementDesc();
1176   - elemField.setFieldName("m_dblJCLC");
1177   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblJCLC"));
1178   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1179   - elemField.setNillable(false);
1180   - typeDesc.addFieldDesc(elemField);
1181   - elemField = new org.apache.axis.description.ElementDesc();
1182   - elemField.setFieldName("m_dblCCLC");
1183   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblCCLC"));
1184   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1185   - elemField.setNillable(false);
1186   - typeDesc.addFieldDesc(elemField);
1187   - elemField = new org.apache.axis.description.ElementDesc();
1188   - elemField.setFieldName("m_dblNS");
1189   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblNS"));
1190   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1191   - elemField.setNillable(false);
1192   - typeDesc.addFieldDesc(elemField);
1193   - elemField = new org.apache.axis.description.ElementDesc();
1194   - elemField.setFieldName("m_strDDY");
1195   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strDDY"));
1196   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1197   - elemField.setMinOccurs(0);
1198   - elemField.setNillable(false);
1199   - typeDesc.addFieldDesc(elemField);
1200   - elemField = new org.apache.axis.description.ElementDesc();
1201   - elemField.setFieldName("m_strLP");
1202   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strLP"));
1203   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1204   - elemField.setMinOccurs(0);
1205   - elemField.setNillable(false);
1206   - typeDesc.addFieldDesc(elemField);
1207   - elemField = new org.apache.axis.description.ElementDesc();
1208   - elemField.setFieldName("m_strYYZT");
1209   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strYYZT"));
1210   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1211   - elemField.setMinOccurs(0);
1212   - elemField.setNillable(false);
1213   - typeDesc.addFieldDesc(elemField);
1214   - elemField = new org.apache.axis.description.ElementDesc();
1215   - elemField.setFieldName("m_strJSY");
1216   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strJSY"));
1217   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1218   - elemField.setMinOccurs(0);
1219   - elemField.setNillable(false);
1220   - typeDesc.addFieldDesc(elemField);
1221   - elemField = new org.apache.axis.description.ElementDesc();
1222   - elemField.setFieldName("m_strJSYKQ");
1223   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strJSYKQ"));
1224   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1225   - elemField.setMinOccurs(0);
1226   - elemField.setNillable(false);
1227   - typeDesc.addFieldDesc(elemField);
1228   - elemField = new org.apache.axis.description.ElementDesc();
1229   - elemField.setFieldName("m_strSPY");
1230   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strSPY"));
1231   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1232   - elemField.setMinOccurs(0);
1233   - elemField.setNillable(false);
1234   - typeDesc.addFieldDesc(elemField);
1235   - elemField = new org.apache.axis.description.ElementDesc();
1236   - elemField.setFieldName("m_strSPYKQ");
1237   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strSPYKQ"));
1238   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1239   - elemField.setMinOccurs(0);
1240   - elemField.setNillable(false);
1241   - typeDesc.addFieldDesc(elemField);
1242   - elemField = new org.apache.axis.description.ElementDesc();
1243   - elemField.setFieldName("m_dblJHLC");
1244   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblJHLC"));
1245   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1246   - elemField.setNillable(false);
1247   - typeDesc.addFieldDesc(elemField);
1248   - elemField = new org.apache.axis.description.ElementDesc();
1249   - elemField.setFieldName("m_dblYYLC");
1250   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblYYLC"));
1251   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1252   - elemField.setNillable(false);
1253   - typeDesc.addFieldDesc(elemField);
1254   - elemField = new org.apache.axis.description.ElementDesc();
1255   - elemField.setFieldName("m_dblKSLC");
1256   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblKSLC"));
1257   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1258   - elemField.setNillable(false);
1259   - typeDesc.addFieldDesc(elemField);
1260   - elemField = new org.apache.axis.description.ElementDesc();
1261   - elemField.setFieldName("m_dblCJLC");
1262   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblCJLC"));
1263   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1264   - elemField.setNillable(false);
1265   - typeDesc.addFieldDesc(elemField);
1266   - elemField = new org.apache.axis.description.ElementDesc();
1267   - elemField.setFieldName("m_dblZJLC");
1268   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblZJLC"));
1269   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1270   - elemField.setNillable(false);
1271   - typeDesc.addFieldDesc(elemField);
1272   - elemField = new org.apache.axis.description.ElementDesc();
1273   - elemField.setFieldName("m_dblSJJHLC");
1274   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblSJJHLC"));
1275   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1276   - elemField.setNillable(false);
1277   - typeDesc.addFieldDesc(elemField);
1278   - elemField = new org.apache.axis.description.ElementDesc();
1279   - elemField.setFieldName("m_dblZLC");
1280   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblZLC"));
1281   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1282   - elemField.setNillable(false);
1283   - typeDesc.addFieldDesc(elemField);
1284   - elemField = new org.apache.axis.description.ElementDesc();
1285   - elemField.setFieldName("m_intJHBC");
1286   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_intJHBC"));
1287   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
1288   - elemField.setNillable(false);
1289   - typeDesc.addFieldDesc(elemField);
1290   - elemField = new org.apache.axis.description.ElementDesc();
1291   - elemField.setFieldName("m_intSJBC");
1292   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_intSJBC"));
1293   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
1294   - elemField.setNillable(false);
1295   - typeDesc.addFieldDesc(elemField);
1296   - elemField = new org.apache.axis.description.ElementDesc();
1297   - elemField.setFieldName("m_intCJBC");
1298   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_intCJBC"));
1299   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
1300   - elemField.setNillable(false);
1301   - typeDesc.addFieldDesc(elemField);
1302   - elemField = new org.apache.axis.description.ElementDesc();
1303   - elemField.setFieldName("m_intZJBC");
1304   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_intZJBC"));
1305   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
1306   - elemField.setNillable(false);
1307   - typeDesc.addFieldDesc(elemField);
1308   - elemField = new org.apache.axis.description.ElementDesc();
1309   - elemField.setFieldName("m_intSJJHBC");
1310   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_intSJJHBC"));
1311   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
1312   - elemField.setNillable(false);
1313   - typeDesc.addFieldDesc(elemField);
1314   - elemField = new org.apache.axis.description.ElementDesc();
1315   - elemField.setFieldName("m_strCJYY");
1316   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strCJYY"));
1317   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1318   - elemField.setMinOccurs(0);
1319   - elemField.setNillable(false);
1320   - typeDesc.addFieldDesc(elemField);
1321   - elemField = new org.apache.axis.description.ElementDesc();
1322   - elemField.setFieldName("m_strBZ");
1323   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strBZ"));
1324   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1325   - elemField.setMinOccurs(0);
1326   - elemField.setNillable(false);
1327   - typeDesc.addFieldDesc(elemField);
1328   - elemField = new org.apache.axis.description.ElementDesc();
1329   - elemField.setFieldName("m_dblLBGS");
1330   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblLBGS"));
1331   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1332   - elemField.setNillable(false);
1333   - typeDesc.addFieldDesc(elemField);
1334   - elemField = new org.apache.axis.description.ElementDesc();
1335   - elemField.setFieldName("m_dblLBLC");
1336   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_dblLBLC"));
1337   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
1338   - elemField.setNillable(false);
1339   - typeDesc.addFieldDesc(elemField);
1340   - elemField = new org.apache.axis.description.ElementDesc();
1341   - elemField.setFieldName("m_strLBYY");
1342   - elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "m_strLBYY"));
1343   - elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
1344   - elemField.setMinOccurs(0);
1345   - elemField.setNillable(false);
1346   - typeDesc.addFieldDesc(elemField);
1347   - }
1348   -
1349   - /**
1350   - * Return type metadata object
1351   - */
1352   - public static org.apache.axis.description.TypeDesc getTypeDesc() {
1353   - return typeDesc;
1354   - }
1355   -
1356   - /**
1357   - * Get Custom Serializer
1358   - */
1359   - public static org.apache.axis.encoding.Serializer getSerializer(
1360   - java.lang.String mechType,
1361   - java.lang.Class _javaType,
1362   - javax.xml.namespace.QName _xmlType) {
1363   - return
1364   - new org.apache.axis.encoding.ser.BeanSerializer(
1365   - _javaType, _xmlType, typeDesc);
1366   - }
1367   -
1368   - /**
1369   - * Get Custom Deserializer
1370   - */
1371   - public static org.apache.axis.encoding.Deserializer getDeserializer(
1372   - java.lang.String mechType,
1373   - java.lang.Class _javaType,
1374   - javax.xml.namespace.QName _xmlType) {
1375   - return
1376   - new org.apache.axis.encoding.ser.BeanDeserializer(
1377   - _javaType, _xmlType, typeDesc);
1378   - }
1379   -
1380   -}
src/main/java/com/bsth/old_sys_wsclient/nh_ld/LD_Service.java deleted 100644 → 0
1   -package com.bsth.old_sys_wsclient.nh_ld;
2   -
3   -/**
4   - * LD_Service.java
5   - *
6   - * This file was auto-generated from WSDL
7   - * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
8   - */
9   -
10   -
11   -public interface LD_Service extends javax.xml.rpc.Service {
12   - public java.lang.String getLD_ServiceSoapAddress();
13   -
14   - public LD_ServiceSoap getLD_ServiceSoap() throws javax.xml.rpc.ServiceException;
15   -
16   - public LD_ServiceSoap getLD_ServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
17   -}
src/main/java/com/bsth/old_sys_wsclient/nh_ld/LD_ServiceLocator.java deleted 100644 → 0
1   -package com.bsth.old_sys_wsclient.nh_ld;
2   -
3   -/**
4   - * LD_ServiceLocator.java
5   - *
6   - * This file was auto-generated from WSDL
7   - * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
8   - */
9   -
10   -
11   -public class LD_ServiceLocator extends org.apache.axis.client.Service implements LD_Service {
12   -
13   - public LD_ServiceLocator() {
14   - }
15   -
16   -
17   - public LD_ServiceLocator(org.apache.axis.EngineConfiguration config) {
18   - super(config);
19   - }
20   -
21   - public LD_ServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
22   - super(wsdlLoc, sName);
23   - }
24   -
25   - // Use to get a proxy class for LD_ServiceSoap
26   - //private java.lang.String LD_ServiceSoap_address = "http://114.80.178.12:8011/LD_Service.asmx";
27   - private java.lang.String LD_ServiceSoap_address = "http://10.10.200.235:8011/LD_Service.asmx";
28   -
29   - public java.lang.String getLD_ServiceSoapAddress() {
30   - return LD_ServiceSoap_address;
31   - }
32   -
33   - // The WSDD service name defaults to the port name.
34   - private java.lang.String LD_ServiceSoapWSDDServiceName = "LD_ServiceSoap";
35   -
36   - public java.lang.String getLD_ServiceSoapWSDDServiceName() {
37   - return LD_ServiceSoapWSDDServiceName;
38   - }
39   -
40   - public void setLD_ServiceSoapWSDDServiceName(java.lang.String name) {
41   - LD_ServiceSoapWSDDServiceName = name;
42   - }
43   -
44   - public LD_ServiceSoap getLD_ServiceSoap() throws javax.xml.rpc.ServiceException {
45   - java.net.URL endpoint;
46   - try {
47   - endpoint = new java.net.URL(LD_ServiceSoap_address);
48   - }
49   - catch (java.net.MalformedURLException e) {
50   - throw new javax.xml.rpc.ServiceException(e);
51   - }
52   - return getLD_ServiceSoap(endpoint);
53   - }
54   -
55   - public LD_ServiceSoap getLD_ServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
56   - try {
57   - LD_ServiceSoapStub _stub = new LD_ServiceSoapStub(portAddress, this);
58   - _stub.setPortName(getLD_ServiceSoapWSDDServiceName());
59   - return _stub;
60   - }
61   - catch (org.apache.axis.AxisFault e) {
62   - return null;
63   - }
64   - }
65   -
66   - public void setLD_ServiceSoapEndpointAddress(java.lang.String address) {
67   - LD_ServiceSoap_address = address;
68   - }
69   -
70   - /**
71   - * For the given interface, get the stub implementation.
72   - * If this service has no port for the given interface,
73   - * then ServiceException is thrown.
74   - */
75   - public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
76   - try {
77   - if (LD_ServiceSoap.class.isAssignableFrom(serviceEndpointInterface)) {
78   - LD_ServiceSoapStub _stub = new LD_ServiceSoapStub(new java.net.URL(LD_ServiceSoap_address), this);
79   - _stub.setPortName(getLD_ServiceSoapWSDDServiceName());
80   - return _stub;
81   - }
82   - }
83   - catch (java.lang.Throwable t) {
84   - throw new javax.xml.rpc.ServiceException(t);
85   - }
86   - throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
87   - }
88   -
89   - /**
90   - * For the given interface, get the stub implementation.
91   - * If this service has no port for the given interface,
92   - * then ServiceException is thrown.
93   - */
94   - public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
95   - if (portName == null) {
96   - return getPort(serviceEndpointInterface);
97   - }
98   - java.lang.String inputPortName = portName.getLocalPart();
99   - if ("LD_ServiceSoap".equals(inputPortName)) {
100   - return getLD_ServiceSoap();
101   - }
102   - else {
103   - java.rmi.Remote _stub = getPort(serviceEndpointInterface);
104   - ((org.apache.axis.client.Stub) _stub).setPortName(portName);
105   - return _stub;
106   - }
107   - }
108   -
109   - public javax.xml.namespace.QName getServiceName() {
110   - return new javax.xml.namespace.QName("http://tempuri.org/", "LD_Service");
111   - }
112   -
113   - private java.util.HashSet ports = null;
114   -
115   - public java.util.Iterator getPorts() {
116   - if (ports == null) {
117   - ports = new java.util.HashSet();
118   - ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "LD_ServiceSoap"));
119   - }
120   - return ports.iterator();
121   - }
122   -
123   - /**
124   - * Set the endpoint address for the specified port name.
125   - */
126   - public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
127   -
128   -if ("LD_ServiceSoap".equals(portName)) {
129   - setLD_ServiceSoapEndpointAddress(address);
130   - }
131   - else
132   -{ // Unknown Port Name
133   - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
134   - }
135   - }
136   -
137   - /**
138   - * Set the endpoint address for the specified port name.
139   - */
140   - public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
141   - setEndpointAddress(portName.getLocalPart(), address);
142   - }
143   -
144   -}
src/main/java/com/bsth/old_sys_wsclient/nh_ld/LD_ServiceSoap.java deleted 100644 → 0
1   -package com.bsth.old_sys_wsclient.nh_ld;
2   -
3   -import com.bsth.old_sys_wsclient.nh_ld.holders.ArrayOfClsLDInfoHolder;
4   -
5   -/**
6   - * LD_ServiceSoap.java
7   - *
8   - * This file was auto-generated from WSDL
9   - * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
10   - */
11   -
12   -
13   -public interface LD_ServiceSoap extends java.rmi.Remote {
14   - public java.lang.String connLd() throws java.rmi.RemoteException;
15   - public java.lang.String NH_LDInterface(java.lang.String _IPAddress, java.lang.String _CheckBM, java.lang.String _UserName, java.lang.String _Password, java.util.Calendar _Datetime, ArrayOfClsLDInfoHolder _clsLDinfos) throws java.rmi.RemoteException;
16   -}
src/main/java/com/bsth/old_sys_wsclient/nh_ld/LD_ServiceSoapProxy.java deleted 100644 → 0
1   -package com.bsth.old_sys_wsclient.nh_ld;
2   -
3   -import com.bsth.old_sys_wsclient.nh_ld.holders.ArrayOfClsLDInfoHolder;
4   -
5   -public class LD_ServiceSoapProxy implements LD_ServiceSoap {
6   - private String _endpoint = null;
7   - private LD_ServiceSoap lD_ServiceSoap = null;
8   -
9   - public LD_ServiceSoapProxy() {
10   - _initLD_ServiceSoapProxy();
11   - }
12   -
13   - public LD_ServiceSoapProxy(String endpoint) {
14   - _endpoint = endpoint;
15   - _initLD_ServiceSoapProxy();
16   - }
17   -
18   - private void _initLD_ServiceSoapProxy() {
19   - try {
20   - lD_ServiceSoap = (new LD_ServiceLocator()).getLD_ServiceSoap();
21   - if (lD_ServiceSoap != null) {
22   - if (_endpoint != null)
23   - ((javax.xml.rpc.Stub)lD_ServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
24   - else
25   - _endpoint = (String)((javax.xml.rpc.Stub)lD_ServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
26   - }
27   -
28   - }
29   - catch (javax.xml.rpc.ServiceException serviceException) {}
30   - }
31   -
32   - public String getEndpoint() {
33   - return _endpoint;
34   - }
35   -
36   - public void setEndpoint(String endpoint) {
37   - _endpoint = endpoint;
38   - if (lD_ServiceSoap != null)
39   - ((javax.xml.rpc.Stub)lD_ServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
40   -
41   - }
42   -
43   - public LD_ServiceSoap getLD_ServiceSoap() {
44   - if (lD_ServiceSoap == null)
45   - _initLD_ServiceSoapProxy();
46   - return lD_ServiceSoap;
47   - }
48   -
49   - public java.lang.String connLd() throws java.rmi.RemoteException{
50   - if (lD_ServiceSoap == null)
51   - _initLD_ServiceSoapProxy();
52   - return lD_ServiceSoap.connLd();
53   - }
54   -
55   - public java.lang.String NH_LDInterface(java.lang.String _IPAddress, java.lang.String _CheckBM, java.lang.String _UserName, java.lang.String _Password, java.util.Calendar _Datetime, ArrayOfClsLDInfoHolder _clsLDinfos) throws java.rmi.RemoteException{
56   - if (lD_ServiceSoap == null)
57   - _initLD_ServiceSoapProxy();
58   - return lD_ServiceSoap.NH_LDInterface(_IPAddress, _CheckBM, _UserName, _Password, _Datetime, _clsLDinfos);
59   - }
60   -
61   -
62   -}
63 0 \ No newline at end of file
src/main/java/com/bsth/old_sys_wsclient/nh_ld/LD_ServiceSoapStub.java deleted 100644 → 0
1   -package com.bsth.old_sys_wsclient.nh_ld;
2   -
3   -import com.bsth.old_sys_wsclient.nh_ld.holders.ArrayOfClsLDInfoHolder;
4   -
5   -/**
6   - * LD_ServiceSoapStub.java
7   - *
8   - * This file was auto-generated from WSDL
9   - * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
10   - */
11   -
12   -
13   -public class LD_ServiceSoapStub extends org.apache.axis.client.Stub implements LD_ServiceSoap {
14   - private java.util.Vector cachedSerClasses = new java.util.Vector();
15   - private java.util.Vector cachedSerQNames = new java.util.Vector();
16   - private java.util.Vector cachedSerFactories = new java.util.Vector();
17   - private java.util.Vector cachedDeserFactories = new java.util.Vector();
18   -
19   - static org.apache.axis.description.OperationDesc [] _operations;
20   -
21   - static {
22   - _operations = new org.apache.axis.description.OperationDesc[2];
23   - _initOperationDesc1();
24   - }
25   -
26   - private static void _initOperationDesc1(){
27   - org.apache.axis.description.OperationDesc oper;
28   - org.apache.axis.description.ParameterDesc param;
29   - oper = new org.apache.axis.description.OperationDesc();
30   - oper.setName("connLd");
31   - oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
32   - oper.setReturnClass(java.lang.String.class);
33   - oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "connLdResult"));
34   - oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
35   - oper.setUse(org.apache.axis.constants.Use.LITERAL);
36   - _operations[0] = oper;
37   -
38   - oper = new org.apache.axis.description.OperationDesc();
39   - oper.setName("NH_LDInterface");
40   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "_IPAddress"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
41   - param.setOmittable(true);
42   - oper.addParameter(param);
43   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "_CheckBM"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
44   - param.setOmittable(true);
45   - oper.addParameter(param);
46   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "_UserName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
47   - param.setOmittable(true);
48   - oper.addParameter(param);
49   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "_Password"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
50   - param.setOmittable(true);
51   - oper.addParameter(param);
52   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "_Datetime"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, false, false);
53   - oper.addParameter(param);
54   - param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "_clsLDinfos"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfClsLDInfo"), ClsLDInfo[].class, false, false);
55   - param.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "clsLDInfo"));
56   - param.setOmittable(true);
57   - oper.addParameter(param);
58   - oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
59   - oper.setReturnClass(java.lang.String.class);
60   - oper.setReturnQName(new javax.xml.namespace.QName("http://tempuri.org/", "NH_LDInterfaceResult"));
61   - oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
62   - oper.setUse(org.apache.axis.constants.Use.LITERAL);
63   - _operations[1] = oper;
64   -
65   - }
66   -
67   - public LD_ServiceSoapStub() throws org.apache.axis.AxisFault {
68   - this(null);
69   - }
70   -
71   - public LD_ServiceSoapStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
72   - this(service);
73   - super.cachedEndpoint = endpointURL;
74   - }
75   -
76   - public LD_ServiceSoapStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
77   - if (service == null) {
78   - super.service = new org.apache.axis.client.Service();
79   - } else {
80   - super.service = service;
81   - }
82   - ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
83   - java.lang.Class cls;
84   - javax.xml.namespace.QName qName;
85   - javax.xml.namespace.QName qName2;
86   - java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
87   - java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
88   - java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
89   - java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
90   - java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
91   - java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
92   - java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
93   - java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
94   - java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
95   - java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
96   - qName = new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfClsLDInfo");
97   - cachedSerQNames.add(qName);
98   - cls = ClsLDInfo[].class;
99   - cachedSerClasses.add(cls);
100   - qName = new javax.xml.namespace.QName("http://tempuri.org/", "clsLDInfo");
101   - qName2 = new javax.xml.namespace.QName("http://tempuri.org/", "clsLDInfo");
102   - cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
103   - cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
104   -
105   - qName = new javax.xml.namespace.QName("http://tempuri.org/", "ArrayOfClsSubInfo");
106   - cachedSerQNames.add(qName);
107   - cls = ClsSubInfo[].class;
108   - cachedSerClasses.add(cls);
109   - qName = new javax.xml.namespace.QName("http://tempuri.org/", "clsSubInfo");
110   - qName2 = new javax.xml.namespace.QName("http://tempuri.org/", "clsSubInfo");
111   - cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
112   - cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
113   -
114   - qName = new javax.xml.namespace.QName("http://tempuri.org/", "clsLDInfo");
115   - cachedSerQNames.add(qName);
116   - cls = ClsLDInfo.class;
117   - cachedSerClasses.add(cls);
118   - cachedSerFactories.add(beansf);
119   - cachedDeserFactories.add(beandf);
120   -
121   - qName = new javax.xml.namespace.QName("http://tempuri.org/", "clsSubInfo");
122   - cachedSerQNames.add(qName);
123   - cls = ClsSubInfo.class;
124   - cachedSerClasses.add(cls);
125   - cachedSerFactories.add(beansf);
126   - cachedDeserFactories.add(beandf);
127   -
128   - }
129   -
130   - protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
131   - try {
132   - org.apache.axis.client.Call _call = super._createCall();
133   - if (super.maintainSessionSet) {
134   - _call.setMaintainSession(super.maintainSession);
135   - }
136   - if (super.cachedUsername != null) {
137   - _call.setUsername(super.cachedUsername);
138   - }
139   - if (super.cachedPassword != null) {
140   - _call.setPassword(super.cachedPassword);
141   - }
142   - if (super.cachedEndpoint != null) {
143   - _call.setTargetEndpointAddress(super.cachedEndpoint);
144   - }
145   - if (super.cachedTimeout != null) {
146   - _call.setTimeout(super.cachedTimeout);
147   - }
148   - if (super.cachedPortName != null) {
149   - _call.setPortName(super.cachedPortName);
150   - }
151   - java.util.Enumeration keys = super.cachedProperties.keys();
152   - while (keys.hasMoreElements()) {
153   - java.lang.String key = (java.lang.String) keys.nextElement();
154   - _call.setProperty(key, super.cachedProperties.get(key));
155   - }
156   - // All the type mapping information is registered
157   - // when the first call is made.
158   - // The type mapping information is actually registered in
159   - // the TypeMappingRegistry of the service, which
160   - // is the reason why registration is only needed for the first call.
161   - synchronized (this) {
162   - if (firstCall()) {
163   - // must set encoding style before registering serializers
164   - _call.setEncodingStyle(null);
165   - for (int i = 0; i < cachedSerFactories.size(); ++i) {
166   - java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
167   - javax.xml.namespace.QName qName =
168   - (javax.xml.namespace.QName) cachedSerQNames.get(i);
169   - java.lang.Object x = cachedSerFactories.get(i);
170   - if (x instanceof Class) {
171   - java.lang.Class sf = (java.lang.Class)
172   - cachedSerFactories.get(i);
173   - java.lang.Class df = (java.lang.Class)
174   - cachedDeserFactories.get(i);
175   - _call.registerTypeMapping(cls, qName, sf, df, false);
176   - }
177   - else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
178   - org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
179   - cachedSerFactories.get(i);
180   - org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
181   - cachedDeserFactories.get(i);
182   - _call.registerTypeMapping(cls, qName, sf, df, false);
183   - }
184   - }
185   - }
186   - }
187   - return _call;
188   - }
189   - catch (java.lang.Throwable _t) {
190   - throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
191   - }
192   - }
193   -
194   - public java.lang.String connLd() throws java.rmi.RemoteException {
195   - if (super.cachedEndpoint == null) {
196   - throw new org.apache.axis.NoEndPointException();
197   - }
198   - org.apache.axis.client.Call _call = createCall();
199   - _call.setOperation(_operations[0]);
200   - _call.setUseSOAPAction(true);
201   - _call.setSOAPActionURI("http://tempuri.org/connLd");
202   - _call.setEncodingStyle(null);
203   - _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
204   - _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
205   - _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
206   - _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "connLd"));
207   -
208   - setRequestHeaders(_call);
209   - setAttachments(_call);
210   - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
211   -
212   - if (_resp instanceof java.rmi.RemoteException) {
213   - throw (java.rmi.RemoteException)_resp;
214   - }
215   - else {
216   - extractAttachments(_call);
217   - try {
218   - return (java.lang.String) _resp;
219   - } catch (java.lang.Exception _exception) {
220   - return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
221   - }
222   - }
223   - } catch (org.apache.axis.AxisFault axisFaultException) {
224   - throw axisFaultException;
225   -}
226   - }
227   -
228   - public java.lang.String NH_LDInterface(java.lang.String _IPAddress, java.lang.String _CheckBM, java.lang.String _UserName, java.lang.String _Password, java.util.Calendar _Datetime, ArrayOfClsLDInfoHolder _clsLDinfos) throws java.rmi.RemoteException {
229   - if (super.cachedEndpoint == null) {
230   - throw new org.apache.axis.NoEndPointException();
231   - }
232   - org.apache.axis.client.Call _call = createCall();
233   - _call.setOperation(_operations[1]);
234   - _call.setUseSOAPAction(true);
235   - _call.setSOAPActionURI("http://tempuri.org/NH_LDInterface");
236   - _call.setEncodingStyle(null);
237   - _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
238   - _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
239   - _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
240   - _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "NH_LDInterface"));
241   -
242   - setRequestHeaders(_call);
243   - setAttachments(_call);
244   - try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {_IPAddress, _CheckBM, _UserName, _Password, _Datetime, _clsLDinfos.value});
245   -
246   - if (_resp instanceof java.rmi.RemoteException) {
247   - throw (java.rmi.RemoteException)_resp;
248   - }
249   - else {
250   - extractAttachments(_call);
251   - java.util.Map _output;
252   - _output = _call.getOutputParams();
253   - try {
254   - _clsLDinfos.value = (ClsLDInfo[]) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "_clsLDinfos"));
255   - } catch (java.lang.Exception _exception) {
256   - _clsLDinfos.value = (ClsLDInfo[]) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "_clsLDinfos")), ClsLDInfo[].class);
257   - }
258   - try {
259   - return (java.lang.String) _resp;
260   - } catch (java.lang.Exception _exception) {
261   - return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
262   - }
263   - }
264   - } catch (org.apache.axis.AxisFault axisFaultException) {
265   - throw axisFaultException;
266   -}
267   - }
268   -
269   -}
src/main/java/com/bsth/old_sys_wsclient/nh_ld/holders/ArrayOfClsLDInfoHolder.java deleted 100644 → 0
1   -package com.bsth.old_sys_wsclient.nh_ld.holders;
2   -
3   -import com.bsth.old_sys_wsclient.nh_ld.ClsLDInfo;
4   -
5   -/**
6   - * ArrayOfClsLDInfoHolder.java
7   - *
8   - * This file was auto-generated from WSDL
9   - * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
10   - */
11   -
12   -
13   -public final class ArrayOfClsLDInfoHolder implements javax.xml.rpc.holders.Holder {
14   - public ClsLDInfo[] value;
15   -
16   - public ArrayOfClsLDInfoHolder() {
17   - }
18   -
19   - public ArrayOfClsLDInfoHolder(ClsLDInfo[] value) {
20   - this.value = value;
21   - }
22   -
23   -}
src/main/java/com/bsth/old_sys_wsclient/nh_ld/holders/ClsLDInfoHolder.java deleted 100644 → 0
1   -package com.bsth.old_sys_wsclient.nh_ld.holders;
2   -
3   -import com.bsth.old_sys_wsclient.nh_ld.ClsLDInfo;
4   -
5   -/**
6   - * ClsLDInfoHolder.java
7   - *
8   - * This file was auto-generated from WSDL
9   - * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
10   - */
11   -
12   -
13   -public final class ClsLDInfoHolder implements javax.xml.rpc.holders.Holder {
14   - public ClsLDInfo value;
15   -
16   - public ClsLDInfoHolder() {
17   - }
18   -
19   - public ClsLDInfoHolder(ClsLDInfo value) {
20   - this.value = value;
21   - }
22   -
23   -}
src/main/java/com/bsth/redis/ElecRedisService.java deleted 100644 → 0
1   -package com.bsth.redis;
2   -
3   -import com.bsth.Application;
4   -import com.bsth.entity.ElecInfo;
5   -import com.bsth.redis.util.RedisUtils;
6   -import com.bsth.repository.ElecInfoRepository;
7   -import com.bsth.util.ConfigUtil;
8   -import com.bsth.util.ConvertUtil;
9   -import com.google.common.collect.ArrayListMultimap;
10   -import org.joda.time.DateTime;
11   -import org.slf4j.Logger;
12   -import org.slf4j.LoggerFactory;
13   -import org.springframework.beans.factory.annotation.Autowired;
14   -import org.springframework.boot.CommandLineRunner;
15   -import org.springframework.core.annotation.Order;
16   -import org.springframework.data.redis.core.RedisTemplate;
17   -import org.springframework.data.redis.serializer.StringRedisSerializer;
18   -import org.springframework.stereotype.Component;
19   -import org.springframework.stereotype.Service;
20   -
21   -import java.util.*;
22   -import java.util.concurrent.TimeUnit;
23   -
24   -/**
25   - * 油量数据Redis缓存
26   - * Created by panzhao on 2017/3/19.
27   - */
28   -@Service
29   -@Order(3)
30   -public class ElecRedisService implements CommandLineRunner {
31   -
32   - @Autowired
33   - private RedisTemplate redisTemplate;
34   -
35   - @Autowired
36   - ElecInfoRepository elecInfoRepository;
37   -
38   - @Autowired
39   - RedisUtils redisUtils;
40   -
41   - static Logger logger = LoggerFactory.getLogger(ElecRedisService.class);
42   -
43   - private final static String REDIS_KEY_PREFIX = "elec:";
44   -
45   - /**
46   - * 将油量数据写入redis
47   - *
48   - * @param list
49   - */
50   - public void wirte(List<ElecInfo> list) {
51   - ArrayListMultimap<String, ElecInfo> multimap;
52   - try {
53   - if (list.size() == 0)
54   - return;
55   - //按日期和线路分组数据
56   - Class clazz = ElecInfo.class;
57   - multimap = new ConvertUtil().groupMultiList(list, ":", clazz.getDeclaredField("nbbm"), clazz.getDeclaredField("rq"));
58   -
59   - //写入redis
60   - Iterator<String> iterator = multimap.keySet().iterator();
61   - String key;
62   - while (iterator.hasNext()) {
63   - key = iterator.next();
64   - mergeData(key, multimap.get(key));
65   - }
66   - } catch (Exception e) {
67   - logger.error("", e);
68   - }
69   - }
70   -
71   - /**
72   - * 根据车辆和日期获取油耗数据,以 车辆_驾驶员 为key
73   - *
74   - * @param nbbmArray
75   - * @param rq
76   - * @return
77   - */
78   - public ArrayListMultimap findByNbbmGroup(Iterable<String> nbbmArray, String rq) {
79   - ArrayListMultimap rs = ArrayListMultimap.create();
80   -
81   - rq = rq.replaceAll("-", "");
82   - try {
83   - List<ElecInfo> list = new ArrayList<>();
84   - for (String nbbm : nbbmArray) {
85   - nbbm = nbbm.split("_")[1];
86   - list.addAll(read(nbbm, rq));
87   - }
88   - Class clazz = ElecInfo.class;
89   - rs = new ConvertUtil().groupMultiList(list, "_", clazz.getDeclaredField("nbbm"), clazz.getDeclaredField("jsy"));
90   - } catch (Exception e) {
91   - logger.error("", e);
92   - }
93   - return rs;
94   - }
95   -
96   - /**
97   - * 根据车辆和日期获取油耗数据,以 车辆 为key
98   - *
99   - * @param nbbmArray
100   - * @param rq
101   - * @return
102   - */
103   - public ArrayListMultimap findByNbbmGroup1(Iterable<String> nbbmArray, String rq) {
104   - ArrayListMultimap rs = ArrayListMultimap.create();
105   -
106   - rq = rq.replaceAll("-", "");
107   - try {
108   - List<ElecInfo> list = new ArrayList<>();
109   - for (String nbbm : nbbmArray) {
110   - list.addAll(read(nbbm, rq));
111   - }
112   - Class clazz = ElecInfo.class;
113   - rs = new ConvertUtil().groupMultiList(list, "_", clazz.getDeclaredField("nbbm"));
114   - } catch (Exception e) {
115   - logger.error("", e);
116   - }
117   - return rs;
118   - }
119   -
120   - public List<ElecInfo> read(String nbbm, String rq) {
121   - return redisTemplate.opsForList().range(REDIS_KEY_PREFIX + nbbm + ":" + rq, 0, -1);
122   - }
123   -
124   - /**
125   - * 将 list 与redis里的数据合并
126   - *
127   - * @param key
128   - * @param list
129   - */
130   - public void mergeData(String key, List<ElecInfo> list) {
131   - key = REDIS_KEY_PREFIX + key;
132   -
133   - //更新 直接覆盖更新
134   - redisTemplate.execute(redisUtils.getUpdateCallback(key, list));
135   - }
136   -
137   - @Autowired
138   - ElecRefreshThread elecRefreshThread;
139   -
140   - @Override
141   - public void run(String... strings) throws Exception {
142   - Application.mainServices.schedule(new Runnable() {
143   - @Override
144   - public void run() {
145   - //启动加载油耗缓存
146   - synchData(null);
147   - }
148   - }, 30, TimeUnit.SECONDS);
149   -
150   -
151   - //定时刷新油耗信息
152   - Application.mainServices.scheduleWithFixedDelay(elecRefreshThread, 60 * 40, 60 * 40, TimeUnit.SECONDS);
153   - }
154   -
155   - /**
156   - * 和数据库同步数据
157   - */
158   - public void synchData(Integer days) {
159   - int cacheDays = Integer.parseInt(ConfigUtil.get("cache.days"));
160   - if (null != days && days < cacheDays)
161   - cacheDays = days;
162   - //设置key 序列化器
163   - redisTemplate.setKeySerializer(new StringRedisSerializer());
164   -
165   - DateTime dt = new DateTime();
166   - dt = dt.withHourOfDay(0).withMinuteOfHour(0).withSecondOfMinute(0).minusDays(cacheDays);
167   - List<ElecInfo> list = elecInfoRepository.findByDateLT(dt.toDate());
168   - //写入redis
169   - wirte(list);
170   - logger.info("刷新电耗数据, days: " + cacheDays + " -size: " + list.size() + " -LT: " + dt.toString("yyyy-MM-dd"));
171   - }
172   -
173   - @Component
174   - public static class ElecRefreshThread extends Thread {
175   -
176   - @Autowired
177   - ElecRedisService elecRedisService;
178   -
179   - @Override
180   - public void run() {
181   - try {
182   - elecRedisService.synchData(5);
183   - } catch (Exception e) {
184   - logger.error("", e);
185   - }
186   - }
187   - }
188   -}
src/main/java/com/bsth/redis/OilRedisService.java deleted 100644 → 0
1   -package com.bsth.redis;
2   -
3   -import com.bsth.Application;
4   -import com.bsth.entity.OilInfo;
5   -import com.bsth.redis.util.RedisUtils;
6   -import com.bsth.repository.OilInfoRepository;
7   -import com.bsth.util.ConfigUtil;
8   -import com.bsth.util.ConvertUtil;
9   -import com.google.common.collect.ArrayListMultimap;
10   -import org.joda.time.DateTime;
11   -import org.slf4j.Logger;
12   -import org.slf4j.LoggerFactory;
13   -import org.springframework.beans.factory.annotation.Autowired;
14   -import org.springframework.boot.CommandLineRunner;
15   -import org.springframework.core.annotation.Order;
16   -import org.springframework.data.redis.core.RedisTemplate;
17   -import org.springframework.data.redis.serializer.StringRedisSerializer;
18   -import org.springframework.stereotype.Component;
19   -import org.springframework.stereotype.Service;
20   -
21   -import java.util.*;
22   -import java.util.concurrent.TimeUnit;
23   -
24   -/**
25   - * 油量数据Redis缓存
26   - * Created by panzhao on 2017/3/19.
27   - */
28   -@Service
29   -@Order(3)
30   -public class OilRedisService implements CommandLineRunner {
31   -
32   - @Autowired
33   - private RedisTemplate redisTemplate;
34   -
35   - @Autowired
36   - OilInfoRepository oilInfoRepository;
37   -
38   - @Autowired
39   - RedisUtils redisUtils;
40   -
41   - static Logger logger = LoggerFactory.getLogger(OilRedisService.class);
42   -
43   - private final static String REDIS_KEY_PREFIX = "oil:";
44   -
45   - /**
46   - * 将油量数据写入redis
47   - *
48   - * @param list
49   - */
50   - public void wirte(List<OilInfo> list) {
51   - ArrayListMultimap<String, OilInfo> multimap;
52   - try {
53   - if (list.size() == 0)
54   - return;
55   - //按日期和线路分组数据
56   - Class clazz = OilInfo.class;
57   - multimap = new ConvertUtil().groupMultiList(list, ":", clazz.getDeclaredField("nbbm"), clazz.getDeclaredField("rq"));
58   -
59   - //写入redis
60   - Iterator<String> iterator = multimap.keySet().iterator();
61   - String key;
62   - while (iterator.hasNext()) {
63   - key = iterator.next();
64   - mergeData(key, multimap.get(key));
65   - }
66   - } catch (Exception e) {
67   - logger.error("", e);
68   - }
69   - }
70   -
71   - /**
72   - * 根据车辆和日期获取油耗数据,以 车辆_驾驶员 为key
73   - *
74   - * @param nbbmArray
75   - * @param rq
76   - * @return
77   - */
78   - public ArrayListMultimap<String, OilInfo> findByNbbmGroup(Iterable<String> nbbmArray, String rq) {
79   - ArrayListMultimap<String, OilInfo> rs = ArrayListMultimap.create();
80   -
81   - rq = rq.replaceAll("-", "");
82   - try {
83   - List<OilInfo> list = new ArrayList<>();
84   - Set<String> nbbms = new HashSet<>();
85   - for (String nbbm : nbbmArray) {
86   - nbbm = nbbm.split("_")[1];
87   - if (!nbbms.contains(nbbm)) {
88   - nbbms.add(nbbm);
89   - list.addAll(read(nbbm, rq));
90   - }
91   - }
92   - Class clazz = OilInfo.class;
93   - rs = new ConvertUtil().groupMultiList(list, "_", clazz.getDeclaredField("nbbm"), clazz.getDeclaredField("jsy"));
94   - } catch (Exception e) {
95   - logger.error("", e);
96   - }
97   - return rs;
98   - }
99   -
100   - /**
101   - * 根据车辆和日期获取油耗数据,以 车辆_驾驶员 为key
102   - *
103   - * @param nbbmArray
104   - * @param rq
105   - * @return
106   - */
107   - public Map<String, OilInfo> findByNbbmGroupRaw(Iterable<String> nbbmArray, String rq) {
108   - Map<String, OilInfo> rs = new HashMap<>();
109   -
110   - rq = rq.replaceAll("-", "");
111   - try {
112   - List<OilInfo> list = new ArrayList<>();
113   - for (String nbbm : nbbmArray) {
114   - nbbm = nbbm.split("_")[1];
115   - list.addAll(read(nbbm, rq));
116   - }
117   - Class clazz = OilInfo.class;
118   - rs = new ConvertUtil().groupList(list, "_", clazz.getDeclaredField("nbbm"), clazz.getDeclaredField("jsy"));
119   - } catch (Exception e) {
120   - logger.error("", e);
121   - }
122   - return rs;
123   - }
124   -
125   - /**
126   - * 根据车辆和日期获取油耗数据,以 车辆 为key
127   - *
128   - * @param nbbmArray
129   - * @param rq
130   - * @return
131   - */
132   - public ArrayListMultimap<String, OilInfo> findByNbbmGroup1(Iterable<String> nbbmArray, String rq) {
133   - ArrayListMultimap<String, OilInfo> rs = ArrayListMultimap.create();
134   -
135   - rq = rq.replaceAll("-", "");
136   - try {
137   - List<OilInfo> list = new ArrayList<>();
138   - Set<String> nbbms = new HashSet<>();
139   - for (String nbbm : nbbmArray) {
140   - if (!nbbms.contains(nbbm)) {
141   - nbbms.add(nbbm);
142   - list.addAll(read(nbbm, rq));
143   - }
144   - }
145   - Class clazz = OilInfo.class;
146   - rs = new ConvertUtil().groupMultiList(list, "_", clazz.getDeclaredField("nbbm"));
147   - } catch (Exception e) {
148   - logger.error("", e);
149   - }
150   - return rs;
151   - }
152   -
153   - public List<OilInfo> read(String nbbm, String rq) {
154   - return redisTemplate.opsForList().range(REDIS_KEY_PREFIX + nbbm + ":" + rq, 0, -1);
155   - }
156   -
157   - /**
158   - * 将 list 与redis里的数据合并
159   - *
160   - * @param key
161   - * @param list
162   - */
163   - public void mergeData(String key, List<OilInfo> list) {
164   - key = REDIS_KEY_PREFIX + key;
165   -
166   - //更新 直接覆盖更新
167   - redisTemplate.execute(redisUtils.getUpdateCallback(key, list));
168   - }
169   -
170   - @Autowired
171   - OilRefreshThread oilRefreshThread;
172   -
173   - @Override
174   - public void run(String... strings) throws Exception {
175   - Application.mainServices.schedule(new Runnable() {
176   - @Override
177   - public void run() {
178   - //启动加载油耗缓存
179   - synchData(null);
180   - }
181   - }, 30, TimeUnit.SECONDS);
182   -
183   -
184   - //定时刷新油耗信息
185   - Application.mainServices.scheduleWithFixedDelay(oilRefreshThread, 60 * 40, 60 * 40, TimeUnit.SECONDS);
186   - }
187   -
188   - /**
189   - * 和数据库同步数据
190   - */
191   - public void synchData(Integer days) {
192   - int cacheDays = Integer.parseInt(ConfigUtil.get("cache.days"));
193   - if (null != days && days < cacheDays)
194   - cacheDays = days;
195   - //设置key 序列化器
196   - redisTemplate.setKeySerializer(new StringRedisSerializer());
197   -
198   - DateTime dt = new DateTime();
199   - dt = dt.withHourOfDay(0).withMinuteOfHour(0).withSecondOfMinute(0).minusDays(cacheDays);
200   - List<OilInfo> list = oilInfoRepository.findByDateLT(dt.toDate());
201   - //写入redis
202   - wirte(list);
203   - logger.info("刷新油耗数据, days: " + cacheDays + " -size: " + list.size() + " -LT: " + dt.toString("yyyy-MM-dd"));
204   - }
205   -
206   - @Component
207   - public static class OilRefreshThread extends Thread {
208   -
209   - @Autowired
210   - OilRedisService oilRedisService;
211   -
212   - @Override
213   - public void run() {
214   - try {
215   - oilRedisService.synchData(5);
216   - } catch (Exception e) {
217   - logger.error("", e);
218   - }
219   - }
220   - }
221   -}
src/main/java/com/bsth/redis/PlanScheduleRedisService.java deleted 100644 → 0
1   -package com.bsth.redis;
2   -
3   -import com.bsth.Application;
4   -import com.bsth.entity.SchedulePlanInfo;
5   -import com.bsth.redis.util.DateUtils;
6   -import com.bsth.redis.util.RedisUtils;
7   -import com.bsth.repository.SchedulePlanInfoRepository;
8   -import com.bsth.server_rs.base_info.line.Line;
9   -import com.bsth.server_rs.base_info.line.buffer.LineBufferData;
10   -import com.bsth.util.ConfigUtil;
11   -import com.bsth.util.ConvertUtil;
12   -import com.google.common.collect.ArrayListMultimap;
13   -import org.joda.time.DateTime;
14   -import org.slf4j.Logger;
15   -import org.slf4j.LoggerFactory;
16   -import org.springframework.beans.factory.annotation.Autowired;
17   -import org.springframework.boot.CommandLineRunner;
18   -import org.springframework.core.annotation.Order;
19   -import org.springframework.data.redis.core.ListOperations;
20   -import org.springframework.data.redis.core.RedisTemplate;
21   -import org.springframework.data.redis.serializer.StringRedisSerializer;
22   -import org.springframework.stereotype.Component;
23   -import org.springframework.stereotype.Service;
24   -
25   -import java.util.ArrayList;
26   -import java.util.Date;
27   -import java.util.Iterator;
28   -import java.util.List;
29   -import java.util.concurrent.TimeUnit;
30   -
31   -/**
32   - * 计调的 计划排班redis缓存
33   - * Created by panzhao on 2017/3/27.
34   - */
35   -@Service
36   -@Order(6)
37   -public class PlanScheduleRedisService implements CommandLineRunner {
38   -
39   - @Autowired
40   - private RedisTemplate redisTemplate;
41   -
42   - @Autowired
43   - SchedulePlanInfoRepository planInfoRepository;
44   -
45   - @Autowired
46   - RedisUtils redisUtils;
47   -
48   - static Logger logger = LoggerFactory.getLogger(PlanScheduleRedisService.class);
49   -
50   - private final static String REDIS_KEY_PREFIX = "plan:";
51   -
52   - /**
53   - * 将一批计划写入redis
54   - *
55   - * @param list
56   - */
57   - public void wirte(List<SchedulePlanInfo> list) {
58   - ArrayListMultimap<String, SchedulePlanInfo> multimap;
59   - try {
60   - if (list.size() == 0)
61   - return;
62   - //按日期和线路分组数据
63   - Class clazz = SchedulePlanInfo.class;
64   - multimap = new ConvertUtil().groupMultiList(list, ":", clazz.getDeclaredField("xlBm"), clazz.getDeclaredField("scheduleDate"));
65   -
66   - //写入redis
67   - Iterator<String> iterator = multimap.keySet().iterator();
68   - String key;
69   - while (iterator.hasNext()) {
70   - key = iterator.next();
71   - replace(key, multimap.get(key));
72   - }
73   - } catch (Exception e) {
74   - logger.error("", e);
75   - }
76   - }
77   -
78   - /**
79   - * 将 list 与redis里的数据合并
80   - *
81   - * @param key
82   - * @param list
83   - */
84   - public void mergeData(String key, List<SchedulePlanInfo> list) {
85   - key = REDIS_KEY_PREFIX + key.replaceAll("-", "");
86   -
87   - ListOperations<String, SchedulePlanInfo> ops = redisTemplate.opsForList();
88   - List<SchedulePlanInfo> cacheList = ops.range(key, 0, -1);
89   -
90   - for (SchedulePlanInfo plan : cacheList) {
91   - if (!list.contains(plan))
92   - list.add(plan);
93   - }
94   -
95   - //更新
96   - redisTemplate.execute(redisUtils.getUpdateCallback(key, list));
97   - }
98   -
99   - /**
100   - * 覆盖数据
101   - *
102   - * @param key
103   - * @param list
104   - */
105   - public void replace(String key, List<SchedulePlanInfo> list) {
106   - key = REDIS_KEY_PREFIX + key.replaceAll("-", "");
107   - redisTemplate.execute(redisUtils.getUpdateCallback(key, list));
108   - }
109   -
110   - /**
111   - * 根据日期和线路编码从redis获取计划
112   - *
113   - * @param dateStr
114   - * @param lineCode
115   - * @return
116   - */
117   - public List<SchedulePlanInfo> read(String dateStr, String lineCode) {
118   - return redisTemplate.opsForList().range(REDIS_KEY_PREFIX + lineCode + ":" + dateStr, 0, -1);
119   - }
120   -
121   -
122   - @Autowired
123   - PlanClearThread planClearThread;
124   -
125   - @Override
126   - public void run(String... strings) throws Exception {
127   - Application.mainServices.schedule(new Runnable() {
128   - @Override
129   - public void run() {
130   - int cacheDays = Integer.parseInt(ConfigUtil.get("cache.days"));
131   - //设置key 序列化器
132   - redisTemplate.setKeySerializer(new StringRedisSerializer());
133   -
134   - DateTime dt = new DateTime();
135   - dt = dt.minusDays(cacheDays);
136   - dt = dt.withHourOfDay(0).withMinuteOfHour(0).withSecondOfMinute(0).minusDays(cacheDays);
137   - List<SchedulePlanInfo> list = planInfoRepository.findByDateRange(dt.toDate(), new Date());
138   - //写入redis
139   - wirte(list);
140   - }
141   - }, 60 * 5, TimeUnit.SECONDS);
142   -
143   -
144   - //定时 00:05 分清理计划,并加载当天的计划
145   - long diff = (DateUtils.getTimestamp() + 1000 * 60 * 5) - System.currentTimeMillis();
146   - if (diff < 0)
147   - diff += (1000 * 60 * 60 * 24);
148   - Application.mainServices.scheduleAtFixedRate(planClearThread, diff / 1000, 60 * 60 * 24, TimeUnit.SECONDS);
149   - }
150   -
151   - public List<SchedulePlanInfo> findByMultiLine(List<String> lineArray, String rq) {
152   - rq = rq.replaceAll("-", "");
153   - List<SchedulePlanInfo> rs = new ArrayList<>();
154   - for (String lineCode : lineArray) {
155   - rs.addAll(read(rq, lineCode));
156   - }
157   - return rs;
158   - }
159   -
160   - @Component
161   - public static class PlanClearThread extends Thread {
162   -
163   - @Autowired
164   - PlanScheduleRedisService planRedisService;
165   - @Autowired
166   - SchedulePlanInfoRepository planInfoRepository;
167   -
168   - @Override
169   - public void run() {
170   - try {
171   - logger.info("redis -清理计划排班");
172   -
173   - int cacheDays = Integer.parseInt(ConfigUtil.get("cache.days"));
174   - DateTime dt = new DateTime();
175   - dt = dt.minusDays(cacheDays);
176   - String rq = dt.toString("yyyy-MM-dd");
177   -
178   - List<Line> lines = LineBufferData.findAll();
179   - for (Line line : lines) {
180   - planRedisService.delete(line.getLineCode(), rq);
181   - }
182   -
183   - //加载当天的计划
184   - Date d = new Date();
185   - Date s = new Date(d.getTime() - 1000 * 60 * 60 * 24);
186   - List<SchedulePlanInfo> list = planInfoRepository.findByDateRange(s, d);
187   - //写入redis
188   - planRedisService.wirte(list);
189   - } catch (Exception e) {
190   - logger.error("", e);
191   - }
192   - }
193   - }
194   -
195   - private void delete(String lineCode, String rq) {
196   - String key = REDIS_KEY_PREFIX + (lineCode + ":" + rq).replaceAll("-", "");
197   - redisTemplate.delete(key);
198   - }
199   -}
src/main/java/com/bsth/redis/ScheduleRedisService.java deleted 100644 → 0
1   -package com.bsth.redis;
2   -
3   -import com.bsth.Application;
4   -import com.bsth.common.BasicData;
5   -import com.bsth.entity.ScheduleRealInfo;
6   -import com.bsth.redis.util.RedisUtils;
7   -import com.bsth.repository.ScheduleRealInfoRepository;
8   -import com.bsth.server_rs.base_info.line.Line;
9   -import com.bsth.server_rs.base_info.line.buffer.LineBufferData;
10   -import com.bsth.util.ConfigUtil;
11   -import com.bsth.util.ConvertUtil;
12   -import com.google.common.collect.ArrayListMultimap;
13   -import org.apache.commons.lang3.StringUtils;
14   -import org.joda.time.DateTime;
15   -import org.joda.time.format.DateTimeFormat;
16   -import org.joda.time.format.DateTimeFormatter;
17   -import org.slf4j.Logger;
18   -import org.slf4j.LoggerFactory;
19   -import org.springframework.beans.factory.annotation.Autowired;
20   -import org.springframework.boot.CommandLineRunner;
21   -import org.springframework.core.annotation.Order;
22   -import org.springframework.data.redis.core.ListOperations;
23   -import org.springframework.data.redis.core.RedisTemplate;
24   -import org.springframework.data.redis.serializer.StringRedisSerializer;
25   -import org.springframework.stereotype.Component;
26   -import org.springframework.stereotype.Service;
27   -
28   -import java.util.ArrayList;
29   -import java.util.Iterator;
30   -import java.util.List;
31   -import java.util.concurrent.TimeUnit;
32   -
33   -/**
34   - * 班次 redis 缓存管理
35   - * Created by panzhao on 2017/3/13.
36   - */
37   -@Service
38   -@Order(2)
39   -public class ScheduleRedisService implements CommandLineRunner {
40   -
41   - @Autowired
42   - ScheduleRealInfoRepository scheduleRealInfoRepository;
43   -
44   - private final static String REDIS_KEY_PREFIX = "schedule:";
45   -
46   - @Autowired
47   - private RedisTemplate redisTemplate;
48   -
49   - @Autowired
50   - RedisUtils redisUtils;
51   -
52   - static Logger logger = LoggerFactory.getLogger(ScheduleRedisService.class);
53   -
54   - private final static long DAY_TIME = 1000 * 60 * 60 * 24L;
55   -
56   - /**
57   - * 将一批班次写入redis
58   - *
59   - * @param list
60   - */
61   - public void wirte(List<ScheduleRealInfo> list) {
62   - ArrayListMultimap<String, ScheduleRealInfo> multimap;
63   - try {
64   - if (list.size() == 0)
65   - return;
66   - //按日期和线路分组数据
67   - Class clazz = ScheduleRealInfo.class;
68   - multimap = new ConvertUtil().groupMultiList(list, ":", clazz.getDeclaredField("xlBm"), clazz.getDeclaredField("scheduleDateStr"));
69   -
70   - //写入redis
71   - Iterator<String> iterator = multimap.keySet().iterator();
72   - String key;
73   - while (iterator.hasNext()) {
74   - key = iterator.next();
75   - replace(key, multimap.get(key));
76   - }
77   - } catch (Exception e) {
78   - logger.error("", e);
79   - }
80   - }
81   -
82   - /**
83   - * 将 list 与redis里的数据合并
84   - *
85   - * @param key
86   - * @param list
87   - */
88   - public void mergeData(String key, List<ScheduleRealInfo> list) {
89   - key = REDIS_KEY_PREFIX + key.replaceAll("-", "");
90   -
91   - ListOperations<String, ScheduleRealInfo> ops = redisTemplate.opsForList();
92   - List<ScheduleRealInfo> cacheList = ops.range(key, 0, -1);
93   -
94   - for (ScheduleRealInfo sch : cacheList) {
95   - if (!list.contains(sch))
96   - list.add(sch);
97   - }
98   -
99   - //更新
100   - redisTemplate.execute(redisUtils.getUpdateCallback(key, list));
101   - }
102   -
103   - /**
104   - * 覆盖数据
105   - *
106   - * @param key
107   - * @param list
108   - */
109   - public void replace(String key, List<ScheduleRealInfo> list) {
110   - key = REDIS_KEY_PREFIX + key.replaceAll("-", "");
111   - redisTemplate.execute(redisUtils.getUpdateCallback(key, list));
112   - }
113   -
114   - /**
115   - * 删除数据
116   - *
117   - * @param key
118   - */
119   - public void delete(String lineCode, String rq) {
120   - String key = REDIS_KEY_PREFIX + (lineCode + ":" + rq).replaceAll("-", "");
121   - redisTemplate.delete(key);
122   - }
123   -
124   - /**
125   - * 根据日期和线路编码从redis获取班次
126   - *
127   - * @param dateStr
128   - * @param lineCode
129   - * @return
130   - */
131   - public List<ScheduleRealInfo> read(String dateStr, String lineCode) {
132   - return redisTemplate.opsForList().range(REDIS_KEY_PREFIX + lineCode + ":" + dateStr, 0, -1);
133   - }
134   -
135   - /**
136   - * 返回指定日期,公司的实际排班,并按线路_车辆分组
137   - *
138   - * @param rq
139   - * @param companyId
140   - * @return
141   - */
142   - public ArrayListMultimap<String, ScheduleRealInfo> findByDateAndGroupByNbbm(String rq, String companyId) {
143   - List<String> lineArray = LineBufferData.findCodesByCompany(companyId);
144   - ArrayListMultimap<String, ScheduleRealInfo> rs = ArrayListMultimap.create();
145   -
146   - rq = rq.replaceAll("-", "");
147   - List<ScheduleRealInfo> list;
148   - for (String lineCode : lineArray) {
149   -
150   - list = read(rq, lineCode);
151   -
152   - for (ScheduleRealInfo sch : list) {
153   - rs.put(sch.getXlBm() + "_" + sch.getClZbh(), sch);
154   - }
155   - }
156   - return rs;
157   - }
158   -
159   - /**
160   - * 返回指定日期,公司的实际排班,并按线路分组
161   - *
162   - * @param rq
163   - * @param companyId
164   - * @return
165   - */
166   - public ArrayListMultimap<String, ScheduleRealInfo> findByDateAndGroupByLine(String rq, String companyId) {
167   -
168   - List<String> lineArray = LineBufferData.findCodesByCompany(companyId);
169   - ArrayListMultimap<String, ScheduleRealInfo> rs = ArrayListMultimap.create();
170   -
171   - rq = rq.replaceAll("-", "");
172   - List<ScheduleRealInfo> list;
173   - for (String lineCode : lineArray) {
174   -
175   - list = read(rq, lineCode);
176   -
177   - for (ScheduleRealInfo sch : list) {
178   - rs.put(sch.getXlBm(), sch);
179   - }
180   - }
181   - return rs;
182   - }
183   -
184   - /**
185   - * 返回指定日期,所有实际排班,并按自编号分组
186   - *
187   - * @param rq
188   - * @return
189   - */
190   - public ArrayListMultimap<String, ScheduleRealInfo> findByDate(String rq) {
191   -
192   - List<Line> lines = LineBufferData.findAll();
193   - ArrayListMultimap<String, ScheduleRealInfo> rs = ArrayListMultimap.create();
194   -
195   - rq = rq.replaceAll("-", "");
196   - List<ScheduleRealInfo> list;
197   - for (Line line : lines) {
198   -
199   - list = read(rq, line.getLineCode());
200   -
201   - for (ScheduleRealInfo sch : list) {
202   - rs.put(sch.getClZbh(), sch);
203   - }
204   - }
205   - return rs;
206   - }
207   -
208   - @Autowired
209   - ScheduleRefreshThread scheduleRefreshThread;
210   - @Autowired
211   - ScheduleClearThread scheduleClearThread;
212   -
213   - @Override
214   - public void run(String... strings) throws Exception {
215   - //用子线程去加载,,不要阻塞
216   - Application.mainServices.schedule(new Runnable() {
217   - @Override
218   - public void run() {
219   - try {
220   - logger.info("redis 实际排班 start...");
221   - int cacheDays = Integer.parseInt(ConfigUtil.get("cache.days"));
222   - //设置key 序列化器
223   - redisTemplate.setKeySerializer(new StringRedisSerializer());
224   -
225   - DateTime dt = new DateTime();
226   - dt = dt.minusDays(cacheDays);
227   - List<ScheduleRealInfo> list = scheduleRealInfoRepository.findByDateLT(dt.toString("yyyy-MM-dd"));
228   - calcTime(list);
229   - //写入redis
230   - wirte(list);
231   - logger.info("redis 实际排班 over...");
232   - } catch (Exception e) {
233   - logger.info("redis 实际排班 异常", e);
234   - }
235   - }
236   - }, 5, TimeUnit.SECONDS);
237   -
238   - //定时刷新一次当日实际排班
239   - int minute = 5;
240   - Application.mainServices.scheduleWithFixedDelay(scheduleRefreshThread, minute, minute, TimeUnit.MINUTES);
241   - //24小时清理一次实际排班数据
242   - Application.mainServices.scheduleWithFixedDelay(scheduleClearThread, 24, 24, TimeUnit.HOURS);
243   - }
244   -
245   - public List<ScheduleRealInfo> findByMultiLine(List<String> lineArray, String rq) {
246   - rq = rq.replaceAll("-", "");
247   - List<ScheduleRealInfo> rs = new ArrayList<>();
248   - for (String lineCode : lineArray) {
249   - rs.addAll(read(rq, lineCode));
250   - }
251   - return rs;
252   - }
253   -
254   - @Component
255   - public static class ScheduleRefreshThread extends Thread {
256   -
257   - @Autowired
258   - ScheduleRealInfoRepository realInfoRepository;
259   -
260   - @Autowired
261   - ScheduleRedisService scheduleRedisService;
262   -
263   - @Override
264   - public void run() {
265   - try {
266   - DateTime dt = new DateTime();
267   - DateTime yesterday = dt.minusDays(2);
268   -
269   - String rq = yesterday.toString("yyyy-MM-dd");
270   - logger.info("refresh lt yesterday ..." + rq + " -start");
271   - List<ScheduleRealInfo> list = realInfoRepository.findByDateLT(rq);
272   -
273   - //计算时间戳
274   - scheduleRedisService.calcTime(list);
275   - scheduleRedisService.wirte(list);
276   -
277   - logger.info("refresh lt yesterday ..." + rq + " -end### size: " + list.size());
278   - } catch (Exception e) {
279   - logger.error("", e);
280   - }
281   - }
282   - }
283   -
284   - @Component
285   - public static class ScheduleClearThread extends Thread {
286   -
287   - @Autowired
288   - ScheduleRedisService scheduleRedisService;
289   -
290   - @Override
291   - public void run() {
292   - try {
293   - int cacheDays = Integer.parseInt(ConfigUtil.get("cache.days"));
294   - DateTime dt = new DateTime();
295   - dt = dt.minusDays(cacheDays);
296   - String rq = dt.toString("yyyy-MM-dd");
297   -
298   - List<Line> lines = LineBufferData.findAll();
299   - for (Line line : lines) {
300   - scheduleRedisService.delete(line.getLineCode(), rq);
301   - }
302   - } catch (Exception e) {
303   - logger.error("", e);
304   - }
305   - }
306   - }
307   -
308   - /**
309   - * ############ 时间戳计算 ##########
310   - */
311   - private static DateTimeFormatter fmtyyyyMMddHHmm = DateTimeFormat.forPattern("yyyy-MM-ddHH:mm"),
312   - fmtHHmm = DateTimeFormat.forPattern("HH:mm");
313   -
314   - public void calcTime(List<ScheduleRealInfo> list) {
315   - if (list.size() == 0)
316   - return;
317   -
318   - //计算真实执行日期 和 时间戳
319   - for (ScheduleRealInfo sch : list) {
320   - calcRealDate(BasicData.lineStartTimeMap.get(sch.getXlBm()), sch);
321   - }
322   - }
323   -
324   - /**
325   - * @Title: calcRealDate
326   - * @Description: TODO(计算班次的真实执行日期)
327   - */
328   - public void calcRealDate(String startTime, ScheduleRealInfo sch) {
329   - try {
330   - if (null == startTime)
331   - return;
332   -
333   - if (null == sch.getBcsj())
334   - sch.setBcsj(0);
335   -
336   - String rq = sch.getScheduleDateStr();
337   - //计发时间
338   - sch.setFcsjT(parseTime(rq, sch.getFcsj(), startTime));
339   - //待发时间
340   - sch.setDfsjT(parseTime(rq, sch.getDfsj(), startTime));
341   - //计划终点时间
342   - if (StringUtils.isEmpty(sch.getZdsj())) {
343   - sch.setZdsjT(sch.getFcsjT() + (sch.getBcsj() * 60 * 1000));
344   - sch.setZdsj(fmtHHmm.print(sch.getZdsjT()));
345   - } else
346   - sch.setZdsjT(sch.getFcsjT() + (sch.getBcsj() * 60 * 1000));
347   - //实发时间
348   - if (StringUtils.isNotEmpty(sch.getFcsjActual()))
349   - sch.setFcsjActualAll(parseTime(rq, sch.getFcsjActual(), startTime));
350   -
351   - //实达时间
352   - if (StringUtils.isNotEmpty(sch.getZdsjActual()))
353   - sch.setZdsjActualAll(parseTime(rq, sch.getZdsjActual(), startTime));
354   - } catch (Exception e) {
355   - logger.error("", e);
356   - }
357   - }
358   -
359   - private long parseTime(String rq, String sj, String startTime) {
360   - long t = fmtyyyyMMddHHmm.parseMillis(rq + sj);
361   - if (sj.compareTo(startTime) < 0) {
362   - t += DAY_TIME;
363   - }
364   - return t;
365   - }
366   -}
src/main/java/com/bsth/redis/util/RedisUtils.java deleted 100644 → 0
1   -package com.bsth.redis.util;
2   -
3   -import org.springframework.dao.DataAccessException;
4   -import org.springframework.data.redis.core.RedisOperations;
5   -import org.springframework.data.redis.core.SessionCallback;
6   -import org.springframework.stereotype.Component;
7   -
8   -import java.util.List;
9   -
10   -/**
11   - * Created by panzhao on 2017/3/30.
12   - */
13   -@Component
14   -public class RedisUtils<T> {
15   -
16   - public SessionCallback getUpdateCallback(final String key, final List<T> list){
17   -
18   - SessionCallback<Object> sessionCallback = new SessionCallback<Object>() {
19   -
20   - @Override
21   - public Object execute(RedisOperations redisOperations) throws DataAccessException {
22   - redisOperations.multi();
23   - redisOperations.delete(key);
24   - redisOperations.opsForList().leftPushAll(key, list);
25   - return redisOperations.exec();
26   - }
27   - };
28   -
29   - return sessionCallback;
30   - }
31   -}
src/main/java/com/bsth/server_rs/directive/DirectiveRestService.java deleted 100644 → 0
1   -package com.bsth.server_rs.directive;
2   -
3   -import com.alibaba.fastjson.JSON;
4   -import com.bsth.server_rs.schedule.real.SchRealDataBuffer;
5   -import com.bsth.util.ConfigUtil;
6   -import com.bsth.util.HttpClientUtils;
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   -import org.springframework.web.bind.annotation.RequestBody;
12   -
13   -import javax.ws.rs.*;
14   -import javax.ws.rs.core.MediaType;
15   -import java.util.List;
16   -import java.util.Map;
17   -
18   -/**
19   - * Created by panzhao on 2017/11/10.
20   - */
21   -@Component
22   -@Path("/directive")
23   -@Produces({MediaType.APPLICATION_JSON})
24   -public class DirectiveRestService {
25   -
26   - static String url;
27   - static String secretKey;
28   -
29   - @Autowired
30   - SchRealDataBuffer schRealDataBuffer;
31   - Logger logger = LoggerFactory.getLogger(this.getClass());
32   -
33   - static {
34   - secretKey = ConfigUtil.get("http.control.secret.key");
35   - url = ConfigUtil.get("http.control.service_data_url") + "/send60Phrase?secretKey=" + secretKey;
36   - }
37   -
38   - @POST
39   - @Path("/send")
40   - public int send(@RequestBody Map<String, Object> map){
41   - try{
42   - map.put("sender", "接口@系统");
43   - StringBuilder sb = HttpClientUtils.post(url , JSON.toJSONString(map));
44   - return Integer.parseInt(sb.toString());
45   - }catch (Exception e){
46   - logger.error("", e);
47   - return -500;
48   - }
49   - }
50   -
51   - @GET
52   - @Path("/reply/{msgIds}")
53   - public List<Map> reply(@PathParam("msgIds") String msgIds){
54   - try{
55   - StringBuilder sb = HttpClientUtils.get(url + "&msgIds=" + msgIds);
56   - return JSON.parseArray(sb.toString(), Map.class);
57   - }catch (Exception e){
58   - logger.error("", e);
59   - return null;
60   - }
61   - }
62   -}
src/main/java/com/bsth/server_rs/dks/BusMileage.java deleted 100644 → 0
1   -package com.bsth.server_rs.dks;
2   -
3   -public class BusMileage {
4   -
5   - /**
6   - *
7   - */
8   - private String scheduleDate;
9   -
10   - /**
11   - * 内部编码
12   - */
13   - private String nbbm;
14   -
15   - /**
16   - * 计划里程
17   - */
18   - private Double jhlc;
19   -
20   - /**
21   - * 实际计划里程
22   - */
23   - private Double sjjhlc;
24   -
25   - /**
26   - * 实际出场里程
27   - */
28   - private Double sjcclc;
29   -
30   - /**
31   - * 实际进场里程
32   - */
33   - private Double sjjclc;
34   -
35   - /**
36   - * 营运里程
37   - */
38   - private Double yylc;
39   -
40   - /**
41   - * 空驶里程
42   - */
43   - private Double kslc;
44   -
45   - /**
46   - * 抽减里程
47   - */
48   - private Double cjlc;
49   -
50   - /**
51   - * 烂班里程
52   - */
53   - private Double lblc;
54   -
55   - /**
56   - * 增加里程
57   - */
58   - private Double zjlc;
59   -
60   - /**
61   - * 总里程
62   - */
63   - private Double zlc;
64   -
65   - /**
66   - * 油耗
67   - */
68   - private Double yh;
69   -
70   - /**
71   - * 电耗
72   - */
73   - private Double dh;
74   -
75   - /**
76   - *
77   - */
78   - private String company;
79   -
80   - /**
81   - *
82   - */
83   - private String companyCode;
84   -
85   - public String getScheduleDate() {
86   - return scheduleDate;
87   - }
88   -
89   - public void setScheduleDate(String scheduleDate) {
90   - this.scheduleDate = scheduleDate;
91   - }
92   -
93   - public String getNbbm() {
94   - return nbbm;
95   - }
96   -
97   - public void setNbbm(String nbbm) {
98   - this.nbbm = nbbm;
99   - }
100   -
101   - public Double getJhlc() {
102   - return jhlc;
103   - }
104   -
105   - public void setJhlc(Double jhlc) {
106   - this.jhlc = jhlc;
107   - }
108   -
109   - public Double getSjjhlc() {
110   - return sjjhlc;
111   - }
112   -
113   - public void setSjjhlc(Double sjjhlc) {
114   - this.sjjhlc = sjjhlc;
115   - }
116   -
117   - public Double getSjcclc() {
118   - return sjcclc;
119   - }
120   -
121   - public void setSjcclc(Double sjcclc) {
122   - this.sjcclc = sjcclc;
123   - }
124   -
125   - public Double getSjjclc() {
126   - return sjjclc;
127   - }
128   -
129   - public void setSjjclc(Double sjjclc) {
130   - this.sjjclc = sjjclc;
131   - }
132   -
133   - public Double getYylc() {
134   - return yylc;
135   - }
136   -
137   - public void setYylc(Double yylc) {
138   - this.yylc = yylc;
139   - }
140   -
141   - public Double getKslc() {
142   - return kslc;
143   - }
144   -
145   - public void setKslc(Double kslc) {
146   - this.kslc = kslc;
147   - }
148   -
149   - public Double getCjlc() {
150   - return cjlc;
151   - }
152   -
153   - public void setCjlc(Double cjlc) {
154   - this.cjlc = cjlc;
155   - }
156   -
157   - public Double getLblc() {
158   - return lblc;
159   - }
160   -
161   - public void setLblc(Double lblc) {
162   - this.lblc = lblc;
163   - }
164   -
165   - public Double getZjlc() {
166   - return zjlc;
167   - }
168   -
169   - public void setZjlc(Double zjlc) {
170   - this.zjlc = zjlc;
171   - }
172   -
173   - public Double getZlc() {
174   - return zlc;
175   - }
176   -
177   - public void setZlc(Double zlc) {
178   - this.zlc = zlc;
179   - }
180   -
181   - public Double getYh() {
182   - return yh;
183   - }
184   -
185   - public void setYh(Double yh) {
186   - this.yh = yh;
187   - }
188   -
189   - public Double getDh() {
190   - return dh;
191   - }
192   -
193   - public void setDh(Double dh) {
194   - this.dh = dh;
195   - }
196   -
197   - public String getCompany() {
198   - return company;
199   - }
200   -
201   - public void setCompany(String company) {
202   - this.company = company;
203   - }
204   -
205   - public String getCompanyCode() {
206   - return companyCode;
207   - }
208   -
209   - public void setCompanyCode(String companyCode) {
210   - this.companyCode = companyCode;
211   - }
212   -}
src/main/java/com/bsth/server_rs/dks/DksRestService.java deleted 100644 → 0
1   -package com.bsth.server_rs.dks;
2   -
3   -import com.alibaba.fastjson.JSON;
4   -import com.bsth.entity.ElecInfo;
5   -import com.bsth.entity.OilInfo;
6   -import com.bsth.entity.SchedulePlanInfo;
7   -import com.bsth.entity.ScheduleRealInfo;
8   -import com.bsth.redis.ElecRedisService;
9   -import com.bsth.redis.OilRedisService;
10   -import com.bsth.redis.ScheduleRedisService;
11   -import com.bsth.repository.SchedulePlanInfoRepository;
12   -import com.bsth.repository.ScheduleRealInfoRepository;
13   -import com.bsth.server_rs.base_info.line.Line;
14   -import com.bsth.server_rs.base_info.line.buffer.LineBufferData;
15   -import com.bsth.server_ws.util.ScheduleCalculator;
16   -import com.bsth.util.Arith;
17   -import com.google.common.collect.ArrayListMultimap;
18   -import org.joda.time.DateTime;
19   -import org.joda.time.format.DateTimeFormat;
20   -import org.slf4j.Logger;
21   -import org.slf4j.LoggerFactory;
22   -import org.springframework.beans.factory.annotation.Autowired;
23   -import org.springframework.jdbc.core.BatchPreparedStatementSetter;
24   -import org.springframework.jdbc.core.BeanPropertyRowMapper;
25   -import org.springframework.jdbc.core.JdbcTemplate;
26   -import org.springframework.jdbc.datasource.DataSourceTransactionManager;
27   -import org.springframework.scheduling.annotation.EnableScheduling;
28   -import org.springframework.scheduling.annotation.Scheduled;
29   -import org.springframework.stereotype.Component;
30   -import org.springframework.transaction.TransactionDefinition;
31   -import org.springframework.transaction.TransactionStatus;
32   -import org.springframework.transaction.support.DefaultTransactionDefinition;
33   -import org.springframework.util.StringUtils;
34   -
35   -import javax.ws.rs.*;
36   -import javax.ws.rs.core.MediaType;
37   -import java.sql.PreparedStatement;
38   -import java.sql.SQLException;
39   -import java.util.*;
40   -
41   -/**
42   - * @author Hill
43   - * @date 2021-09
44   - */
45   -@Component
46   -@EnableScheduling
47   -@Path("/dks")
48   -@Produces({MediaType.APPLICATION_JSON})
49   -public class DksRestService {
50   -
51   - private final static Logger log = LoggerFactory.getLogger(DksRestService.class);
52   -
53   - @Autowired
54   - private JdbcTemplate jdbcTemplate;
55   -
56   - @Autowired
57   - private ScheduleRealInfoRepository scheduleRealInfoRepository;
58   -
59   - @Autowired
60   - private SchedulePlanInfoRepository schedulePlanInfoRepository;
61   -
62   - @Autowired
63   - private ScheduleRedisService scheduleRedisService;
64   -
65   - @Autowired
66   - private OilRedisService oilRedisService;
67   -
68   - @Autowired
69   - private ElecRedisService elecRedisService;
70   -
71   - /**
72   - * 根据日期统计数据重新计算
73   - * @param rq
74   - */
75   - @GET
76   - @Path("/reCompute/{rq}")
77   - public void reStatisticalComputation(@PathParam("rq") String rq) {
78   - DateTime dateTime = DateTimeFormat.forPattern("yyyy-MM-dd").parseDateTime(rq);
79   - planComputation(dateTime);
80   - realComputation(dateTime);
81   - carMileageComputation(dateTime);
82   - }
83   -
84   - /**
85   - *
86   - */
87   - private List<LineServiceConfigVo> reGroup(List<LineServiceConfig> configs, String month) {
88   - List<LineServiceConfigVo> result = new ArrayList<>();
89   - String oldLineCode = "";
90   - LineServiceConfigVo vo = null;
91   - for (int i = 0, len = configs.size();i < len;i++) {
92   - LineServiceConfig config = configs.get(i);
93   - if (i == 0) {
94   - oldLineCode = config.getLineCode();
95   - vo = new LineServiceConfigVo();
96   - vo.setLineName(config.getLineName());
97   - vo.setMonth(month);
98   - vo.setConductorFirstCount(config.getConductorCount());
99   - vo.setDriverFirstCount(config.getDriverCount());
100   - } else if (i == len - 1) {
101   - result.add(vo);
102   - } else {
103   - if (!oldLineCode.equals(config.getLineCode())) {
104   - oldLineCode = config.getLineCode();
105   - result.add(vo);
106   - vo = new LineServiceConfigVo();
107   - vo.setLineName(config.getLineName());
108   - vo.setMonth(month);
109   - vo.setConductorFirstCount(config.getConductorCount());
110   - vo.setDriverFirstCount(config.getDriverCount());
111   - }
112   - }
113   - vo.setConductorLastCount(config.getConductorCount());
114   - vo.setDriverLastCount(config.getDriverCount());
115   - }
116   -
117   - return result;
118   - }
119   -
120   - /**
121   - * 计划司售配档数
122   - * @param month
123   - */
124   - @GET
125   - @Path("/plan/{month}")
126   - public List<LineServiceConfigVo> plan(@PathParam("month") String month) {
127   - List<LineServiceConfig> configs = jdbcTemplate.query("select * from control_interface.bsth_t_plan where schedule_date like CONCAT(?, '%') order by line_code, schedule_date", new Object[]{ month }, BeanPropertyRowMapper.newInstance(LineServiceConfig.class));
128   - return reGroup(configs, month);
129   - }
130   -
131   - /**
132   - * 实际司售配档数
133   - * @param month
134   - */
135   - @GET
136   - @Path("/actual/{month}")
137   - public List<LineServiceConfigVo> actual(@PathParam("month") String month) {
138   - List<LineServiceConfig> configs = jdbcTemplate.query("select * from control_interface.bsth_t_real where schedule_date like CONCAT(?, '%') order by line_code, schedule_date", new Object[]{ month }, BeanPropertyRowMapper.newInstance(LineServiceConfig.class));
139   - return reGroup(configs, month);
140   - }
141   -
142   - /**
143   - * 实际配车数
144   - * @param month
145   - */
146   - @GET
147   - @Path("/bus/{month}")
148   - public List<BusVo> bus(@PathParam("month") String month) {
149   - List<LineServiceConfig> configs = jdbcTemplate.query("select * from control_interface.bsth_t_real where schedule_date like CONCAT(?, '%') order by line_code, schedule_date", new Object[]{ month }, BeanPropertyRowMapper.newInstance(LineServiceConfig.class));
150   - List<BusVo> result = new ArrayList<>();
151   - String oldLineCode = "";
152   - BusVo vo = null;
153   - int max = 0;
154   - for (int i = 0, len = configs.size();i < len;i++) {
155   - LineServiceConfig config = configs.get(i);
156   - if (i == 0) {
157   - oldLineCode = config.getLineCode();
158   - vo = new BusVo();
159   - vo.setLineName(config.getLineName());
160   - vo.setMonth(month);
161   - vo.setBusFirstCount(config.getCarCount());
162   - } else if (!oldLineCode.equals(config.getLineCode())) {
163   - oldLineCode = config.getLineCode();
164   - vo.setBusMaxCount(max);
165   - result.add(vo);
166   - max = 0;
167   - vo = new BusVo();
168   - vo.setLineName(config.getLineName());
169   - vo.setMonth(month);
170   - vo.setBusFirstCount(config.getCarCount());
171   - }
172   - max = Math.max(max, config.getCarCount());
173   - if (i == len - 1) {
174   - vo.setBusMaxCount(max);
175   - result.add(vo);
176   - }
177   - vo.setBusLastCount(config.getCarCount());
178   - }
179   -
180   - return result;
181   - }
182   -
183   - /**
184   - * 车辆公里、油耗数据
185   - * @param month
186   - */
187   - @GET
188   - @Path("/mileage/{month}")
189   - public List<BusMileageVo> mileage(@PathParam("month") String month) {
190   - List<BusMileage> mileages = jdbcTemplate.query("select company, company_code, nbbm, schedule_month schedule_date, sum(zlc) zlc, sum(yh) yh, sum(dh) dh from control_interface.bsth_t_mileage where schedule_month = ? group by company, company_code, nbbm, schedule_month", new Object[]{ month }, BeanPropertyRowMapper.newInstance(BusMileage.class));
191   - List<BusMileageVo> result = new ArrayList<>();
192   - for (BusMileage mileage : mileages) {
193   - BusMileageVo vo = new BusMileageVo();
194   - vo.setMonth(mileage.getScheduleDate());
195   - vo.setInsideCode(mileage.getNbbm());
196   - vo.setTotalMileage(mileage.getZlc());
197   - vo.setOilConsume(mileage.getYh());
198   - vo.setElectricConsume(mileage.getDh());
199   - vo.setCompany(mileage.getCompany());
200   - vo.setCompanyCode(mileage.getCompanyCode());
201   -
202   - result.add(vo);
203   - }
204   -
205   - return result;
206   - }
207   -
208   - @Scheduled(cron = "0 0/25 23 * * ?")
209   - public void statisticalComputation() {
210   - log.info("执行电科所接口数据统计计算");
211   - DateTime dateTime = DateTime.now().plusDays(1);
212   - try {
213   - for (int i = 0;i < 3;i++) {
214   - dateTime = dateTime.minusDays(1);
215   - planComputation(dateTime);
216   - realComputation(dateTime);
217   - carMileageComputation(dateTime);
218   - }
219   - } catch (Exception e) {
220   - e.printStackTrace();
221   - }
222   - }
223   -
224   - /**
225   - * 计划排班中的线路司售配档数
226   - */
227   - private void planComputation(DateTime dateTime) {
228   - // 记录实际线路司售配档情况
229   - List<SchedulePlanInfo> schedulePlanInfos = schedulePlanInfoRepository.findByDate(DateTimeFormat.forPattern("yyyy-MM-dd").parseDateTime(dateTime.toString("yyyy-MM-dd")).toDate());
230   - Set<String> lineCodes = new HashSet<>();
231   - Map<String, Set<String>> line2conductors = new HashMap<>(), line2drivers = new HashMap<>();
232   - final List<LineServiceConfig> objects = new ArrayList<>();
233   - for (SchedulePlanInfo schedulePlanInfo : schedulePlanInfos) {
234   - String lineCode = schedulePlanInfo.getXlBm();
235   - lineCodes.add(lineCode);
236   - Set<String> conductors = line2conductors.get(lineCode), drivers = line2drivers.get(lineCode);
237   - if (conductors == null) {
238   - conductors = new HashSet<>();
239   - line2conductors.put(lineCode, conductors);
240   - }
241   - if (drivers == null) {
242   - drivers = new HashSet<>();
243   - line2drivers.put(lineCode, drivers);
244   - }
245   - if (!StringUtils.isEmpty(schedulePlanInfo.getsGh())) {
246   - conductors.add(schedulePlanInfo.getsGh());
247   - }
248   - drivers.add(schedulePlanInfo.getjGh());
249   - }
250   - for (String lineCode : lineCodes) {
251   - LineServiceConfig object = new LineServiceConfig();
252   - Line line = LineBufferData.findOne(lineCode);
253   - object.setLineCode(lineCode);
254   - object.setLineName(line == null ? "" : line.getName());
255   - object.setScheduleDate(dateTime.toString("yyyy-MM-dd"));
256   - object.setConductorCount(line2conductors.get(lineCode).size());
257   - object.setDriverCount(line2drivers.get(lineCode).size());
258   -
259   - objects.add(object);
260   - }
261   -
262   - //编程式事务
263   - DataSourceTransactionManager tran = new DataSourceTransactionManager(jdbcTemplate.getDataSource());
264   - DefaultTransactionDefinition def = new DefaultTransactionDefinition();
265   - def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
266   - TransactionStatus status = tran.getTransaction(def);
267   -
268   - try {
269   - jdbcTemplate.update("delete from control_interface.bsth_t_plan where schedule_date = ?", new Object[]{ dateTime.toString("yyyy-MM-dd") });
270   - jdbcTemplate.batchUpdate("insert into control_interface.bsth_t_plan (line_code, line_name, schedule_date, conductor_count, driver_count) values (?,?,?,?,?)", new BatchPreparedStatementSetter() {
271   - @Override
272   - public void setValues(PreparedStatement ps, int i) throws SQLException {
273   - LineServiceConfig object = objects.get(i);
274   - ps.setString(1, object.getLineCode());
275   - ps.setString(2, object.getLineName());
276   - ps.setString(3, object.getScheduleDate());
277   - ps.setInt(4, object.getConductorCount());
278   - ps.setInt(5, object.getDriverCount());
279   - }
280   -
281   - @Override
282   - public int getBatchSize() {
283   - return objects.size();
284   - }
285   - });
286   - tran.commit(status);
287   - } catch (Exception e) {
288   - tran.rollback(status);
289   - }
290   - }
291   -
292   - /**
293   - * 实际排班中的线路司售配档数
294   - */
295   - private void realComputation(DateTime dateTime) {
296   - // 记录实际线路司售配档情况
297   - List<ScheduleRealInfo> scheduleRealInfos = scheduleRealInfoRepository.findAll(dateTime.toString("yyyy-MM-dd"));
298   - Set<String> lineCodes = new HashSet<>();
299   - Map<String, Set<String>> line2conductors = new HashMap<>(), line2drivers = new HashMap<>(), line2cars = new HashMap<>();
300   - final List<LineServiceConfig> objects = new ArrayList<>();
301   - for (ScheduleRealInfo scheduleRealInfo : scheduleRealInfos) {
302   - // 烂班班次不计入配档数
303   - if (scheduleRealInfo.getStatus() == -1) { continue; }
304   - String lineCode = scheduleRealInfo.getXlBm();
305   - lineCodes.add(lineCode);
306   - Set<String> conductors = line2conductors.get(lineCode), drivers = line2drivers.get(lineCode), cars = line2cars.get(lineCode);
307   - if (conductors == null) {
308   - conductors = new HashSet<>();
309   - line2conductors.put(lineCode, conductors);
310   - }
311   - if (drivers == null) {
312   - drivers = new HashSet<>();
313   - line2drivers.put(lineCode, drivers);
314   - }
315   - if (cars == null) {
316   - cars = new HashSet<>();
317   - line2cars.put(lineCode, cars);
318   - }
319   - if (!StringUtils.isEmpty(scheduleRealInfo.getsGh())) {
320   - conductors.add(scheduleRealInfo.getsGh());
321   - }
322   - drivers.add(scheduleRealInfo.getjGh());
323   - cars.add(scheduleRealInfo.getClZbh());
324   - }
325   - for (String lineCode : lineCodes) {
326   - LineServiceConfig object = new LineServiceConfig();
327   - Line line = LineBufferData.findOne(lineCode);
328   - object.setLineCode(lineCode);
329   - object.setLineName(line == null ? "" : line.getName());
330   - object.setScheduleDate(dateTime.toString("yyyy-MM-dd"));
331   - object.setConductorCount(line2conductors.get(lineCode).size());
332   - object.setDriverCount(line2drivers.get(lineCode).size());
333   - object.setCarCount(line2cars.get(lineCode).size());
334   -
335   - objects.add(object);
336   - }
337   -
338   - //编程式事务
339   - DataSourceTransactionManager tran = new DataSourceTransactionManager(jdbcTemplate.getDataSource());
340   - DefaultTransactionDefinition def = new DefaultTransactionDefinition();
341   - def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
342   - TransactionStatus status = tran.getTransaction(def);
343   - try {
344   - jdbcTemplate.update("delete from control_interface.bsth_t_real where schedule_date = ?", new Object[]{ dateTime.toString("yyyy-MM-dd") });
345   - jdbcTemplate.batchUpdate("insert into control_interface.bsth_t_real (line_code, line_name, schedule_date, conductor_count, driver_count, car_count) values (?,?,?,?,?,?)", new BatchPreparedStatementSetter() {
346   - @Override
347   - public void setValues(PreparedStatement ps, int i) throws SQLException {
348   - LineServiceConfig object = objects.get(i);
349   - ps.setString(1, object.getLineCode());
350   - ps.setString(2, object.getLineName());
351   - ps.setString(3, object.getScheduleDate());
352   - ps.setInt(4, object.getConductorCount());
353   - ps.setInt(5, object.getDriverCount());
354   - ps.setInt(6, object.getCarCount());
355   - }
356   -
357   - @Override
358   - public int getBatchSize() {
359   - return objects.size();
360   - }
361   - });
362   - tran.commit(status);
363   - } catch (Exception e) {
364   - tran.rollback(status);
365   - }
366   - }
367   -
368   - private void carMileageComputation(final DateTime dateTime) {
369   - String rq = dateTime.toString("yyyy-MM-dd");
370   - // 实际排班信息
371   - ArrayListMultimap<String, ScheduleRealInfo> nbbm2schedules = scheduleRedisService.findByDate(rq);
372   - // 油耗信息
373   - ArrayListMultimap<String, OilInfo> oilInfoMap = oilRedisService.findByNbbmGroup1(nbbm2schedules.keySet(), rq);
374   - //电耗信息
375   - ArrayListMultimap<String, ElecInfo> elecInfoMap = elecRedisService.findByNbbmGroup1(nbbm2schedules.keySet(), rq);
376   - Set<String> nbbms = nbbm2schedules.keySet();
377   - final List<BusMileage> busMileages = new ArrayList<>();
378   - for (String nbbm : nbbms) {
379   - List<ScheduleRealInfo> scheduleRealInfos = nbbm2schedules.get(nbbm);
380   - if (scheduleRealInfos.size() == 0) {
381   - continue;
382   - }
383   - BusMileage busMileage = new BusMileage();
384   - busMileage.setScheduleDate(rq);
385   - busMileage.setNbbm(nbbm);
386   - busMileage.setJhlc(ScheduleCalculator.calcJHLC(scheduleRealInfos));
387   - busMileage.setSjjhlc(ScheduleCalculator.calcSJLC(scheduleRealInfos));
388   - busMileage.setSjcclc(ScheduleCalculator.calcCCLC(scheduleRealInfos));
389   - busMileage.setSjjclc(ScheduleCalculator.calcJCLC(scheduleRealInfos));
390   - busMileage.setYylc(ScheduleCalculator.calcYYLC(scheduleRealInfos));
391   - busMileage.setKslc(ScheduleCalculator.calcKSLC(scheduleRealInfos));
392   - busMileage.setCjlc(ScheduleCalculator.calcCJLC(scheduleRealInfos));
393   - busMileage.setLblc(ScheduleCalculator.calcLBLC(scheduleRealInfos));
394   - busMileage.setZjlc(ScheduleCalculator.calcZJLC(scheduleRealInfos));
395   - busMileage.setZlc(ScheduleCalculator.calcZLC(scheduleRealInfos));
396   - busMileage.setCompany(scheduleRealInfos.get(0).getGsName());
397   - busMileage.setCompanyCode(scheduleRealInfos.get(0).getGsBm());
398   - List<OilInfo> oilInfos = oilInfoMap.get(nbbm);
399   - List<ElecInfo> elecInfos = elecInfoMap.get(nbbm);
400   - Double yh = 0.0, dh = 0.0;
401   - for (OilInfo oilInfo : oilInfos) {
402   - yh = Arith.add(yh, oilInfo.getYh());
403   - }
404   - for (ElecInfo elecInfo : elecInfos) {
405   - dh = Arith.add(yh, elecInfo.getHd());
406   - }
407   - busMileage.setYh(yh);
408   - busMileage.setDh(dh);
409   -
410   - busMileages.add(busMileage);
411   - }
412   -
413   - //编程式事务
414   - DataSourceTransactionManager tran = new DataSourceTransactionManager(jdbcTemplate.getDataSource());
415   - DefaultTransactionDefinition def = new DefaultTransactionDefinition();
416   - def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
417   - TransactionStatus status = tran.getTransaction(def);
418   - try {
419   - jdbcTemplate.update("delete from control_interface.bsth_t_mileage where schedule_date = ?", new Object[]{ dateTime.toString("yyyy-MM-dd") });
420   - jdbcTemplate.batchUpdate("insert into control_interface.bsth_t_mileage (schedule_date,nbbm,jhlc,sjjhlc,sjcclc,sjjclc,yylc,kslc,cjlc,lblc,zjlc,zlc,yh,dh,schedule_month,company,company_code) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", new BatchPreparedStatementSetter() {
421   - @Override
422   - public void setValues(PreparedStatement ps, int i) throws SQLException {
423   - BusMileage busMileage = busMileages.get(i);
424   - ps.setString(1, busMileage.getScheduleDate());
425   - ps.setString(2, busMileage.getNbbm());
426   - ps.setDouble(3, busMileage.getJhlc());
427   - ps.setDouble(4, busMileage.getSjjhlc());
428   - ps.setDouble(5, busMileage.getSjcclc());
429   - ps.setDouble(6, busMileage.getSjjclc());
430   - ps.setDouble(7, busMileage.getYylc());
431   - ps.setDouble(8, busMileage.getKslc());
432   - ps.setDouble(9, busMileage.getCjlc());
433   - ps.setDouble(10, busMileage.getLblc());
434   - ps.setDouble(11, busMileage.getZjlc());
435   - ps.setDouble(12, busMileage.getZlc());
436   - ps.setDouble(13, busMileage.getYh());
437   - ps.setDouble(14, busMileage.getDh());
438   - ps.setString(15, dateTime.toString("yyyy-MM"));
439   - ps.setString(16, busMileage.getCompany());
440   - ps.setString(17, busMileage.getCompanyCode());
441   - }
442   -
443   - @Override
444   - public int getBatchSize() {
445   - return busMileages.size();
446   - }
447   - });
448   - tran.commit(status);
449   - } catch (Exception e) {
450   - tran.rollback(status);
451   - }
452   - }
453   -
454   - /**
455   - * 线路司售配档对象
456   - */
457   - private final static class LineServiceConfigVo {
458   -
459   - private String lineName;
460   -
461   - private String month;
462   -
463   - private Integer driverFirstCount;
464   -
465   - private Integer driverLastCount;
466   -
467   - private Integer conductorFirstCount;
468   -
469   - private Integer conductorLastCount;
470   -
471   - public String getLineName() {
472   - return lineName;
473   - }
474   -
475   - public void setLineName(String lineName) {
476   - this.lineName = lineName;
477   - }
478   -
479   - public String getMonth() {
480   - return month;
481   - }
482   -
483   - public void setMonth(String month) {
484   - this.month = month;
485   - }
486   -
487   - public Integer getDriverFirstCount() {
488   - return driverFirstCount;
489   - }
490   -
491   - public void setDriverFirstCount(Integer driverFirstCount) {
492   - this.driverFirstCount = driverFirstCount;
493   - }
494   -
495   - public Integer getDriverLastCount() {
496   - return driverLastCount;
497   - }
498   -
499   - public void setDriverLastCount(Integer driverLastCount) {
500   - this.driverLastCount = driverLastCount;
501   - }
502   -
503   - public Integer getConductorFirstCount() {
504   - return conductorFirstCount;
505   - }
506   -
507   - public void setConductorFirstCount(Integer conductorFirstCount) {
508   - this.conductorFirstCount = conductorFirstCount;
509   - }
510   -
511   - public Integer getConductorLastCount() {
512   - return conductorLastCount;
513   - }
514   -
515   - public void setConductorLastCount(Integer conductorLastCount) {
516   - this.conductorLastCount = conductorLastCount;
517   - }
518   - }
519   -
520   - /**
521   - * 车辆配档对象
522   - */
523   - private final static class BusVo {
524   -
525   - private String lineName;
526   -
527   - private String month;
528   -
529   - private Integer busFirstCount;
530   -
531   - private Integer busLastCount;
532   -
533   - private Integer busMaxCount;
534   -
535   - public String getLineName() {
536   - return lineName;
537   - }
538   -
539   - public void setLineName(String lineName) {
540   - this.lineName = lineName;
541   - }
542   -
543   - public String getMonth() {
544   - return month;
545   - }
546   -
547   - public void setMonth(String month) {
548   - this.month = month;
549   - }
550   -
551   - public Integer getBusFirstCount() {
552   - return busFirstCount;
553   - }
554   -
555   - public void setBusFirstCount(Integer busFirstCount) {
556   - this.busFirstCount = busFirstCount;
557   - }
558   -
559   - public Integer getBusLastCount() {
560   - return busLastCount;
561   - }
562   -
563   - public void setBusLastCount(Integer busLastCount) {
564   - this.busLastCount = busLastCount;
565   - }
566   -
567   - public Integer getBusMaxCount() {
568   - return busMaxCount;
569   - }
570   -
571   - public void setBusMaxCount(Integer busMaxCount) {
572   - this.busMaxCount = busMaxCount;
573   - }
574   - }
575   -
576   - /**
577   - * 车辆公里、油耗对象
578   - */
579   - private final static class BusMileageVo {
580   -
581   - private String insideCode;
582   -
583   - private String month;
584   -
585   - private Double totalMileage;
586   -
587   - private Double oilConsume;
588   -
589   - private Double electricConsume;
590   -
591   - /**
592   - *
593   - */
594   - private String company;
595   -
596   - /**
597   - *
598   - */
599   - private String companyCode;
600   -
601   - public String getInsideCode() {
602   - return insideCode;
603   - }
604   -
605   - public void setInsideCode(String insideCode) {
606   - this.insideCode = insideCode;
607   - }
608   -
609   - public String getMonth() {
610   - return month;
611   - }
612   -
613   - public void setMonth(String month) {
614   - this.month = month;
615   - }
616   -
617   - public Double getTotalMileage() {
618   - return totalMileage;
619   - }
620   -
621   - public void setTotalMileage(Double totalMileage) {
622   - this.totalMileage = totalMileage;
623   - }
624   -
625   - public Double getOilConsume() {
626   - return oilConsume;
627   - }
628   -
629   - public void setOilConsume(Double oilConsume) {
630   - this.oilConsume = oilConsume;
631   - }
632   -
633   - public Double getElectricConsume() {
634   - return electricConsume;
635   - }
636   -
637   - public void setElectricConsume(Double electricConsume) {
638   - this.electricConsume = electricConsume;
639   - }
640   -
641   - public String getCompany() {
642   - return company;
643   - }
644   -
645   - public void setCompany(String company) {
646   - this.company = company;
647   - }
648   -
649   - public String getCompanyCode() {
650   - return companyCode;
651   - }
652   -
653   - public void setCompanyCode(String companyCode) {
654   - this.companyCode = companyCode;
655   - }
656   - }
657   -}
src/main/java/com/bsth/server_rs/dks/LineServiceConfig.java deleted 100644 → 0
1   -package com.bsth.server_rs.dks;
2   -
3   -/**
4   - * 线路运营司、售、车辆配档信息
5   - * @author Hill
6   - */
7   -public class LineServiceConfig {
8   -
9   - private String lineCode;
10   -
11   - private String lineName;
12   -
13   - private String month;
14   -
15   - private String scheduleDate;
16   -
17   - private int driverCount;
18   -
19   - private int conductorCount;
20   -
21   - private int carCount;
22   -
23   - public String getLineCode() {
24   - return lineCode;
25   - }
26   -
27   - public void setLineCode(String lineCode) {
28   - this.lineCode = lineCode;
29   - }
30   -
31   - public String getLineName() {
32   - return lineName;
33   - }
34   -
35   - public void setLineName(String lineName) {
36   - this.lineName = lineName;
37   - }
38   -
39   - public String getMonth() {
40   - return month;
41   - }
42   -
43   - public void setMonth(String month) {
44   - this.month = month;
45   - }
46   -
47   - public String getScheduleDate() {
48   - return scheduleDate;
49   - }
50   -
51   - public void setScheduleDate(String scheduleDate) {
52   - this.scheduleDate = scheduleDate;
53   - }
54   -
55   - public int getDriverCount() {
56   - return driverCount;
57   - }
58   -
59   - public void setDriverCount(int driverCount) {
60   - this.driverCount = driverCount;
61   - }
62   -
63   - public int getConductorCount() {
64   - return conductorCount;
65   - }
66   -
67   - public void setConductorCount(int conductorCount) {
68   - this.conductorCount = conductorCount;
69   - }
70   -
71   - public int getCarCount() {
72   - return carCount;
73   - }
74   -
75   - public void setCarCount(int carCount) {
76   - this.carCount = carCount;
77   - }
78   -}
src/main/java/com/bsth/server_rs/electric/ElectricService.java deleted 100644 → 0
1   -package com.bsth.server_rs.electric;
2   -
3   -import com.bsth.server_ws.electric_oil.entity.Electric;
4   -import org.slf4j.Logger;
5   -import org.slf4j.LoggerFactory;
6   -import org.springframework.beans.factory.annotation.Autowired;
7   -import org.springframework.jdbc.core.BeanPropertyRowMapper;
8   -import org.springframework.jdbc.core.JdbcTemplate;
9   -import org.springframework.stereotype.Component;
10   -
11   -import javax.ws.rs.GET;
12   -import javax.ws.rs.Path;
13   -import javax.ws.rs.PathParam;
14   -import javax.ws.rs.Produces;
15   -import javax.ws.rs.core.MediaType;
16   -import java.util.List;
17   -
18   -/**
19   - * Created by panzhao on 2018/3/27.
20   - */
21   -@Component
22   -@Path("/electric")
23   -@Produces({MediaType.APPLICATION_JSON})
24   -public class ElectricService {
25   -
26   - Logger logger = LoggerFactory.getLogger(this.getClass());
27   -
28   - @Autowired
29   - JdbcTemplate jdbcTemplate;
30   -
31   - @GET
32   - @Path("/{company}/{rq}")
33   - public List<Electric> list(@PathParam("company") String company, @PathParam("rq") String rq){
34   - List<Electric> list = null;
35   - try {
36   - //从数据库查询
37   - //list = jdbcTemplate.query("select fgs_bm,fgs_name,gs_bm,gs_name,jdl,jdz,remarks,rq,creater_date,nbbm,jsy from bsth_c_jdl where gs_bm="+company+" and rq='"+rq+"'"
38   - // , BeanPropertyRowMapper.newInstance(Electric.class));
39   - list = jdbcTemplate.query("select fgsdm as fgs_bm,c.business_name as fgs_name,ssgsdm as gs_bm,b.business_name as gs_name,cdl as jdl,'' as jdz,'' as remarks,rq,createtime as create_date,nbbm,'' as jsy from (select fgsdm,ssgsdm,sum(cdl * 1000) / 1000 as cdl,rq,max(createtime) as createtime,nbbm from bsth_c_dlb where rq = '" + rq + "' GROUP BY fgsdm,ssgsdm,rq,nbbm) a left join bsth_c_business b on a.ssgsdm = b.business_code LEFT JOIN bsth_c_business c on concat(a.ssgsdm, '_', a.fgsdm) = concat(c.up_code, '_', c.business_code) where ssgsdm="+company
40   - , BeanPropertyRowMapper.newInstance(Electric.class));
41   - }catch (Exception e){
42   - logger.error("", e);
43   - }
44   - return list;
45   - }
46   -}
src/main/java/com/bsth/server_rs/info_publish/Accuracy.java deleted 100644 → 0
1   -package com.bsth.server_rs.info_publish;
2   -
3   -import com.fasterxml.jackson.annotation.JsonIgnore;
4   -
5   -public class Accuracy {
6   -
7   - private int rq;
8   -
9   - private String lineCode;
10   -
11   - private String lineName;
12   -
13   - @JsonIgnore
14   - private int zfbs;
15   -
16   - @JsonIgnore
17   - private int jdzqs;
18   -
19   - @JsonIgnore
20   - private int xdzqs;
21   -
22   - private double jdzql;
23   -
24   - private double xdzql;
25   -
26   - public int getRq() {
27   - return rq;
28   - }
29   -
30   - public void setRq(int rq) {
31   - this.rq = rq;
32   - }
33   -
34   - public String getLineCode() {
35   - return lineCode;
36   - }
37   -
38   - public void setLineCode(String lineCode) {
39   - this.lineCode = lineCode;
40   - }
41   -
42   - public String getLineName() {
43   - return lineName;
44   - }
45   -
46   - public void setLineName(String lineName) {
47   - this.lineName = lineName;
48   - }
49   -
50   - public int getZfbs() {
51   - return zfbs;
52   - }
53   -
54   - public void setZfbs(int zfbs) {
55   - this.zfbs = zfbs;
56   - }
57   -
58   - public int getJdzqs() {
59   - return jdzqs;
60   - }
61   -
62   - public void setJdzqs(int jdzqs) {
63   - this.jdzqs = jdzqs;
64   - }
65   -
66   - public int getXdzqs() {
67   - return xdzqs;
68   - }
69   -
70   - public void setXdzqs(int xdzqs) {
71   - this.xdzqs = xdzqs;
72   - }
73   -
74   - public double getJdzql() {
75   - return jdzql;
76   - }
77   -
78   - public void setJdzql(double jdzql) {
79   - this.jdzql = jdzql;
80   - }
81   -
82   - public double getXdzql() {
83   - return xdzql;
84   - }
85   -
86   - public void setXdzql(double xdzql) {
87   - this.xdzql = xdzql;
88   - }
89   -}
src/main/java/com/bsth/server_rs/info_publish/XxfbRestService.java deleted 100644 → 0
1   -package com.bsth.server_rs.info_publish;
2   -
3   -import com.bsth.entity.DutyEmployee;
4   -import com.bsth.entity.ScheduleRealInfo;
5   -import com.bsth.util.DBUtils_Xxfb;
6   -import com.google.common.collect.ArrayListMultimap;
7   -import org.slf4j.Logger;
8   -import org.slf4j.LoggerFactory;
9   -import org.springframework.jdbc.core.BeanPropertyRowMapper;
10   -import org.springframework.jdbc.core.JdbcTemplate;
11   -import org.springframework.stereotype.Component;
12   -
13   -import javax.ws.rs.GET;
14   -import javax.ws.rs.Path;
15   -import javax.ws.rs.PathParam;
16   -import javax.ws.rs.Produces;
17   -import javax.ws.rs.core.MediaType;
18   -import java.util.*;
19   -
20   -/**
21   - * @author Hill.
22   - */
23   -@Component
24   -@Path("/xxfb")
25   -@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
26   -public class XxfbRestService {
27   -
28   - private static Logger logger = LoggerFactory.getLogger(XxfbRestService.class);
29   -
30   - @GET
31   - @Path("/{rq}/{lineCode}")
32   - public Map<String, Object> waybill(@PathParam("rq") int rq, @PathParam("lineCode") String lineCode) {
33   - Map<String, Object> map = new HashMap<String, Object>();
34   - map.put("errCode", "0");
35   - try {
36   - JdbcTemplate jdbcTemplate = DBUtils_Xxfb.getJdbcTemplate();
37   - List<Accuracy> accuracies = jdbcTemplate.query("select * from bsth_h_accuracy where rq = ? and line_code = ? order by rq, line_code", new Object[] { rq, lineCode }, BeanPropertyRowMapper.newInstance(Accuracy.class));
38   - map.put("data", accuracies);
39   - } catch (Exception e) {
40   - logger.error("", e);
41   - map.put("errCode", 1);
42   - map.put("errMsg", "服务器出现异常!");
43   - }
44   -
45   - return map;
46   - }
47   -
48   - @GET
49   - @Path("/{rq}")
50   - public Map<String, Object> waybill(@PathParam("rq") int rq) {
51   - Map<String, Object> map = new HashMap<String, Object>();
52   - map.put("errCode", "0");
53   - try {
54   - JdbcTemplate jdbcTemplate = DBUtils_Xxfb.getJdbcTemplate();
55   - List<Accuracy> accuracies = jdbcTemplate.query("select * from bsth_h_accuracy where rq = ? order by rq, line_code", new Object[] { rq }, BeanPropertyRowMapper.newInstance(Accuracy.class));
56   - map.put("data", accuracies);
57   - } catch (Exception e) {
58   - logger.error("", e);
59   - map.put("errCode", 1);
60   - map.put("errMsg", "服务器出现异常!");
61   - }
62   -
63   - return map;
64   - }
65   -}
src/main/java/com/bsth/server_rs/schedule/dto/AttendancePlanDay.java deleted 100644 → 0
1   -package com.bsth.server_rs.schedule.dto;
2   -
3   -/**
4   - * Created by panzhao on 2017/9/1.
5   - */
6   -public class AttendancePlanDay {
7   -
8   - private String jGh;
9   -
10   - private String jName;
11   -
12   - private String sGh;
13   -
14   - private String sName;
15   -
16   - private String scheduleDate;
17   -
18   - public String getjGh() {
19   - return jGh;
20   - }
21   -
22   - public void setjGh(String jGh) {
23   - this.jGh = jGh;
24   - }
25   -
26   - public String getjName() {
27   - return jName;
28   - }
29   -
30   - public void setjName(String jName) {
31   - this.jName = jName;
32   - }
33   -
34   - public String getScheduleDate() {
35   - return scheduleDate;
36   - }
37   -
38   - public void setScheduleDate(String scheduleDate) {
39   - this.scheduleDate = scheduleDate;
40   - }
41   -
42   - public String getsGh() {
43   - return sGh;
44   - }
45   -
46   - public void setsGh(String sGh) {
47   - this.sGh = sGh;
48   - }
49   -
50   - public String getsName() {
51   - return sName;
52   - }
53   -
54   - public void setsName(String sName) {
55   - this.sName = sName;
56   - }
57   -}
src/main/java/com/bsth/server_rs/schedule/dto/AttendancePlanMonth.java deleted 100644 → 0
1   -package com.bsth.server_rs.schedule.dto;
2   -
3   -import com.bsth.util.ConvertUtil;
4   -import com.google.common.collect.ArrayListMultimap;
5   -import org.apache.commons.lang3.StringUtils;
6   -import org.slf4j.Logger;
7   -import org.slf4j.LoggerFactory;
8   -
9   -import java.util.ArrayList;
10   -import java.util.List;
11   -import java.util.Set;
12   -
13   -/**
14   - * 计划出勤
15   - * Created by panzhao on 2017/9/1.
16   - */
17   -public class AttendancePlanMonth {
18   -
19   - static Logger logger = LoggerFactory.getLogger(AttendancePlanMonth.class);
20   -
21   - public static List<AttendancePlanMonth> getMultiInstance(String month, List<AttendancePlanDay> list){
22   - List<AttendancePlanMonth> rs = new ArrayList<>();
23   -
24   - if(list == null || list.size() == 0)
25   - return rs;
26   -
27   - Class clazz = AttendancePlanDay.class;
28   - try {
29   - //驾驶员分组
30   - ArrayListMultimap<String, AttendancePlanDay> jsyMultimap = new ConvertUtil<AttendancePlanDay>()
31   - .groupMultiList(list, "/", clazz.getDeclaredField("jGh"), clazz.getDeclaredField("jName"));
32   -
33   - Set<String> ks = jsyMultimap.keySet();
34   -
35   - for(String k : ks){
36   - rs.add(new AttendancePlanMonth(month, k, jsyMultimap.get(k)));
37   - }
38   -
39   - //售票员分组
40   - ArrayListMultimap<String, AttendancePlanDay> spyMultimap = new ConvertUtil<AttendancePlanDay>()
41   - .groupMultiList(list, "/", clazz.getDeclaredField("sGh"), clazz.getDeclaredField("sName"));
42   -
43   - ks = spyMultimap.keySet();
44   -
45   - for(String k : ks){
46   - if(StringUtils.isNotEmpty(k))
47   - rs.add(new AttendancePlanMonth(month, k, spyMultimap.get(k)));
48   - }
49   - } catch (NoSuchFieldException e) {
50   - logger.error("", e);
51   - }
52   - return rs;
53   - }
54   -
55   - AttendancePlanMonth(){}
56   -
57   - AttendancePlanMonth(String month, String jsy, List<AttendancePlanDay> list){
58   - this.month = month;
59   - this.personnel = jsy;
60   - this.ycqts = list.size();
61   -
62   - StringBuilder sb = new StringBuilder();
63   - try {
64   - for(AttendancePlanDay p : list){
65   - sb.append(p.getScheduleDate().split("-")[2] + ",");
66   - }
67   - sb.deleteCharAt(sb.length() - 1);
68   - }catch (Exception e){
69   - logger.error("", e);
70   - }
71   - this.details = sb.toString();
72   - }
73   -
74   - /** 月份 yyyy-MM */
75   - private String month;
76   -
77   - /** 人员 */
78   - private String personnel;
79   -
80   - /** 出勤天数 */
81   - private int ycqts;
82   -
83   - /** 详细 */
84   - private String details;
85   -
86   - public String getMonth() {
87   - return month;
88   - }
89   -
90   - public void setMonth(String month) {
91   - this.month = month;
92   - }
93   -
94   - public int getYcqts() {
95   - return ycqts;
96   - }
97   -
98   - public void setYcqts(int ycqts) {
99   - this.ycqts = ycqts;
100   - }
101   -
102   - public String getDetails() {
103   - return details;
104   - }
105   -
106   - public void setDetails(String details) {
107   - this.details = details;
108   - }
109   -
110   - public String getPersonnel() {
111   - return personnel;
112   - }
113   -
114   - public void setPersonnel(String personnel) {
115   - this.personnel = personnel;
116   - }
117   -}
src/main/java/com/bsth/server_rs/schedule/dto/PlanScheduleDTO_JK.java deleted 100644 → 0
1   -package com.bsth.server_rs.schedule.dto;
2   -
3   -import com.bsth.entity.SchedulePlanInfo;
4   -import org.joda.time.format.DateTimeFormat;
5   -import org.joda.time.format.DateTimeFormatter;
6   -
7   -import javax.xml.bind.annotation.XmlRootElement;
8   -import java.util.ArrayList;
9   -import java.util.Collections;
10   -import java.util.Comparator;
11   -import java.util.List;
12   -
13   -/**
14   - * 输出给监控平台的计划排班
15   - * Created by panzhao on 2017/9/1.
16   - */
17   -@XmlRootElement
18   -public class PlanScheduleDTO_JK {
19   -
20   - public static List<PlanScheduleDTO_JK> getMultiInstance(List<SchedulePlanInfo> list){
21   - List<PlanScheduleDTO_JK> rs = new ArrayList<>();
22   - if(list == null || list.size()==0)
23   - return rs;
24   -
25   - Collections.sort(list, new Comparator<SchedulePlanInfo>() {
26   - @Override
27   - public int compare(SchedulePlanInfo o1, SchedulePlanInfo o2) {
28   - return o1.getFcno().compareTo(o2.getFcno());
29   - }
30   - });
31   -
32   - for(SchedulePlanInfo plan : list){
33   - rs.add(new PlanScheduleDTO_JK(plan));
34   - }
35   -
36   - return rs;
37   - }
38   -
39   - private static DateTimeFormatter fmtyyyyMMdd = DateTimeFormat.forPattern("yyyy-MM-dd");
40   -
41   - PlanScheduleDTO_JK(){}
42   -
43   - PlanScheduleDTO_JK(SchedulePlanInfo sch){
44   - this.id = sch.getId();
45   - this.scheduleDateStr = fmtyyyyMMdd.print(sch.getScheduleDate().getTime());
46   - this.lineCode = sch.getXlBm();
47   - this.lineName = sch.getXlName();
48   - this.lpName = sch.getLpName();
49   - this.nbbm = sch.getClZbh();
50   - this.jsy = sch.getjGh() + "/" + sch.getjName();
51   - this.spy = sch.getsGh() + "/" + sch.getsName();
52   - this.upDowm = Integer.parseInt(sch.getXlDir());
53   - this.qdzCode = sch.getQdzCode();
54   - this.qdzName = sch.getQdzName();
55   - this.zdzCode = sch.getZdzCode();
56   - this.zdzName = sch.getZdzName();
57   - this.fcsj = sch.getFcsj();
58   - this.fcno = sch.getFcno();
59   - this.jhlc = sch.getJhlc();
60   - this.bcsj = sch.getBcsj();
61   - this.bcType = sch.getBcType();
62   - }
63   -
64   - /** 主键Id */
65   - private Long id;
66   -
67   - /** 排班计划日期 */
68   - private String scheduleDateStr;
69   -
70   - /** 线路编码 */
71   - private String lineCode;
72   -
73   - /** 线路名称 */
74   - private String lineName;
75   -
76   - /** 路牌名称 */
77   - private String lpName;
78   -
79   - /** 车辆自编号 */
80   - private String nbbm;
81   -
82   - /** 驾驶员工号/姓名 */
83   - private String jsy;
84   - /** 售票员工号/姓名 */
85   - private String spy;
86   -
87   - /** 上下行 */
88   - private Integer upDowm;
89   - /** 起点站code */
90   - private String qdzCode;
91   - /** 起点站名字 */
92   - private String qdzName;
93   - /** 终点站code */
94   - private String zdzCode;
95   - /** 终点站名字 */
96   - private String zdzName;
97   -
98   - /** 发车时间(格式 HH:mm) */
99   - private String fcsj;
100   - /** 发车顺序号 */
101   - private Integer fcno;
102   - /** 计划里程 */
103   - private Double jhlc;
104   - /** 班次历时 */
105   - private Integer bcsj;
106   -
107   - /** 班次类型 */
108   - private String bcType;
109   -
110   - public Long getId() {
111   - return id;
112   - }
113   -
114   - public void setId(Long id) {
115   - this.id = id;
116   - }
117   -
118   - public String getScheduleDateStr() {
119   - return scheduleDateStr;
120   - }
121   -
122   - public void setScheduleDateStr(String scheduleDateStr) {
123   - this.scheduleDateStr = scheduleDateStr;
124   - }
125   -
126   - public String getLpName() {
127   - return lpName;
128   - }
129   -
130   - public void setLpName(String lpName) {
131   - this.lpName = lpName;
132   - }
133   -
134   - public String getNbbm() {
135   - return nbbm;
136   - }
137   -
138   - public void setNbbm(String nbbm) {
139   - this.nbbm = nbbm;
140   - }
141   -
142   - public String getJsy() {
143   - return jsy;
144   - }
145   -
146   - public void setJsy(String jsy) {
147   - this.jsy = jsy;
148   - }
149   -
150   - public String getSpy() {
151   - return spy;
152   - }
153   -
154   - public void setSpy(String spy) {
155   - this.spy = spy;
156   - }
157   -
158   - public String getQdzCode() {
159   - return qdzCode;
160   - }
161   -
162   - public void setQdzCode(String qdzCode) {
163   - this.qdzCode = qdzCode;
164   - }
165   -
166   - public String getQdzName() {
167   - return qdzName;
168   - }
169   -
170   - public void setQdzName(String qdzName) {
171   - this.qdzName = qdzName;
172   - }
173   -
174   - public String getZdzCode() {
175   - return zdzCode;
176   - }
177   -
178   - public void setZdzCode(String zdzCode) {
179   - this.zdzCode = zdzCode;
180   - }
181   -
182   - public String getZdzName() {
183   - return zdzName;
184   - }
185   -
186   - public void setZdzName(String zdzName) {
187   - this.zdzName = zdzName;
188   - }
189   -
190   - public String getFcsj() {
191   - return fcsj;
192   - }
193   -
194   - public void setFcsj(String fcsj) {
195   - this.fcsj = fcsj;
196   - }
197   -
198   - public Integer getFcno() {
199   - return fcno;
200   - }
201   -
202   - public void setFcno(Integer fcno) {
203   - this.fcno = fcno;
204   - }
205   -
206   - public Double getJhlc() {
207   - return jhlc;
208   - }
209   -
210   - public void setJhlc(Double jhlc) {
211   - this.jhlc = jhlc;
212   - }
213   -
214   - public Integer getBcsj() {
215   - return bcsj;
216   - }
217   -
218   - public void setBcsj(Integer bcsj) {
219   - this.bcsj = bcsj;
220   - }
221   -
222   - public String getBcType() {
223   - return bcType;
224   - }
225   -
226   - public void setBcType(String bcType) {
227   - this.bcType = bcType;
228   - }
229   -
230   - public String getLineCode() {
231   - return lineCode;
232   - }
233   -
234   - public void setLineCode(String lineCode) {
235   - this.lineCode = lineCode;
236   - }
237   -
238   - public String getLineName() {
239   - return lineName;
240   - }
241   -
242   - public void setLineName(String lineName) {
243   - this.lineName = lineName;
244   - }
245   -
246   - public Integer getUpDowm() {
247   - return upDowm;
248   - }
249   -
250   - public void setUpDowm(Integer upDowm) {
251   - this.upDowm = upDowm;
252   - }
253   -}
src/main/java/com/bsth/server_rs/schedule/dto/ScheduleCcInfoConfig.java deleted 100644 → 0
1   -package com.bsth.server_rs.schedule.dto;
2   -
3   -import com.bsth.entity.ScheduleRealInfo;
4   -import com.bsth.util.ConvertUtil;
5   -import com.google.common.collect.ArrayListMultimap;
6   -import org.apache.commons.lang3.StringUtils;
7   -import org.slf4j.Logger;
8   -import org.slf4j.LoggerFactory;
9   -
10   -import java.util.ArrayList;
11   -import java.util.List;
12   -import java.util.Set;
13   -
14   -/**
15   - * 实际排班的人车配置信息
16   - * Created by panzhao on 2017/11/8.
17   - */
18   -public class ScheduleCcInfoConfig {
19   -
20   - Logger logger = LoggerFactory.getLogger(this.getClass());
21   -
22   - public static List<ScheduleCcInfoConfig> getMultiInstance(List<ScheduleRealInfo> list) {
23   - List<ScheduleCcInfoConfig> rs = new ArrayList<>();
24   - //按人,车,线路分组
25   - Class clazz = ScheduleRealInfo.class;
26   - try {
27   - ArrayListMultimap<String, ScheduleRealInfo> multimap =
28   - new ConvertUtil<ScheduleRealInfo>().groupMultiList(list, ",", clazz.getDeclaredField("jGh"),clazz.getDeclaredField("sGh"), clazz.getDeclaredField("clZbh"), clazz.getDeclaredField("xlBm"));
29   -
30   - ScheduleCcInfoConfig cc ;
31   - Set<String> ks = multimap.keySet();
32   - ScheduleRealInfo sch;
33   - for(String k : ks){
34   - sch = multimap.get(k).get(0);
35   -
36   - cc = new ScheduleCcInfoConfig();
37   - cc.setJsy(sch.getjGh() + "/" + sch.getjName());
38   - if(StringUtils.isNotEmpty(sch.getsGh()))
39   - cc.setSpy(sch.getsGh() + "/" + sch.getsName());
40   - cc.setClZhb(sch.getClZbh());
41   - cc.setLineCode(sch.getXlBm());
42   - cc.setLineName(sch.getXlName());
43   - cc.setGsBm(sch.getGsBm());
44   - cc.setFgsBm(sch.getFgsBm());
45   -
46   - rs.add(cc);
47   - }
48   - } catch (NoSuchFieldException e) {
49   - e.printStackTrace();
50   - }
51   - return rs;
52   - }
53   -
54   - private String jsy;
55   -
56   - private String spy;
57   -
58   - private String clZhb;
59   -
60   - private String lineCode;
61   -
62   - private String lineName;
63   -
64   - private String fgsBm;
65   -
66   - private String gsBm;
67   -
68   - public String getJsy() {
69   - return jsy;
70   - }
71   -
72   - public void setJsy(String jsy) {
73   - this.jsy = jsy;
74   - }
75   -
76   - public String getClZhb() {
77   - return clZhb;
78   - }
79   -
80   - public void setClZhb(String clZhb) {
81   - this.clZhb = clZhb;
82   - }
83   -
84   - public String getLineCode() {
85   - return lineCode;
86   - }
87   -
88   - public void setLineCode(String lineCode) {
89   - this.lineCode = lineCode;
90   - }
91   -
92   - public String getLineName() {
93   - return lineName;
94   - }
95   -
96   - public void setLineName(String lineName) {
97   - this.lineName = lineName;
98   - }
99   -
100   - public String getFgsBm() {
101   - return fgsBm;
102   - }
103   -
104   - public void setFgsBm(String fgsBm) {
105   - this.fgsBm = fgsBm;
106   - }
107   -
108   - public String getGsBm() {
109   - return gsBm;
110   - }
111   -
112   - public void setGsBm(String gsBm) {
113   - this.gsBm = gsBm;
114   - }
115   -
116   - public String getSpy() {
117   - return spy;
118   - }
119   -
120   - public void setSpy(String spy) {
121   - this.spy = spy;
122   - }
123   -}
src/main/java/com/bsth/server_rs/schedule/dto/ScheduleInOut.java deleted 100644 → 0
1   -package com.bsth.server_rs.schedule.dto;
2   -
3   -import com.bsth.entity.ScheduleRealInfo;
4   -
5   -import javax.xml.bind.annotation.XmlRootElement;
6   -import java.io.Serializable;
7   -import java.util.ArrayList;
8   -import java.util.List;
9   -
10   -/**
11   - * 进出场班次数据 ---给停车场用的
12   - * Created by panzhao on 2017/8/24.
13   - */
14   -@XmlRootElement
15   -public class ScheduleInOut implements Serializable {
16   -
17   - public static List<ScheduleInOut> getMultiInstance(List<ScheduleRealInfo> list, String tccCode){
18   - List<ScheduleInOut> rs = new ArrayList<>();
19   -
20   - for(ScheduleRealInfo sch : list){
21   - if(!sch.getBcType().equals("in") && !sch.getBcType().equals("out"))
22   - continue;
23   -
24   - if(!sch.getQdzCode().equals(tccCode) && !sch.getZdzCode().equals(tccCode))
25   - continue;
26   -
27   - rs.add(new ScheduleInOut(sch));
28   - }
29   - return rs;
30   - }
31   -
32   - public static List<ScheduleInOut> getMultiInstance(List<ScheduleRealInfo> list){
33   - List<ScheduleInOut> rs = new ArrayList<>();
34   -
35   - for(ScheduleRealInfo sch : list){
36   - rs.add(new ScheduleInOut(sch));
37   - }
38   - return rs;
39   - }
40   -
41   -
42   - ScheduleInOut(){}
43   -
44   - public ScheduleInOut(ScheduleRealInfo sch){
45   - this.id = sch.getId();
46   - this.scheduleDateStr = sch.getScheduleDateStr();
47   - this.lineCode = sch.getXlBm();
48   - this.lineName = sch.getXlName();
49   - this.lpName = sch.getLpName();
50   - this.nbbm = sch.getClZbh();
51   - this.jsy = sch.getjGh() + "/" + sch.getjName();
52   - this.spy = sch.getsGh() + "/" + sch.getsName();
53   - this.upDown = Integer.parseInt(sch.getXlDir());
54   - this.qdzCode = sch.getQdzCode();
55   - this.qdzName = sch.getQdzName();
56   - this.zdzCode = sch.getZdzCode();
57   - this.zdzName = sch.getZdzName();
58   - this.dfsjT = sch.getDfsjT();
59   - this.zdsjT = sch.getZdsjT();
60   - this.fcsjActualTime = sch.getFcsjActualTime();
61   - this.zdsjActualTime = sch.getZdsjActualTime();
62   - this.sflj = sch.isSflj();
63   - this.remarks = sch.getRemarks();
64   - this.status = sch.getStatus();
65   - }
66   -
67   - private Long id;
68   - private String scheduleDateStr;
69   - private String lineCode;
70   - private String lineName;
71   - private String lpName;
72   - private String nbbm;
73   - private String jsy;
74   - private String spy;
75   - private Integer upDown;
76   - private String qdzCode;
77   - private String qdzName;
78   - private String zdzCode;
79   - private String zdzName;
80   - private Long dfsjT;
81   - private Long zdsjT;
82   - private Long fcsjActualTime;
83   - private Long zdsjActualTime;
84   - private boolean sflj;
85   - private String remarks;
86   - private int status;
87   -
88   - public Long getId() {
89   - return id;
90   - }
91   -
92   - public void setId(Long id) {
93   - this.id = id;
94   - }
95   -
96   - public String getScheduleDateStr() {
97   - return scheduleDateStr;
98   - }
99   -
100   - public void setScheduleDateStr(String scheduleDateStr) {
101   - this.scheduleDateStr = scheduleDateStr;
102   - }
103   -
104   - public String getLineCode() {
105   - return lineCode;
106   - }
107   -
108   - public void setLineCode(String lineCode) {
109   - this.lineCode = lineCode;
110   - }
111   -
112   - public String getLineName() {
113   - return lineName;
114   - }
115   -
116   - public void setLineName(String lineName) {
117   - this.lineName = lineName;
118   - }
119   -
120   - public String getLpName() {
121   - return lpName;
122   - }
123   -
124   - public void setLpName(String lpName) {
125   - this.lpName = lpName;
126   - }
127   -
128   - public String getNbbm() {
129   - return nbbm;
130   - }
131   -
132   - public void setNbbm(String nbbm) {
133   - this.nbbm = nbbm;
134   - }
135   -
136   - public String getJsy() {
137   - return jsy;
138   - }
139   -
140   - public void setJsy(String jsy) {
141   - this.jsy = jsy;
142   - }
143   -
144   - public String getSpy() {
145   - return spy;
146   - }
147   -
148   - public void setSpy(String spy) {
149   - this.spy = spy;
150   - }
151   -
152   - public Integer getUpDown() {
153   - return upDown;
154   - }
155   -
156   - public void setUpDown(Integer upDown) {
157   - this.upDown = upDown;
158   - }
159   -
160   - public String getQdzCode() {
161   - return qdzCode;
162   - }
163   -
164   - public void setQdzCode(String qdzCode) {
165   - this.qdzCode = qdzCode;
166   - }
167   -
168   - public String getQdzName() {
169   - return qdzName;
170   - }
171   -
172   - public void setQdzName(String qdzName) {
173   - this.qdzName = qdzName;
174   - }
175   -
176   - public String getZdzCode() {
177   - return zdzCode;
178   - }
179   -
180   - public void setZdzCode(String zdzCode) {
181   - this.zdzCode = zdzCode;
182   - }
183   -
184   - public String getZdzName() {
185   - return zdzName;
186   - }
187   -
188   - public void setZdzName(String zdzName) {
189   - this.zdzName = zdzName;
190   - }
191   -
192   - public Long getDfsjT() {
193   - return dfsjT;
194   - }
195   -
196   - public void setDfsjT(Long dfsjT) {
197   - this.dfsjT = dfsjT;
198   - }
199   -
200   - public Long getZdsjT() {
201   - return zdsjT;
202   - }
203   -
204   - public void setZdsjT(Long zdsjT) {
205   - this.zdsjT = zdsjT;
206   - }
207   -
208   - public Long getFcsjActualTime() {
209   - return fcsjActualTime;
210   - }
211   -
212   - public void setFcsjActualTime(Long fcsjActualTime) {
213   - this.fcsjActualTime = fcsjActualTime;
214   - }
215   -
216   - public Long getZdsjActualTime() {
217   - return zdsjActualTime;
218   - }
219   -
220   - public void setZdsjActualTime(Long zdsjActualTime) {
221   - this.zdsjActualTime = zdsjActualTime;
222   - }
223   -
224   - public boolean isSflj() {
225   - return sflj;
226   - }
227   -
228   - public void setSflj(boolean sflj) {
229   - this.sflj = sflj;
230   - }
231   -
232   - public String getRemarks() {
233   - return remarks;
234   - }
235   -
236   - public void setRemarks(String remarks) {
237   - this.remarks = remarks;
238   - }
239   -
240   - public int getStatus() {
241   - return status;
242   - }
243   -
244   - public void setStatus(int status) {
245   - this.status = status;
246   - }
247   -}
src/main/java/com/bsth/server_rs/schedule/dto/ScheduleRealInfoDTO_JK.java deleted 100644 → 0
1   -package com.bsth.server_rs.schedule.dto;
2   -
3   -import com.bsth.entity.ChildTaskPlan;
4   -import com.bsth.entity.ScheduleRealInfo;
5   -
6   -import javax.xml.bind.annotation.XmlRootElement;
7   -import java.io.Serializable;
8   -import java.util.*;
9   -
10   -/**
11   - * 输出给监控平台的实际排班
12   - * Created by panzhao on 2017/8/30.
13   - */
14   -@XmlRootElement
15   -public class ScheduleRealInfoDTO_JK implements Serializable {
16   -
17   - public static List<ScheduleRealInfoDTO_JK> getMultiInstance(List<ScheduleRealInfo> list) {
18   -
19   - List<ScheduleRealInfoDTO_JK> rs = new ArrayList<>();
20   -
21   - if(list == null || list.size()==0)
22   - return rs;
23   - Collections.sort(list, new Comparator<ScheduleRealInfo>() {
24   - @Override
25   - public int compare(ScheduleRealInfo o1, ScheduleRealInfo o2) {
26   - return o1.getFcsj().compareTo(o2.getFcsj());
27   - }
28   - });
29   -
30   - for (ScheduleRealInfo sch : list) {
31   - rs.add(new ScheduleRealInfoDTO_JK(sch));
32   - }
33   - return rs;
34   - }
35   -
36   - ScheduleRealInfoDTO_JK() {
37   - }
38   -
39   - ScheduleRealInfoDTO_JK(ScheduleRealInfo sch) {
40   - this.id = sch.getId();
41   - this.scheduleDate = sch.getScheduleDateStr();
42   - this.lineName = sch.getXlName();
43   - this.lineCode = sch.getXlBm();
44   - this.lpName = sch.getLpName();
45   - this.nbbm = sch.getClZbh();
46   - this.jsy = sch.getjGh() + "/" + sch.getjName();
47   - this.spy = sch.getsGh() + "/" + sch.getsName();
48   - this.upDown = Integer.parseInt(sch.getXlDir());
49   - this.qdzCode = sch.getQdzCode();
50   - this.qdzName = sch.getQdzName();
51   - this.zdzCode = sch.getZdzCode();
52   - this.zdzName = sch.getZdzName();
53   - this.fcsjT = sch.getFcsjT();
54   - this.dfsjT = sch.getDfsjT();
55   - this.zdsjT = sch.getZdsjT();
56   - this.fcsjActualTime = sch.getFcsjActualTime();
57   - this.zdsjActualTime = sch.getZdsjActualTime();
58   - this.jhlc = sch.getJhlc();
59   - this.jhlcOrig = sch.getJhlcOrig();
60   - this.bcsj = sch.getBcsj();
61   - this.bcType = sch.getBcType();
62   - this.status = sch.getStatus();
63   - this.adjustExps = sch.getAdjustExps();
64   - this.sflj = sch.isSflj();
65   - this.remarks = sch.getRemarks();
66   - this.cTasks = sch.getcTasks();
67   - this.updateDate = sch.getUpdateDate().getTime();
68   - }
69   -
70   - private Long id;
71   -
72   - private String scheduleDate;
73   -
74   - /**
75   - * 线路名称
76   - */
77   - private String lineName;
78   - /**
79   - * 线路编码
80   - */
81   - private String lineCode;
82   -
83   - /**
84   - * 路牌名称
85   - */
86   - private String lpName;
87   -
88   - /**
89   - * 车辆自编号
90   - */
91   - private String nbbm;
92   -
93   - /**
94   - * 驾驶员工号/名称
95   - */
96   - private String jsy;
97   - /**
98   - * 售票员工号/名称
99   - */
100   - private String spy;
101   -
102   - /**
103   - * 线路方向
104   - */
105   - private Integer upDown;
106   - /**
107   - * 起点站code
108   - */
109   - private String qdzCode;
110   - /**
111   - * 起点站名字
112   - */
113   - private String qdzName;
114   -
115   - /**
116   - * 终点站code
117   - */
118   - private String zdzCode;
119   - /**
120   - * 终点站名字
121   - */
122   - private String zdzName;
123   -
124   - /**
125   - * 计划发车时间戳
126   - */
127   - private Long fcsjT;
128   - /**
129   - * 待发时间戳
130   - */
131   - private Long dfsjT;
132   - /**
133   - * 计划终点时间戳
134   - */
135   - private Long zdsjT;
136   -
137   - /**
138   - * 实际发车时间戳
139   - */
140   - private Long fcsjActualTime;
141   - /**
142   - * 实际终点时间戳
143   - */
144   - private Long zdsjActualTime;
145   -
146   - /**
147   - * 实际计划里程
148   - */
149   - private Double jhlc;
150   -
151   - /**
152   - * 计划里程
153   - */
154   - private Double jhlcOrig;
155   -
156   - /**
157   - * 班次历时
158   - */
159   - private Integer bcsj;
160   -
161   - /**
162   - * 班次类型 TODO:正常班次、出场、进场、加油、区间班次、放空班次、放大站班次、两点间空驶
163   - */
164   - private String bcType;
165   -
166   -
167   - /**
168   - * 班次状态 0 未执行 1 正在执行 2 已执行 -1 已烂班
169   - */
170   - private int status;
171   -
172   - private String adjustExps;
173   -
174   - /**
175   - * 是否是临加班次
176   - */
177   - private boolean sflj;
178   -
179   - /**
180   - * 备注
181   - */
182   - private String remarks;
183   -
184   - private Double oilConsum;
185   - private Double elecConsum;
186   - private Double h2Consum;
187   - private Long updateDate;
188   -
189   - /**
190   - * 子任务
191   - */
192   - private Set<ChildTaskPlan> cTasks;
193   -
194   - public Long getId() {
195   - return id;
196   - }
197   -
198   - public void setId(Long id) {
199   - this.id = id;
200   - }
201   -
202   - public String getScheduleDate() {
203   - return scheduleDate;
204   - }
205   -
206   - public void setScheduleDate(String scheduleDate) {
207   - this.scheduleDate = scheduleDate;
208   - }
209   -
210   - public String getLineName() {
211   - return lineName;
212   - }
213   -
214   - public void setLineName(String lineName) {
215   - this.lineName = lineName;
216   - }
217   -
218   - public String getLineCode() {
219   - return lineCode;
220   - }
221   -
222   - public void setLineCode(String lineCode) {
223   - this.lineCode = lineCode;
224   - }
225   -
226   - public String getLpName() {
227   - return lpName;
228   - }
229   -
230   - public void setLpName(String lpName) {
231   - this.lpName = lpName;
232   - }
233   -
234   - public String getNbbm() {
235   - return nbbm;
236   - }
237   -
238   - public void setNbbm(String nbbm) {
239   - this.nbbm = nbbm;
240   - }
241   -
242   - public String getJsy() {
243   - return jsy;
244   - }
245   -
246   - public void setJsy(String jsy) {
247   - this.jsy = jsy;
248   - }
249   -
250   - public String getSpy() {
251   - return spy;
252   - }
253   -
254   - public void setSpy(String spy) {
255   - this.spy = spy;
256   - }
257   -
258   - public String getQdzCode() {
259   - return qdzCode;
260   - }
261   -
262   - public void setQdzCode(String qdzCode) {
263   - this.qdzCode = qdzCode;
264   - }
265   -
266   - public String getQdzName() {
267   - return qdzName;
268   - }
269   -
270   - public void setQdzName(String qdzName) {
271   - this.qdzName = qdzName;
272   - }
273   -
274   - public String getZdzCode() {
275   - return zdzCode;
276   - }
277   -
278   - public void setZdzCode(String zdzCode) {
279   - this.zdzCode = zdzCode;
280   - }
281   -
282   - public String getZdzName() {
283   - return zdzName;
284   - }
285   -
286   - public void setZdzName(String zdzName) {
287   - this.zdzName = zdzName;
288   - }
289   -
290   - public Long getFcsjT() {
291   - return fcsjT;
292   - }
293   -
294   - public void setFcsjT(Long fcsjT) {
295   - this.fcsjT = fcsjT;
296   - }
297   -
298   - public Long getDfsjT() {
299   - return dfsjT;
300   - }
301   -
302   - public void setDfsjT(Long dfsjT) {
303   - this.dfsjT = dfsjT;
304   - }
305   -
306   - public Long getZdsjT() {
307   - return zdsjT;
308   - }
309   -
310   - public void setZdsjT(Long zdsjT) {
311   - this.zdsjT = zdsjT;
312   - }
313   -
314   - public Long getFcsjActualTime() {
315   - return fcsjActualTime;
316   - }
317   -
318   - public void setFcsjActualTime(Long fcsjActualTime) {
319   - this.fcsjActualTime = fcsjActualTime;
320   - }
321   -
322   - public Long getZdsjActualTime() {
323   - return zdsjActualTime;
324   - }
325   -
326   - public void setZdsjActualTime(Long zdsjActualTime) {
327   - this.zdsjActualTime = zdsjActualTime;
328   - }
329   -
330   - public Double getJhlc() {
331   - return jhlc;
332   - }
333   -
334   - public void setJhlc(Double jhlc) {
335   - this.jhlc = jhlc;
336   - }
337   -
338   - public Double getJhlcOrig() {
339   - return jhlcOrig;
340   - }
341   -
342   - public void setJhlcOrig(Double jhlcOrig) {
343   - this.jhlcOrig = jhlcOrig;
344   - }
345   -
346   - public Integer getBcsj() {
347   - return bcsj;
348   - }
349   -
350   - public void setBcsj(Integer bcsj) {
351   - this.bcsj = bcsj;
352   - }
353   -
354   - public String getBcType() {
355   - return bcType;
356   - }
357   -
358   - public void setBcType(String bcType) {
359   - this.bcType = bcType;
360   - }
361   -
362   - public int getStatus() {
363   - return status;
364   - }
365   -
366   - public void setStatus(int status) {
367   - this.status = status;
368   - }
369   -
370   - public String getAdjustExps() {
371   - return adjustExps;
372   - }
373   -
374   - public void setAdjustExps(String adjustExps) {
375   - this.adjustExps = adjustExps;
376   - }
377   -
378   - public boolean isSflj() {
379   - return sflj;
380   - }
381   -
382   - public void setSflj(boolean sflj) {
383   - this.sflj = sflj;
384   - }
385   -
386   - public String getRemarks() {
387   - return remarks;
388   - }
389   -
390   - public void setRemarks(String remarks) {
391   - this.remarks = remarks;
392   - }
393   -
394   - public Set<ChildTaskPlan> getcTasks() {
395   - return cTasks;
396   - }
397   -
398   - public void setcTasks(Set<ChildTaskPlan> cTasks) {
399   - this.cTasks = cTasks;
400   - }
401   -
402   - public Integer getUpDown() {
403   - return upDown;
404   - }
405   -
406   - public void setUpDown(Integer upDown) {
407   - this.upDown = upDown;
408   - }
409   -
410   - public Double getOilConsum() {
411   - return oilConsum;
412   - }
413   -
414   - public void setOilConsum(Double oilConsum) {
415   - this.oilConsum = oilConsum;
416   - }
417   -
418   - public Double getElecConsum() {
419   - return elecConsum;
420   - }
421   -
422   - public void setElecConsum(Double elecConsum) {
423   - this.elecConsum = elecConsum;
424   - }
425   -
426   - public Double getH2Consum() {
427   - return h2Consum;
428   - }
429   -
430   - public void setH2Consum(Double h2Consum) {
431   - this.h2Consum = h2Consum;
432   - }
433   -
434   - public Long getUpdateDate() {
435   - return updateDate;
436   - }
437   -
438   - public void setUpdateDate(Long updateDate) {
439   - this.updateDate = updateDate;
440   - }
441   -}
src/main/java/com/bsth/server_rs/schedule/plan/SchedulePlanService.java deleted 100644 → 0
1   -package com.bsth.server_rs.schedule.plan;
2   -
3   -import com.bsth.redis.PlanScheduleRedisService;
4   -import com.bsth.server_rs.base_info.line.Line;
5   -import com.bsth.server_rs.base_info.line.buffer.LineBufferData;
6   -import com.bsth.server_rs.schedule.dto.AttendancePlanDay;
7   -import com.bsth.server_rs.schedule.dto.AttendancePlanMonth;
8   -import com.bsth.server_rs.schedule.dto.PlanScheduleDTO_JK;
9   -import org.slf4j.Logger;
10   -import org.slf4j.LoggerFactory;
11   -import org.springframework.beans.factory.annotation.Autowired;
12   -import org.springframework.jdbc.core.BeanPropertyRowMapper;
13   -import org.springframework.jdbc.core.JdbcTemplate;
14   -import org.springframework.stereotype.Component;
15   -
16   -import javax.ws.rs.GET;
17   -import javax.ws.rs.Path;
18   -import javax.ws.rs.PathParam;
19   -import javax.ws.rs.Produces;
20   -import javax.ws.rs.core.MediaType;
21   -import java.text.DateFormat;
22   -import java.text.SimpleDateFormat;
23   -import java.util.ArrayList;
24   -import java.util.List;
25   -import java.util.Map;
26   -
27   -/**
28   - * Created by panzhao on 2017/8/24.
29   - */
30   -@Component
31   -@Path("/schedule")
32   -@Produces({MediaType.APPLICATION_JSON})
33   -public class SchedulePlanService {
34   -
35   - @Autowired
36   - PlanScheduleRedisService redisService;
37   -
38   - @Autowired
39   - JdbcTemplate jdbcTemplate;
40   -
41   - Logger logger = LoggerFactory.getLogger(this.getClass());
42   -
43   - @GET
44   - @Path("/sch_jk/{company}/{rq}")
45   - public List<PlanScheduleDTO_JK> find_JK(@PathParam("company") String company, @PathParam("rq") String rq){
46   - List<PlanScheduleDTO_JK> all = new ArrayList<>();
47   -
48   - List<Line> lines = LineBufferData.findByCompany(company);
49   - for(Line line : lines){
50   - all.addAll(PlanScheduleDTO_JK.getMultiInstance(redisService.read(rq, line.getLineCode())));
51   - }
52   - return all;
53   - }
54   -
55   - @GET
56   - @Path("/ycqts/{company}/{month}")
57   - public List<AttendancePlanMonth> count_ycqts(@PathParam("company") String company,@PathParam("month") String month){
58   - try {
59   - DateFormat formatter = new SimpleDateFormat("yyyy-MM");
60   - formatter.parse(month);
61   - }catch (Exception e){
62   - logger.error("", e);
63   - return null;
64   - }
65   -
66   - List<AttendancePlanDay> list = jdbcTemplate.query("SELECT j_gh,j_name,s_gh,s_name,DATE_FORMAT(schedule_date,'%Y-%m-%d') as schedule_date FROM bsth_c_s_sp_info WHERE gs_bm='"+company+"' and schedule_date LIKE '"+month+"-%' GROUP BY j_gh,j_name,s_gh,s_name,DATE_FORMAT(schedule_date,'%Y-%m-%d')", BeanPropertyRowMapper.newInstance(AttendancePlanDay.class));
67   - return AttendancePlanMonth.getMultiInstance(month, list);
68   - }
69   -
70   - @GET
71   - @Path("/plan_inout/{rq}/{lineCode}")
72   - public List<Map<String, Object>> findInOutPlan(@PathParam("rq") String rq,@PathParam("lineCode") String lineCode){
73   - List<Map<String, Object>> rs = jdbcTemplate.queryForList("select schedule_date,xl_bm,xl_name,lp_name,cl_zbh,fcsj,j_gh,j_name,s_gh,s_name,bc_type,(select user_name from bsth_c_sys_user where id=create_by) as c_user,(select user_name from bsth_c_sys_user where id=update_by) as u_user,create_date,update_date,fcno from bsth_c_s_sp_info where schedule_date=? and xl_bm=? and bc_type in ('in', 'out')",rq,lineCode);
74   - return rs;
75   - }
76   -}
src/main/java/com/bsth/server_rs/schedule/real/KafkaProperties1.java deleted 100644 → 0
1   -package com.bsth.server_rs.schedule.real;
2   -
3   -public interface KafkaProperties1 {
4   - public final static String zkConnect ="106.15.44.249:2181,106.15.44.249:2182,106.15.44.249:2183";
5   - // groupId
6   - public final static String groupId1 = System.currentTimeMillis() + "group_pdgj";
7   -
8   - // topic组
9   - public final static String topic1 = "PDGJ";//
10   -
11   - public final static String brokerList = "114.80.178.12:9811";
12   -
13   -}
src/main/java/com/bsth/server_rs/schedule/real/SchRealDataBuffer.java deleted 100644 → 0
1   -package com.bsth.server_rs.schedule.real;
2   -
3   -import com.alibaba.fastjson.JSONObject;
4   -import com.bsth.entity.ScheduleRealInfo;
5   -import com.google.common.collect.ArrayListMultimap;
6   -import org.apache.commons.lang3.StringUtils;
7   -import org.springframework.stereotype.Component;
8   -
9   -import java.util.Collection;
10   -import java.util.List;
11   -import java.util.Map;
12   -
13   -/**
14   - * 实际排班缓存
15   - * Created by panzhao on 2017/9/27.
16   - */
17   -@Component
18   -public class SchRealDataBuffer {
19   -
20   - /**
21   - * 进出场班次数据,定时从调度系统获取。 对各场站输出
22   - */
23   - private static ArrayListMultimap<String, ScheduleRealInfo> inOutMap;
24   -
25   - /**
26   - * 车辆 和 当前正在执行班次对照
27   - */
28   - private static Map<String, JSONObject> execMap;
29   -
30   - public void putInOutData(List<ScheduleRealInfo> list) {
31   - ArrayListMultimap<String, ScheduleRealInfo> inOutMapCopy = ArrayListMultimap.create();
32   -
33   - String type;
34   - for (ScheduleRealInfo sch : list) {
35   - type = sch.getBcType();
36   - if (StringUtils.isEmpty(type))
37   - continue;
38   -
39   - if (type.equals("in"))
40   - inOutMapCopy.put(sch.getZdzCode(), sch);
41   - else if (type.equals("out"))
42   - inOutMapCopy.put(sch.getQdzCode(), sch);
43   - }
44   -
45   - inOutMap = inOutMapCopy;
46   - }
47   -
48   - public Collection<ScheduleRealInfo> getInOutData() {
49   - return inOutMap.values();
50   - }
51   -
52   - public void setExecMap(Map<String, JSONObject> map) {
53   - if (map.size() > 0)
54   - execMap = map;
55   - }
56   -
57   - public List<ScheduleRealInfo> findByParkCode(String parkCode) {
58   - return inOutMap.get(parkCode);
59   - }
60   -
61   - /* public List<JSONObject> findExec(List<String> cars){
62   - List<JSONObject> rs = new ArrayList<>(cars.size());
63   -
64   - for(String nbbm : cars){
65   - rs.add(execMap.get(nbbm));
66   - }
67   - return rs;
68   - }*/
69   -
70   - public JSONObject getExecPlan(String nbbm) {
71   - return execMap.get(nbbm);
72   - }
73   -
74   - public Collection<JSONObject> execs() {
75   - return execMap.values();
76   - }
77   -}
src/main/java/com/bsth/server_rs/schedule/real/ScheduleRealService.java deleted 100644 → 0
1   -package com.bsth.server_rs.schedule.real;
2   -
3   -import com.alibaba.fastjson.JSON;
4   -import com.alibaba.fastjson.JSONArray;
5   -import com.alibaba.fastjson.JSONObject;
6   -import com.bsth.Application;
7   -import com.bsth.common.BasicData;
8   -import com.bsth.common.ResponseCode;
9   -import com.bsth.entity.ScheduleRealInfo;
10   -import com.bsth.entity.ScheduleRealInfoVo;
11   -import com.bsth.redis.ScheduleRedisService;
12   -import com.bsth.repository.ScheduleRealInfoRepository;
13   -import com.bsth.server_rs.base_info.car.Car;
14   -import com.bsth.server_rs.base_info.car.buffer.CarBufferData;
15   -import com.bsth.server_rs.base_info.line.Line;
16   -import com.bsth.server_rs.base_info.line.buffer.LineBufferData;
17   -import com.bsth.server_rs.gps.buffer.GpsRealDataBuffer;
18   -import com.bsth.server_rs.gps.entity.GpsEntity;
19   -import com.bsth.server_rs.schedule.dto.ScheduleCcInfoConfig;
20   -import com.bsth.server_rs.schedule.dto.ScheduleInOut;
21   -import com.bsth.server_rs.schedule.dto.ScheduleRealInfoDTO_JK;
22   -import com.bsth.util.ConfigUtil;
23   -import com.bsth.util.HttpClientUtils;
24   -import com.fasterxml.jackson.core.JsonProcessingException;
25   -import com.fasterxml.jackson.databind.ObjectMapper;
26   -import com.google.common.base.Splitter;
27   -import org.apache.commons.lang3.StringUtils;
28   -import org.apache.kafka.clients.producer.ProducerRecord;
29   -import org.joda.time.DateTime;
30   -import org.joda.time.format.DateTimeFormat;
31   -import org.joda.time.format.DateTimeFormatter;
32   -import org.slf4j.Logger;
33   -import org.slf4j.LoggerFactory;
34   -import org.springframework.beans.BeanUtils;
35   -import org.springframework.beans.factory.InitializingBean;
36   -import org.springframework.beans.factory.annotation.Autowired;
37   -import org.springframework.kafka.core.KafkaTemplate;
38   -import org.springframework.kafka.support.SendResult;
39   -import org.springframework.messaging.Message;
40   -import org.springframework.stereotype.Component;
41   -import org.springframework.util.concurrent.ListenableFuture;
42   -import org.springframework.util.concurrent.ListenableFutureCallback;
43   -
44   -import javax.ws.rs.*;
45   -import javax.ws.rs.core.MediaType;
46   -import java.net.URLEncoder;
47   -import java.util.*;
48   -import java.util.concurrent.*;
49   -
50   -/**
51   - * Created by panzhao on 2017/8/24.
52   - */
53   -@Component
54   -@Path("/schedule_real")
55   -@Produces({MediaType.APPLICATION_JSON})
56   -public class ScheduleRealService implements InitializingBean {
57   -
58   - @Autowired
59   - ScheduleRedisService redisService;
60   -
61   - @Autowired
62   - SchRealDataBuffer schRealDataBuffer;
63   -
64   - @Autowired
65   - private ScheduleRealInfoRepository scheduleRealInfoRepository;
66   -
67   - @Autowired
68   - private KafkaTemplate kafkaTemplate;
69   -
70   - Logger logger = LoggerFactory.getLogger(this.getClass());
71   -
72   - static String url;
73   - static String secretKey;
74   -
75   - private volatile long timestamp;
76   -
77   - private final static int KAFKA_BATCH_SIZE = 100;
78   -
79   - static {
80   - secretKey = ConfigUtil.get("http.control.secret.key");
81   - url = ConfigUtil.get("http.control.service_data_url");// + "/execSchList?secretKey=" + secretKey;
82   - }
83   -
84   - @POST
85   - @Path("tcc_tzrc")
86   - public Map<String, Object> tccTzrc(String jsonStr) {
87   - JSONObject rs = new JSONObject();
88   - try {
89   - StringBuilder sb = HttpClientUtils.post(url + "/tccHrhc?secretKey=" + secretKey, jsonStr);
90   -
91   - rs = JSONObject.parseObject(sb.toString());
92   -
93   - if ("SUCCESS".equals(rs.get("status"))) {
94   - rs.put("list", ScheduleInOut.getMultiInstance(JSONArray.parseArray(rs.getJSONArray("list").toJSONString(), ScheduleRealInfo.class)));
95   - }
96   - } catch (Exception e) {
97   - logger.error("", e);
98   - rs.put("status", ResponseCode.ERROR);
99   - rs.put("msg", "接口服务器出现异常!");
100   - }
101   - return rs;
102   - }
103   -
104   - @POST
105   - @Path("tcc_dftz")
106   - public Map<String, Object> tccDftz(String jsonStr) {
107   - JSONObject rs = new JSONObject();
108   - try {
109   - StringBuilder sb = HttpClientUtils.post(url + "/dftzAndDestroy?secretKey=" + secretKey, jsonStr);
110   -
111   - rs = JSON.parseObject(sb.toString());
112   -
113   - if ("SUCCESS".equals(rs.get("status"))) {
114   - rs.put("t", new ScheduleInOut(JSON.toJavaObject(JSON.parseObject(rs.get("t").toString()), ScheduleRealInfo.class)));
115   - }
116   - //ScheduleInOut.getMultiInstance
117   - } catch (Exception e) {
118   - logger.error("", e);
119   - rs.put("status", ResponseCode.ERROR);
120   - rs.put("msg", "接口服务器出现异常!");
121   - }
122   - return rs;
123   - }
124   -
125   - /**
126   - * 获取路牌下的班次信息
127   - *
128   - * @param lineCode
129   - * @param lpName
130   - * @return
131   - */
132   - @GET
133   - @Path("/findByLpName/{lineCode}/{lpName}")
134   - public List<ScheduleRealInfo> findByLpName(@PathParam("lineCode") String lineCode, @PathParam("lpName") String lpName) {
135   - List<ScheduleRealInfo> list = new ArrayList<>();
136   - try {
137   - if (StringUtils.isEmpty(lineCode) || StringUtils.isEmpty(lpName))
138   - return list;
139   -
140   - lpName = URLEncoder.encode(lpName, "UTF-8");
141   - StringBuilder sb = HttpClientUtils.get(url + "/findByLpName?secretKey=" + secretKey + "&lineCode=" + lineCode + "&lpName=" + lpName);
142   - list = JSON.parseArray(sb.toString(), ScheduleRealInfo.class);
143   - } catch (Exception e) {
144   - logger.error("", e);
145   - }
146   - return list;
147   - }
148   -
149   - /**
150   - * 获取当天指定停车场的进出场排班数据
151   - *
152   - * @return
153   - */
154   - @GET
155   - @Path("/in_out/{code}")
156   - public List<ScheduleInOut> findInOut(@PathParam("code") String code) {
157   - Set<String> lineArray = BasicData.lineDateMap.keySet();
158   -
159   - List<ScheduleInOut> all = new ArrayList<>();
160   - for (String lineCode : lineArray) {
161   - all.addAll(ScheduleInOut.getMultiInstance(redisService.read(BasicData.lineDateMap.get(lineCode), lineCode), code));
162   - }
163   - return all;
164   - }
165   -
166   - /**
167   - * 获取指定日期,指定公司的人员车辆配置情况(实际排班)
168   - *
169   - * @param company
170   - * @param rq
171   - * @return
172   - */
173   - @GET
174   - @Path("/ccConfig/{company}/{rq}")
175   - public List<ScheduleCcInfoConfig> ccInfoConfig(@PathParam("company") String company, @PathParam("rq") String rq) {
176   - List<Line> lines = LineBufferData.findByCompany(company);
177   -
178   - List<ScheduleCcInfoConfig> all = new ArrayList<>();
179   - for (Line line : lines) {
180   - all.addAll(ScheduleCcInfoConfig.getMultiInstance(redisService.read(rq, line.getLineCode())));
181   - }
182   - return all;
183   - }
184   -
185   - /**
186   - * 根据车辆自编号获取对应执行的班次信息
187   - *
188   - * @param nbbm
189   - * @return
190   - */
191   - @GET
192   - @Path("/exec/{nbbm}")
193   - public JSONObject getExecPlan(@PathParam("nbbm") String nbbm) {
194   - return schRealDataBuffer.getExecPlan(nbbm);
195   - }
196   -
197   - /**
198   - * 获取全部的 车辆 和班次对照信息
199   - *
200   - * @param
201   - * @return
202   - */
203   - @GET
204   - @Path("/execs")
205   - public Collection<JSONObject> execs(){
206   - return schRealDataBuffer.execs();
207   - }
208   -
209   - /**
210   - * 获取当天指定停车场的进出场排班数据(潘钊场站VIP特供版 -高实时)
211   - *
212   - * @return
213   - */
214   - @GET
215   - @Path("/in_out/pz_vip/{code}")
216   - public List<ScheduleInOut> findInOut_real(@PathParam("code") String code) {
217   - logger.info("in_out -" + code);
218   - return ScheduleInOut.getMultiInstance(schRealDataBuffer.findByParkCode(code));
219   - }
220   -
221   - @GET
222   - @Path("/sch_jk/{company}/{rq}")
223   - public List<ScheduleRealInfoDTO_JK> find_JK(@PathParam("company") String company, @PathParam("rq") String rq) {
224   - List<ScheduleRealInfoDTO_JK> all = new ArrayList<>();
225   -
226   - List<Line> lines = LineBufferData.findByCompany(company);
227   - for (Line line : lines) {
228   - all.addAll(ScheduleRealInfoDTO_JK.getMultiInstance(redisService.read(rq, line.getLineCode())));
229   - }
230   - return all;
231   - }
232   -
233   - @GET
234   - @Path("/sch_jk_db/{company}/{rq}")
235   - public List<ScheduleRealInfoDTO_JK> sch_jk(@PathParam("company") String company, @PathParam("rq") String rq) {
236   - DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyyMMdd");
237   - DateTime dateTime = fmt.parseDateTime(rq);
238   - List<ScheduleRealInfo> scheduleRealInfos = scheduleRealInfoRepository.findByDateAndCompany(dateTime.toString("yyyy-MM-dd"), company);
239   - redisService.calcTime(scheduleRealInfos);
240   - List<ScheduleRealInfoDTO_JK> result = ScheduleRealInfoDTO_JK.getMultiInstance(scheduleRealInfos);
241   -
242   - return result;
243   - }
244   -
245   - @GET
246   - @Path("/sch_jk4modify/{company}/{rq}/{timestamp}")
247   - public List<ScheduleRealInfoDTO_JK> sch_jk4modify(@PathParam("company") String company, @PathParam("rq") String rq, @PathParam("timestamp") long timestamp) {
248   - DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyyMMdd");
249   - DateTime dateTime = fmt.parseDateTime(rq);
250   - List<ScheduleRealInfo> scheduleRealInfos = scheduleRealInfoRepository.findByDateAndCompany(dateTime.toString("yyyy-MM-dd"), company, new Date(timestamp));
251   - redisService.calcTime(scheduleRealInfos);
252   - List<ScheduleRealInfoDTO_JK> result = ScheduleRealInfoDTO_JK.getMultiInstance(scheduleRealInfos);
253   -
254   - return result;
255   - }
256   -
257   - /**
258   - * 读取指定日期的redis 数据,计算程序调用
259   - *
260   - * @param rqs
261   - * @return
262   - */
263   - @GET
264   - @Path("/pz_vip/read/{rqs}")
265   - public List<ScheduleRealInfo> read(@PathParam("rqs") String rqs) {
266   - List<ScheduleRealInfo> all = new ArrayList<>(), rs = new ArrayList<>();
267   - List<Line> lines = LineBufferData.findAll();
268   - List<String> rqArray = Splitter.on(",").splitToList(rqs);
269   -
270   - for (Line line : lines) {
271   - for (String rq : rqArray)
272   - all.addAll(redisService.read(rq, line.getLineCode()));
273   - }
274   -
275   - for (ScheduleRealInfo sch : all) {
276   - if (sch.getBcType().equals("in") || sch.getBcType().equals("out") || sch.getBcType().equals("ldks"))
277   - continue;
278   -
279   - //烂班,临加,有子任务的
280   - if (sch.getStatus() == -1 || sch.isSflj() || (sch.getcTasks() != null && sch.getcTasks().size() > 0))
281   - rs.add(sch);
282   - }
283   - return rs;
284   - }
285   -
286   - /**
287   - * 读取指定日期线路的redis 数据,计算程序调用
288   - *
289   - * @param rq
290   - * @return
291   - */
292   - @GET
293   - @Path("/pz_vip/readByRqAndLine/{rq}/{lineCode}")
294   - public List<ScheduleRealInfo> readByLine(@PathParam("rq") String rq, @PathParam("lineCode") String lineCode) {
295   - List<ScheduleRealInfo> all = redisService.read(rq, lineCode), rs = new ArrayList<>();
296   -
297   - for (ScheduleRealInfo sch : all) {
298   - if (sch.getBcType().equals("in") || sch.getBcType().equals("out") || sch.getBcType().equals("ldks"))
299   - continue;
300   -
301   - //烂班,临加,有子任务的
302   - if (sch.getStatus() == -1 || sch.isSflj() || (sch.getcTasks() != null && sch.getcTasks().size() > 0))
303   - rs.add(sch);
304   - }
305   - return rs;
306   - }
307   -
308   - /**
309   - * 获取不在岗的班次信息
310   - */
311   - @GET
312   - @Path("/notOnDuty")
313   - public List<ScheduleRealInfo> notOnDuty() {
314   - List<ScheduleRealInfo> result = new ArrayList<>();
315   - Collection<ScheduleRealInfo> collection = schRealDataBuffer.getInOutData();
316   - long now = System.currentTimeMillis();
317   - for (ScheduleRealInfo sch : collection) {
318   - if ("in".equals(sch.getBcType())) {
319   - continue;
320   - }
321   - GpsEntity gpsEntity = GpsRealDataBuffer.get(CarBufferData.findOne(sch.getClZbh()).getEquipmentCode());
322   - long schIntervalMillis = sch.getDfsjT() - now, gpsIntervalMillis = sch.getDfsjT() - (gpsEntity == null ? 0 : gpsEntity.getTimestamp());
323   - boolean isSchMatch = schIntervalMillis > 0 && schIntervalMillis < 1200000, isGpsMatch = gpsIntervalMillis > 1200000;
324   - // 当前时间往后20分钟内的出场班次 且相应车辆在待发时间20分钟内无GPS数据
325   - if (isSchMatch && isGpsMatch) {
326   - result.add(sch);
327   - }
328   - }
329   -
330   - return result;
331   - }
332   -
333   - @Override
334   - public void afterPropertiesSet() throws Exception {
335   - /*Application.mainServices.scheduleWithFixedDelay(new Runnable() {
336   - @Override
337   - public void run() {
338   - try {
339   - DateTime dateTime = DateTime.now(), preDate = dateTime.minusDays(1);
340   - List<String> dates = new ArrayList<>();
341   - dates.add(dateTime.toString("yyyy-MM-dd"));
342   - dates.add(preDate.toString("yyyy-MM-dd"));
343   - if (timestamp == 0) {
344   - timestamp = dateTime.minusHours(1).getMillis();
345   - }
346   - List<ScheduleRealInfo> scheduleRealInfos = scheduleRealInfoRepository.findByDates(dates, new Date(timestamp));
347   - timestamp = dateTime.getMillis();
348   -
349   - Queue<ScheduleRealInfoVo> queue = new ConcurrentLinkedDeque<>();
350   - for (ScheduleRealInfo sch : scheduleRealInfos) {
351   - ScheduleRealInfoVo scheduleRealInfoVo = new ScheduleRealInfoVo();
352   - BeanUtils.copyProperties(sch, scheduleRealInfoVo);
353   - Car car = CarBufferData.findOne(scheduleRealInfoVo.getClZbh());
354   - scheduleRealInfoVo.setCarPlate(car == null ? "" : car.getCarPlate());
355   - queue.add(scheduleRealInfoVo);
356   - }
357   -
358   - int size = scheduleRealInfos.size();
359   - for (int i = 0, len = size % KAFKA_BATCH_SIZE == 0 ? size / KAFKA_BATCH_SIZE : size / KAFKA_BATCH_SIZE + 1;i < len;i++) {
360   - List<ScheduleRealInfoVo> scheduleRealInfoVos = new ArrayList<>();
361   - for (int j = 0; j < KAFKA_BATCH_SIZE;j++) {
362   - ScheduleRealInfoVo scheduleRealInfoVo = queue.poll();
363   - if (scheduleRealInfoVo == null) {
364   - break;
365   - }
366   - scheduleRealInfoVos.add(scheduleRealInfoVo);
367   - }
368   -
369   - Map<String, Object> data = new HashMap<>();
370   - data.put("datatype", "waybill");
371   - data.put("datas", scheduleRealInfoVos);
372   -
373   - ObjectMapper mapper = new ObjectMapper();
374   - String json = mapper.writeValueAsString(data);
375   - logger.info(json);
376   - ListenableFuture<SendResult<String, String>> future = kafkaTemplate.send("PDGJ_JQDD", json);
377   - future.addCallback(new ListenableFutureCallback<SendResult<String, String>>() {
378   -
379   - @Override
380   - public void onSuccess(SendResult<String, String> result) {
381   -
382   - }
383   -
384   - @Override
385   - public void onFailure(Throwable ex) {
386   - logger.error("kafka发送电子路单异常", ex);
387   - }
388   - });
389   - }
390   - } catch (Exception e) {
391   - logger.error("kafka发电子路单调度异常", e);
392   - }
393   - }
394   - }, 30, 240, TimeUnit.SECONDS);*/
395   - }
396   -}
src/main/java/com/bsth/server_rs/schedule/real/StaffViewRealService.java deleted 100644 → 0
1   -package com.bsth.server_rs.schedule.real;
2   -
3   -import com.bsth.common.BasicData;
4   -import com.bsth.entity.OilInfo;
5   -import com.bsth.entity.SchedulePlanInfo;
6   -import com.bsth.entity.ScheduleRealInfo;
7   -import com.bsth.redis.ScheduleRedisService;
8   -import com.bsth.repository.ScheduleRealInfoRepository;
9   -import com.bsth.server_rs.schedule.dto.ScheduleInOut;
10   -import com.bsth.server_ws.park_station.dto.LsLcPb;
11   -import com.bsth.server_ws.util.ControlHttpUtils;
12   -import com.bsth.server_ws.util.WSDataConver;
13   -import com.bsth.util.ConvertUtil;
14   -import com.google.common.collect.ArrayListMultimap;
15   -import org.joda.time.format.DateTimeFormat;
16   -import org.joda.time.format.DateTimeFormatter;
17   -import org.slf4j.Logger;
18   -import org.slf4j.LoggerFactory;
19   -import org.springframework.beans.factory.annotation.Autowired;
20   -import org.springframework.jdbc.core.BeanPropertyRowMapper;
21   -import org.springframework.jdbc.core.JdbcTemplate;
22   -import org.springframework.stereotype.Component;
23   -
24   -import javax.ws.rs.GET;
25   -import javax.ws.rs.Path;
26   -import javax.ws.rs.PathParam;
27   -import javax.ws.rs.Produces;
28   -import javax.ws.rs.core.MediaType;
29   -import java.util.*;
30   -
31   -/**
32   - * 场站查询机,相关 rest 接口
33   - */
34   -@Component
35   -@Path("/staff_view")
36   -@Produces({MediaType.APPLICATION_JSON})
37   -public class StaffViewRealService {
38   -
39   - Logger logger = LoggerFactory.getLogger(this.getClass());
40   -
41   - @Autowired
42   - JdbcTemplate jdbcTemplate;
43   -
44   - @Autowired
45   - ScheduleRealInfoRepository scheduleRealInfoRepository;
46   -
47   - @Autowired
48   - ScheduleRedisService redisService;
49   -
50   - private static DateTimeFormatter fmtyyyyMMdd = DateTimeFormat.forPattern("yyyy-MM-dd");
51   -
52   - /**
53   - * 根据工号查询当日进出场排班(打印出门证用 -直接连调度系统,快速响应实时数据)
54   - *
55   - * @param workId
56   - * @return
57   - */
58   - @GET
59   - @Path("currentDayPlan_out/{workId}")
60   - public List<ScheduleInOut> currentDayPlan(@PathParam("workId") String workId) {
61   -
62   - try {
63   - String[] arr = workId.split("-");
64   -
65   - List<ScheduleRealInfo> list = ControlHttpUtils.getCurrentDayPlan(arr[0], arr[1]);
66   -
67   - //签到接口 -只给出场班次
68   - List<ScheduleInOut> list2 = new ArrayList<>();
69   -
70   - for (ScheduleRealInfo sch : list) {
71   - if (sch.getStatus() != -1 && sch.getBcType().equals("out"))
72   - list2.add(new ScheduleInOut(sch));
73   - }
74   -
75   -
76   - return list2;
77   - } catch (Exception e) {
78   - logger.error("", e);
79   - }
80   - return null;
81   - }
82   -
83   - /**
84   - * 查询今日排班
85   - *
86   - * @param workId
87   - * @return
88   - */
89   - @GET
90   - @Path("querySchedule/{workId}")
91   - public List<ScheduleRealInfo> querySchedule(@PathParam("workId") String workId) {
92   - try {
93   - String date = fmtyyyyMMdd.print(new Date().getTime() - (1000 * 60 * 60 * 24));
94   - List<ScheduleRealInfo> list = jdbcTemplate.query("select * from bsth_c_s_sp_info_real where j_gh='" + workId + "' and schedule_date_str>='" + date + "'", BeanPropertyRowMapper.newInstance(ScheduleRealInfo.class));
95   -
96   - if (null == list || list.size() == 0)
97   - return null;
98   -
99   - //计算真实执行日期 和 时间戳
100   - String st = BasicData.lineStartTimeMap.get(list.get(0).getXlBm());
101   - for (ScheduleRealInfo sch : list) {
102   - redisService.calcRealDate(st, sch);
103   - }
104   - //按日期分组,取日期大的list 就是当日排班
105   - ArrayListMultimap<String, ScheduleRealInfo> multimap =
106   - new ConvertUtil<ScheduleRealInfo>().groupMultiList(list, "_", ScheduleRealInfo.class.getDeclaredField("scheduleDateStr"));
107   -
108   - Set<String> ks = multimap.keySet();
109   -
110   - String fd = null;
111   - for (String k : ks) {
112   -
113   - if (null == fd || k.compareTo(fd) > 0)
114   - fd = k;
115   - }
116   -
117   -
118   - return multimap.get(fd);
119   - } catch (Exception e) {
120   - logger.error("", e);
121   - }
122   - return null;
123   - }
124   -
125   - /**
126   - * 综合查询
127   - *
128   - * @param company
129   - * @param workId
130   - * @param month
131   - * @return
132   - */
133   - @GET
134   - @Path("queryLSLC_PB/{company}/{workId}/{month}")
135   - public List<LsLcPb> queryLSLC_PB(@PathParam("company") String company, @PathParam("workId") String workId, @PathParam("month") String month) {
136   - List<LsLcPb> rs = new ArrayList<>();
137   -
138   - try {
139   - //实际排班
140   - List<ScheduleRealInfo> schList =
141   - jdbcTemplate.query("select * from bsth_c_s_sp_info_real where gs_bm='" + company + "' and j_gh='" + workId + "' and schedule_date_str like '" + month + "-%'",
142   - BeanPropertyRowMapper.newInstance(ScheduleRealInfo.class));
143   -
144   - //计划排班
145   - List<SchedulePlanInfo> planList =
146   - jdbcTemplate.query("select * from bsth_c_s_sp_info where gs_bm='" + company + "' and j_gh='" + workId + "' and schedule_date>sysdate() and schedule_date like '" + month + "-%' order by bcs",
147   - BeanPropertyRowMapper.newInstance(SchedulePlanInfo.class));
148   -
149   - //油耗
150   - List<OilInfo> oilList =
151   - jdbcTemplate.query("select * from bsth_c_ylb where jsy='" + workId + "' and rq like '" + month + "-%'",
152   - BeanPropertyRowMapper.newInstance(OilInfo.class));
153   -
154   - rs = WSDataConver.to_getLSLC_PB_list(month, schList, oilList, planList);
155   - } catch (Exception e) {
156   - logger.error("", e);
157   - }
158   - return rs;
159   - }
160   -}
src/main/java/com/bsth/server_rs/schedule/real/thread/ExecSchDataRefreshThread.java deleted 100644 → 0
1   -package com.bsth.server_rs.schedule.real.thread;
2   -
3   -import com.alibaba.fastjson.JSON;
4   -import com.alibaba.fastjson.JSONObject;
5   -import com.bsth.server_rs.schedule.real.SchRealDataBuffer;
6   -import com.bsth.util.ConfigUtil;
7   -import com.bsth.util.HttpClientUtils;
8   -import org.slf4j.Logger;
9   -import org.slf4j.LoggerFactory;
10   -import org.springframework.beans.factory.annotation.Autowired;
11   -import org.springframework.stereotype.Component;
12   -
13   -import java.util.HashMap;
14   -import java.util.List;
15   -import java.util.Map;
16   -
17   -/**
18   - * 车辆当前执行班次数据刷新线程
19   - * Created by panzhao on 2017/11/9.
20   - */
21   -@Component
22   -public class ExecSchDataRefreshThread extends Thread{
23   -
24   - static String url;
25   - static String secretKey;
26   -
27   - @Autowired
28   - SchRealDataBuffer schRealDataBuffer;
29   - Logger logger = LoggerFactory.getLogger(this.getClass());
30   -
31   - static {
32   - secretKey = ConfigUtil.get("http.control.secret.key");
33   - url = ConfigUtil.get("http.control.service_data_url") + "/execSchList?secretKey=" + secretKey;
34   - }
35   -
36   - @Override
37   - public void run() {
38   - try {
39   - StringBuilder sb = HttpClientUtils.get(url);
40   - List<JSONObject> list = JSON.parseArray(sb.toString(), JSONObject.class);
41   -
42   - Map<String, JSONObject> map = new HashMap<>();
43   - for(JSONObject obj : list){
44   - map.put(obj.getString("clZbh"), obj);
45   - }
46   -
47   - if(map.size() > 0)
48   - schRealDataBuffer.setExecMap(map);
49   - } catch (Exception e) {
50   - logger.error("", e);
51   - }
52   - }
53   -}
src/main/java/com/bsth/server_rs/schedule/real/thread/SchInOutDataRefreshThread.java deleted 100644 → 0
1   -package com.bsth.server_rs.schedule.real.thread;
2   -
3   -import com.alibaba.fastjson.JSON;
4   -import com.bsth.entity.ScheduleRealInfo;
5   -import com.bsth.server_rs.schedule.real.SchRealDataBuffer;
6   -import com.bsth.util.ConfigUtil;
7   -import com.bsth.util.HttpClientUtils;
8   -import org.slf4j.Logger;
9   -import org.slf4j.LoggerFactory;
10   -import org.springframework.beans.factory.annotation.Autowired;
11   -import org.springframework.stereotype.Component;
12   -
13   -import java.util.List;
14   -
15   -/**
16   - * 从调度系统获取进出场数据线程
17   - * Created by panzhao on 2017/9/27.
18   - */
19   -@Component
20   -public class SchInOutDataRefreshThread extends Thread {
21   -
22   - static String url;
23   - static String secretKey;
24   -
25   - @Autowired
26   - SchRealDataBuffer schRealDataBuffer;
27   - Logger logger = LoggerFactory.getLogger(this.getClass());
28   -
29   - static {
30   - secretKey = ConfigUtil.get("http.control.secret.key");
31   - url = ConfigUtil.get("http.control.service_data_url") + "/findCurrInAndOut?secretKey=" + secretKey;
32   - }
33   -
34   - @Override
35   - public void run() {
36   - try {
37   - StringBuilder sb = HttpClientUtils.get(url);
38   - List<ScheduleRealInfo> list = JSON.parseArray(sb.toString(), ScheduleRealInfo.class);
39   -
40   - if(null != list && list.size() > 0){
41   - schRealDataBuffer.putInOutData(list);
42   - logger.info("从调度系统刷新进出场班次: " + list.size());
43   - }
44   - } catch (Exception e) {
45   - logger.error("", e);
46   - }
47   - }
48   -}
src/main/java/com/bsth/server_ws/attendance/AttendanceService.java deleted 100644 → 0
1   -package com.bsth.server_ws.attendance;
2   -
3   -import javax.jws.WebMethod;
4   -import javax.jws.WebParam;
5   -import javax.jws.WebService;
6   -import javax.xml.ws.Holder;
7   -
8   -import com.bsth.server_ws.attendance.entity.Ssry_attendance;
9   -import com.bsth.server_ws.attendance.entity.Jsy_attendance;
10   -
11   -/**
12   - * 考勤相关数据接口
13   - * Created by panzhao on 2017/3/27.
14   - */
15   -@WebService(
16   - name = "AttendanceServiceSoap",
17   - targetNamespace = "http://control.bsth.com/")
18   -public interface AttendanceService {
19   -
20   - /**
21   - * 驾驶员考勤信息
22   - * @param password
23   - * @param rq
24   - * @param company 公司编码
25   - * @param result
26   - * @param fError
27   - * @return
28   - */
29   - @WebMethod
30   - boolean jsy_attendance(
31   - @WebParam(name = "password") String password,
32   - @WebParam(name = "rq") String rq,
33   - @WebParam(name = "company") String company,
34   - @WebParam(name = "resultArray", mode = WebParam.Mode.INOUT) Holder<Jsy_attendance[]> result,
35   - @WebParam(name = "fError", mode = WebParam.Mode.INOUT) Holder<String> fError);
36   -
37   - /**
38   - * 考勤信息
39   - * @param password
40   - * @param rq
41   - * @param company 公司编码
42   - * @param result
43   - * @param fError
44   - * @return
45   - */
46   - @WebMethod
47   - boolean ssry_attendance(
48   - @WebParam(name = "password") String password,
49   - @WebParam(name = "rq") String rq,
50   - @WebParam(name = "company") String company,
51   - @WebParam(name = "resultArray", mode = WebParam.Mode.INOUT) Holder<Ssry_attendance[]> result,
52   - @WebParam(name = "fError", mode = WebParam.Mode.INOUT) Holder<String> fError);
53   -}
src/main/java/com/bsth/server_ws/attendance/AttendanceServiceSoap.java deleted 100644 → 0
1   -package com.bsth.server_ws.attendance;
2   -
3   -import com.bsth.entity.SchedulePlanInfo;
4   -import com.bsth.entity.ScheduleRealInfo;
5   -import com.bsth.redis.PlanScheduleRedisService;
6   -import com.bsth.redis.ScheduleRedisService;
7   -import com.bsth.server_rs.base_info.line.buffer.LineBufferData;
8   -import com.bsth.server_ws.attendance.entity.Ssry_attendance;
9   -import com.bsth.server_ws.attendance.entity.Jsy_attendance;
10   -import com.bsth.server_ws.util.WSDataConver;
11   -import com.bsth.service.DDYAuthorityService;
12   -import com.bsth.service.UserService;
13   -
14   -import org.apache.commons.lang3.StringUtils;
15   -import org.slf4j.Logger;
16   -import org.springframework.beans.BeansException;
17   -import org.springframework.context.ApplicationContext;
18   -import org.springframework.context.ApplicationContextAware;
19   -import org.springframework.stereotype.Component;
20   -
21   -import javax.jws.WebService;
22   -import javax.xml.ws.Holder;
23   -import java.util.HashSet;
24   -import java.util.List;
25   -import java.util.Map;
26   -import java.util.Set;
27   -
28   -/**
29   - * Created by panzhao on 2017/3/27.
30   - */
31   -@Component
32   -@WebService(
33   - name = "AttendanceServiceSoap",
34   - portName = "AttendanceServiceSoap",
35   - serviceName = "AttendanceService",
36   - targetNamespace = "http://control.bsth.com/",
37   - endpointInterface = "com.bsth.server_ws.attendance.AttendanceService")
38   -public class AttendanceServiceSoap implements AttendanceService, ApplicationContextAware {
39   -
40   - Logger logger = org.slf4j.LoggerFactory.getLogger(this.getClass());
41   -
42   - static DDYAuthorityService ddyAuthorityService;
43   - static PlanScheduleRedisService planScheduleRedisService;
44   - static ScheduleRedisService scheduleRedisService;
45   -
46   - static UserService userService;
47   -
48   - @Override
49   - public boolean jsy_attendance(String password, String rq, String company, Holder<Jsy_attendance[]> result, Holder<String> fError) {
50   - try {
51   - if(userService.get(password) == null){
52   - fError.value = "无效的密码!";
53   - return false;
54   - }
55   -
56   - //按公司编码获取线路
57   - List<String> lineArray = LineBufferData.findCodesByCompany(company);
58   - //计划排班
59   - List<SchedulePlanInfo> plans = planScheduleRedisService.findByMultiLine(lineArray, rq);
60   - //实际排班
61   - List<ScheduleRealInfo> reals = scheduleRedisService.findByMultiLine(lineArray, rq);
62   - //从计划和实际里提取出驾驶员
63   - Set<String> jsySet = extractJsy(plans, reals);
64   - //驾驶员班型对照
65   - Map<String, String> types = ddyAuthorityService.findMultiType(jsySet);
66   -
67   - //转换成工资系统想要的数据
68   - result.value = WSDataConver.to_jsyAttendanceNH(plans, reals, jsySet, types, rq);
69   - }catch (Exception e){
70   - logger.error("", e);
71   - fError.value = "服务器出现异常!";
72   - return false;
73   - }
74   - return true;
75   - }
76   -
77   - @Override
78   - public boolean ssry_attendance(String password, String rq, String company, Holder<Ssry_attendance[]> result,
79   - Holder<String> fError) {
80   - // TODO Auto-generated method stub
81   - try {
82   - if(userService.get(password) == null){
83   - fError.value = "无效的密码!";
84   - return false;
85   - }
86   -
87   - //按公司编码获取线路
88   - List<String> lineArray = LineBufferData.findCodesByCompany(company);
89   - //计划排班
90   - List<SchedulePlanInfo> plans = planScheduleRedisService.findByMultiLine(lineArray, rq);
91   - //实际排班
92   - List<ScheduleRealInfo> reals = scheduleRedisService.findByMultiLine(lineArray, rq);
93   - //从计划和实际里提取出驾驶员
94   - Set<String> jsys = new HashSet<String>(), spys = new HashSet<String>();
95   - extractSsry(plans, reals, jsys, spys);
96   -
97   - //转换成工资系统想要的数据
98   - result.value = WSDataConver.toAttendanceNH(plans, reals, jsys, spys, rq);
99   - }catch (Exception e){
100   - logger.error("", e);
101   - fError.value = "服务器出现异常!";
102   - return false;
103   - }
104   - return true;
105   - }
106   -
107   - private Set<String> extractJsy(List<SchedulePlanInfo> plans, List<ScheduleRealInfo> reals) {
108   - Set<String> rs = new HashSet<>();
109   - for (SchedulePlanInfo plan : plans) {
110   - rs.add(plan.getjGh());
111   - }
112   -
113   - for (ScheduleRealInfo sch : reals) {
114   - rs.add(sch.getjGh());
115   - }
116   - return rs;
117   - }
118   -
119   - /**
120   - * 提取司售人员
121   - * @param plans
122   - * @param reals
123   - * @return
124   - */
125   - private void extractSsry(List<SchedulePlanInfo> plans, List<ScheduleRealInfo> reals, Set<String> jsys, Set<String> spys) {
126   - for (SchedulePlanInfo plan : plans) {
127   - jsys.add(plan.getjGh());
128   - if (StringUtils.isNotEmpty(plan.getsGh())) {
129   - spys.add(plan.getsGh());
130   - }
131   - }
132   -
133   - for (ScheduleRealInfo sch : reals) {
134   - jsys.add(sch.getjGh());
135   - if (StringUtils.isNotEmpty(sch.getsGh())) {
136   - spys.add(sch.getsGh());
137   - }
138   - }
139   - }
140   -
141   - @Override
142   - public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
143   - ddyAuthorityService = applicationContext.getBean(DDYAuthorityService.class);
144   - planScheduleRedisService = applicationContext.getBean(PlanScheduleRedisService.class);
145   - scheduleRedisService = applicationContext.getBean(ScheduleRedisService.class);
146   - userService = applicationContext.getBean(UserService.class);
147   - }
148   -
149   -}
src/main/java/com/bsth/server_ws/attendance/entity/Jsy_attendance.java deleted 100644 → 0
1   -package com.bsth.server_ws.attendance.entity;
2   -
3   -import com.bsth.entity.ScheduleRealInfo;
4   -
5   -import java.util.Collections;
6   -import java.util.Comparator;
7   -import java.util.List;
8   -
9   -/**
10   - * 南汇驾驶员考勤
11   - * Created by panzhao on 2017/3/27.
12   - */
13   -public class Jsy_attendance {
14   -
15   - /** 日期 */
16   - private String rq;
17   -
18   - /** 公司编码 */
19   - private String company;
20   -
21   - /** 分公司编码 */
22   - private String fgsCompany;
23   -
24   - /** 线路编码 */
25   - private String xlBm;
26   -
27   - /** 线路名称 */
28   - private String xlName;
29   -
30   - /** 驾驶员工号 */
31   - private String jGh;
32   -
33   - /** 驾驶员名称 */
34   - private String jName;
35   -
36   - /** 售票员工号 */
37   - private String sGh;
38   -
39   - /** 售票员名称 */
40   - private String sName;
41   -
42   - /** 班型 */
43   - private String planType;
44   -
45   - /**
46   - * 出勤状态 应出,实出
47   - * 1,0 应出未出
48   - * 1,1 应出实出
49   - * 0,1 无计划,临加出勤
50   - */
51   - private String status;
52   -
53   - /**
54   - * 路牌
55   - */
56   - private String lpNames;
57   -
58   - /** 车辆 */
59   - private String cls;
60   -
61   - /**
62   - * 早夜班类型
63   - *
64   - * 早班:上班时间五点之前;
65   - * 中班:下班时间为22点之后到24点之间;
66   - * 晚班:下班时间24点之后为深夜班
67   - *
68   - * 1、早班
69   - 2、中班
70   - 3、晚班
71   - 4、早中班
72   - 5、早晚班
73   - */
74   - private int zybType;
75   -
76   -
77   - public void calcZybType(List<ScheduleRealInfo> list){
78   - ScheduleRealInfo s,e;
79   - Collections.sort(list, new Comparator<ScheduleRealInfo>() {
80   - @Override
81   - public int compare(ScheduleRealInfo o1, ScheduleRealInfo o2) {
82   - return (int) (o1.getFcsjT() - o2.getFcsjT());
83   - }
84   - });
85   -
86   - s = list.get(0);
87   - e = list.get(list.size() - 1);
88   -
89   - if(s.getFcsj().compareTo("05:00") <= 0)
90   - this.zybType=1;//早班
91   - else if(e.getZdsj().compareTo("05:00") > 0)
92   - this.zybType=2;//中班
93   - else if(e.getZdsj().compareTo("05:00") < 0)
94   - this.zybType=3;//晚班
95   -
96   - //早中班
97   - if(this.zybType==1 && e.getZdsj().compareTo("22:00") >=0 && e.getZdsj().compareTo("23:59") <= 0){
98   - this.zybType = 4;
99   - }
100   -
101   - //早晚班
102   - if(this.zybType==1 && e.getZdsj().compareTo(s.getFcsj()) < 0){
103   - this.zybType = 5;
104   - }
105   - }
106   -
107   - public Jsy_attendance() {
108   - }
109   -
110   - public String getRq() {
111   - return rq;
112   - }
113   -
114   - public void setRq(String rq) {
115   - this.rq = rq;
116   - }
117   -
118   - public String getXlBm() {
119   - return xlBm;
120   - }
121   -
122   - public void setXlBm(String xlBm) {
123   - this.xlBm = xlBm;
124   - }
125   -
126   - public String getXlName() {
127   - return xlName;
128   - }
129   -
130   - public void setXlName(String xlName) {
131   - this.xlName = xlName;
132   - }
133   -
134   - public String getjGh() {
135   - return jGh;
136   - }
137   -
138   - public void setjGh(String jGh) {
139   - this.jGh = jGh;
140   - }
141   -
142   - public String getjName() {
143   - return jName;
144   - }
145   -
146   - public void setjName(String jName) {
147   - this.jName = jName;
148   - }
149   -
150   - public String getsGh() {
151   - return sGh;
152   - }
153   -
154   - public void setsGh(String sGh) {
155   - this.sGh = sGh;
156   - }
157   -
158   - public String getsName() {
159   - return sName;
160   - }
161   -
162   - public void setsName(String sName) {
163   - this.sName = sName;
164   - }
165   -
166   - public String getPlanType() {
167   - return planType;
168   - }
169   -
170   - public void setPlanType(String planType) {
171   - this.planType = planType;
172   - }
173   -
174   - public String getStatus() {
175   - return status;
176   - }
177   -
178   - public void setStatus(String status) {
179   - this.status = status;
180   - }
181   -
182   - public String getCompany() {
183   - return company;
184   - }
185   -
186   - public void setCompany(String company) {
187   - this.company = company;
188   - }
189   -
190   - public String getFgsCompany() {
191   - return fgsCompany;
192   - }
193   -
194   - public void setFgsCompany(String fgsCompany) {
195   - this.fgsCompany = fgsCompany;
196   - }
197   -
198   - public String getLpNames() {
199   - return lpNames;
200   - }
201   -
202   - public void setLpNames(String lpNames) {
203   - this.lpNames = lpNames;
204   - }
205   -
206   - public String getCls() {
207   - return cls;
208   - }
209   -
210   - public void setCls(String cls) {
211   - this.cls = cls;
212   - }
213   -
214   - public void addLpName(String name){
215   - if(null==this.lpNames)
216   - this.lpNames="";
217   - else
218   - this.lpNames+=",";
219   - this.lpNames+=name;
220   - }
221   -
222   - public void addCl(String nbbm){
223   - if(null==this.cls)
224   - this.cls="";
225   - else
226   - this.cls+=",";
227   -
228   - this.cls+=nbbm;
229   - }
230   -
231   - public int getZybType() {
232   - return zybType;
233   - }
234   -
235   - public void setZybType(int zybType) {
236   - this.zybType = zybType;
237   - }
238   -}
src/main/java/com/bsth/server_ws/attendance/entity/Ssry_attendance.java deleted 100644 → 0
1   -package com.bsth.server_ws.attendance.entity;
2   -
3   -import com.bsth.entity.ScheduleRealInfo;
4   -
5   -import java.util.Collections;
6   -import java.util.Comparator;
7   -import java.util.List;
8   -
9   -/**
10   - * 南汇考勤
11   - */
12   -public class Ssry_attendance {
13   -
14   - /** 日期 */
15   - private String rq;
16   -
17   - /** 线路编码 */
18   - private String xlBm;
19   -
20   - /** 线路名称 */
21   - private String xlName;
22   -
23   - // 员工类型 1司 2售
24   - private int yglx;
25   -
26   - /** 驾驶员工号 */
27   - private String gh;
28   -
29   - /** 驾驶员名称 */
30   - private String name;
31   -
32   - /**
33   - * 出勤状态 应出,实出
34   - * 1,0 应出未出
35   - * 1,1 应出实出
36   - * 0,1 无计划,临加出勤
37   - */
38   - private String status;
39   -
40   - /**
41   - * 路牌
42   - */
43   - private String lpNames;
44   -
45   - /** 车辆 */
46   - private String cls;
47   -
48   - /**
49   - * 早夜班类型
50   - *
51   - * 早班:上班时间五点之前;
52   - * 中班:下班时间为22点之后到24点之间;
53   - * 晚班:下班时间24点之后为深夜班
54   - *
55   - * 1、早班
56   - 2、中班
57   - 3、晚班
58   - 4、早中班
59   - 5、早晚班
60   - */
61   - private int zybType;
62   -
63   -
64   - public void calcZybType(List<ScheduleRealInfo> list){
65   - ScheduleRealInfo s,e;
66   - Collections.sort(list, new Comparator<ScheduleRealInfo>() {
67   - @Override
68   - public int compare(ScheduleRealInfo o1, ScheduleRealInfo o2) {
69   - return (int) (o1.getFcsjT() - o2.getFcsjT());
70   - }
71   - });
72   -
73   - s = list.get(0);
74   - e = list.get(list.size() - 1);
75   -
76   - if(s.getFcsj().compareTo("05:00") <= 0)
77   - this.zybType=1;//早班
78   - else if(e.getZdsj().compareTo("05:00") > 0)
79   - this.zybType=2;//中班
80   - else if(e.getZdsj().compareTo("05:00") < 0)
81   - this.zybType=3;//晚班
82   -
83   - //早中班
84   - if(this.zybType==1 && e.getZdsj().compareTo("22:00") >=0 && e.getZdsj().compareTo("23:59") <= 0){
85   - this.zybType = 4;
86   - }
87   -
88   - //早晚班
89   - if(this.zybType==1 && e.getZdsj().compareTo(s.getFcsj()) < 0){
90   - this.zybType = 5;
91   - }
92   - }
93   -
94   - public Ssry_attendance() {
95   - }
96   -
97   - public String getRq() {
98   - return rq;
99   - }
100   -
101   - public void setRq(String rq) {
102   - this.rq = rq;
103   - }
104   -
105   - public String getXlBm() {
106   - return xlBm;
107   - }
108   -
109   - public void setXlBm(String xlBm) {
110   - this.xlBm = xlBm;
111   - }
112   -
113   - public String getXlName() {
114   - return xlName;
115   - }
116   -
117   - public void setXlName(String xlName) {
118   - this.xlName = xlName;
119   - }
120   -
121   - public String getStatus() {
122   - return status;
123   - }
124   -
125   - public void setStatus(String status) {
126   - this.status = status;
127   - }
128   -
129   - public String getLpNames() {
130   - return lpNames;
131   - }
132   -
133   - public void setLpNames(String lpNames) {
134   - this.lpNames = lpNames;
135   - }
136   -
137   - public String getCls() {
138   - return cls;
139   - }
140   -
141   - public void setCls(String cls) {
142   - this.cls = cls;
143   - }
144   -
145   - public void addLpName(String name){
146   - if(null==this.lpNames)
147   - this.lpNames="";
148   - else
149   - this.lpNames+=",";
150   - this.lpNames+=name;
151   - }
152   -
153   - public void addCl(String nbbm){
154   - if(null==this.cls)
155   - this.cls="";
156   - else
157   - this.cls+=",";
158   -
159   - this.cls+=nbbm;
160   - }
161   -
162   - public int getZybType() {
163   - return zybType;
164   - }
165   -
166   - public void setZybType(int zybType) {
167   - this.zybType = zybType;
168   - }
169   -
170   - public int getYglx() {
171   - return yglx;
172   - }
173   -
174   - public void setYglx(int yglx) {
175   - this.yglx = yglx;
176   - }
177   -
178   - public String getGh() {
179   - return gh;
180   - }
181   -
182   - public void setGh(String gh) {
183   - this.gh = gh;
184   - }
185   -
186   - public String getName() {
187   - return name;
188   - }
189   -
190   - public void setName(String name) {
191   - this.name = name;
192   - }
193   -}
src/main/java/com/bsth/server_ws/electric_oil/OilService.java deleted 100644 → 0
1   -package com.bsth.server_ws.electric_oil;
2   -
3   -import com.bsth.server_ws.electric_oil.entity.ClsCDL;
4   -
5   -import javax.jws.WebService;
6   -import java.util.List;
7   -
8   -/**
9   - * Created by panzhao on 2017/10/10.
10   - */
11   -@WebService(
12   - name = "OilServiceSoap",
13   - targetNamespace = "http://control.bsth.com/")
14   -public interface OilService {
15   -
16   - /**
17   - *
18   - * @param fCheckBM 接口验证码为:BSTH@BSTH#BSTH 延续老接口密码
19   - * @param fStationID 停车场ID
20   - * @param fKWHInfoArr 冲电量信息
21   - * @return
22   - */
23   - String upLoadKWHInfo(String fCheckBM, String fStationID, List<ClsCDL> fKWHInfoArr);
24   -}
src/main/java/com/bsth/server_ws/electric_oil/OilServiceSoap.java deleted 100644 → 0
1   -package com.bsth.server_ws.electric_oil;
2   -
3   -import com.alibaba.fastjson.JSON;
4   -import com.bsth.server_ws.electric_oil.db.ElectricMultSaveUtil;
5   -import com.bsth.server_ws.electric_oil.entity.ClsCDL;
6   -import com.bsth.server_ws.electric_oil.entity.Electric;
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 javax.jws.WebService;
13   -import javax.xml.ws.BindingType;
14   -import javax.xml.ws.soap.SOAPBinding;
15   -import java.util.List;
16   -
17   -/**
18   - * Created by panzhao on 2017/10/10.
19   - */
20   -@Component
21   -@WebService(
22   - name = "OilServiceSoap",
23   - portName = "OilServiceSoap",
24   - serviceName = "OilService",
25   - targetNamespace = "http://control.bsth.com/",
26   - endpointInterface = "com.bsth.server_ws.electric_oil.OilService")
27   -@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
28   -public class OilServiceSoap implements OilService {
29   -
30   - Logger logger = LoggerFactory.getLogger(this.getClass());
31   -
32   - @Autowired
33   - ElectricMultSaveUtil electricMultSaveUtil;
34   -
35   - @Override
36   - public String upLoadKWHInfo(String fCheckBM, String fStationID, List<ClsCDL> fKWHInfoArr) {
37   - try{
38   - logger.info("上传电量数据, id: " + fStationID + " -data [" + JSON.toJSONString(fKWHInfoArr) + "]");
39   - }catch (Exception e){
40   - logger.error("", e);
41   - }
42   - //入库
43   - try {
44   - List<Electric> list = Electric.getMultInstance(fKWHInfoArr, fStationID);
45   - electricMultSaveUtil.multSave(list);
46   - }catch (Exception e){
47   - logger.error("", e);
48   - return "上传失败,server 端出现异常!";
49   - }
50   - return null;
51   - }
52   -}
src/main/java/com/bsth/server_ws/electric_oil/db/ElectricMultSaveUtil.java deleted 100644 → 0
1   -package com.bsth.server_ws.electric_oil.db;
2   -
3   -import com.bsth.server_ws.electric_oil.entity.Electric;
4   -import org.slf4j.Logger;
5   -import org.slf4j.LoggerFactory;
6   -import org.springframework.beans.factory.annotation.Autowired;
7   -import org.springframework.jdbc.core.BatchPreparedStatementSetter;
8   -import org.springframework.jdbc.core.JdbcTemplate;
9   -import org.springframework.jdbc.datasource.DataSourceTransactionManager;
10   -import org.springframework.stereotype.Component;
11   -import org.springframework.transaction.TransactionDefinition;
12   -import org.springframework.transaction.TransactionStatus;
13   -import org.springframework.transaction.support.DefaultTransactionDefinition;
14   -
15   -import java.sql.PreparedStatement;
16   -import java.sql.SQLException;
17   -import java.util.List;
18   -
19   -/**
20   - * 电量信息批量入库
21   - * Created by panzhao on 2017/10/10.
22   - */
23   -@Component
24   -public class ElectricMultSaveUtil {
25   -
26   - @Autowired
27   - JdbcTemplate jdbcTemplate;
28   -
29   - Logger logger = LoggerFactory.getLogger(this.getClass());
30   -
31   - public void multSave(final List<Electric> list) {
32   - //编程式事务
33   - DataSourceTransactionManager tran = new DataSourceTransactionManager(jdbcTemplate.getDataSource());
34   - DefaultTransactionDefinition def = new DefaultTransactionDefinition();
35   - def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
36   - TransactionStatus status = tran.getTransaction(def);
37   -
38   - try {
39   - jdbcTemplate.batchUpdate("insert into bsth_c_jdl(fgs_bm, fgs_name, gs_bm, gs_name, jdl, jdz, remarks, rq, creater_date, nbbm) VALUES(?,?,?,?,?,?,?,?,?,?)", new BatchPreparedStatementSetter() {
40   - @Override
41   - public void setValues(PreparedStatement ps, int i) throws SQLException {
42   - Electric e = list.get(i);
43   - ps.setString(1, e.getFgsBm());
44   - ps.setString(2, e.getFgsName());
45   - ps.setString(3, e.getGsBm());
46   - ps.setString(4, e.getGsName());
47   - ps.setDouble(5, e.getJdl());
48   - ps.setString(6, e.getJdz());
49   - ps.setString(7, e.getRemarks());
50   - ps.setDate(8, new java.sql.Date(e.getRq().getTime()));
51   - ps.setDate(9, new java.sql.Date(e.getCreateDate().getTime()));
52   - ps.setString(10, e.getNbbm());
53   - }
54   -
55   - @Override
56   - public int getBatchSize() {
57   - return list.size();
58   - }
59   - });
60   -
61   - tran.commit(status);
62   - } catch (Exception e) {
63   - logger.error("", e);
64   - tran.rollback(status);
65   - }
66   - }
67   -}
src/main/java/com/bsth/server_ws/electric_oil/entity/ClsCDL.java deleted 100644 → 0
1   -package com.bsth.server_ws.electric_oil.entity;
2   -
3   -/**
4   - *
5   - * Created by panzhao on 2017/10/10.
6   - */
7   -public class ClsCDL {
8   -
9   - /**
10   - * 营运日期
11   - * YYYY-MM-DD
12   - */
13   - private String yyrq;
14   -
15   - /**
16   - * 记录生成日期
17   - * YYYY-MM-DD HH24:MI:SS
18   - */
19   - private String createRq;
20   -
21   - /**
22   - * 车辆自编号
23   - */
24   - private String nbbm;
25   -
26   - /**
27   - * 驾驶员工号
28   - */
29   - private String jsyGh;
30   -
31   - /**
32   - * 充电量
33   - */
34   - private String cdl;
35   -
36   - public String getYyrq() {
37   - return yyrq;
38   - }
39   -
40   - public void setYyrq(String yyrq) {
41   - this.yyrq = yyrq;
42   - }
43   -
44   - public String getCreateRq() {
45   - return createRq;
46   - }
47   -
48   - public void setCreateRq(String createRq) {
49   - this.createRq = createRq;
50   - }
51   -
52   - public String getNbbm() {
53   - return nbbm;
54   - }
55   -
56   - public void setNbbm(String nbbm) {
57   - this.nbbm = nbbm;
58   - }
59   -
60   - public String getJsyGh() {
61   - return jsyGh;
62   - }
63   -
64   - public void setJsyGh(String jsyGh) {
65   - this.jsyGh = jsyGh;
66   - }
67   -
68   - public String getCdl() {
69   - return cdl;
70   - }
71   -
72   - public void setCdl(String cdl) {
73   - this.cdl = cdl;
74   - }
75   -}
src/main/java/com/bsth/server_ws/electric_oil/entity/Electric.java deleted 100644 → 0
1   -package com.bsth.server_ws.electric_oil.entity;
2   -
3   -import com.alibaba.fastjson.JSON;
4   -import com.bsth.common.BusinessCodeData;
5   -import com.bsth.server_rs.base_info.car.Car;
6   -import com.bsth.server_rs.base_info.car.buffer.CarBufferData;
7   -import org.joda.time.format.DateTimeFormat;
8   -import org.joda.time.format.DateTimeFormatter;
9   -import org.slf4j.Logger;
10   -import org.slf4j.LoggerFactory;
11   -
12   -import java.util.ArrayList;
13   -import java.util.Date;
14   -import java.util.List;
15   -
16   -/**
17   - * 调度系统加电量表
18   - * bsth_c_jdl
19   - * Created by panzhao on 2017/10/10.
20   - */
21   -public class Electric {
22   -
23   - static DateTimeFormatter fmtyyyyMMddHHmmss = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss");
24   - static DateTimeFormatter fmtyyyyMMdd = DateTimeFormat.forPattern("yyyy-MM-dd");
25   -
26   - static Logger logger = LoggerFactory.getLogger(Electric.class);
27   -
28   - public static List<Electric> getMultInstance(List<ClsCDL> list, String stationId){
29   - List<Electric> rs = new ArrayList<>();
30   -
31   - Electric e;
32   - for(ClsCDL c : list){
33   - e = getInstance(c);
34   - if(null != e){
35   - e.setJdz(stationId);
36   - rs.add(e);
37   - }
38   - }
39   - return rs;
40   - }
41   -
42   - private static Electric getInstance(ClsCDL clsCDL){
43   - String nbbm = clsCDL.getNbbm();
44   - if(null == nbbm)
45   - return null;
46   -
47   - Electric elec = new Electric();
48   - try{
49   - Car car = CarBufferData.findOne(clsCDL.getNbbm());
50   -
51   - elec.setGsBm(car.getCompanyCode());
52   - elec.setGsName(BusinessCodeData.code2Name.get(elec.getGsBm()));
53   - elec.setFgsBm(car.getBrancheCompanyCode());
54   - elec.setFgsName(BusinessCodeData.code2Name.get(elec.getGsBm() + "_" + elec.getFgsBm()));
55   - elec.setRq(fmtyyyyMMdd.parseDateTime(clsCDL.getYyrq()).toDate());
56   - elec.setCreateDate(fmtyyyyMMddHHmmss.parseDateTime(clsCDL.getCreateRq()).toDate());
57   - elec.setNbbm(nbbm);
58   - elec.setJdl(Double.parseDouble(clsCDL.getCdl()));
59   - }catch (Exception e){
60   - logger.error("异常数据;" + JSON.toJSONString(clsCDL));
61   - }
62   - return elec;
63   - }
64   -
65   - /**
66   - * 公司编码
67   - */
68   - private String gsBm;
69   -
70   - /**
71   - * 公司名称
72   - */
73   - private String gsName;
74   -
75   - /**
76   - * 分公司编码
77   - */
78   - private String fgsBm;
79   -
80   - /**
81   - * 分公司名称
82   - */
83   - private String fgsName;
84   -
85   - /**
86   - * 车辆内部编码
87   - */
88   - private String nbbm;
89   -
90   - /**
91   - * 加电站
92   - */
93   - private String jdz;
94   -
95   - /**
96   - * 加电量
97   - */
98   - private Double jdl;
99   -
100   - /**
101   - * 时间
102   - */
103   - private Date rq;
104   -
105   - /**
106   - * 入库时间
107   - */
108   - private Date createDate;
109   -
110   - private String remarks = "接入数据";
111   -
112   - public String getGsBm() {
113   - return gsBm;
114   - }
115   -
116   - public void setGsBm(String gsBm) {
117   - this.gsBm = gsBm;
118   - }
119   -
120   - public String getGsName() {
121   - return gsName;
122   - }
123   -
124   - public void setGsName(String gsName) {
125   - this.gsName = gsName;
126   - }
127   -
128   - public String getFgsBm() {
129   - return fgsBm;
130   - }
131   -
132   - public void setFgsBm(String fgsBm) {
133   - this.fgsBm = fgsBm;
134   - }
135   -
136   - public String getFgsName() {
137   - return fgsName;
138   - }
139   -
140   - public void setFgsName(String fgsName) {
141   - this.fgsName = fgsName;
142   - }
143   -
144   - public String getNbbm() {
145   - return nbbm;
146   - }
147   -
148   - public void setNbbm(String nbbm) {
149   - this.nbbm = nbbm;
150   - }
151   -
152   - public String getJdz() {
153   - return jdz;
154   - }
155   -
156   - public void setJdz(String jdz) {
157   - this.jdz = jdz;
158   - }
159   -
160   - public Date getRq() {
161   - return rq;
162   - }
163   -
164   - public void setRq(Date rq) {
165   - this.rq = rq;
166   - }
167   -
168   - public Date getCreateDate() {
169   - return createDate;
170   - }
171   -
172   - public void setCreateDate(Date createDate) {
173   - this.createDate = createDate;
174   - }
175   -
176   - public String getRemarks() {
177   - return remarks;
178   - }
179   -
180   - public void setRemarks(String remarks) {
181   - this.remarks = remarks;
182   - }
183   -
184   - public Double getJdl() {
185   - return jdl;
186   - }
187   -
188   - public void setJdl(Double jdl) {
189   - this.jdl = jdl;
190   - }
191   -}
src/main/java/com/bsth/server_ws/park_station/CompanyService.java deleted 100644 → 0
1   -package com.bsth.server_ws.park_station;
2   -
3   -import javax.jws.WebMethod;
4   -import javax.jws.WebParam;
5   -import javax.jws.WebService;
6   -
7   -/**
8   - * 场站数据接口
9   - * BS调度系统webservice接口定义
10   - * Created by panzhao on 2017/3/10.
11   - */
12   -@WebService(
13   - name = "CompanyServiceSoap",
14   - targetNamespace = "http://control.bsth.com/")
15   -public interface CompanyService {
16   -
17   - /**
18   - * 返回出场信息
19   - *
20   - * @param password 密码
21   - * @param companyId 公司编码
22   - * @param rq 日期
23   - * @param result 出场班次数组
24   - * @param fError 异常时,该字段描述异常信息
25   - * @return
26   - */
27   - @WebMethod
28   - boolean returnCCInfo(
29   - @WebParam(name = "password") String password,
30   - @WebParam(name = "companyId") String companyId,
31   - @WebParam(name = "rq") String rq,
32   - @WebParam(name = "resultArray", mode = WebParam.Mode.INOUT) javax.xml.ws.Holder<String[]> result,
33   - @WebParam(name = "fError", mode = WebParam.Mode.INOUT) javax.xml.ws.Holder<String> fError);
34   -
35   -
36   - /**
37   - * 返回进场信息
38   - *
39   - * @param password 密码
40   - * @param companyId 公司编码
41   - * @param rq 日期
42   - * @param result 出场班次数组
43   - * @param fError 异常时,该字段描述异常信息
44   - * @return
45   - */
46   - @WebMethod
47   - boolean returnJCInfo(
48   - @WebParam(name = "password") String password,
49   - @WebParam(name = "companyId") String companyId,
50   - @WebParam(name = "rq") String rq,
51   - @WebParam(name = "resultArray", mode = WebParam.Mode.INOUT) javax.xml.ws.Holder<String[]> result,
52   - @WebParam(name = "fError", mode = WebParam.Mode.INOUT) javax.xml.ws.Holder<String> fError);
53   -
54   - /**
55   - * 根据驾驶员工号获取当日排班
56   - * @param ip
57   - * @param userName
58   - * @param password
59   - * @param workId 工号
60   - * @param company 公司编码
61   - * @param result
62   - * @param fError
63   - * @return
64   - */
65   - @WebMethod
66   - boolean getCurrentDayPlan(
67   - @WebParam(name = "ip") String ip,
68   - @WebParam(name = "userName") String userName,
69   - @WebParam(name = "password") String password,
70   - @WebParam(name = "workId") String workId,
71   - @WebParam(name = "company") String company,
72   - @WebParam(name = "resultArray", mode = WebParam.Mode.INOUT) javax.xml.ws.Holder<String[]> result,
73   - @WebParam(name = "fError", mode = WebParam.Mode.INOUT) javax.xml.ws.Holder<String> fError);
74   -
75   - boolean getLSLC_PB(
76   - @WebParam(name = "ip") String ip,
77   - @WebParam(name = "userName") String userName,
78   - @WebParam(name = "password") String password,
79   - @WebParam(name = "month") String month,
80   - @WebParam(name = "workId") String workId,
81   - @WebParam(name = "company") String company,
82   - @WebParam(name = "resultArray", mode = WebParam.Mode.INOUT) javax.xml.ws.Holder<String[]> result,
83   - @WebParam(name = "fError", mode = WebParam.Mode.INOUT) javax.xml.ws.Holder<String> fError);
84   -}
src/main/java/com/bsth/server_ws/park_station/CompanyServiceSoap.java deleted 100644 → 0
1   -package com.bsth.server_ws.park_station;
2   -
3   -import com.bsth.entity.OilInfo;
4   -import com.bsth.entity.SchedulePlanInfo;
5   -import com.bsth.entity.ScheduleRealInfo;
6   -import com.bsth.server_ws.util.Constants;
7   -import com.bsth.server_ws.util.ControlHttpUtils;
8   -import com.bsth.server_ws.util.WSDataConver;
9   -import org.slf4j.Logger;
10   -import org.slf4j.LoggerFactory;
11   -import org.springframework.beans.factory.annotation.Autowired;
12   -import org.springframework.jdbc.core.BeanPropertyRowMapper;
13   -import org.springframework.jdbc.core.JdbcTemplate;
14   -import org.springframework.stereotype.Component;
15   -
16   -import javax.jws.WebMethod;
17   -import javax.jws.WebService;
18   -import javax.xml.ws.Holder;
19   -import java.util.List;
20   -
21   -/**
22   - * 场站数据接口
23   - * BS调度系统webservice接口实现,完美兼容老系统接口格式
24   - * Created by panzhao on 2017/3/10.
25   - */
26   -@Component
27   -@WebService(
28   - name = "CompanyServiceSoap",
29   - portName = "CompanyServiceSoap",
30   - serviceName = "CompanyService",
31   - targetNamespace = "http://control.bsth.com/",
32   - endpointInterface = "com.bsth.server_ws.park_station.CompanyService")
33   -public class CompanyServiceSoap implements CompanyService {
34   -
35   -
36   - Logger logger = LoggerFactory.getLogger(this.getClass());
37   -
38   - @Autowired
39   - JdbcTemplate jdbcTemplate;
40   -
41   - @Override
42   - @WebMethod
43   - public boolean returnCCInfo(String password, String companyId, String rq, javax.xml.ws.Holder<String[]> result, javax.xml.ws.Holder<String> fError) {
44   - if(!password.equals(Constants.OLD_SYS_PASSWORD)){
45   - fError.value = "密码有误!";
46   - return false;
47   - }
48   -
49   - List<ScheduleRealInfo> list = null;
50   - try{
51   - //从调度系统获取数据
52   - list = ControlHttpUtils.returnJCCInfo(companyId, "out");
53   - }catch (Exception e){
54   - //访问调度系统异常,尝试从数据库获取
55   -
56   - }
57   - result.value = WSDataConver.to_returnJCCInfo(list);
58   -
59   - //不再代理老接口数据
60   - /*if(!WebServiceProxy.isAllNew(companyId)){
61   - String[] oldArray = OldWSClient.returnCCInfo(companyId, rq);
62   - //合并新老系统的数据
63   - result.value = WebServiceProxy.mergerJccData(result.value, oldArray, companyId);
64   - }*/
65   - return true;
66   - }
67   -
68   - @Override
69   - @WebMethod
70   - public boolean returnJCInfo(String password, String companyId, String rq, Holder<String[]> result, Holder<String> fError) {
71   - if(!password.equals(Constants.OLD_SYS_PASSWORD)){
72   - fError.value = "密码有误!";
73   - return false;
74   - }
75   -
76   - List<ScheduleRealInfo> list = null;
77   - try{
78   - //从调度系统获取数据
79   - list = ControlHttpUtils.returnJCCInfo(companyId, "in");
80   - }catch (Exception e){
81   - //访问调度系统异常,尝试从数据库获取
82   -
83   - }
84   - result.value = WSDataConver.to_returnJCCInfo(list);
85   -
86   - //不再代理老接口数据
87   - /*if(!WebServiceProxy.isAllNew(companyId)){
88   - String[] oldArray = OldWSClient.returnJCInfo(companyId, rq);
89   - //合并新老系统的数据
90   - result.value = WebServiceProxy.mergerJccData(result.value, oldArray, companyId);
91   - }*/
92   -
93   - return true;
94   - }
95   -
96   - @Override
97   - @WebMethod
98   - public boolean getCurrentDayPlan(String ip, String userName, String password, String workId, String company, Holder<String[]> result, Holder<String> fError) {
99   - try{
100   - logger.info("getCurrentDayPlan workId: " + workId);
101   - List<ScheduleRealInfo> list = null;
102   - try{
103   - //从调度系统获取数据
104   - list = ControlHttpUtils.getCurrentDayPlan(company, workId);
105   - logger.info("从调度系统获取到数据 size: " + list.size());
106   - }catch (Exception e){
107   - //访问调度系统异常,尝试从数据库获取
108   - logger.error("", e);
109   - }
110   - result.value = WSDataConver.to_getCurrentDayPlan(list);
111   - }catch(Exception e){
112   - fError.value = e.getMessage();
113   - logger.error("", e);
114   - }
115   - return false;
116   - }
117   -
118   - @Override
119   - public boolean getLSLC_PB(String ip, String userName, String password, String month, String workId, String company, Holder<String[]> result, Holder<String> fError) {
120   - try{
121   - //实际排班
122   - List<ScheduleRealInfo> schList =
123   - jdbcTemplate.query("select * from bsth_c_s_sp_info_real where gs_bm='"+company+"' and j_gh='"+workId+"' and schedule_date_str like '"+month+"-%'",
124   - BeanPropertyRowMapper.newInstance(ScheduleRealInfo.class));
125   -
126   - //计划排班
127   - List<SchedulePlanInfo> planList =
128   - jdbcTemplate.query("select * from bsth_c_s_sp_info where gs_bm='"+company+"' and j_gh='"+workId+"' and schedule_date>sysdate() and schedule_date like '"+month+"-%' order by bcs",
129   - BeanPropertyRowMapper.newInstance(SchedulePlanInfo.class));
130   -
131   - //油耗
132   - List<OilInfo> oilList =
133   - jdbcTemplate.query("select * from bsth_c_ylb where jsy='"+workId+"' and rq like '"+month+"-%'",
134   - BeanPropertyRowMapper.newInstance(OilInfo.class));
135   -
136   - result.value = WSDataConver.to_getLSLC_PB(month, schList, oilList, planList);
137   - }catch(Exception e){
138   - fError.value = e.getMessage();
139   - logger.error("", e);
140   - }
141   - return false;
142   - }
143   -}
src/main/java/com/bsth/server_ws/park_station/dto/LsLcPb.java deleted 100644 → 0
1   -package com.bsth.server_ws.park_station.dto;
2   -
3   -/**
4   - * 综合查询结果集(历时、路程、排班)
5   - * Created by panzhao on 2018/1/17.
6   - */
7   -public class LsLcPb {
8   -
9   - /**
10   - * 第几天
11   - */
12   - private int day;
13   -
14   - /**
15   - * 1:路程、2:排班、3:当天、4:休息
16   - */
17   - private int type;
18   -
19   - //##### type 为 1 时 ####
20   - /**
21   - * 考勤 (出勤、病假)
22   - */
23   - private String lckq;
24   -
25   - /**
26   - * 用油
27   - */
28   - private Double lcyh;
29   -
30   - /**
31   - * 营运里程
32   - */
33   - private Double lcyylc;
34   -
35   - /**
36   - * 非营运里程
37   - */
38   - private Double lcfyylc;
39   -
40   -
41   - //##### type 为 2 时 ####
42   - /**
43   - * 线路
44   - */
45   - private String pbxl;
46   -
47   - /**
48   - * 路牌
49   - */
50   - private String pblp;
51   -
52   - /**
53   - * 报到时间
54   - */
55   - private String pbbd;
56   -
57   - /**
58   - * 用车
59   - */
60   - private String pbyc;
61   -
62   -
63   - public int getDay() {
64   - return day;
65   - }
66   -
67   - public void setDay(int day) {
68   - this.day = day;
69   - }
70   -
71   - public int getType() {
72   - return type;
73   - }
74   -
75   - public void setType(int type) {
76   - this.type = type;
77   - }
78   -
79   - public String getLckq() {
80   - return lckq;
81   - }
82   -
83   - public void setLckq(String lckq) {
84   - this.lckq = lckq;
85   - }
86   -
87   - public Double getLcyh() {
88   - return lcyh;
89   - }
90   -
91   - public void setLcyh(Double lcyh) {
92   - this.lcyh = lcyh;
93   - }
94   -
95   - public Double getLcyylc() {
96   - return lcyylc;
97   - }
98   -
99   - public void setLcyylc(Double lcyylc) {
100   - this.lcyylc = lcyylc;
101   - }
102   -
103   - public Double getLcfyylc() {
104   - return lcfyylc;
105   - }
106   -
107   - public void setLcfyylc(Double lcfyylc) {
108   - this.lcfyylc = lcfyylc;
109   - }
110   -
111   - public String getPbxl() {
112   - return pbxl;
113   - }
114   -
115   - public void setPbxl(String pbxl) {
116   - this.pbxl = pbxl;
117   - }
118   -
119   - public String getPblp() {
120   - return pblp;
121   - }
122   -
123   - public void setPblp(String pblp) {
124   - this.pblp = pblp;
125   - }
126   -
127   - public String getPbbd() {
128   - return pbbd;
129   - }
130   -
131   - public void setPbbd(String pbbd) {
132   - this.pbbd = pbbd;
133   - }
134   -
135   - public String getPbyc() {
136   - return pbyc;
137   - }
138   -
139   - public void setPbyc(String pbyc) {
140   - this.pbyc = pbyc;
141   - }
142   -}
src/main/java/com/bsth/server_ws/util/Constants.java deleted 100644 → 0
1   -package com.bsth.server_ws.util;
2   -
3   -/**
4   - * Created by panzhao on 2017/3/15.
5   - */
6   -public class Constants {
7   -
8   - //原智能停车场与老系统接口密码
9   - public static final String OLD_SYS_PASSWORD = "123904D6-21CE-33B0-AC41-375EB1BBC0sN-bsth";
10   -
11   -}
src/main/java/com/bsth/server_ws/util/ControlHttpUtils.java deleted 100644 → 0
1   -package com.bsth.server_ws.util;
2   -
3   -import com.alibaba.fastjson.JSONArray;
4   -import com.bsth.entity.ScheduleRealInfo;
5   -import com.bsth.util.ConfigUtil;
6   -import org.apache.http.client.config.RequestConfig;
7   -import org.apache.http.client.methods.CloseableHttpResponse;
8   -import org.apache.http.client.methods.HttpGet;
9   -import org.apache.http.impl.client.CloseableHttpClient;
10   -import org.apache.http.impl.client.HttpClients;
11   -import org.apache.http.util.EntityUtils;
12   -import org.slf4j.Logger;
13   -import org.slf4j.LoggerFactory;
14   -
15   -import java.io.IOException;
16   -import java.util.List;
17   -
18   -/**
19   - * Created by panzhao on 2017/3/15.
20   - */
21   -public class ControlHttpUtils {
22   -
23   - static Logger logger = LoggerFactory.getLogger(ControlHttpUtils.class);
24   -
25   - static String url;
26   -
27   - static String secretKey;
28   -
29   - static {
30   - url = ConfigUtil.get("http.control.service_data_url");
31   - secretKey = ConfigUtil.get("http.control.secret.key");
32   - }
33   -
34   - /**
35   - * 从调度系统获取班次信息
36   - *
37   - * @return
38   - */
39   - public static List<ScheduleRealInfo> getCurrentDayPlan(String companyId, String workId) throws IOException {
40   -
41   - CloseableHttpClient httpClient = null;
42   - List<ScheduleRealInfo> rs = null;
43   - httpClient = HttpClients.createDefault();
44   - //超时时间
45   - RequestConfig requestConfig = RequestConfig.custom()
46   - .setConnectTimeout(2000).setConnectionRequestTimeout(1000)
47   - .setSocketTimeout(3000).build();
48   -
49   - HttpGet get = new HttpGet(url + "/getCurrentDayPlan?companyId=" + companyId + "&workId=" + workId + "&secretKey=" + secretKey);
50   - get.setConfig(requestConfig);
51   -
52   - CloseableHttpResponse response = httpClient.execute(get);
53   -
54   - rs = JSONArray.parseArray(EntityUtils.toString(response.getEntity()), ScheduleRealInfo.class);
55   - return rs;
56   - }
57   -
58   - /**
59   - * 从调度系统获取进出场班次信息
60   - * @param comanyId
61   - * @param jcOrCc
62   - * @return
63   - */
64   - public static List<ScheduleRealInfo> returnJCCInfo(String companyId, String jcOrCc) throws IOException{
65   -
66   - String method = jcOrCc.equals("out")?"/returnCCInfo":"/returnJCInfo";
67   -
68   - CloseableHttpClient httpClient = null;
69   - List<ScheduleRealInfo> rs = null;
70   - httpClient = HttpClients.createDefault();
71   - //超时时间
72   - RequestConfig requestConfig = RequestConfig.custom()
73   - .setConnectTimeout(2000).setConnectionRequestTimeout(1000)
74   - .setSocketTimeout(3000).build();
75   -
76   - HttpGet get = new HttpGet(url + method+"?companyId=" + companyId + "&secretKey=" + secretKey);
77   - get.setConfig(requestConfig);
78   -
79   - CloseableHttpResponse response = httpClient.execute(get);
80   -
81   - rs = JSONArray.parseArray(EntityUtils.toString(response.getEntity()), ScheduleRealInfo.class);
82   - return rs;
83   - }
84   -}
src/main/java/com/bsth/server_ws/util/ScheduleCalculator.java deleted 100644 → 0
1   -package com.bsth.server_ws.util;
2   -
3   -import com.bsth.entity.ChildTaskPlan;
4   -import com.bsth.entity.DutyEmployee;
5   -import com.bsth.entity.ScheduleRealInfo;
6   -import com.bsth.util.Arith;
7   -import com.bsth.util.ConvertUtil;
8   -import com.google.common.base.Joiner;
9   -import com.google.common.collect.ArrayListMultimap;
10   -import org.apache.commons.lang3.StringUtils;
11   -import org.joda.time.format.DateTimeFormat;
12   -import org.joda.time.format.DateTimeFormatter;
13   -import org.slf4j.Logger;
14   -import org.slf4j.LoggerFactory;
15   -
16   -import java.util.*;
17   -
18   -/**
19   - * 班次计算器
20   - * Created by panzhao on 2017/3/20.
21   - */
22   -public class ScheduleCalculator {
23   -
24   - static Logger logger = LoggerFactory.getLogger(ScheduleCalculator.class);
25   -
26   - /**
27   - * 计划公里(不包括临加公里)
28   - *
29   - * @param list
30   - * @return
31   - */
32   - public static double calcJHLC(List<ScheduleRealInfo> list) {
33   - double sum = 0;
34   - try {
35   - for (ScheduleRealInfo sch : list) {
36   - if (sch.isSflj())
37   - continue;
38   - sum = Arith.add(sum, sch.getJhlcOrig() == null ? 0 : sch.getJhlcOrig());
39   - }
40   - } catch (Exception e) {
41   - logger.error("", e);
42   - }
43   - return sum;
44   - }
45   -
46   - /**
47   - * 出场里程(包括子任务出场)
48   - *
49   - * @param list
50   - * @return
51   - */
52   - public static double calcCCLC(List<ScheduleRealInfo> list) {
53   - double sum = 0;
54   - try {
55   - Set<ChildTaskPlan> cts;
56   - for (ScheduleRealInfo sch : list) {
57   - cts = sch.getcTasks();
58   - //有子任务
59   - if (cts != null && cts.size() > 0) {
60   - for (ChildTaskPlan ct : cts) {
61   - if (ct.getType2().equals("3"))
62   - sum = Arith.add(sum, ct.getMileage());
63   - }
64   - } else if (sch.getBcType().equals("out") && sch.getStatus() != -1 && sch.getFcsjActual() != null && sch.getZdsjActual() != null) {
65   - sum = Arith.add(sum, sch.getJhlc());
66   - }
67   - }
68   - } catch (Exception e) {
69   - logger.error("", e);
70   - }
71   - return sum;
72   - }
73   -
74   - /**
75   - * 进场里程(包括子任务公里)
76   - *
77   - * @param list
78   - * @return
79   - */
80   - public static double calcJCLC(List<ScheduleRealInfo> list) {
81   - double sum = 0;
82   - try {
83   - Set<ChildTaskPlan> cts;
84   - for (ScheduleRealInfo sch : list) {
85   - cts = sch.getcTasks();
86   - //有子任务
87   - if (cts != null && cts.size() > 0) {
88   - for (ChildTaskPlan ct : cts) {
89   - if (ct.getType2().equals("2"))
90   - sum = Arith.add(sum, ct.getMileage());
91   - }
92   - } else if (sch.getBcType().equals("in") && sch.getStatus() != -1 && sch.getFcsjActual() != null && sch.getZdsjActual() != null) {
93   - sum = Arith.add(sum, sch.getJhlc());
94   - }
95   - }
96   - } catch (Exception e) {
97   - logger.error("", e);
98   - }
99   - return sum;
100   - }
101   -
102   - /**
103   - * 实际计划公里,包括临加,不包括烂班
104   - *
105   - * @param list
106   - * @return
107   - */
108   - public static double calcSJLC(List<ScheduleRealInfo> list) {
109   - double sum = 0;
110   - try {
111   - for (ScheduleRealInfo sch : list) {
112   - if (sch.getStatus() == -1)
113   - continue;
114   - sum = Arith.add(sum, sch.getJhlcOrig());
115   - }
116   - } catch (Exception e) {
117   - logger.error("", e);
118   - }
119   - return sum;
120   - }
121   -
122   - /**
123   - * 营业公里,包括临加,不包括进出场,不包括烂班,计算子任务
124   - *
125   - * @param list
126   - * @return
127   - */
128   - public static double calcYYLC(List<ScheduleRealInfo> list) {
129   - double sum = 0;
130   -
131   - try {
132   - Set<ChildTaskPlan> cts;
133   - for (ScheduleRealInfo sch : list) {
134   - if (isInOut(sch) || sch.getBcType().equals("ldks"))
135   - continue;
136   -
137   - cts = sch.getcTasks();
138   -
139   - //有子任务
140   - if (cts != null && cts.size() > 0) {
141   - for (ChildTaskPlan ct : cts) {
142   - if (ct.getMileageType().equals("service") && !ct.isDestroy())
143   - sum = Arith.add(sum, ct.getMileage());
144   - }
145   - } else if (sch.getStatus() != -1 && sch.getFcsjActual() != null && sch.getZdsjActual() != null) {
146   - sum = Arith.add(sum, sch.getJhlc());
147   - }
148   - }
149   - } catch (Exception e) {
150   - logger.error("", e);
151   - }
152   - return sum;
153   - }
154   -
155   - /**
156   - * 空驶公里(2点间空驶 + 进场 + 出场 + 子任务空驶)
157   - *
158   - * @param list
159   - * @return
160   - */
161   - public static double calcKSLC(List<ScheduleRealInfo> list) {
162   - double sum = 0;
163   -
164   - try {
165   - Set<ChildTaskPlan> cts;
166   - for (ScheduleRealInfo sch : list) {
167   - cts = sch.getcTasks();
168   - //有子任务
169   - if (cts != null && cts.size() > 0) {
170   - for (ChildTaskPlan ct : cts) {
171   - if (ct.getMileageType().equals("empty"))
172   - sum = Arith.add(sum, ct.getMileage());
173   - }
174   - } else if ((isInOut(sch) || sch.getBcType().equals("ldks")) && sch.getStatus() != -1 && sch.getFcsjActual() != null && sch.getZdsjActual() != null) {
175   - sum = Arith.add(sum, sch.getJhlc());
176   - }
177   - }
178   - } catch (Exception e) {
179   - logger.error("", e);
180   - }
181   - return sum;
182   - }
183   -
184   - /**
185   - * 增加里程 临加班次公里,直接修改的公里,不包括烂班,不计算子任务
186   - *
187   - * @param list
188   - * @return
189   - */
190   - public static double calcZJLC(List<ScheduleRealInfo> list) {
191   - double sum = 0;
192   -
193   - try {
194   - for (ScheduleRealInfo sch : list) {
195   - if (sch.isSflj() && sch.getStatus() != -1)
196   - sum = Arith.add(sum, sch.getJhlc());
197   - else if (sch.getJhlc() > sch.getJhlcOrig())
198   - sum = Arith.add(sum, (sch.getJhlc() - sch.getJhlcOrig()));
199   - }
200   - } catch (Exception e) {
201   - logger.error("", e);
202   - }
203   - return sum;
204   - }
205   -
206   - /**
207   - * 总公里 营运公里 + 空驶公里
208   - *
209   - * @param list
210   - * @return
211   - */
212   - public static double calcZLC(List<ScheduleRealInfo> list) {
213   - return Arith.add(calcYYLC(list), calcKSLC(list));
214   - }
215   -
216   - /**
217   - * 烂班里程 主任务烂班 ,子任务烂班,不包括临加,不包括进出场
218   - *
219   - * @param list
220   - * @return
221   - */
222   - public static Double calcLBLC(List<ScheduleRealInfo> list) {
223   - double sum = 0;
224   - try {
225   - Set<ChildTaskPlan> cts;
226   - for (ScheduleRealInfo sch : list) {
227   - if (sch.isSflj() || isInOut(sch) || sch.getBcType().equals("ldks"))
228   - continue;
229   -
230   - cts = sch.getcTasks();
231   - //有子任务
232   - if (cts != null && cts.size() > 0) {
233   - for (ChildTaskPlan ct : cts) {
234   - if (ct.isDestroy() && ct.getMileageType().equals("service"))
235   - sum = Arith.add(sum, ct.getMileage());
236   - }
237   - } else if (sch.getStatus() == -1) {
238   - sum = Arith.add(sum, sch.getJhlcOrig());
239   - }
240   - }
241   - } catch (Exception e) {
242   - logger.error("", e);
243   - }
244   - return sum;
245   - }
246   -
247   - /**
248   - * 拼接烂班原因,去重复 , 号拼接多个
249   - *
250   - * @param list
251   - * @return
252   - */
253   - public static String joinLBYY(List<ScheduleRealInfo> list) {
254   - Set<String> sets = new HashSet<>();
255   - Set<ChildTaskPlan> cts;
256   - try {
257   - for (ScheduleRealInfo sch : list) {
258   - if (sch.isSflj() || isInOut(sch))
259   - continue;
260   -
261   - cts = sch.getcTasks();
262   - //有子任务
263   - if (cts != null && cts.size() > 0) {
264   - for (ChildTaskPlan ct : cts) {
265   - if (ct.isDestroy())
266   - sets.add(ct.getDestroyReason());
267   - }
268   - } else if (sch.getStatus() == -1) {
269   - sets.add(sch.getAdjustExps());
270   - }
271   - }
272   - } catch (Exception e) {
273   - logger.error("", e);
274   - }
275   - return Joiner.on(",").join(sets);
276   - }
277   -
278   - /**
279   - * 计划班次数 不包括临加,不包括进出场,统计烂班
280   - *
281   - * @param list
282   - * @return
283   - */
284   - public static int countJHBC(List<ScheduleRealInfo> list) {
285   - int count = 0;
286   -
287   - try {
288   - for (ScheduleRealInfo sch : list) {
289   - if (sch.isSflj() || isInOut(sch) || sch.getBcType().equals("ldks"))
290   - continue;
291   -
292   - count++;
293   - }
294   - } catch (Exception e) {
295   - logger.error("", e);
296   - }
297   - return count;
298   - }
299   -
300   - /**
301   - * 实际计划班次 包括临加,不包括进出场,排除烂班
302   - *
303   - * @param list
304   - * @return
305   - */
306   - public static int countSJJHBC(List<ScheduleRealInfo> list) {
307   - int count = 0;
308   -
309   - try {
310   - for (ScheduleRealInfo sch : list) {
311   - if (sch.getStatus() == -1 || isInOut(sch) || sch.getBcType().equals("ldks"))
312   - continue;
313   -
314   - count++;
315   - }
316   - } catch (Exception e) {
317   - logger.error("", e);
318   - }
319   - return count;
320   - }
321   -
322   - /**
323   - * 增加班次 临加班次,不包括进出场
324   - *
325   - * @param list
326   - * @return
327   - */
328   - public static int countZJBC(List<ScheduleRealInfo> list) {
329   - int count = 0;
330   -
331   - try {
332   - for (ScheduleRealInfo sch : list) {
333   - if (!sch.isSflj() || isInOut(sch) || sch.getBcType().equals("ldks"))
334   - continue;
335   -
336   - count++;
337   - }
338   - } catch (Exception e) {
339   - logger.error("", e);
340   - }
341   - return count;
342   - }
343   -
344   - /**
345   - * 抽检班次 烂班班次,不包括进出场
346   - *
347   - * @param list
348   - * @return
349   - */
350   - public static int countCJBC(List<ScheduleRealInfo> list) {
351   - int count = 0;
352   -
353   - try {
354   - for (ScheduleRealInfo sch : list) {
355   - if (sch.getStatus() != -1 || isInOut(sch) || sch.getBcType().equals("ldks"))
356   - continue;
357   -
358   - count++;
359   - }
360   - } catch (Exception e) {
361   - logger.error("", e);
362   - }
363   - return count;
364   - }
365   -
366   - /**
367   - * 烂班工时
368   - *
369   - * @param list
370   - * @return
371   - */
372   - public static Double calcLBGS(List<ScheduleRealInfo> list) {
373   - double sum = 0;
374   -
375   - try {
376   - for (ScheduleRealInfo sch : list) {
377   - if (sch.getStatus() != -1)
378   - continue;
379   -
380   - sum = Arith.add(sum, sch.getBcsj());
381   - }
382   - } catch (Exception e) {
383   - logger.error("", e);
384   - }
385   - return sum;
386   - }
387   -
388   -
389   - /**
390   - * 截取早班班次
391   - *
392   - * @param list
393   - * @return
394   - */
395   - public static List<ScheduleRealInfo> earlyArray(List<ScheduleRealInfo> list) {
396   - List<ScheduleRealInfo> rs = new ArrayList<>();
397   - try {
398   - for (ScheduleRealInfo sch : list) {
399   - if (sch.getDfsj().compareTo("00:00") > 0 && sch.getDfsj().compareTo("12:00") <= 0) {
400   - rs.add(sch);
401   - }
402   - }
403   - } catch (Exception e) {
404   - logger.error("", e);
405   - }
406   - return rs;
407   - }
408   -
409   - /**
410   - * 截取晚班班次
411   - *
412   - * @param list
413   - * @return
414   - */
415   - public static List<ScheduleRealInfo> lastArray(List<ScheduleRealInfo> list) {
416   - List<ScheduleRealInfo> rs = new ArrayList<>();
417   - try {
418   - for (ScheduleRealInfo sch : list) {
419   - if (sch.getDfsj().compareTo("12:00") > 0 && sch.getDfsj().compareTo("23:59") <= 0) {
420   - rs.add(sch);
421   - }
422   - }
423   - } catch (Exception e) {
424   - logger.error("", e);
425   - }
426   - return rs;
427   - }
428   -
429   - /**
430   - * 当班调度员
431   - *
432   - * @param list
433   - * @param des
434   - * @return
435   - */
436   - public static String calcDDY(List<ScheduleRealInfo> list, List<DutyEmployee> des) {
437   - String rs = "";
438   - try {
439   - /*Collections.sort(list, new Comparator<ScheduleRealInfo>() {
440   - @Override
441   - public int compare(ScheduleRealInfo o1, ScheduleRealInfo o2) {
442   - return (o1.getRealExecDate() + o1.getDfsj()).compareTo(o2.getRealExecDate() + o2.getDfsj());
443   - }
444   - });
445   -
446   - long et = list.get(list.size() - 1).getDfsjT();*/
447   - String lineCode = list.get(0).getXlBm() + ",";
448   -
449   - Map<String, Integer> desMap = new HashMap<>();
450   - for (DutyEmployee dEmp : des) {
451   - //if( dEmp.getTs() < et && dEmp.getCodeIdx().indexOf(lineCode) != -1)
452   - if (dEmp.getCodeIdx().indexOf(lineCode) != -1 && dEmp.isMain())
453   - desMap.put(dEmp.getuName(), 1);
454   - }
455   -
456   - List<String> keys = new ArrayList<>(desMap.keySet());
457   - int size = keys.size() > 3 ? 3 : keys.size();
458   -
459   - for (int i = 0; i < size; i++) {
460   - rs += (keys.get(i) + ",");
461   - }
462   - } catch (Exception e) {
463   - logger.error("", e);
464   - }
465   - return rs;
466   - }
467   -
468   - /**
469   - * 抽减里程 主任务烂班 ,子任务烂班,直接修改公里的。 不包括临加,不包括进出场
470   - *
471   - * @param list
472   - * @return
473   - */
474   - public static double calcCJLC(List<ScheduleRealInfo> list) {
475   -
476   - double sum = 0;
477   - try {
478   - Set<ChildTaskPlan> cts;
479   - for (ScheduleRealInfo sch : list) {
480   - if (sch.isSflj())
481   - continue;
482   -
483   - cts = sch.getcTasks();
484   - //有子任务
485   - if (cts != null && cts.size() > 0) {
486   - for (ChildTaskPlan ct : cts) {
487   - if (ct.isDestroy())
488   - sum = Arith.add(sum, ct.getMileage());
489   - }
490   - } else if (isInOut(sch))
491   - continue;
492   - else if (sch.getStatus() == -1) {
493   - sum = Arith.add(sum, sch.getJhlcOrig());
494   - } else if (sch.getJhlc() < sch.getJhlcOrig()) {
495   - sum = Arith.add(sum, (Arith.sub(sch.getJhlcOrig(), sch.getJhlc())));
496   - }
497   - }
498   - } catch (Exception e) {
499   - logger.error("", e);
500   - }
501   - return sum;
502   - }
503   -
504   - /**
505   - * 抽减原因 统计方式同上
506   - *
507   - * @param list
508   - * @return
509   - */
510   - public static String joinCJYY(List<ScheduleRealInfo> list) {
511   - Set<String> sets = new HashSet<>();
512   - Set<ChildTaskPlan> cts;
513   - try {
514   - for (ScheduleRealInfo sch : list) {
515   - if (sch.isSflj())
516   - continue;
517   -
518   - cts = sch.getcTasks();
519   - //有子任务
520   - if (cts != null && cts.size() > 0) {
521   - for (ChildTaskPlan ct : cts) {
522   - if (ct.isDestroy())
523   - sets.add(ct.getDestroyReason());
524   - }
525   - } else if (isInOut(sch))
526   - continue;
527   - else if (sch.getStatus() == -1) {
528   - sets.add(sch.getAdjustExps());
529   - } else if (sch.getJhlc() < sch.getJhlcOrig()) {
530   - sets.add(sch.getAdjustExps());
531   - }
532   - }
533   - } catch (Exception e) {
534   - logger.error("", e);
535   - }
536   -
537   - try {
538   - if (sets.size() == 1)
539   - return sets.iterator().next();
540   - else if (sets.size() > 1)
541   - return Joiner.on(",").join(sets);
542   - else
543   - return "";
544   - } catch (NullPointerException e) {
545   - return "";
546   - }
547   - }
548   -
549   - /**
550   - * 根据原因统计抽减公里,不包括临加班次,不包括进出场
551   - * 没有原因,算其他
552   - * 无子任务 ,直接修改的公里,也算其他
553   - *
554   - * @param list
555   - * @param item
556   - * @return
557   - */
558   - public static double calcCJLC2(List<ScheduleRealInfo> list, String item) {
559   - double sum = 0;
560   -
561   - try {
562   - Set<ChildTaskPlan> cts;
563   - for (ScheduleRealInfo sch : list) {
564   - if (sch.isSflj())
565   - continue;
566   -
567   - cts = sch.getcTasks();
568   - //有子任务
569   - if (cts != null && cts.size() > 0) {
570   - for (ChildTaskPlan c : cts) {
571   - if (c.isDestroy() && c.getDestroyReason().equals(item))
572   - sum = Arith.add(sum, c.getMileage());
573   - }
574   - } else if (isInOut(sch))
575   - continue;
576   - //主任务烂班
577   - else if (sch.getStatus() == -1) {
578   - if (sch.getAdjustExps().equals(item) ||
579   - (StringUtils.isEmpty(sch.getAdjustExps()) && item.equals("其他"))) {
580   - sum = Arith.add(sum, sch.getJhlcOrig());
581   - }
582   - } else if (item.equals("其他")) {
583   - double diff = Arith.sub(sch.getJhlcOrig(), sch.getJhlc());
584   - if (diff > 0) {
585   - sum = Arith.add(sum, diff);
586   - }
587   - }
588   - }
589   - } catch (Exception e) {
590   - logger.error("", e);
591   - }
592   - return sum;
593   - }
594   -
595   - /**
596   - * 统计空放班次
597   - *
598   - * @param list
599   - * @return
600   - */
601   - public static int countEmpty(List<ScheduleRealInfo> list) {
602   - int count = 0;
603   -
604   - try {
605   - for (ScheduleRealInfo sch : list) {
606   - if ((sch.getBcType().equals("venting") || sch.getBcType().equals("major")) &&
607   - sch.getStatus() != -1)
608   - count++;
609   - }
610   - } catch (Exception e) {
611   - logger.error("", e);
612   - }
613   - return count;
614   - }
615   -
616   - /**
617   - * 统计大间隔班次 30 分钟算大间隔
618   - *
619   - * @param list
620   - * @return
621   - */
622   - public static int countSpaceLg(List<ScheduleRealInfo> list) throws NoSuchFieldException {
623   - ArrayListMultimap<String, ScheduleRealInfo> listMap = new ConvertUtil<ScheduleRealInfo>().groupMultiList(list, "", ScheduleRealInfo.class.getDeclaredField("xlDir"));
624   -
625   - int count = 0;
626   - int maxSpace = 1000 * 60 * 30;
627   - int space;
628   - try {
629   - Set<String> ks = listMap.keySet();
630   - List<ScheduleRealInfo> subList;
631   - for (String k : ks) {
632   - subList = listMap.get(k);
633   -
634   - //排序
635   - Collections.sort(subList, new SceduleComp());
636   -
637   - for (int i = 0; i < subList.size() - 1; i++) {
638   - space = calcSpace(subList.get(i), subList.get(i + 1));
639   - if (space >= maxSpace)
640   - count++;
641   - }
642   - }
643   - } catch (Exception e) {
644   - logger.error("", e);
645   - }
646   - return count;
647   - }
648   -
649   - /**
650   - * 计算最大间隔
651   - *
652   - * @param list
653   - * @return
654   - */
655   - public static int calcMaxSpace(List<ScheduleRealInfo> list) throws NoSuchFieldException {
656   - ArrayListMultimap<String, ScheduleRealInfo> listMap = new ConvertUtil<ScheduleRealInfo>().groupMultiList(list, "", ScheduleRealInfo.class.getDeclaredField("xlDir"));
657   -
658   - int space = 0;
659   - int maxSpace = 0;
660   - try {
661   - Set<String> ks = listMap.keySet();
662   - List<ScheduleRealInfo> subList;
663   - for (String k : ks) {
664   - subList = listMap.get(k);
665   -
666   - //排序
667   - Collections.sort(subList, new SceduleComp());
668   -
669   - for (int i = 0; i < subList.size() - 1; i++) {
670   - space = calcSpace(subList.get(i), subList.get(i + 1));
671   - if (space > maxSpace)
672   - maxSpace = space;
673   - }
674   - }
675   - } catch (Exception e) {
676   - logger.error("", e);
677   - }
678   - return maxSpace / 1000 / 60;
679   - }
680   -
681   -
682   - private static DateTimeFormatter fmtyyyyMMddHHmm = DateTimeFormat.forPattern("yyyy-MM-ddHH:mm");
683   -
684   - /**
685   - * 计算班次间隔(毫秒)
686   - *
687   - * @param scheduleRealInfo
688   - * @param scheduleRealInfo1
689   - * @return
690   - */
691   - private static int calcSpace(ScheduleRealInfo s1, ScheduleRealInfo s2) {
692   - long t1 = fmtyyyyMMddHHmm.parseMillis(s1.getRealExecDate() + s1.getDfsj());
693   - long t2 = fmtyyyyMMddHHmm.parseMillis(s2.getRealExecDate() + s2.getDfsj());
694   - return (int) Math.abs(t2 - t1);
695   - }
696   -
697   - /**
698   - * 是否是进出场班次
699   - *
700   - * @param sch
701   - * @return
702   - */
703   - private static boolean isInOut(ScheduleRealInfo sch) {
704   - return sch.getBcType().equals("out") || sch.getBcType().equals("in");
705   - }
706   -
707   - /**
708   - * 是否是进出场子任务
709   - *
710   - * @param ct
711   - * @return
712   - */
713   - private static boolean isInOut(ChildTaskPlan ct) {
714   - return ct.getType2().equals("2") || ct.getType2().equals("3");
715   - }
716   -
717   - public static class SceduleComp implements Comparator<ScheduleRealInfo> {
718   -
719   - @Override
720   - public int compare(ScheduleRealInfo o1, ScheduleRealInfo o2) {
721   - return o1.getDfsj().compareTo(o2.getDfsj());
722   - }
723   - }
724   -}
src/main/java/com/bsth/server_ws/util/WSDataConver.java deleted 100644 → 0
1   -package com.bsth.server_ws.util;
2   -
3   -import java.lang.reflect.Field;
4   -import java.text.ParseException;
5   -import java.text.SimpleDateFormat;
6   -import java.util.ArrayList;
7   -import java.util.Calendar;
8   -import java.util.Collections;
9   -import java.util.Comparator;
10   -import java.util.Date;
11   -import java.util.HashMap;
12   -import java.util.HashSet;
13   -import java.util.List;
14   -import java.util.Map;
15   -import java.util.Set;
16   -
17   -import org.apache.commons.lang3.StringUtils;
18   -import org.apache.poi.ss.formula.functions.T;
19   -import org.slf4j.Logger;
20   -import org.slf4j.LoggerFactory;
21   -
22   -import com.bsth.entity.DutyEmployee;
23   -import com.bsth.entity.ElecInfo;
24   -import com.bsth.entity.OilInfo;
25   -import com.bsth.entity.SchedulePlanInfo;
26   -import com.bsth.entity.ScheduleRealInfo;
27   -import com.bsth.server_ws.attendance.entity.Ssry_attendance;
28   -import com.bsth.server_ws.attendance.entity.Jsy_attendance;
29   -import com.bsth.server_ws.park_station.dto.LsLcPb;
30   -import com.bsth.server_ws.waybill.entity.NH_waybill;
31   -import com.bsth.server_ws.waybill.entity.NH_waybillItem;
32   -import com.bsth.server_ws.waybill.entity.SN_lossMileage;
33   -import com.bsth.server_ws.waybill.entity.SN_waybill;
34   -import com.bsth.server_ws.waybill.entity.SN_waybillItem;
35   -import com.bsth.util.Arith;
36   -import com.bsth.util.ConvertUtil;
37   -import com.google.common.collect.ArrayListMultimap;
38   -
39   -/**
40   - * Created by panzhao on 2017/3/15.
41   - */
42   -public class WSDataConver {
43   -
44   - /**
45   - * 格式编码和名称映射,与老系统保持一致
46   - */
47   - private static Map<String, String> gsMap;
48   -
49   - static Logger logger = LoggerFactory.getLogger(WSDataConver.class);
50   -
51   - static {
52   - gsMap = new HashMap<>();
53   - gsMap.put("55", "上南公司");
54   - gsMap.put("55_4", "上南一分公司");
55   - gsMap.put("55_3", "上南六分公司");
56   - gsMap.put("55_1", "上南二分公司");
57   - gsMap.put("55_2", "上南三分公司");
58   - gsMap.put("22", "金高公司");
59   - gsMap.put("22_2", "二分公司");
60   - gsMap.put("22_1", "四分公司");
61   - gsMap.put("22_3", "三分公司");
62   - gsMap.put("22_5", "一分公司");
63   - gsMap.put("05", "杨高公司");
64   - gsMap.put("05_5", "杨高分公司");
65   - gsMap.put("05_6", "周浦分公司");
66   - gsMap.put("05_3", "芦潮港分公司");
67   - gsMap.put("05_1", "川沙分公司");
68   - gsMap.put("26", "南汇公司");
69   - gsMap.put("26_3", "南汇三分");
70   - gsMap.put("26_2", "南汇二分");
71   - gsMap.put("26_1", "南汇一分");
72   - gsMap.put("26_4", "南汇维修公司");
73   - gsMap.put("77", "临港公交");
74   - gsMap.put("77_1", "临港公交");
75   - }
76   -
77   - /**
78   - * 将班次list 转换成 getCurrentDayPlan 函数需要的格式
79   - *
80   - * @param list
81   - * @return [0:日期,1:线路名称,2:路牌名称,3:车辆自编号,4:,5:,6:起点时间,7:终点时间,8:起点站名称,9:终点站名称,10:班次类型]
82   - */
83   - public static String[] to_getCurrentDayPlan(List<ScheduleRealInfo> list) {
84   - if (list == null || list.size() == 0)
85   - return new String[0];
86   -
87   - Map<String, String> bcTypeMap = new HashMap<>();
88   - bcTypeMap.put("out", "出场");
89   - bcTypeMap.put("in", "进场");
90   -
91   - String[] array = new String[list.size()];
92   - StringBuilder sb;
93   - ScheduleRealInfo sch;
94   - int len = list.size();
95   - for(int i = 0; i < len; i ++){
96   - sb = new StringBuilder();
97   - sch = list.get(i);
98   - sb.append(sch.getScheduleDateStr() + ",");
99   - sb.append(sch.getXlName() + ",");
100   - sb.append(sch.getLpName() + ",");
101   - sb.append(sch.getClZbh() + ",");
102   - sb.append(",");
103   - sb.append(",");
104   - sb.append(sch.getDfsj() + ",");
105   - sb.append(sch.getZdsj() + ",");
106   - sb.append(sch.getQdzName() + ",");
107   - sb.append(sch.getZdzName() + ",");
108   - sb.append(bcTypeMap.containsKey(sch.getBcType())?bcTypeMap.get(sch.getBcType()):"");
109   -
110   - array[i] = sb.toString();
111   - }
112   - return array;
113   - }
114   -
115   - /**
116   - * 将班次list 转换成 returnCCInfo 和 returnJCInfo 函数需要的格式
117   - *
118   - * @param list
119   - * @return [0: 日期, 1: 线路编码, 2: 线路名称, 3: 公司名称, 4: 分公司名称, 5: 路牌, 6: 起点站, 7: 起点计划时间,
120   - * 8: 起点实际时间, 9: 终点站, 10: 终点计划时间, 11: 终点实际时间, 12: 计划里程, 13: 实际里程,
121   - * 14: 驾驶员, 15: 售票员, 16: 车辆内部编码, 17: 状态(1 为出场。2为进场), 18: 驾驶员名称, 19: 进场顺序号]
122   - */
123   - public static String[] to_returnJCCInfo(List<ScheduleRealInfo> list) {
124   - if(list == null)
125   - return new String[0];
126   -
127   - int size = list.size();
128   - String[] array = new String[size];
129   -
130   - ScheduleRealInfo sch;
131   - StringBuffer sb;
132   - for (int i = 0; i < size; i++) {
133   - sb = new StringBuffer(",");
134   -
135   - sch = list.get(i);
136   - sb.append(sch.getScheduleDateStr() + ",");
137   - sb.append(sch.getXlBm() + ",");
138   - sb.append(sch.getXlName() + ",");
139   - sb.append(gsMap.get(sch.getGsBm()) + ",");
140   - sb.append(gsMap.get(sch.getGsBm() + "_" + sch.getFgsBm()) + ",");
141   - sb.append(sch.getLpName() + ",");
142   - sb.append(sch.getQdzCode() + ",");
143   - sb.append(sch.getDfsj() + ",");
144   - sb.append(nvlGetVal(sch.getFcsjActual()) + ",");
145   - sb.append(sch.getZdzCode() + ",");
146   - sb.append(sch.getZdsj() + ",");
147   - sb.append(nvlGetVal(sch.getZdsjActual()) + ",");
148   - sb.append(nvlGetVal(sch.getJhlc()) + ",");
149   - sb.append(nvlGetVal(sch.getJhlc()) + ",");
150   - sb.append(sch.getjGh() + ",");
151   - sb.append(nvlGetVal(sch.getsGh()) + ",");
152   - sb.append(sch.getClZbh() + ",");
153   - sb.append((sch.getBcType().equals("out") ? 1 : 2) + ",");
154   - sb.append(sch.getjName() + ",");
155   - //用ID替代老系统的出场顺序号
156   - sb.append(sch.getId() + ",");
157   -
158   - array[i] = sb.substring(1).toString();
159   - }
160   - return array;
161   - }
162   -
163   - public static String nvlGetVal(Object val) {
164   - return val == null ? "" : val.toString();
165   - }
166   -
167   - /**
168   - * 将实际排班和油耗数据 转换成南汇路单需要的数据格式
169   - *
170   - * @param listMap
171   - * @param oilInfoMap
172   - * @return
173   - */
174   - public static NH_waybill[] to_waybill_NH(ArrayListMultimap<String, ScheduleRealInfo> listMap, ArrayListMultimap<String, OilInfo> oilInfoMap, ArrayListMultimap<String, ElecInfo> elecInfoMap, List<DutyEmployee> des) throws NoSuchFieldException {
175   - List<String> nbbmArray = new ArrayList<>(listMap.keySet());
176   -
177   - NH_waybill[] rs = new NH_waybill[nbbmArray.size() + 1];
178   - Field jGhField = ScheduleRealInfo.class.getDeclaredField("jGh");
179   - //Field lpField = ScheduleRealInfo.class.getDeclaredField("lpName");
180   -
181   - List<ScheduleRealInfo> list;
182   - ArrayListMultimap<String, ScheduleRealInfo> jGhListMap;
183   - ScheduleRealInfo sch;
184   - NH_waybill nh_waybill, total = new NH_waybill();
185   - NH_waybillItem nh_waybillItem, totalItem = new NH_waybillItem();
186   - List<OilInfo> oilInfo;
187   - List<ElecInfo> elecInfo;
188   - boolean isFirst = true;
189   -
190   - double jhlc = 0, sjjhlc = 0, cclc = 0, jclc = 0, yylc = 0, kslc = 0, cjlc = 0, lblc = 0, zjlc = 0, zlc = 0;
191   - double yhTotal = 0;
192   - for (int i = 0; i < nbbmArray.size(); i++) {
193   - list = listMap.get(nbbmArray.get(i));
194   - if (list.size() == 0)
195   - continue;
196   - //班次信息
197   - nh_waybill = new NH_waybill();
198   - sch = list.get(0);
199   - //日期
200   - nh_waybill.setM_strYYRQ(sch.getScheduleDateStr());
201   - //车辆自编号
202   - nh_waybill.setM_strNBBM(sch.getClZbh());
203   - //线路编码
204   - nh_waybill.setM_strXLBM(sch.getXlBm());
205   - nh_waybill.setM_SubInfos(new ArrayList<NH_waybillItem>());
206   - if (isFirst) {
207   - total.setM_strYYRQ(sch.getScheduleDateStr());
208   - total.setM_strNBBM("000-000");
209   - total.setM_strXLBM("000000");
210   - total.setM_SubInfos(new ArrayList<NH_waybillItem>());
211   -
212   - isFirst = false;
213   - }
214   -
215   - //按 驾驶员 分组班次,构造路单子项
216   - jGhListMap = new ConvertUtil<ScheduleRealInfo>().groupMultiList(list, "_", jGhField);
217   - for (String jGh : jGhListMap.keySet()) {
218   - list = jGhListMap.get(jGh);
219   - nh_waybillItem = new NH_waybillItem();
220   - //计划里程
221   - nh_waybillItem.setM_dblJHLC(ScheduleCalculator.calcJHLC(list));
222   - jhlc = Arith.add(jhlc, nh_waybillItem.getM_dblJHLC());
223   - //实际计划公里
224   - nh_waybillItem.setM_dblSJJHLC(ScheduleCalculator.calcSJLC(list));
225   - sjjhlc = Arith.add(sjjhlc, nh_waybillItem.getM_dblSJJHLC());
226   - //实际出场里程
227   - nh_waybillItem.setM_dblCCLC(ScheduleCalculator.calcCCLC(list));
228   - cclc = Arith.add(cclc, nh_waybillItem.getM_dblCCLC());
229   - //实际进场里程
230   - nh_waybillItem.setM_dblJCLC(ScheduleCalculator.calcJCLC(list));
231   - jclc = Arith.add(jclc, nh_waybillItem.getM_dblJCLC());
232   - //营业公里
233   - nh_waybillItem.setM_dblYYLC(ScheduleCalculator.calcYYLC(list));
234   - yylc = Arith.add(yylc, nh_waybillItem.getM_dblYYLC());
235   - //空驶公里
236   - nh_waybillItem.setM_dblKSLC(ScheduleCalculator.calcKSLC(list));
237   - kslc = Arith.add(kslc, nh_waybillItem.getM_dblKSLC());
238   - //抽减公里
239   - nh_waybillItem.setM_dblCJLC(ScheduleCalculator.calcCJLC(list));
240   - cjlc = Arith.add(cjlc, nh_waybillItem.getM_dblCJLC());
241   - //烂班公里
242   - nh_waybillItem.setM_dblLBLC(ScheduleCalculator.calcLBLC(list));
243   - lblc = Arith.add(lblc, nh_waybillItem.getM_dblLBLC());
244   - //增加公里
245   - nh_waybillItem.setM_dblZJLC(ScheduleCalculator.calcZJLC(list));
246   - zjlc = Arith.add(zjlc, nh_waybillItem.getM_dblZJLC());
247   - //总公里
248   - nh_waybillItem.setM_dblZLC(ScheduleCalculator.calcZLC(list));
249   - zlc = Arith.add(zlc, nh_waybillItem.getM_dblZLC());
250   - //烂班公里原因
251   - nh_waybillItem.setM_strLBYY(ScheduleCalculator.joinLBYY(list));
252   - //抽减公里原因
253   - nh_waybillItem.setM_strCJYY(ScheduleCalculator.joinCJYY(list));
254   - //计划班次
255   - nh_waybillItem.setM_intJHBC(ScheduleCalculator.countJHBC(list));
256   - //实际计划班次
257   - nh_waybillItem.setM_intSJJHBC(ScheduleCalculator.countSJJHBC(list));
258   - //实际班次 ————> 暂时和实际计划班次相同
259   - nh_waybillItem.setM_intSJBC(ScheduleCalculator.countSJJHBC(list));
260   - //增加班次
261   - nh_waybillItem.setM_intZJBC(ScheduleCalculator.countZJBC(list));
262   - //抽减班次
263   - nh_waybillItem.setM_intCJBC(ScheduleCalculator.countCJBC(list));
264   - //烂班工时
265   - nh_waybillItem.setM_dblLBGS(ScheduleCalculator.calcLBGS(list));
266   - //路牌
267   - nh_waybillItem.setM_strLP(list.get(0).getLpName());
268   - //驾驶员工号
269   - nh_waybillItem.setM_strJSY(list.get(0).getjGh());
270   - //售票员工号
271   - nh_waybillItem.setM_strSPY("");
272   - for (ScheduleRealInfo sri : list) {
273   - if (StringUtils.isNotEmpty(sri.getsGh())) {
274   - nh_waybillItem.setM_strSPY(sri.getsGh());
275   - break;
276   - }
277   - }
278   - //驾驶员考勤
279   - nh_waybillItem.setM_strJSYKQ("");
280   - //售票员考勤
281   - nh_waybillItem.setM_strSPYKQ("");
282   - //当班调度员
283   - nh_waybillItem.setM_strDDY(ScheduleCalculator.calcDDY(list, des));
284   - //营运状态
285   - nh_waybillItem.setM_strYYZT("");
286   - //备注
287   - nh_waybillItem.setM_strBZ("");
288   -
289   - oilInfo = oilInfoMap.get(list.get(0).getClZbh() + "_" + list.get(0).getjGh());
290   - if (oilInfo != null && oilInfo.size() > 0) {
291   - Double czyl = 0., jzyl = 0., jzl = 0., ns = 0., yh = 0.;
292   - String rylx = "";
293   - for (OilInfo oi : oilInfo) {
294   - if (oi.getXlbm().equals(sch.getXlBm())) {
295   - czyl = Arith.add(czyl, oi.getCzyl());
296   - jzyl = Arith.add(jzyl, oi.getJzyl());
297   - jzl = Arith.add(jzl, oi.getJzl());
298   - ns = Arith.add(ns, oi.getNs());
299   - yh = Arith.add(yh, oi.getYh());
300   - rylx = oi.getRylx();
301   - }
302   - }
303   - //出场存油
304   - nh_waybillItem.setM_dblCCCY(czyl);
305   - //进场存油
306   - nh_waybillItem.setM_dblJCCY(jzyl);
307   - //加注量1
308   - nh_waybillItem.setM_dblJZL1(jzl);
309   - //加注量2
310   - nh_waybillItem.setM_dblJZL2(0.0);
311   - //尿素
312   - nh_waybillItem.setM_dblNS(ns);
313   - //消耗量
314   - nh_waybillItem.setM_dblYH(yh);
315   - yhTotal = Arith.add(yhTotal, yh);
316   - //加油地点1
317   - nh_waybillItem.setM_strJYD1("");
318   - //加油地点2
319   - nh_waybillItem.setM_strJYD2("");
320   - //加油工工号1
321   - nh_waybillItem.setM_strJYG1("");
322   - //加油工工号1
323   - nh_waybillItem.setM_strJYG2("");
324   - //油耗类型1
325   - nh_waybillItem.setM_strYHLX1(rylx);
326   - //油耗类型2
327   - nh_waybillItem.setM_strYHLX1("");
328   - }
329   -
330   - /*elecInfo = elecInfoMap.get(list.get(0).getClZbh() + "_" + list.get(0).getjGh());
331   - if (elecInfo != null && elecInfo.size() > 0) {
332   - Double cdl = 0., hd = 0.;
333   - for (ElecInfo ei : elecInfo) {
334   - cdl = Arith.add(cdl, ei.getCdl());
335   - hd = Arith.add(hd, ei.getHd());
336   - }
337   - //出场存油
338   - nh_waybillItem.setM_dblCCCY(100.0);
339   - //进场存油
340   - nh_waybillItem.setM_dblJCCY(100.0);
341   - //加注量1
342   - nh_waybillItem.setM_dblJZL1(cdl);
343   - //加注量2
344   - nh_waybillItem.setM_dblJZL2(0.0);
345   - //尿素
346   - nh_waybillItem.setM_dblNS(0.0);
347   - //消耗量
348   - nh_waybillItem.setM_dblYH(hd);
349   - yhTotal = Arith.add(yhTotal, hd);
350   - //加油地点1
351   - nh_waybillItem.setM_strJYD1("");
352   - //加油地点2
353   - nh_waybillItem.setM_strJYD2("");
354   - //加油工工号1
355   - nh_waybillItem.setM_strJYG1("");
356   - //加油工工号1
357   - nh_waybillItem.setM_strJYG2("");
358   - //油耗类型1
359   - nh_waybillItem.setM_strYHLX1("");
360   - //油耗类型2
361   - nh_waybillItem.setM_strYHLX1("");
362   - }*/
363   -
364   - nh_waybill.getM_SubInfos().add(nh_waybillItem);
365   - }
366   -
367   - rs[i] = nh_waybill;
368   - }
369   -
370   - totalItem.setM_dblJHLC(jhlc);
371   - totalItem.setM_dblSJJHLC(sjjhlc);
372   - totalItem.setM_dblCCLC(cclc);
373   - totalItem.setM_dblJCLC(jclc);
374   - totalItem.setM_dblYYLC(yylc);
375   - totalItem.setM_dblKSLC(kslc);
376   - totalItem.setM_dblCJLC(cjlc);
377   - totalItem.setM_dblLBLC(lblc);
378   - totalItem.setM_dblZJLC(zjlc);
379   - totalItem.setM_dblZLC(zlc);
380   - totalItem.setM_strSPY("");
381   - totalItem.setM_strJSYKQ("");
382   - totalItem.setM_strSPYKQ("");
383   - totalItem.setM_strYYZT("");
384   - totalItem.setM_strBZ("");
385   - totalItem.setM_dblYH(yhTotal);
386   -
387   - total.getM_SubInfos().add(totalItem);
388   -
389   - rs[rs.length - 1] = total;
390   -
391   - return rs;
392   - }
393   -
394   - /**
395   - * 将实际排班、油耗数据、电量数据 转换成南汇路单需要的数据格式
396   - *
397   - * @param listMap
398   - * @param oilInfoMap
399   - * @return
400   - */
401   - public static NH_waybill[] to_waybill_NH4TH(ArrayListMultimap<String, ScheduleRealInfo> listMap, ArrayListMultimap<String, OilInfo> oilInfoMap, ArrayListMultimap<String, ElecInfo> elecInfoMap, List<DutyEmployee> des) throws NoSuchFieldException {
402   - // 返回值list形态(可转数组)
403   - List<NH_waybill> result = new ArrayList<>();
404   - List<String> nbbmArray = new ArrayList<>(listMap.keySet());
405   -
406   - Field xlbmField = ScheduleRealInfo.class.getDeclaredField("xlBm"), jGhField = ScheduleRealInfo.class.getDeclaredField("jGh");
407   -
408   - List<ScheduleRealInfo> list;
409   - ArrayListMultimap<String, ScheduleRealInfo> xlBmListMap, jGhListMap;
410   - ScheduleRealInfo sch;
411   - NH_waybill nh_waybill;
412   - NH_waybillItem nh_waybillItem;
413   - List<OilInfo> oilInfo;
414   - List<ElecInfo> elecInfo;
415   - for (int i = 0; i < nbbmArray.size(); i++) {
416   - list = listMap.get(nbbmArray.get(i));
417   - if (list.size() == 0) {
418   - continue;
419   - }
420   -
421   - xlBmListMap = new ConvertUtil<ScheduleRealInfo>().groupMultiList(list, "_", xlbmField);
422   - for (String xlBm : xlBmListMap.keySet()) {
423   - list = xlBmListMap.get(xlBm);
424   -
425   - //班次信息
426   - nh_waybill = new NH_waybill();
427   - sch = list.get(0);
428   - //日期
429   - nh_waybill.setM_strYYRQ(sch.getScheduleDateStr());
430   - //车辆自编号
431   - nh_waybill.setM_strNBBM(sch.getClZbh());
432   - //线路编码
433   - nh_waybill.setM_strXLBM(sch.getXlBm());
434   - nh_waybill.setM_SubInfos(new ArrayList<NH_waybillItem>());
435   -
436   - //按 驾驶员 分组班次,构造路单子项
437   - jGhListMap = new ConvertUtil<ScheduleRealInfo>().groupMultiList(list, "_", jGhField);
438   - for (String jGh : jGhListMap.keySet()) {
439   - list = jGhListMap.get(jGh);
440   - nh_waybillItem = new NH_waybillItem();
441   - //计划里程
442   - nh_waybillItem.setM_dblJHLC(ScheduleCalculator.calcJHLC(list));
443   - //实际计划公里
444   - nh_waybillItem.setM_dblSJJHLC(ScheduleCalculator.calcSJLC(list));
445   - //实际出场里程
446   - nh_waybillItem.setM_dblCCLC(ScheduleCalculator.calcCCLC(list));
447   - //实际进场里程
448   - nh_waybillItem.setM_dblJCLC(ScheduleCalculator.calcJCLC(list));
449   - //营业公里
450   - nh_waybillItem.setM_dblYYLC(ScheduleCalculator.calcYYLC(list));
451   - //空驶公里
452   - nh_waybillItem.setM_dblKSLC(ScheduleCalculator.calcKSLC(list));
453   - //抽减公里
454   - nh_waybillItem.setM_dblCJLC(ScheduleCalculator.calcCJLC(list));
455   - //烂班公里
456   - nh_waybillItem.setM_dblLBLC(ScheduleCalculator.calcLBLC(list));
457   - //增加公里
458   - nh_waybillItem.setM_dblZJLC(ScheduleCalculator.calcZJLC(list));
459   - //总公里
460   - nh_waybillItem.setM_dblZLC(ScheduleCalculator.calcZLC(list));
461   - //烂班公里原因
462   - nh_waybillItem.setM_strLBYY(ScheduleCalculator.joinLBYY(list));
463   - //抽减公里原因
464   - nh_waybillItem.setM_strCJYY(ScheduleCalculator.joinCJYY(list));
465   - //计划班次
466   - nh_waybillItem.setM_intJHBC(ScheduleCalculator.countJHBC(list));
467   - //实际计划班次
468   - nh_waybillItem.setM_intSJJHBC(ScheduleCalculator.countSJJHBC(list));
469   - //实际班次 ————> 暂时和实际计划班次相同
470   - nh_waybillItem.setM_intSJBC(ScheduleCalculator.countSJJHBC(list));
471   - //增加班次
472   - nh_waybillItem.setM_intZJBC(ScheduleCalculator.countZJBC(list));
473   - //抽减班次
474   - nh_waybillItem.setM_intCJBC(ScheduleCalculator.countCJBC(list));
475   - //烂班工时
476   - nh_waybillItem.setM_dblLBGS(ScheduleCalculator.calcLBGS(list));
477   - //路牌
478   - nh_waybillItem.setM_strLP(list.get(0).getLpName());
479   - //驾驶员工号
480   - nh_waybillItem.setM_strJSY(list.get(0).getjGh());
481   - //售票员工号
482   - nh_waybillItem.setM_strSPY("");
483   - for (ScheduleRealInfo sri : list) {
484   - if (StringUtils.isNotEmpty(sri.getsGh())) {
485   - nh_waybillItem.setM_strSPY(sri.getsGh());
486   - break;
487   - }
488   - }
489   - //驾驶员考勤
490   - nh_waybillItem.setM_strJSYKQ("");
491   - //售票员考勤
492   - nh_waybillItem.setM_strSPYKQ("");
493   - //当班调度员
494   - nh_waybillItem.setM_strDDY(ScheduleCalculator.calcDDY(list, des));
495   - //营运状态
496   - nh_waybillItem.setM_strYYZT("");
497   - //备注
498   - nh_waybillItem.setM_strBZ("");
499   -
500   - oilInfo = oilInfoMap.get(list.get(0).getClZbh() + "_" + list.get(0).getjGh());
501   - if (oilInfo != null && oilInfo.size() > 0) {
502   - Double czyl = 0., jzyl = 0., jzl = 0., ns = 0., yh = 0.;
503   - String rylx = "";
504   - for (OilInfo oi : oilInfo) {
505   - if (oi.getXlbm().equals(sch.getXlBm())) {
506   - czyl = Arith.add(czyl, oi.getCzyl());
507   - jzyl = Arith.add(jzyl, oi.getJzyl());
508   - jzl = Arith.add(jzl, oi.getJzl());
509   - ns = Arith.add(ns, oi.getNs());
510   - yh = Arith.add(yh, oi.getYh());
511   - rylx = oi.getRylx();
512   - }
513   - }
514   - //出场存油
515   - nh_waybillItem.setM_dblCCCY(czyl);
516   - //进场存油
517   - nh_waybillItem.setM_dblJCCY(jzyl);
518   - //加注量1
519   - nh_waybillItem.setM_dblJZL1(jzl);
520   - //加注量2
521   - nh_waybillItem.setM_dblJZL2(0.0);
522   - //尿素
523   - nh_waybillItem.setM_dblNS(ns);
524   - //消耗量
525   - nh_waybillItem.setM_dblYH(yh);
526   - //加油地点1
527   - nh_waybillItem.setM_strJYD1("");
528   - //加油地点2
529   - nh_waybillItem.setM_strJYD2("");
530   - //加油工工号1
531   - nh_waybillItem.setM_strJYG1("");
532   - //加油工工号1
533   - nh_waybillItem.setM_strJYG2("");
534   - //油耗类型1
535   - nh_waybillItem.setM_strYHLX1(rylx);
536   - //油耗类型2
537   - nh_waybillItem.setM_strYHLX1("");
538   - }
539   -
540   - elecInfo = elecInfoMap.get(list.get(0).getClZbh() + "_" + list.get(0).getjGh());
541   - if (elecInfo != null && elecInfo.size() > 0) {
542   - Double cdl = 0., hd = 0.;
543   - for (ElecInfo ei : elecInfo) {
544   - cdl = Arith.add(cdl, ei.getCdl());
545   - hd = Arith.add(hd, ei.getHd());
546   - }
547   - //出场存油
548   - nh_waybillItem.setM_dblCCCY(100.0);
549   - //进场存油
550   - nh_waybillItem.setM_dblJCCY(100.0);
551   - //加注量1
552   - nh_waybillItem.setM_dblJZL1(cdl);
553   - //加注量2
554   - nh_waybillItem.setM_dblJZL2(0.0);
555   - //尿素
556   - nh_waybillItem.setM_dblNS(0.0);
557   - //消耗量
558   - nh_waybillItem.setM_dblYH(hd);
559   - //加油地点1
560   - nh_waybillItem.setM_strJYD1("");
561   - //加油地点2
562   - nh_waybillItem.setM_strJYD2("");
563   - //加油工工号1
564   - nh_waybillItem.setM_strJYG1("");
565   - //加油工工号1
566   - nh_waybillItem.setM_strJYG2("");
567   - //油耗类型1
568   - nh_waybillItem.setM_strYHLX1("");
569   - //油耗类型2
570   - nh_waybillItem.setM_strYHLX1("");
571   - }
572   -
573   - nh_waybill.getM_SubInfos().add(nh_waybillItem);
574   - }
575   -
576   - result.add(nh_waybill);
577   - }
578   - }
579   -
580   - return result.toArray(new NH_waybill[result.size()]);
581   - }
582   -
583   -
584   - /**
585   - * 将实际排班和油耗数据 转换成上南路单需要的数据格式
586   - *
587   - * @param listMap
588   - * @param oilInfoMap
589   - * @return
590   - */
591   - public static SN_waybill[] to_waybill_SN(ArrayListMultimap<String, ScheduleRealInfo> listMap, Map<String, OilInfo> oilInfoMap) throws NoSuchFieldException {
592   -
593   - List<String> nbbmArray = new ArrayList<>(listMap.keySet());
594   - SN_waybill[] rs = new SN_waybill[nbbmArray.size()];
595   - Field jGhField = ScheduleRealInfo.class.getDeclaredField("jGh");
596   -
597   - List<ScheduleRealInfo> list;
598   - ArrayListMultimap<String, ScheduleRealInfo> jGhListMap;
599   - ScheduleRealInfo sch;
600   - SN_waybill sn_waybill;
601   - SN_waybillItem sn_waybillItem;
602   -
603   - OilComp oilComp = new OilComp();
604   - List<OilInfo> oilArray;
605   - for (int i = 0; i < nbbmArray.size(); i++) {
606   - list = listMap.get(nbbmArray.get(i));
607   - if (list.size() == 0)
608   - continue;
609   -
610   - sch = list.get(0);
611   - sn_waybill = new SN_waybill();
612   - sn_waybill.setLine_no(sch.getXlBm());
613   - sn_waybill.setWork_date(sch.getScheduleDateStr());
614   - sn_waybill.setComp_id(sch.getFgsBm());
615   - sn_waybill.setGuidecard(sch.getLpName());
616   - sn_waybill.setCar_id(sch.getClZbh());
617   - //实际班次
618   - sn_waybill.setAct_num(ScheduleCalculator.countSJJHBC(list));
619   - //晚班实际班次
620   - sn_waybill.setL_act_num(ScheduleCalculator.countSJJHBC(ScheduleCalculator.lastArray(list)));
621   - //营业里程
622   - sn_waybill.setWork_way(ScheduleCalculator.calcYYLC(list));
623   - //空驶里程
624   - sn_waybill.setLeisure_way(ScheduleCalculator.calcKSLC(list));
625   - //总里程
626   - sn_waybill.setCount_way(ScheduleCalculator.calcZLC(list));
627   - //路单类型(0普通,1包车)
628   - sn_waybill.setLd_type("0");
629   - //油料类型(2、柴油 3、天然气 4、汽油柴油 5、液化气 6、液化气汽油 7、液化气柴油 8、天然气汽油 9、电)
630   - //暂时全部柴油车
631   - sn_waybill.setOil_type("2");
632   -
633   - //根据车辆获取油量信息
634   - oilArray = likeGet(oilInfoMap, sch.getClZbh() + "_");
635   - if (oilArray.size() > 0) {
636   - Collections.sort(oilArray, oilComp);
637   - //出厂存油
638   - sn_waybill.setOut_oil(oilArray.get(0).getCzyl());
639   - //油料加注
640   - sn_waybill.setAdd_oil(sumAddOil(oilArray));
641   - //进场存油
642   - sn_waybill.setEnd_oil(oilArray.get(oilArray.size() - 1).getJzyl());
643   - //油料消耗
644   - sn_waybill.setExpend_oil(countOilExpend(oilArray));
645   - //非营业用油类型 非营业用油类型(1.常规车2.包车3.加开包车)
646   - sn_waybill.setNowork_oil_type("1");
647   - //非营业用油
648   - sn_waybill.setNowork_oil(0);
649   - //非营业用油油耗量(保养用油)
650   - sn_waybill.setNowork_oil1(0);
651   - //非营业用油油耗量(票务用油)
652   - sn_waybill.setNowork_oil2(0);
653   - //非营业用油油耗量(其他用油)
654   - sn_waybill.setNowork_oil3(0);
655   - //营业用油
656   - sn_waybill.setWork_oil(countOilExpend(oilArray));
657   - //其他营业用油
658   - sn_waybill.setQt_work_oil(0);
659   - }
660   - sn_waybill.setDriver_detail(new ArrayList<SN_waybillItem>());
661   -
662   - //按 驾驶员 分组班次,构造路单子项
663   - jGhListMap = new ConvertUtil<ScheduleRealInfo>().groupMultiList(list, "_", jGhField);
664   - for (String jGh : jGhListMap.keySet()) {
665   - list = jGhListMap.get(jGh);
666   - sn_waybillItem = new SN_waybillItem();
667   - sch = list.get(0);
668   - //司机编号
669   - sn_waybillItem.setDriver_no(sch.getjGh());
670   - //司机名称
671   - sn_waybillItem.setDriver_name(sch.getjName());
672   - //售票员编号
673   - sn_waybillItem.setBusman_no(sch.getsGh());
674   - //售票员名称
675   - sn_waybillItem.setBusman_name(sch.getsName());
676   - //行驶里程
677   - sn_waybillItem.setDriver_way(ScheduleCalculator.calcYYLC(list));
678   - //空驶公里
679   - sn_waybillItem.setKs_way(ScheduleCalculator.calcKSLC(list));
680   - //柴油加注量、电加注量同一字段
681   - sn_waybillItem.setDo_oil_2(countOilExpend(oilArray, sch.getjGh()));
682   -
683   - sn_waybill.getDriver_detail().add(sn_waybillItem);
684   - }
685   -
686   - rs[i] = sn_waybill;
687   - }
688   - return rs;
689   - }
690   -
691   - /**
692   - * 将实际排班转换成上南需要损失公里数据
693   - *
694   - * @param listMap
695   - * @return
696   - */
697   - public static SN_lossMileage[] to_lossMileage_SN(ArrayListMultimap<String, ScheduleRealInfo> listMap) throws NoSuchFieldException {
698   - List<String> lineArray = new ArrayList<>(listMap.keySet());
699   - SN_lossMileage[] rs = new SN_lossMileage[lineArray.size()];
700   -
701   - List<ScheduleRealInfo> list;
702   - ScheduleRealInfo sch;
703   - for (int i = 0; i < lineArray.size(); i++) {
704   - list = listMap.get(lineArray.get(i));
705   -
706   - sch = list.get(0);
707   - SN_lossMileage lossMileage = new SN_lossMileage();
708   - //线路编号
709   - lossMileage.setLine_id(sch.getXlBm());
710   - //营运日期
711   - lossMileage.setWork_date(sch.getScheduleDateStr());
712   - //分公司编号
713   - lossMileage.setComp_id(sch.getFgsBm());
714   - //少驶公里
715   - lossMileage.setLoss_way(ScheduleCalculator.calcCJLC(list));
716   - //实际公里
717   - lossMileage.setAct_way(ScheduleCalculator.calcYYLC(list));
718   - //计划公里
719   - lossMileage.setJh_way(ScheduleCalculator.calcJHLC(list));
720   -
721   - //路阻损失公里
722   - lossMileage.setLoss_lz(ScheduleCalculator.calcCJLC2(list, "路阻"));
723   - //吊慢损失公里
724   - lossMileage.setLoss_dm(ScheduleCalculator.calcCJLC2(list, "吊慢"));
725   - //故障损失公里
726   - lossMileage.setLoss_gz(ScheduleCalculator.calcCJLC2(list, "故障"));
727   - //纠纷损失公里
728   - lossMileage.setLoss_jf(ScheduleCalculator.calcCJLC2(list, "纠纷"));
729   - //肇事损失公里
730   - lossMileage.setLoss_zs(ScheduleCalculator.calcCJLC2(list, "肇事"));
731   - //缺人损失公里
732   - lossMileage.setLoss_qr(ScheduleCalculator.calcCJLC2(list, "缺人"));
733   - //缺车损失公里
734   - lossMileage.setLoss_qc(ScheduleCalculator.calcCJLC2(list, "缺车"));
735   - //客稀损失公里
736   - lossMileage.setLoss_kx(ScheduleCalculator.calcCJLC2(list, "客稀"));
737   - //其他损失公里
738   - lossMileage.setLoss_qt(ScheduleCalculator.calcCJLC2(list, "其他"));
739   - //配车损失公里
740   - lossMileage.setLoss_pc(ScheduleCalculator.calcCJLC2(list, "配车"));
741   - //保养损失公里
742   - lossMileage.setLoss_by(ScheduleCalculator.calcCJLC2(list, "保养"));
743   - //气候损失公里
744   - lossMileage.setLoss_qh(ScheduleCalculator.calcCJLC2(list, "气候"));
745   - //援外损失公里
746   - lossMileage.setLoss_yw(ScheduleCalculator.calcCJLC2(list, "援外"));
747   - //抽减损失公里
748   - lossMileage.setLoss_cj(ScheduleCalculator.calcCJLC2(list, "抽减"));
749   -
750   - //实际班次
751   - lossMileage.setAct_num(ScheduleCalculator.countSJJHBC(list));
752   - //早班班次
753   - lossMileage.setEarly_num(ScheduleCalculator.countSJJHBC(ScheduleCalculator.earlyArray(list)));
754   - //晚班班次
755   - lossMileage.setLate_num(ScheduleCalculator.countSJJHBC(ScheduleCalculator.lastArray(list)));
756   - //另加班次
757   - lossMileage.setL_act_num(ScheduleCalculator.countZJBC(list));
758   - //早班另加班次
759   - lossMileage.setL_early_num(ScheduleCalculator.countZJBC(ScheduleCalculator.earlyArray(list)));
760   - //晚班另加班次
761   - lossMileage.setL_late_num(ScheduleCalculator.countZJBC(ScheduleCalculator.lastArray(list)));
762   - //计划班次
763   - lossMileage.setJ_act_num(ScheduleCalculator.countJHBC(list));
764   - //早班计划班次
765   - lossMileage.setJ_early_num(ScheduleCalculator.countJHBC(ScheduleCalculator.earlyArray(list)));
766   - //晚班计划班次
767   - lossMileage.setJ_late_num(ScheduleCalculator.countJHBC(ScheduleCalculator.lastArray(list)));
768   - //放站班次
769   - lossMileage.setF_act_bc(ScheduleCalculator.countEmpty(list));
770   - //早班放站班次
771   - lossMileage.setF_early_bc(ScheduleCalculator.countEmpty(ScheduleCalculator.earlyArray(list)));
772   - //晚班放站班次
773   - lossMileage.setF_late_bc(ScheduleCalculator.countEmpty(ScheduleCalculator.lastArray(list)));
774   - //调头班次
775   - lossMileage.setDt_act_bc(0);
776   - //早班调头班次
777   - lossMileage.setDt_early_bc(0);
778   - //晚班调头班次
779   - lossMileage.setDt_late_bc(0);
780   - //大间隔班次
781   - lossMileage.setD_act_num(ScheduleCalculator.countSpaceLg(list));
782   - //早班大间隔班次
783   - lossMileage.setD_early_num(ScheduleCalculator.countSpaceLg(ScheduleCalculator.earlyArray(list)));
784   - //晚班大间隔班次
785   - lossMileage.setD_late_num(ScheduleCalculator.countSpaceLg(ScheduleCalculator.lastArray(list)));
786   - //最大间隔时间
787   - lossMileage.setD_act_max(ScheduleCalculator.calcMaxSpace(list));
788   - //故障分
789   - lossMileage.setLoss_gzf(0);
790   - //故障次数
791   - lossMileage.setLoss_gzcs(0);
792   -
793   -
794   - rs[i] = lossMileage;
795   - }
796   - return rs;
797   - }
798   -
799   - private static double countOilExpend(List<OilInfo> oilArray) {
800   - double sum = 0;
801   - for (OilInfo oilInfo : oilArray) {
802   - sum = Arith.add(sum, oilInfo.getYh());
803   - }
804   - return sum;
805   - }
806   -
807   - private static double sumAddOil(List<OilInfo> oilArray) {
808   - double sum = 0;
809   - for (OilInfo oilInfo : oilArray) {
810   - sum = Arith.add(sum, oilInfo.getJzl());
811   - }
812   - return sum;
813   - }
814   -
815   - private static double countOilExpend(List<OilInfo> oilArray, String jGh) {
816   - double sum = 0;
817   - for (OilInfo oilInfo : oilArray) {
818   - if (oilInfo.getJsy().equals(jGh))
819   - sum = Arith.add(sum, oilInfo.getYh());
820   - }
821   - return sum;
822   - }
823   -
824   - public static <T> List<T> likeGet(Map<String, T> map, String key) {
825   - Set<String> ks = map.keySet();
826   - List<T> list = new ArrayList<>();
827   -
828   - if (StringUtils.isEmpty(key))
829   - return list;
830   -
831   - for (String k : ks) {
832   - if (k.indexOf(key) != -1) {
833   - list.add(map.get(k));
834   - }
835   - }
836   - return list;
837   - }
838   -
839   - /**
840   - * 将数据转换成南汇工资系统需要的驾驶员考勤数据
841   - *
842   - * @param plans
843   - * @param reals
844   - * @param types
845   - * @return
846   - */
847   - public static Jsy_attendance[] to_jsyAttendanceNH(List<SchedulePlanInfo> plans, List<ScheduleRealInfo> reals, Set<String> jsySet, Map<String, String> types, String rq) {
848   - //List<String> ghArray = new ArrayList<>(types.keySet());
849   - List<Jsy_attendance> rs = new ArrayList<Jsy_attendance>();
850   - for (String jGh : jsySet) {
851   - List<SchedulePlanInfo> tplans = searchByJsy(plans, jGh);
852   - List<ScheduleRealInfo> treals = searchRealByJsy(reals, jGh);
853   - Set<String> lines = new HashSet<String>();
854   - for (SchedulePlanInfo p : tplans) {
855   - lines.add(p.getXlBm());
856   - }
857   - for (ScheduleRealInfo r : treals) {
858   - lines.add(r.getXlBm());
859   - }
860   - for (String line : lines) {
861   - Jsy_attendance attendance = new Jsy_attendance();
862   - SchedulePlanInfo plan = null;
863   - ScheduleRealInfo real = null;
864   - for (SchedulePlanInfo p : tplans) {
865   - if (line.equals(p.getXlBm())) {
866   - plan = p;
867   - break;
868   - }
869   - }
870   - for (ScheduleRealInfo r : treals) {
871   - if (line.equals(r.getXlBm())) {
872   - real = r;
873   - break;
874   - }
875   - }
876   - attendance.setRq(rq);
877   - //考勤
878   - attendance.setStatus((plan==null?"0":"1") + "," + (real==null?"0":"1"));
879   - //班型
880   - attendance.setPlanType(types.get(jGh)==null?"1":types.get(jGh));
881   - //驾驶员工号
882   - attendance.setjGh(jGh);
883   - //早晚班类型
884   - attendance.calcZybType(reals);
885   -
886   - //实际计划
887   - if(real != null){
888   - attendance.setXlBm(real.getXlBm());
889   - attendance.setXlName(real.getXlName());
890   - attendance.setjName(real.getjName());
891   - attendance.setsGh(real.getsGh());
892   - attendance.setsName(real.getsName());
893   - attendance.setCompany(real.getGsBm());
894   - attendance.setFgsCompany(real.getFgsBm());
895   - attendance.addLpName(real.getLpName());
896   - attendance.addCl(real.getClZbh());
897   - }
898   - //计划
899   - else if(plan != null){
900   - attendance.setXlBm(plan.getXlBm());
901   - attendance.setXlName(plan.getXlName());
902   - attendance.setjName(plan.getjName());
903   - attendance.setsGh(plan.getsGh());
904   - attendance.setsName(plan.getsName());
905   - attendance.setCompany(plan.getGsBm());
906   - attendance.setFgsCompany(plan.getFgsBm());
907   - attendance.addLpName(plan.getLpName());
908   - attendance.addCl(plan.getClZbh());
909   - }
910   -
911   - rs.add(attendance);
912   - }
913   - }
914   -
915   - return rs.toArray(new Jsy_attendance[rs.size()]);
916   - }
917   -
918   - /**
919   - * 将数据转换成南汇工资系统需要的考勤数据(司/售) 版本2
920   - *
921   - * @param plans
922   - * @param reals
923   - * @param types
924   - * @return
925   - */
926   - public static Ssry_attendance[] toAttendanceNH(List<SchedulePlanInfo> plans, List<ScheduleRealInfo> reals, Set<String> jsys, Set<String> spys, String rq) {
927   - //List<String> ghArray = new ArrayList<>(types.keySet());
928   - List<Ssry_attendance> rs = new ArrayList<Ssry_attendance>();
929   - for (String jGh : jsys) {
930   - List<SchedulePlanInfo> tplans = searchByGh(plans, jGh, 1);
931   - List<ScheduleRealInfo> treals = searchRealByGh(reals, jGh, 1);
932   - padding(reals, tplans, treals, jGh, rq, 1, rs);
933   - }
934   -
935   - for (String sGh : spys) {
936   - List<SchedulePlanInfo> tplans = searchByGh(plans, sGh, 2);
937   - List<ScheduleRealInfo> treals = searchRealByGh(reals, sGh, 2);
938   - padding(reals, tplans, treals, sGh, rq, 2, rs);
939   - }
940   -
941   - return rs.toArray(new Ssry_attendance[rs.size()]);
942   - }
943   -
944   - private static void padding(List<ScheduleRealInfo> reals, List<SchedulePlanInfo> tplans, List<ScheduleRealInfo> treals, String gh, String rq, int yglx, List<Ssry_attendance> rs) {
945   - Set<String> lines = new HashSet<String>();
946   - for (SchedulePlanInfo p : tplans) {
947   - lines.add(p.getXlBm());
948   - }
949   - for (ScheduleRealInfo r : treals) {
950   - lines.add(r.getXlBm());
951   - }
952   - for (String line : lines) {
953   - Ssry_attendance attendance = new Ssry_attendance();
954   - SchedulePlanInfo plan = null;
955   - ScheduleRealInfo real = null;
956   - Set<String> cls = new HashSet<String>(), lps = new HashSet<String>();
957   - for (SchedulePlanInfo p : tplans) {
958   - if (line.equals(p.getXlBm())) {
959   - plan = p;
960   - cls.add(p.getClZbh());
961   - lps.add(p.getLpName());
962   - }
963   - }
964   - for (ScheduleRealInfo r : treals) {
965   - if (line.equals(r.getXlBm())) {
966   - real = r;
967   - cls.add(r.getClZbh());
968   - lps.add(r.getLpName());
969   - }
970   - }
971   - for (String cl : cls) {
972   - attendance.addCl(cl);
973   - }
974   - for (String lp : lps) {
975   - attendance.addLpName(lp);
976   - }
977   - attendance.setYglx(yglx);
978   - attendance.setRq(rq);
979   - //考勤
980   - attendance.setStatus((plan==null?"0":"1") + "," + (real==null?"0":"1"));
981   - //驾驶员工号
982   - attendance.setGh(gh);
983   - //早晚班类型
984   - attendance.calcZybType(reals);
985   -
986   - String name = null;
987   - //实际计划
988   - if(real != null){
989   - attendance.setXlBm(real.getXlBm());
990   - attendance.setXlName(real.getXlName());
991   - if (yglx == 1) {
992   - name = real.getjName();
993   - } else if (yglx == 2) {
994   - name = real.getsName();
995   - }
996   - }
997   - //计划
998   - else if(plan != null){
999   - attendance.setXlBm(plan.getXlBm());
1000   - attendance.setXlName(plan.getXlName());
1001   - if (yglx == 1) {
1002   - name = plan.getjName();
1003   - } else if (yglx == 2) {
1004   - name = plan.getsName();
1005   - }
1006   - }
1007   - attendance.setName(name);
1008   -
1009   - rs.add(attendance);
1010   - }
1011   - }
1012   -
1013   - public static List<SchedulePlanInfo> searchByJsy(List<SchedulePlanInfo> plans, String jGh){
1014   - List<SchedulePlanInfo> rs = new ArrayList<SchedulePlanInfo>();
1015   - String oldLineId = "0";
1016   - for(SchedulePlanInfo plan : plans){
1017   - if (plan.getjGh().equals(jGh) && !oldLineId.equals(plan.getXlBm())) {
1018   - rs.add(plan);
1019   - oldLineId = plan.getXlBm();
1020   - }
1021   - }
1022   -
1023   - return rs;
1024   - }
1025   -
1026   - public static List<SchedulePlanInfo> searchByGh(List<SchedulePlanInfo> plans, String gh, int yglx){
1027   - List<SchedulePlanInfo> rs = new ArrayList<SchedulePlanInfo>();
1028   - for(SchedulePlanInfo plan : plans){
1029   - String tgh = null;
1030   - if (yglx == 1) {
1031   - tgh = plan.getjGh();
1032   - } else if (yglx == 2) {
1033   - tgh = plan.getsGh();
1034   - }
1035   - if (gh.equals(tgh)) {
1036   - rs.add(plan);
1037   - }
1038   - }
1039   -
1040   - return rs;
1041   - }
1042   -
1043   - public static List<ScheduleRealInfo> searchRealByJsy(List<ScheduleRealInfo> reals, String jGh){
1044   - List<ScheduleRealInfo> rs = new ArrayList<ScheduleRealInfo>();
1045   - String oldLineId = "0";
1046   - for(ScheduleRealInfo sch : reals){
1047   - if (sch.getjGh().equals(jGh) && !oldLineId.equals(sch.getXlBm())) {
1048   - rs.add(sch);
1049   - oldLineId = sch.getXlBm();
1050   - }
1051   - }
1052   -
1053   - return rs;
1054   - }
1055   -
1056   - public static List<ScheduleRealInfo> searchRealByGh(List<ScheduleRealInfo> reals, String gh, int yglx){
1057   - List<ScheduleRealInfo> rs = new ArrayList<ScheduleRealInfo>();
1058   - for(ScheduleRealInfo sch : reals){
1059   - String tgh = null;
1060   - if (yglx == 1) {
1061   - tgh = sch.getjGh();
1062   - } else if (yglx == 2) {
1063   - tgh = sch.getsGh();
1064   - }
1065   - if (gh.equals(tgh)) {
1066   - rs.add(sch);
1067   - }
1068   - }
1069   -
1070   - return rs;
1071   - }
1072   -
1073   - /**
1074   - * 将排班和油耗转换成综合查询需要的数据
1075   - * @param schList
1076   - * @param oilList
1077   - * @return
1078   - */
1079   - public static String[] to_getLSLC_PB(String fdate, List<ScheduleRealInfo> schList, List<OilInfo> oilList, List<SchedulePlanInfo> planList) {
1080   - String[] array = new String[0];
1081   - try {
1082   - //按日期分组数据
1083   - ArrayListMultimap<String, ScheduleRealInfo> schMultimap =
1084   - new ConvertUtil().groupMultiList(schList, "_", ScheduleRealInfo.class.getDeclaredField("scheduleDateStr"));
1085   -
1086   - ArrayListMultimap<String, OilInfo> oilMultimap =
1087   - new ConvertUtil().groupMultiList(oilList, "_", OilInfo.class.getDeclaredField("rq"));
1088   -
1089   - ArrayListMultimap<String, SchedulePlanInfo> planMultimap =
1090   - new ConvertUtil().groupMultiList(planList, "_", SchedulePlanInfo.class.getDeclaredField("scheduleDate"));
1091   -
1092   -
1093   - //月份有多少天
1094   - int year = Integer.parseInt(fdate.substring(0, 4));
1095   - int month = Integer.parseInt(fdate.substring(5, 7));
1096   - Calendar cal = Calendar.getInstance();
1097   - cal.set(Calendar.YEAR,year);
1098   - cal.set(Calendar.MONTH,month - 1);//从0开始
1099   - int maxDate = cal.getActualMaximum(Calendar.DATE);
1100   -
1101   - List<LsLcPb> rs = new ArrayList<>();
1102   - LsLcPb lcPb;
1103   - List<ScheduleRealInfo> pbList;
1104   - List<SchedulePlanInfo> jhList;
1105   - List<OilInfo> yhList;
1106   - String rq,rq2;
1107   - SchedulePlanInfo outPlan;
1108   - int currentDay = cal.get(Calendar.DAY_OF_MONTH);
1109   - for(int i = 1; i <= maxDate; i++){
1110   - lcPb = new LsLcPb();
1111   - lcPb.setDay(i);
1112   -
1113   - rq = fdate + "-" + (i < 10?"0":"") + i;
1114   - rq2 = rq.replaceAll("-", "");
1115   -
1116   - pbList = schMultimap.get(rq);
1117   - yhList = oilMultimap.get(rq2);
1118   - jhList = planMultimap.get(rq2);
1119   -
1120   - if(i < currentDay){
1121   - if(pbList == null || pbList.size() == 0)
1122   - lcPb.setType(4);//休息
1123   - else{
1124   - lcPb.setType(1);
1125   - lcPb.setLckq("");
1126   - if(yhList != null && yhList.size() > 0){
1127   - lcPb.setLcyh(yhList.get(0).getYh());
1128   - }
1129   - lcPb.setLcyylc(ScheduleCalculator.calcYYLC(pbList));
1130   - lcPb.setLcfyylc(ScheduleCalculator.calcKSLC(pbList));
1131   - }
1132   - }
1133   - else if (i == currentDay)
1134   - lcPb.setType(3);//今天
1135   - else {
1136   - if(jhList == null || jhList.size() == 0)
1137   - lcPb.setType(4);//休息
1138   - else{
1139   - lcPb.setType(2);
1140   - outPlan = getOutSch(jhList);
1141   - if(null != outPlan){
1142   - lcPb.setPbxl(outPlan.getXlName());
1143   - lcPb.setPblp(outPlan.getLpName());
1144   - lcPb.setPbbd(minusMinute(outPlan.getFcsj(), 15));
1145   - lcPb.setPbyc(outPlan.getClZbh());
1146   - }
1147   - else
1148   - lcPb.setType(4);//休息
1149   - }
1150   - }
1151   -
1152   - rs.add(lcPb);
1153   - }
1154   -
1155   - //拼接成字符串数组
1156   - array = new String[rs.size()];
1157   - StringBuilder sb;
1158   - for(int i = 0,len=rs.size(); i < len; i++){
1159   - lcPb = rs.get(i);
1160   - sb = new StringBuilder();
1161   -
1162   - sb.append(lcPb.getType());
1163   -
1164   - switch (lcPb.getType()){
1165   - case 1:
1166   - sb.append("," + lcPb.getLckq());
1167   - sb.append("," + lcPb.getLcyh());
1168   - sb.append("," + lcPb.getLcyylc());
1169   - sb.append("," + lcPb.getLcfyylc());
1170   - break;
1171   - case 2:
1172   - sb.append("," + lcPb.getPbxl());
1173   - sb.append("," + lcPb.getPblp());
1174   - sb.append("," + lcPb.getPbbd());
1175   - sb.append("," + lcPb.getPbyc());
1176   - break;
1177   - }
1178   - sb.append("," + lcPb.getDay());
1179   - array[i] = sb.toString();
1180   - }
1181   - } catch (NoSuchFieldException e) {
1182   - logger.error("", e);
1183   - }
1184   - return array;
1185   - }
1186   -
1187   - /**
1188   - * 将排班和油耗转换成综合查询需要的数据
1189   - * @param schList
1190   - * @param oilList
1191   - * @return
1192   - */
1193   - public static List<LsLcPb> to_getLSLC_PB_list(String fdate, List<ScheduleRealInfo> schList, List<OilInfo> oilList, List<SchedulePlanInfo> planList) {
1194   - List<LsLcPb> rs = new ArrayList<>();
1195   - try {
1196   - //按日期分组数据
1197   - ArrayListMultimap<String, ScheduleRealInfo> schMultimap =
1198   - new ConvertUtil().groupMultiList(schList, "_", ScheduleRealInfo.class.getDeclaredField("scheduleDateStr"));
1199   -
1200   - ArrayListMultimap<String, OilInfo> oilMultimap =
1201   - new ConvertUtil().groupMultiList(oilList, "_", OilInfo.class.getDeclaredField("rq"));
1202   -
1203   - ArrayListMultimap<String, SchedulePlanInfo> planMultimap =
1204   - new ConvertUtil().groupMultiList(planList, "_", SchedulePlanInfo.class.getDeclaredField("scheduleDate"));
1205   -
1206   -
1207   - //月份有多少天
1208   - int year = Integer.parseInt(fdate.substring(0, 4));
1209   - int month = Integer.parseInt(fdate.substring(5, 7));
1210   - Calendar cal = Calendar.getInstance();
1211   - cal.set(Calendar.YEAR,year);
1212   - cal.set(Calendar.MONTH,month - 1);//从0开始
1213   - int maxDate = cal.getActualMaximum(Calendar.DATE);
1214   -
1215   - LsLcPb lcPb;
1216   - List<ScheduleRealInfo> pbList;
1217   - List<SchedulePlanInfo> jhList;
1218   - List<OilInfo> yhList;
1219   - String rq,rq2;
1220   - SchedulePlanInfo outPlan;
1221   - int currentDay = cal.get(Calendar.DAY_OF_MONTH);
1222   - for(int i = 1; i <= maxDate; i++){
1223   - lcPb = new LsLcPb();
1224   - lcPb.setDay(i);
1225   -
1226   - rq = fdate + "-" + (i < 10?"0":"") + i;
1227   - rq2 = rq.replaceAll("-", "");
1228   -
1229   - pbList = schMultimap.get(rq);
1230   - yhList = oilMultimap.get(rq2);
1231   - jhList = planMultimap.get(rq2);
1232   -
1233   - if(i < currentDay){
1234   - if(pbList == null || pbList.size() == 0)
1235   - lcPb.setType(4);//休息
1236   - else{
1237   - lcPb.setType(1);
1238   - lcPb.setLckq("");
1239   - if(yhList != null && yhList.size() > 0){
1240   - lcPb.setLcyh(yhList.get(0).getYh());
1241   - }
1242   - lcPb.setLcyylc(ScheduleCalculator.calcYYLC(pbList));
1243   - lcPb.setLcfyylc(ScheduleCalculator.calcKSLC(pbList));
1244   - }
1245   - }
1246   - else if (i == currentDay)
1247   - lcPb.setType(3);//今天
1248   - else {
1249   - if(jhList == null || jhList.size() == 0)
1250   - lcPb.setType(4);//休息
1251   - else{
1252   - lcPb.setType(2);
1253   - outPlan = getOutSch(jhList);
1254   - if(null != outPlan){
1255   - lcPb.setPbxl(outPlan.getXlName());
1256   - lcPb.setPblp(outPlan.getLpName());
1257   - lcPb.setPbbd(minusMinute(outPlan.getFcsj(), 15));
1258   - lcPb.setPbyc(outPlan.getClZbh());
1259   - }
1260   - else
1261   - lcPb.setType(4);//休息
1262   - }
1263   - }
1264   -
1265   - rs.add(lcPb);
1266   - }
1267   - } catch (NoSuchFieldException e) {
1268   - logger.error("", e);
1269   - }
1270   - return rs;
1271   - }
1272   -
1273   - /**
1274   - * HH:mm 格式时间减分钟
1275   - * @param dfsj
1276   - * @param i
1277   - * @return
1278   - */
1279   - private static String minusMinute(String hhmm, int i) {
1280   - try {
1281   - SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
1282   - long t = sdf.parse(hhmm).getTime();
1283   -
1284   - return sdf.format(new Date(t - (i * 60 * 1000)));
1285   - } catch (ParseException e) {
1286   - logger.error("", e);
1287   - }
1288   - return null;
1289   - }
1290   -
1291   - private static SchedulePlanInfo getOutSch(List<SchedulePlanInfo> pbList) {
1292   -
1293   - for(SchedulePlanInfo sch : pbList){
1294   - if(sch.getBcType().equals("out"))
1295   - return sch;
1296   - }
1297   - return null;
1298   - }
1299   -
1300   - public static class OilComp implements Comparator<OilInfo> {
1301   -
1302   - @Override
1303   - public int compare(OilInfo o1, OilInfo o2) {
1304   - return o1.getJcsx() - o2.getJcsx();
1305   - }
1306   - }
1307   -
1308   -
1309   -}
src/main/java/com/bsth/server_ws/waybill/LD_Service.java deleted 100644 → 0
1   -package com.bsth.server_ws.waybill;
2   -
3   -import com.bsth.server_ws.waybill.entity.NH_waybill;
4   -import com.bsth.server_ws.waybill.entity.SN_lossMileage;
5   -import com.bsth.server_ws.waybill.entity.SN_waybill;
6   -
7   -import javax.jws.WebMethod;
8   -import javax.jws.WebParam;
9   -import javax.jws.WebService;
10   -import javax.xml.ws.Holder;
11   -
12   -/**
13   - * 路单接口
14   - * Created by panzhao on 2017/3/17.
15   - */
16   -@WebService(
17   - name = "LD_ServiceSoap",
18   - targetNamespace = "http://control.bsth.com/")
19   -public interface LD_Service {
20   -
21   - /***
22   - * 路单接口(原南汇格式)
23   - * @param password 密码
24   - * @param rq 日期
25   - * @param companyId 公司编码
26   - * @param result
27   - * @param fError
28   - * @return
29   - */
30   - @WebMethod
31   - boolean waybill_NH(
32   - @WebParam(name = "password") String password,
33   - @WebParam(name = "rq") String rq,
34   - @WebParam(name = "companyId") String companyId,
35   - @WebParam(name = "resultArray", mode = WebParam.Mode.INOUT) Holder<NH_waybill[]> result,
36   - @WebParam(name = "fError", mode = WebParam.Mode.INOUT) Holder<String> fError);
37   -
38   - /***
39   - * 路单接口(原南汇格式 公司内部用)
40   - * @param password 密码
41   - * @param rq 日期
42   - * @param companyId 公司编码
43   - * @param result
44   - * @param fError
45   - * @return
46   - */
47   - @WebMethod
48   - boolean waybill_NH4TH(
49   - @WebParam(name = "password") String password,
50   - @WebParam(name = "rq") String rq,
51   - @WebParam(name = "companyId") String companyId,
52   - @WebParam(name = "resultArray", mode = WebParam.Mode.INOUT) Holder<NH_waybill[]> result,
53   - @WebParam(name = "fError", mode = WebParam.Mode.INOUT) Holder<String> fError);
54   -
55   - /**
56   - * 路单接口(上南格式)
57   - *
58   - * @param password 密码
59   - * @param rq 日期
60   - * @param companyId 公司编码
61   - * @return
62   - */
63   - boolean waybill_SN(
64   - @WebParam(name = "password") String password,
65   - @WebParam(name = "rq") String rq,
66   - @WebParam(name = "companyId") String companyId,
67   - @WebParam(name = "resultArray", mode = WebParam.Mode.INOUT) Holder<SN_waybill[]> result,
68   - @WebParam(name = "fError", mode = WebParam.Mode.INOUT) Holder<String> fError);
69   -
70   - /**
71   - * 损失公里(上南格式)
72   - * @param password
73   - * @param rq
74   - * @param companyId
75   - * @param result
76   - * @param fError
77   - * @return
78   - */
79   - boolean lossMileage(
80   - @WebParam(name = "password") String password,
81   - @WebParam(name = "rq") String rq,
82   - @WebParam(name = "companyId") String companyId,
83   - @WebParam(name = "resultArray", mode = WebParam.Mode.INOUT) Holder<SN_lossMileage[]> result,
84   - @WebParam(name = "fError", mode = WebParam.Mode.INOUT) Holder<String> fError);
85   -}
src/main/java/com/bsth/server_ws/waybill/LD_ServiceSoap.java deleted 100644 → 0
1   -package com.bsth.server_ws.waybill;
2   -
3   -import java.util.List;
4   -import java.util.Map;
5   -
6   -import javax.jws.WebService;
7   -import javax.xml.ws.Holder;
8   -
9   -import com.fasterxml.jackson.databind.ObjectMapper;
10   -import org.joda.time.format.DateTimeFormat;
11   -import org.joda.time.format.DateTimeFormatter;
12   -import org.slf4j.Logger;
13   -import org.slf4j.LoggerFactory;
14   -import org.springframework.beans.BeansException;
15   -import org.springframework.context.ApplicationContext;
16   -import org.springframework.context.ApplicationContextAware;
17   -import org.springframework.stereotype.Component;
18   -
19   -import com.bsth.entity.DutyEmployee;
20   -import com.bsth.entity.ElecInfo;
21   -import com.bsth.entity.OilInfo;
22   -import com.bsth.entity.ScheduleRealInfo;
23   -import com.bsth.redis.ElecRedisService;
24   -import com.bsth.redis.OilRedisService;
25   -import com.bsth.redis.ScheduleRedisService;
26   -import com.bsth.repository.DutyEmployeeRepository;
27   -import com.bsth.server_ws.util.WSDataConver;
28   -import com.bsth.server_ws.waybill.entity.NH_waybill;
29   -import com.bsth.server_ws.waybill.entity.SN_lossMileage;
30   -import com.bsth.server_ws.waybill.entity.SN_waybill;
31   -import com.bsth.service.UserService;
32   -import com.google.common.collect.ArrayListMultimap;
33   -
34   -/**
35   - * Created by panzhao on 2017/3/17.
36   - */
37   -@Component
38   -@WebService(
39   - name = "LD_ServiceSoap",
40   - portName = "LD_ServiceSoap",
41   - serviceName = "LD_Service",
42   - targetNamespace = "http://control.bsth.com/",
43   - endpointInterface = "com.bsth.server_ws.waybill.LD_Service")
44   -public class LD_ServiceSoap implements LD_Service, ApplicationContextAware {
45   -
46   - static OilRedisService oilRedisService;
47   - static ElecRedisService elecRedisService;
48   - static ScheduleRedisService scheduleRedisService;
49   - static DutyEmployeeRepository dutyEmployeeRepository;
50   -
51   - static UserService userService;
52   -
53   - Logger logger = LoggerFactory.getLogger(this.getClass());
54   -
55   - private static DateTimeFormatter fmtyyyyMMddHHmm = DateTimeFormat.forPattern("yyyy-MM-ddHH:mm"),
56   - fmtyyyyMMdd = DateTimeFormat.forPattern("yyyy-MM-dd");
57   -
58   - @Override
59   - public boolean waybill_NH(String password, String rq, String companyId, Holder<NH_waybill[]> result, Holder<String> fError) {
60   - try {
61   - if(userService.get(password) == null){
62   - fError.value = "无效的密码!";
63   - return false;
64   - }
65   - //日期减一天,老接口是这样的
66   - //rq = fmtyyyyMMdd.print(fmtyyyyMMdd.parseDateTime(rq).minusDays(1));
67   - String prveRq = fmtyyyyMMdd.print(fmtyyyyMMdd.parseDateTime(rq).minusDays(1));
68   -
69   - //实际排班
70   - ArrayListMultimap<String, ScheduleRealInfo> listMap = scheduleRedisService.findByDateAndGroupByNbbm(prveRq, companyId);
71   - //油耗信息
72   - ArrayListMultimap<String, OilInfo> oilInfoMap = oilRedisService.findByNbbmGroup(listMap.keySet(), prveRq);
73   - //电耗信息
74   - ArrayListMultimap<String, ElecInfo> elecInfoMap = elecRedisService.findByNbbmGroup(listMap.keySet(), prveRq);
75   - //当班调派
76   - long st = fmtyyyyMMddHHmm.parseMillis(prveRq + "00:00"), et = fmtyyyyMMddHHmm.parseMillis(prveRq + "23:59");
77   - List<DutyEmployee> des = dutyEmployeeRepository.findByTime(st, et);
78   - //转换成南汇路单需要的格式
79   - NH_waybill[] array = WSDataConver.to_waybill_NH(listMap, oilInfoMap, elecInfoMap, des);
80   - result.value = array;
81   -
82   - //不再代理老接口数据
83   - /*if(companyId.equals("26") && !WebServiceProxy.isAllNew(companyId)){
84   - ClsLDInfo[] oldArray = OldWSClient.getNH_LD(companyId, rq);
85   - //合并新老系统的数据
86   - result.value = WebServiceProxy.mergerData(result.value, oldArray, companyId);
87   - }*/
88   - } catch (Exception e) {
89   - logger.error("", e);
90   - fError.value = "服务器出现异常!";
91   - return false;
92   - }
93   - return true;
94   - }
95   -
96   - @Override
97   - public boolean waybill_NH4TH(String password, String rq, String companyId, Holder<NH_waybill[]> result, Holder<String> fError) {
98   - try {
99   - if(userService.get(password) == null){
100   - fError.value = "无效的密码!";
101   - return false;
102   - }
103   - //日期减一天,老接口是这样的
104   - //rq = fmtyyyyMMdd.print(fmtyyyyMMdd.parseDateTime(rq).minusDays(1));
105   - String prveRq = fmtyyyyMMdd.print(fmtyyyyMMdd.parseDateTime(rq).minusDays(1));
106   -
107   - //实际排班
108   - ArrayListMultimap<String, ScheduleRealInfo> listMap = scheduleRedisService.findByDateAndGroupByNbbm(prveRq, companyId);
109   - //油耗信息
110   - ArrayListMultimap<String, OilInfo> oilInfoMap = oilRedisService.findByNbbmGroup(listMap.keySet(), prveRq);
111   - //电耗信息
112   - ArrayListMultimap<String, ElecInfo> elecInfoMap = elecRedisService.findByNbbmGroup(listMap.keySet(), prveRq);
113   - //当班调派
114   - long st = fmtyyyyMMddHHmm.parseMillis(prveRq + "00:00"), et = fmtyyyyMMddHHmm.parseMillis(prveRq + "23:59");
115   - List<DutyEmployee> des = dutyEmployeeRepository.findByTime(st, et);
116   - //转换成南汇路单需要的格式
117   - NH_waybill[] array = WSDataConver.to_waybill_NH4TH(listMap, oilInfoMap, elecInfoMap, des);
118   - result.value = array;
119   -
120   - //不再代理老接口数据
121   - /*if(companyId.equals("26") && !WebServiceProxy.isAllNew(companyId)){
122   - ClsLDInfo[] oldArray = OldWSClient.getNH_LD(companyId, rq);
123   - //合并新老系统的数据
124   - result.value = WebServiceProxy.mergerData(result.value, oldArray, companyId);
125   - }*/
126   - } catch (Exception e) {
127   - logger.error("", e);
128   - fError.value = "服务器出现异常!";
129   - return false;
130   - }
131   - return true;
132   - }
133   -
134   - @Override
135   - public boolean waybill_SN(String password, String rq, String companyId, Holder<SN_waybill[]> result, Holder<String> fError) {
136   - try {
137   - if(userService.get(password) == null){
138   - fError.value = "无效的密码!";
139   - return false;
140   - }
141   -
142   - //实际排班
143   - ArrayListMultimap<String, ScheduleRealInfo> listMap = scheduleRedisService.findByDateAndGroupByNbbm(rq, companyId);
144   - //油耗信息
145   - Map<String, OilInfo> oilInfoMap = oilRedisService.findByNbbmGroupRaw(listMap.keySet(), rq);
146   - //转换成上南路单需要的格式
147   - SN_waybill[] array = WSDataConver.to_waybill_SN(listMap, oilInfoMap);
148   - result.value = array;
149   - } catch (Exception e) {
150   - logger.error("", e);
151   - fError.value = "服务器出现异常!";
152   - return false;
153   - }
154   - return true;
155   - }
156   -
157   - @Override
158   - public boolean lossMileage(String password, String rq, String companyId, Holder<SN_lossMileage[]> result, Holder<String> fError) {
159   - try {
160   - if(userService.get(password) == null){
161   - fError.value = "无效的密码!";
162   - return false;
163   - }
164   -
165   - //按线路分组的实际排班
166   - ArrayListMultimap<String, ScheduleRealInfo> listMap = scheduleRedisService.findByDateAndGroupByLine(rq, companyId);
167   - //转换成上南需要的损失公里数据
168   - SN_lossMileage[] array = WSDataConver.to_lossMileage_SN(listMap);
169   - result.value = array;
170   - } catch (Exception e) {
171   - logger.error("", e);
172   - fError.value = "服务器出现异常!";
173   - return false;
174   - }
175   - return false;
176   - }
177   -
178   -
179   - @Override
180   - public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
181   - oilRedisService = applicationContext.getBean(OilRedisService.class);
182   - elecRedisService = applicationContext.getBean(ElecRedisService.class);
183   - scheduleRedisService = applicationContext.getBean(ScheduleRedisService.class);
184   - dutyEmployeeRepository = applicationContext.getBean(DutyEmployeeRepository.class);
185   - userService = applicationContext.getBean(UserService.class);
186   - }
187   -}
src/main/java/com/bsth/server_ws/waybill/entity/NH_waybill.java deleted 100644 → 0
1   -package com.bsth.server_ws.waybill.entity;
2   -
3   -import java.util.List;
4   -
5   -/**
6   - * 南汇路单数据格式
7   - * Created by panzhao on 2017/3/17.
8   - */
9   -public class NH_waybill {
10   -
11   - /** 车辆自编号 */
12   - private String m_strNBBM;
13   -
14   - /** 线路编码 */
15   - private String m_strXLBM;
16   -
17   - /** 日期 */
18   - private String m_strYYRQ;
19   -
20   - /** 详细 */
21   - private List<NH_waybillItem> m_SubInfos;
22   -
23   - public String getM_strNBBM() {
24   - return m_strNBBM;
25   - }
26   -
27   - public void setM_strNBBM(String m_strNBBM) {
28   - this.m_strNBBM = m_strNBBM;
29   - }
30   -
31   - public String getM_strXLBM() {
32   - return m_strXLBM;
33   - }
34   -
35   - public void setM_strXLBM(String m_strXLBM) {
36   - this.m_strXLBM = m_strXLBM;
37   - }
38   -
39   - public String getM_strYYRQ() {
40   - return m_strYYRQ;
41   - }
42   -
43   - public void setM_strYYRQ(String m_strYYRQ) {
44   - this.m_strYYRQ = m_strYYRQ;
45   - }
46   -
47   - public List<NH_waybillItem> getM_SubInfos() {
48   - return m_SubInfos;
49   - }
50   -
51   - public void setM_SubInfos(List<NH_waybillItem> m_SubInfos) {
52   - this.m_SubInfos = m_SubInfos;
53   - }
54   -}
src/main/java/com/bsth/server_ws/waybill/entity/NH_waybillItem.java deleted 100644 → 0
1   -package com.bsth.server_ws.waybill.entity;
2   -
3   -/**
4   - * 南汇路单格式细项(一单多人)
5   - * Created by panzhao on 2017/3/17.
6   - */
7   -public class NH_waybillItem {
8   -
9   - /** 出场存油 */
10   - private Double m_dblCCCY;
11   - /** 进场存油 */
12   - private Double m_dblJCCY;
13   - /** 加注量1 */
14   - private Double m_dblJZL1;
15   - /** 加注量2 */
16   - private Double m_dblJZL2;
17   - /** 尿素 */
18   - private Double m_dblNS;
19   - /** 消耗量 */
20   - private Double m_dblYH;
21   - /** 加油地点1 */
22   - private String m_strJYD1;
23   - /** 加油工工号1 */
24   - private String m_strJYG1;
25   - /** 油耗类型1 */
26   - private String m_strYHLX1;
27   -
28   - /** 加油地点2 */
29   - private String m_strJYD2;
30   - /** 加油工工号2 */
31   - private String m_strJYG2;
32   - /** 油耗类型2 */
33   - private String m_strYHLX2;
34   -
35   - /** 计划里程 */
36   - private Double m_dblJHLC;
37   - /** 实际计划公里 */
38   - private Double m_dblSJJHLC;
39   - /** 出场里程 */
40   - private Double m_dblCCLC;
41   - /** 进场里程 */
42   - private Double m_dblJCLC;
43   - /** 空驶公里 */
44   - private Double m_dblKSLC;
45   - /** 抽减公里 */
46   - private Double m_dblCJLC;
47   -
48   - /** 营业公里 */
49   - private Double m_dblYYLC;
50   - /** 增加公里 */
51   - private Double m_dblZJLC;
52   - /** 总公里 */
53   - private Double m_dblZLC;
54   -
55   - /** 抽减班次 */
56   - private int m_intCJBC;
57   - /** 计划班次 */
58   - private int m_intJHBC;
59   - /** 实际班次 */
60   - private int m_intSJBC;
61   - /** 实际计划班次 */
62   - private int m_intSJJHBC;
63   - /** 增加班次 */
64   - private int m_intZJBC;
65   -
66   -
67   - /** 烂班工时 */
68   - private Double m_dblLBGS;
69   - /** 烂班公里 */
70   - private Double m_dblLBLC;
71   - /** 烂班公里原因 */
72   - private String m_strLBYY;
73   - /** 抽减公里原因 */
74   - private String m_strCJYY;
75   -
76   - /** 备注 */
77   - private String m_strBZ;
78   -
79   - /** 路牌 */
80   - private String m_strLP;
81   - /** 当班调度员 */
82   - private String m_strDDY;
83   - /** 驾驶员工号 */
84   - private String m_strJSY;
85   - /** 售票员工号 */
86   - private String m_strSPY;
87   -
88   - /** 驾驶员考勤 */
89   - private String m_strJSYKQ;
90   - /** 售票员考勤 */
91   - private String m_strSPYKQ;
92   - /** 营运状态 */
93   - private String m_strYYZT;
94   -
95   - public Double getM_dblCCCY() {
96   - return m_dblCCCY;
97   - }
98   -
99   - public void setM_dblCCCY(Double m_dblCCCY) {
100   - this.m_dblCCCY = m_dblCCCY;
101   - }
102   -
103   - public Double getM_dblJCCY() {
104   - return m_dblJCCY;
105   - }
106   -
107   - public void setM_dblJCCY(Double m_dblJCCY) {
108   - this.m_dblJCCY = m_dblJCCY;
109   - }
110   -
111   - public Double getM_dblJZL1() {
112   - return m_dblJZL1;
113   - }
114   -
115   - public void setM_dblJZL1(Double m_dblJZL1) {
116   - this.m_dblJZL1 = m_dblJZL1;
117   - }
118   -
119   - public Double getM_dblJZL2() {
120   - return m_dblJZL2;
121   - }
122   -
123   - public void setM_dblJZL2(Double m_dblJZL2) {
124   - this.m_dblJZL2 = m_dblJZL2;
125   - }
126   -
127   - public Double getM_dblNS() {
128   - return m_dblNS;
129   - }
130   -
131   - public void setM_dblNS(Double m_dblNS) {
132   - this.m_dblNS = m_dblNS;
133   - }
134   -
135   - public Double getM_dblYH() {
136   - return m_dblYH;
137   - }
138   -
139   - public void setM_dblYH(Double m_dblYH) {
140   - this.m_dblYH = m_dblYH;
141   - }
142   -
143   - public String getM_strJYD1() {
144   - return m_strJYD1;
145   - }
146   -
147   - public void setM_strJYD1(String m_strJYD1) {
148   - this.m_strJYD1 = m_strJYD1;
149   - }
150   -
151   - public String getM_strJYG1() {
152   - return m_strJYG1;
153   - }
154   -
155   - public void setM_strJYG1(String m_strJYG1) {
156   - this.m_strJYG1 = m_strJYG1;
157   - }
158   -
159   - public String getM_strYHLX1() {
160   - return m_strYHLX1;
161   - }
162   -
163   - public void setM_strYHLX1(String m_strYHLX1) {
164   - this.m_strYHLX1 = m_strYHLX1;
165   - }
166   -
167   - public Double getM_dblJHLC() {
168   - return m_dblJHLC;
169   - }
170   -
171   - public void setM_dblJHLC(Double m_dblJHLC) {
172   - this.m_dblJHLC = m_dblJHLC;
173   - }
174   -
175   - public Double getM_dblSJJHLC() {
176   - return m_dblSJJHLC;
177   - }
178   -
179   - public void setM_dblSJJHLC(Double m_dblSJJHLC) {
180   - this.m_dblSJJHLC = m_dblSJJHLC;
181   - }
182   -
183   - public Double getM_dblCCLC() {
184   - return m_dblCCLC;
185   - }
186   -
187   - public void setM_dblCCLC(Double m_dblCCLC) {
188   - this.m_dblCCLC = m_dblCCLC;
189   - }
190   -
191   - public Double getM_dblJCLC() {
192   - return m_dblJCLC;
193   - }
194   -
195   - public void setM_dblJCLC(Double m_dblJCLC) {
196   - this.m_dblJCLC = m_dblJCLC;
197   - }
198   -
199   - public Double getM_dblKSLC() {
200   - return m_dblKSLC;
201   - }
202   -
203   - public void setM_dblKSLC(Double m_dblKSLC) {
204   - this.m_dblKSLC = m_dblKSLC;
205   - }
206   -
207   - public Double getM_dblCJLC() {
208   - return m_dblCJLC;
209   - }
210   -
211   - public void setM_dblCJLC(Double m_dblCJLC) {
212   - this.m_dblCJLC = m_dblCJLC;
213   - }
214   -
215   - public Double getM_dblYYLC() {
216   - return m_dblYYLC;
217   - }
218   -
219   - public void setM_dblYYLC(Double m_dblYYLC) {
220   - this.m_dblYYLC = m_dblYYLC;
221   - }
222   -
223   - public Double getM_dblZJLC() {
224   - return m_dblZJLC;
225   - }
226   -
227   - public void setM_dblZJLC(Double m_dblZJLC) {
228   - this.m_dblZJLC = m_dblZJLC;
229   - }
230   -
231   - public Double getM_dblZLC() {
232   - return m_dblZLC;
233   - }
234   -
235   - public void setM_dblZLC(Double m_dblZLC) {
236   - this.m_dblZLC = m_dblZLC;
237   - }
238   -
239   - public int getM_intCJBC() {
240   - return m_intCJBC;
241   - }
242   -
243   - public void setM_intCJBC(int m_intCJBC) {
244   - this.m_intCJBC = m_intCJBC;
245   - }
246   -
247   - public int getM_intJHBC() {
248   - return m_intJHBC;
249   - }
250   -
251   - public void setM_intJHBC(int m_intJHBC) {
252   - this.m_intJHBC = m_intJHBC;
253   - }
254   -
255   - public int getM_intSJBC() {
256   - return m_intSJBC;
257   - }
258   -
259   - public void setM_intSJBC(int m_intSJBC) {
260   - this.m_intSJBC = m_intSJBC;
261   - }
262   -
263   - public int getM_intSJJHBC() {
264   - return m_intSJJHBC;
265   - }
266   -
267   - public void setM_intSJJHBC(int m_intSJJHBC) {
268   - this.m_intSJJHBC = m_intSJJHBC;
269   - }
270   -
271   - public int getM_intZJBC() {
272   - return m_intZJBC;
273   - }
274   -
275   - public void setM_intZJBC(int m_intZJBC) {
276   - this.m_intZJBC = m_intZJBC;
277   - }
278   -
279   - public Double getM_dblLBGS() {
280   - return m_dblLBGS;
281   - }
282   -
283   - public void setM_dblLBGS(Double m_dblLBGS) {
284   - this.m_dblLBGS = m_dblLBGS;
285   - }
286   -
287   - public Double getM_dblLBLC() {
288   - return m_dblLBLC;
289   - }
290   -
291   - public void setM_dblLBLC(Double m_dblLBLC) {
292   - this.m_dblLBLC = m_dblLBLC;
293   - }
294   -
295   - public String getM_strLBYY() {
296   - return m_strLBYY;
297   - }
298   -
299   - public void setM_strLBYY(String m_strLBYY) {
300   - this.m_strLBYY = m_strLBYY;
301   - }
302   -
303   - public String getM_strCJYY() {
304   - return m_strCJYY;
305   - }
306   -
307   - public void setM_strCJYY(String m_strCJYY) {
308   - this.m_strCJYY = m_strCJYY;
309   - }
310   -
311   - public String getM_strBZ() {
312   - return m_strBZ;
313   - }
314   -
315   - public void setM_strBZ(String m_strBZ) {
316   - this.m_strBZ = m_strBZ;
317   - }
318   -
319   - public String getM_strLP() {
320   - return m_strLP;
321   - }
322   -
323   - public void setM_strLP(String m_strLP) {
324   - this.m_strLP = m_strLP;
325   - }
326   -
327   - public String getM_strDDY() {
328   - return m_strDDY;
329   - }
330   -
331   - public void setM_strDDY(String m_strDDY) {
332   - this.m_strDDY = m_strDDY;
333   - }
334   -
335   - public String getM_strJSY() {
336   - return m_strJSY;
337   - }
338   -
339   - public void setM_strJSY(String m_strJSY) {
340   - this.m_strJSY = m_strJSY;
341   - }
342   -
343   - public String getM_strSPY() {
344   - return m_strSPY;
345   - }
346   -
347   - public void setM_strSPY(String m_strSPY) {
348   - this.m_strSPY = m_strSPY;
349   - }
350   -
351   - public String getM_strJSYKQ() {
352   - return m_strJSYKQ;
353   - }
354   -
355   - public void setM_strJSYKQ(String m_strJSYKQ) {
356   - this.m_strJSYKQ = m_strJSYKQ;
357   - }
358   -
359   - public String getM_strSPYKQ() {
360   - return m_strSPYKQ;
361   - }
362   -
363   - public void setM_strSPYKQ(String m_strSPYKQ) {
364   - this.m_strSPYKQ = m_strSPYKQ;
365   - }
366   -
367   - public String getM_strYYZT() {
368   - return m_strYYZT;
369   - }
370   -
371   - public void setM_strYYZT(String m_strYYZT) {
372   - this.m_strYYZT = m_strYYZT;
373   - }
374   -
375   - public String getM_strJYD2() {
376   - return m_strJYD2;
377   - }
378   -
379   - public void setM_strJYD2(String m_strJYD2) {
380   - this.m_strJYD2 = m_strJYD2;
381   - }
382   -
383   - public String getM_strJYG2() {
384   - return m_strJYG2;
385   - }
386   -
387   - public void setM_strJYG2(String m_strJYG2) {
388   - this.m_strJYG2 = m_strJYG2;
389   - }
390   -
391   - public String getM_strYHLX2() {
392   - return m_strYHLX2;
393   - }
394   -
395   - public void setM_strYHLX2(String m_strYHLX2) {
396   - this.m_strYHLX2 = m_strYHLX2;
397   - }
398   -}
src/main/java/com/bsth/server_ws/waybill/entity/SN_lossMileage.java deleted 100644 → 0
1   -package com.bsth.server_ws.waybill.entity;
2   -
3   -/**
4   - * 上南损失公里数据格式
5   - * Created by panzhao on 2017/3/23.
6   - */
7   -public class SN_lossMileage {
8   -
9   - /** 线路编号 */
10   - private String line_id;
11   -
12   - /** 营运日期 */
13   - private String work_date;
14   -
15   - /** 分公司编号 */
16   - private String comp_id;
17   -
18   - /** 少驶公里 */
19   - private double loss_way;
20   -
21   - /** 实际公里 */
22   - private double act_way;
23   -
24   - /** 计划公里 */
25   - private double jh_way;
26   -
27   - /** 路阻损失公里 */
28   - private double loss_lz;
29   -
30   - /** 吊慢损失公里 */
31   - private double loss_dm;
32   -
33   - /** 故障损失公里 */
34   - private double loss_gz;
35   -
36   - /** 纠纷损失公里 */
37   - private double loss_jf;
38   -
39   - /** 肇事损失公里 */
40   - private double loss_zs;
41   -
42   - /** 缺人损失公里 */
43   - private double loss_qr;
44   -
45   - /** 缺车损失公里 */
46   - private double loss_qc;
47   -
48   - /** 客稀损失公里 */
49   - private double loss_kx;
50   -
51   - /** 另加损失公里 */
52   - private double loss_lj;
53   -
54   - /** 其他损失公里 */
55   - private double loss_qt;
56   -
57   - /** 配车损失公里 */
58   - private double loss_pc;
59   -
60   - /** 保养损失公里 */
61   - private double loss_by;
62   -
63   - /** 气候损失公里 */
64   - private double loss_qh;
65   -
66   - /** 援外损失公里 */
67   - private double loss_yw;
68   -
69   - /** 抽减损失公里 */
70   - private double loss_cj;
71   -
72   - /** 实际班次 */
73   - private int act_num;
74   -
75   - /** 早班班次 */
76   - private int early_num;
77   -
78   - /** 晚班班次 */
79   - private int late_num;
80   -
81   - /** 另加班次 */
82   - private int l_act_num;
83   -
84   - /** 早班另加班次 */
85   - private int l_early_num;
86   -
87   - /** 晚班另加班次 */
88   - private int l_late_num;
89   -
90   - /** 计划班次 */
91   - private int j_act_num;
92   -
93   - /** 早班计划班次 */
94   - private int j_early_num;
95   -
96   - /** 晚班计划班次 */
97   - private int j_late_num;
98   -
99   - /** 放站班次 */
100   - private int f_act_bc;
101   -
102   - /** 早班放站班次 */
103   - private int f_early_bc;
104   -
105   - /** 晚班放站班次 */
106   - private int f_late_bc;
107   -
108   - /** 调头班次 */
109   - private int dt_act_bc;
110   -
111   - /** 早班调头班次 */
112   - private int dt_early_bc;
113   -
114   - /** 晚班调头班次 */
115   - private int dt_late_bc;
116   -
117   - /** 早班大间隔班次 */
118   - private int d_early_num;
119   -
120   - /** 晚班大间隔班次 */
121   - private int d_late_num;
122   -
123   - /** 大间隔班次 */
124   - private int d_act_num;
125   -
126   - /** 最大间隔时间 */
127   - private int d_act_max;
128   -
129   - /** 故障分 */
130   - private int loss_gzf;
131   -
132   - /** 故障次数 */
133   - private int loss_gzcs;
134   -
135   - public String getLine_id() {
136   - return line_id;
137   - }
138   -
139   - public void setLine_id(String line_id) {
140   - this.line_id = line_id;
141   - }
142   -
143   - public String getWork_date() {
144   - return work_date;
145   - }
146   -
147   - public void setWork_date(String work_date) {
148   - this.work_date = work_date;
149   - }
150   -
151   - public String getComp_id() {
152   - return comp_id;
153   - }
154   -
155   - public void setComp_id(String comp_id) {
156   - this.comp_id = comp_id;
157   - }
158   -
159   - public double getLoss_way() {
160   - return loss_way;
161   - }
162   -
163   - public void setLoss_way(double loss_way) {
164   - this.loss_way = loss_way;
165   - }
166   -
167   - public double getAct_way() {
168   - return act_way;
169   - }
170   -
171   - public void setAct_way(double act_way) {
172   - this.act_way = act_way;
173   - }
174   -
175   - public double getJh_way() {
176   - return jh_way;
177   - }
178   -
179   - public void setJh_way(double jh_way) {
180   - this.jh_way = jh_way;
181   - }
182   -
183   - public double getLoss_lz() {
184   - return loss_lz;
185   - }
186   -
187   - public void setLoss_lz(double loss_lz) {
188   - this.loss_lz = loss_lz;
189   - }
190   -
191   - public double getLoss_dm() {
192   - return loss_dm;
193   - }
194   -
195   - public void setLoss_dm(double loss_dm) {
196   - this.loss_dm = loss_dm;
197   - }
198   -
199   - public double getLoss_gz() {
200   - return loss_gz;
201   - }
202   -
203   - public void setLoss_gz(double loss_gz) {
204   - this.loss_gz = loss_gz;
205   - }
206   -
207   - public double getLoss_jf() {
208   - return loss_jf;
209   - }
210   -
211   - public void setLoss_jf(double loss_jf) {
212   - this.loss_jf = loss_jf;
213   - }
214   -
215   - public double getLoss_zs() {
216   - return loss_zs;
217   - }
218   -
219   - public void setLoss_zs(double loss_zs) {
220   - this.loss_zs = loss_zs;
221   - }
222   -
223   - public double getLoss_qr() {
224   - return loss_qr;
225   - }
226   -
227   - public void setLoss_qr(double loss_qr) {
228   - this.loss_qr = loss_qr;
229   - }
230   -
231   - public double getLoss_qc() {
232   - return loss_qc;
233   - }
234   -
235   - public void setLoss_qc(double loss_qc) {
236   - this.loss_qc = loss_qc;
237   - }
238   -
239   - public double getLoss_kx() {
240   - return loss_kx;
241   - }
242   -
243   - public void setLoss_kx(double loss_kx) {
244   - this.loss_kx = loss_kx;
245   - }
246   -
247   - public double getLoss_lj() {
248   - return loss_lj;
249   - }
250   -
251   - public void setLoss_lj(double loss_lj) {
252   - this.loss_lj = loss_lj;
253   - }
254   -
255   - public double getLoss_qt() {
256   - return loss_qt;
257   - }
258   -
259   - public void setLoss_qt(double loss_qt) {
260   - this.loss_qt = loss_qt;
261   - }
262   -
263   - public int getAct_num() {
264   - return act_num;
265   - }
266   -
267   - public void setAct_num(int act_num) {
268   - this.act_num = act_num;
269   - }
270   -
271   - public int getEarly_num() {
272   - return early_num;
273   - }
274   -
275   - public void setEarly_num(int early_num) {
276   - this.early_num = early_num;
277   - }
278   -
279   - public int getLate_num() {
280   - return late_num;
281   - }
282   -
283   - public void setLate_num(int late_num) {
284   - this.late_num = late_num;
285   - }
286   -
287   - public int getL_act_num() {
288   - return l_act_num;
289   - }
290   -
291   - public void setL_act_num(int l_act_num) {
292   - this.l_act_num = l_act_num;
293   - }
294   -
295   - public int getL_early_num() {
296   - return l_early_num;
297   - }
298   -
299   - public void setL_early_num(int l_early_num) {
300   - this.l_early_num = l_early_num;
301   - }
302   -
303   - public int getL_late_num() {
304   - return l_late_num;
305   - }
306   -
307   - public void setL_late_num(int l_late_num) {
308   - this.l_late_num = l_late_num;
309   - }
310   -
311   - public int getJ_act_num() {
312   - return j_act_num;
313   - }
314   -
315   - public void setJ_act_num(int j_act_num) {
316   - this.j_act_num = j_act_num;
317   - }
318   -
319   - public int getJ_early_num() {
320   - return j_early_num;
321   - }
322   -
323   - public void setJ_early_num(int j_early_num) {
324   - this.j_early_num = j_early_num;
325   - }
326   -
327   - public int getJ_late_num() {
328   - return j_late_num;
329   - }
330   -
331   - public void setJ_late_num(int j_late_num) {
332   - this.j_late_num = j_late_num;
333   - }
334   -
335   - public int getF_act_bc() {
336   - return f_act_bc;
337   - }
338   -
339   - public void setF_act_bc(int f_act_bc) {
340   - this.f_act_bc = f_act_bc;
341   - }
342   -
343   - public int getF_early_bc() {
344   - return f_early_bc;
345   - }
346   -
347   - public void setF_early_bc(int f_early_bc) {
348   - this.f_early_bc = f_early_bc;
349   - }
350   -
351   - public int getF_late_bc() {
352   - return f_late_bc;
353   - }
354   -
355   - public void setF_late_bc(int f_late_bc) {
356   - this.f_late_bc = f_late_bc;
357   - }
358   -
359   - public int getDt_act_bc() {
360   - return dt_act_bc;
361   - }
362   -
363   - public void setDt_act_bc(int dt_act_bc) {
364   - this.dt_act_bc = dt_act_bc;
365   - }
366   -
367   - public int getDt_early_bc() {
368   - return dt_early_bc;
369   - }
370   -
371   - public void setDt_early_bc(int dt_early_bc) {
372   - this.dt_early_bc = dt_early_bc;
373   - }
374   -
375   - public int getDt_late_bc() {
376   - return dt_late_bc;
377   - }
378   -
379   - public void setDt_late_bc(int dt_late_bc) {
380   - this.dt_late_bc = dt_late_bc;
381   - }
382   -
383   - public int getD_early_num() {
384   - return d_early_num;
385   - }
386   -
387   - public void setD_early_num(int d_early_num) {
388   - this.d_early_num = d_early_num;
389   - }
390   -
391   - public int getD_late_num() {
392   - return d_late_num;
393   - }
394   -
395   - public void setD_late_num(int d_late_num) {
396   - this.d_late_num = d_late_num;
397   - }
398   -
399   - public int getD_act_num() {
400   - return d_act_num;
401   - }
402   -
403   - public void setD_act_num(int d_act_num) {
404   - this.d_act_num = d_act_num;
405   - }
406   -
407   - public int getD_act_max() {
408   - return d_act_max;
409   - }
410   -
411   - public void setD_act_max(int d_act_max) {
412   - this.d_act_max = d_act_max;
413   - }
414   -
415   - public int getLoss_gzf() {
416   - return loss_gzf;
417   - }
418   -
419   - public void setLoss_gzf(int loss_gzf) {
420   - this.loss_gzf = loss_gzf;
421   - }
422   -
423   - public int getLoss_gzcs() {
424   - return loss_gzcs;
425   - }
426   -
427   - public void setLoss_gzcs(int loss_gzcs) {
428   - this.loss_gzcs = loss_gzcs;
429   - }
430   -
431   - public double getLoss_pc() {
432   - return loss_pc;
433   - }
434   -
435   - public void setLoss_pc(double loss_pc) {
436   - this.loss_pc = loss_pc;
437   - }
438   -
439   - public double getLoss_by() {
440   - return loss_by;
441   - }
442   -
443   - public void setLoss_by(double loss_by) {
444   - this.loss_by = loss_by;
445   - }
446   -
447   - public double getLoss_qh() {
448   - return loss_qh;
449   - }
450   -
451   - public void setLoss_qh(double loss_qh) {
452   - this.loss_qh = loss_qh;
453   - }
454   -
455   - public double getLoss_yw() {
456   - return loss_yw;
457   - }
458   -
459   - public void setLoss_yw(double loss_yw) {
460   - this.loss_yw = loss_yw;
461   - }
462   -
463   - public double getLoss_cj() {
464   - return loss_cj;
465   - }
466   -
467   - public void setLoss_cj(double loss_cj) {
468   - this.loss_cj = loss_cj;
469   - }
470   -}
src/main/java/com/bsth/server_ws/waybill/entity/SN_waybill.java deleted 100644 → 0
1   -package com.bsth.server_ws.waybill.entity;
2   -
3   -import java.util.List;
4   -
5   -/**
6   - * 上南路单格式
7   - * Created by panzhao on 2017/3/23.
8   - */
9   -public class SN_waybill {
10   -
11   - /** 线路编号 */
12   - private String line_no;
13   -
14   - /** 营运日期 */
15   - private String work_date;
16   -
17   - /** 车辆编号 */
18   - private String car_id;
19   -
20   - /** 分公司编码 */
21   - private String comp_id;
22   -
23   - /** 路牌号 */
24   - private String guidecard;
25   -
26   - /** 实际班次 */
27   - private int act_num;
28   -
29   - /** 晚班实际班次 */
30   - private int l_act_num;
31   -
32   - /** 营业里程 */
33   - private double work_way;
34   -
35   - /** 空驶里程 */
36   - private double leisure_way;
37   -
38   - /** 总里程 */
39   - private double count_way;
40   -
41   - /** 路单类型(0普通,1包车) */
42   - private String ld_type;
43   -
44   - /** 油料类型 */
45   - private String oil_type;
46   -
47   - /** 出厂存油 */
48   - private double out_oil;
49   -
50   - /** 油料加注 */
51   - private double add_oil;
52   -
53   - /** 进场存油 */
54   - private double end_oil;
55   -
56   - /** 油料消耗 */
57   - private double expend_oil;
58   -
59   - /** 非营业用油类型 非营业用油类型(1.常规车2.包车3.加开包车) */
60   - private String nowork_oil_type;
61   -
62   - /** 非营业用油 */
63   - private double nowork_oil;
64   -
65   - /** 非营业用油油耗量(保养用油) */
66   - private double nowork_oil1;
67   -
68   - /** 非营业用油油耗量(票务用油) */
69   - private double nowork_oil2;
70   -
71   - /** 非营业用油油耗量(其他用油) */
72   - private double nowork_oil3;
73   -
74   - /** 营业用油 */
75   - private double work_oil;
76   -
77   - /** 其他营业用油s */
78   - private double qt_work_oil;
79   -
80   - /** 路单细项 */
81   - List<SN_waybillItem> driver_detail;
82   -
83   - public String getLine_no() {
84   - return line_no;
85   - }
86   -
87   - public void setLine_no(String line_no) {
88   - this.line_no = line_no;
89   - }
90   -
91   - public String getWork_date() {
92   - return work_date;
93   - }
94   -
95   - public void setWork_date(String work_date) {
96   - this.work_date = work_date;
97   - }
98   -
99   - public String getCar_id() {
100   - return car_id;
101   - }
102   -
103   - public void setCar_id(String car_id) {
104   - this.car_id = car_id;
105   - }
106   -
107   - public String getComp_id() {
108   - return comp_id;
109   - }
110   -
111   - public void setComp_id(String comp_id) {
112   - this.comp_id = comp_id;
113   - }
114   -
115   - public String getGuidecard() {
116   - return guidecard;
117   - }
118   -
119   - public void setGuidecard(String guidecard) {
120   - this.guidecard = guidecard;
121   - }
122   -
123   - public int getAct_num() {
124   - return act_num;
125   - }
126   -
127   - public void setAct_num(int act_num) {
128   - this.act_num = act_num;
129   - }
130   -
131   - public int getL_act_num() {
132   - return l_act_num;
133   - }
134   -
135   - public void setL_act_num(int l_act_num) {
136   - this.l_act_num = l_act_num;
137   - }
138   -
139   - public double getWork_way() {
140   - return work_way;
141   - }
142   -
143   - public void setWork_way(double work_way) {
144   - this.work_way = work_way;
145   - }
146   -
147   - public double getLeisure_way() {
148   - return leisure_way;
149   - }
150   -
151   - public void setLeisure_way(double leisure_way) {
152   - this.leisure_way = leisure_way;
153   - }
154   -
155   - public double getCount_way() {
156   - return count_way;
157   - }
158   -
159   - public void setCount_way(double count_way) {
160   - this.count_way = count_way;
161   - }
162   -
163   - public String getLd_type() {
164   - return ld_type;
165   - }
166   -
167   - public void setLd_type(String ld_type) {
168   - this.ld_type = ld_type;
169   - }
170   -
171   - public String getOil_type() {
172   - return oil_type;
173   - }
174   -
175   - public void setOil_type(String oil_type) {
176   - this.oil_type = oil_type;
177   - }
178   -
179   - public double getOut_oil() {
180   - return out_oil;
181   - }
182   -
183   - public void setOut_oil(double out_oil) {
184   - this.out_oil = out_oil;
185   - }
186   -
187   - public double getAdd_oil() {
188   - return add_oil;
189   - }
190   -
191   - public void setAdd_oil(double add_oil) {
192   - this.add_oil = add_oil;
193   - }
194   -
195   - public double getEnd_oil() {
196   - return end_oil;
197   - }
198   -
199   - public void setEnd_oil(double end_oil) {
200   - this.end_oil = end_oil;
201   - }
202   -
203   - public double getExpend_oil() {
204   - return expend_oil;
205   - }
206   -
207   - public void setExpend_oil(double expend_oil) {
208   - this.expend_oil = expend_oil;
209   - }
210   -
211   - public String getNowork_oil_type() {
212   - return nowork_oil_type;
213   - }
214   -
215   - public void setNowork_oil_type(String nowork_oil_type) {
216   - this.nowork_oil_type = nowork_oil_type;
217   - }
218   -
219   - public double getNowork_oil() {
220   - return nowork_oil;
221   - }
222   -
223   - public void setNowork_oil(double nowork_oil) {
224   - this.nowork_oil = nowork_oil;
225   - }
226   -
227   - public double getNowork_oil1() {
228   - return nowork_oil1;
229   - }
230   -
231   - public void setNowork_oil1(double nowork_oil1) {
232   - this.nowork_oil1 = nowork_oil1;
233   - }
234   -
235   - public double getNowork_oil2() {
236   - return nowork_oil2;
237   - }
238   -
239   - public void setNowork_oil2(double nowork_oil2) {
240   - this.nowork_oil2 = nowork_oil2;
241   - }
242   -
243   - public double getNowork_oil3() {
244   - return nowork_oil3;
245   - }
246   -
247   - public void setNowork_oil3(double nowork_oil3) {
248   - this.nowork_oil3 = nowork_oil3;
249   - }
250   -
251   - public double getWork_oil() {
252   - return work_oil;
253   - }
254   -
255   - public void setWork_oil(double work_oil) {
256   - this.work_oil = work_oil;
257   - }
258   -
259   - public double getQt_work_oil() {
260   - return qt_work_oil;
261   - }
262   -
263   - public void setQt_work_oil(double qt_work_oil) {
264   - this.qt_work_oil = qt_work_oil;
265   - }
266   -
267   - public List<SN_waybillItem> getDriver_detail() {
268   - return driver_detail;
269   - }
270   -
271   - public void setDriver_detail(List<SN_waybillItem> driver_detail) {
272   - this.driver_detail = driver_detail;
273   - }
274   -}
src/main/java/com/bsth/server_ws/waybill/entity/SN_waybillItem.java deleted 100644 → 0
1   -package com.bsth.server_ws.waybill.entity;
2   -
3   -/**
4   - * 上南路单细项(一单多人)
5   - * Created by panzhao on 2017/3/23.
6   - */
7   -public class SN_waybillItem {
8   -
9   - /** 司机编号 */
10   - private String driver_no;
11   -
12   - /** 司机名称 */
13   - private String driver_name;
14   -
15   - /** 售票员编号 */
16   - private String busman_no;
17   -
18   - /** 售票员名称 */
19   - private String busman_name;
20   -
21   - /** 行驶里程 */
22   - private double driver_way;
23   -
24   - /** 柴油加注量、电加注量同一字段 */
25   - private double do_oil_2;
26   -
27   - /** 空驶公里 */
28   - private double ks_way;
29   -
30   - public String getDriver_no() {
31   - return driver_no;
32   - }
33   -
34   - public void setDriver_no(String driver_no) {
35   - this.driver_no = driver_no;
36   - }
37   -
38   - public String getDriver_name() {
39   - return driver_name;
40   - }
41   -
42   - public void setDriver_name(String driver_name) {
43   - this.driver_name = driver_name;
44   - }
45   -
46   - public String getBusman_no() {
47   - return busman_no;
48   - }
49   -
50   - public void setBusman_no(String busman_no) {
51   - this.busman_no = busman_no;
52   - }
53   -
54   - public String getBusman_name() {
55   - return busman_name;
56   - }
57   -
58   - public void setBusman_name(String busman_name) {
59   - this.busman_name = busman_name;
60   - }
61   -
62   - public double getDriver_way() {
63   - return driver_way;
64   - }
65   -
66   - public void setDriver_way(double driver_way) {
67   - this.driver_way = driver_way;
68   - }
69   -
70   - public double getDo_oil_2() {
71   - return do_oil_2;
72   - }
73   -
74   - public void setDo_oil_2(double do_oil_2) {
75   - this.do_oil_2 = do_oil_2;
76   - }
77   -
78   - public double getKs_way() {
79   - return ks_way;
80   - }
81   -
82   - public void setKs_way(double ks_way) {
83   - this.ks_way = ks_way;
84   - }
85   -}
src/main/resources/application-prod.properties
1   -server.port=9089
2   -management.port= 9001
3   -management.address= 127.0.0.1
4   -
5   -spring.jpa.hibernate.ddl-auto= none
6   -spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy
7   -#DATABASE
8   -spring.jpa.database= MYSQL
9   -spring.jpa.show-sql= false
10   -spring.datasource.driver-class-name= com.mysql.jdbc.Driver
11   -spring.datasource.url= jdbc:mysql://10.10.150.103:3306/control?useUnicode=true&characterEncoding=utf-8&useSSL=false
12   -spring.datasource.username= root
13   -spring.datasource.password= Aa123456
14   -#DATASOURCE
15   -spring.datasource.max-active=100
16   -spring.datasource.max-idle=8
17   -spring.datasource.min-idle=8
18   -spring.datasource.initial-size=3
19   -
20   -spring.datasource.test-on-borrow=true
21   -spring.datasource.test-on-connect=true
22   -spring.datasource.test-on-return=true
23   -spring.datasource.test-while-idle=true
24   -spring.datasource.validation-query=select 1
25   -
26   -#REDIS
27   -spring.redis.database=0
28   -spring.redis.host=10.10.150.103
29   -spring.redis.password=bsth_control_001
30   -spring.redis.port=28008
31   -
32   -http.control.service_data_url= http://10.10.150.103:9088/companyService
33   -http.control.secret.key= dVPHJkWUt5FhMT7jrM2dLV7QvlHAmZFd42rs1P0usBx8A7HZki
34   -
35   -http.gps.real.url= http://10.10.150.103:8080/transport_server/rtgps/
36 1 \ No newline at end of file
  2 +server.port=9089
  3 +management.port= 9001
  4 +management.address= 127.0.0.1
  5 +
  6 +spring.jpa.hibernate.ddl-auto= none
  7 +spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy
  8 +#DATABASE
  9 +spring.jpa.database= MYSQL
  10 +spring.jpa.show-sql= false
  11 +spring.datasource.driver-class-name= com.mysql.jdbc.Driver
  12 +spring.datasource.url= jdbc:mysql://47.101.175.82/control?useUnicode=true&characterEncoding=utf-8&useSSL=false
  13 +spring.datasource.username= root
  14 +spring.datasource.password= root2jsp
  15 +#DATASOURCE
  16 +spring.datasource.max-active=100
  17 +spring.datasource.max-idle=8
  18 +spring.datasource.min-idle=8
  19 +spring.datasource.initial-size=3
  20 +
  21 +spring.datasource.test-on-borrow=true
  22 +spring.datasource.test-on-connect=true
  23 +spring.datasource.test-on-return=true
  24 +spring.datasource.test-while-idle=true
  25 +spring.datasource.validation-query=select 1
  26 +
  27 +http.gps.real.url= http://127.0.0.1:8080/transport_server/rtgps/
37 28 \ No newline at end of file
... ...
src/main/resources/ms-jdbc.properties deleted 100644 → 0
1   -#ms.mysql.driver= com.mysql.jdbc.Driver
2   -#ms.mysql.url= jdbc:mysql://127.0.0.1:3306/ms?useUnicode=true&characterEncoding=utf-8
3   -#ms.mysql.username= root
4   -#ms.mysql.password= panzhao
5   -
6   -ms.mysql.driver= com.mysql.jdbc.Driver
7   -ms.mysql.url= jdbc:mysql://10.10.150.103/ms?useUnicode=true&characterEncoding=utf-8
8   -ms.mysql.username= root
9   -ms.mysql.password= Aa123456
10 0 \ No newline at end of file
src/main/resources/xxfb-jdbc.properties deleted 100644 → 0
1   -#xxfb.mysql.driver= com.mysql.jdbc.Driver
2   -#xxfb.mysql.url= jdbc:mysql://127.0.0.1:3306/ms?useUnicode=true&characterEncoding=utf-8
3   -#xxfb.mysql.username= root
4   -#xxfb.mysql.password= panzhao
5   -
6   -xxfb.mysql.driver= com.mysql.jdbc.Driver
7   -xxfb.mysql.url= jdbc:mysql://10.10.150.113/info_publish?useUnicode=true&characterEncoding=utf-8
8   -xxfb.mysql.username= root
9   -xxfb.mysql.password= Aa123456
10 0 \ No newline at end of file