Commit be051f4d35c294c2f26509e3da481e6c1643bd60

Authored by ljq
1 parent 2e21b287

jp

Showing 97 changed files with 22 additions and 11 deletions
src/main/java/com/bsth/data/ddexam/DdexamThread.java
1 1 package com.bsth.data.ddexam;
2 2  
3   -import com.bsth.repository.sys.SysRepository;
  3 +import com.bsth.repository.sys.SysUserRepository;
4 4 import org.springframework.beans.factory.annotation.Autowired;
5 5 import org.springframework.stereotype.Component;
6 6  
... ...
src/main/java/com/bsth/repository/realcontrol/ScheduleRealInfoRepository.java
... ... @@ -237,5 +237,8 @@ public interface ScheduleRealInfoRepository extends BaseRepository<ScheduleRealI
237 237 @Query(value="select s.xlBm as xlBm,s.clZbh as clZbh from ScheduleRealInfo s where s.scheduleDateStr = ?1 and s.xlBm in (?2) GROUP BY s.xlBm, s.clZbh")
238 238 List<Map<String, Object>> selectclZbhGroup(String date, String[] t);
239 239  
  240 + @Query(value="select count(*) from ScheduleRealInfo s where s.scheduleDateStr = ?1 and s.xlBm = ?2")
  241 + int selectCountAll(String scheduleDateStr,String lineCode);
  242 +
240 243  
241 244 }
... ...
src/main/java/com/bsth/service/ddexam/impl/DdexamServiceImpl.java
... ... @@ -380,7 +380,7 @@ public class DdexamServiceImpl implements DdexamService {
380 380 Integer linecodeId = linebumber++ ;
381 381 line.setId(linecodeId);
382 382 line.setLineCode(linecodeId.toString());
383   - line.setName(mtline[j]+"+"+user.getName());
  383 + line.setName(mtline[j]+"-"+user.getName());
384 384 line.setCoLineCode(linest.getLineCode());
385 385 lineRepository.save(line); //线路添加
386 386 //----------------线路--------------------------//
... ... @@ -425,6 +425,10 @@ public class DdexamServiceImpl implements DdexamService {
425 425  
426 426 //添加排班
427 427 public void inforealType(Line line){
  428 + int t = ScheduleRealInfoRepository.selectCountAll(sdf.format(new Date()),line.getLineCode());
  429 + //鉴于有人员创建账号瞬间就初始化 修改人员状态慢了一步 在此多加一部判断
  430 + if(t > 0)
  431 + return;
428 432 //用旧线路code查出模板排班表
429 433 List<ScheduleRealInfoSt> sristList = ScheduleRealInfoStRepository.queryUserInfo(line.getCoLineCode(),"2021-11-18");//模板固定日期
430 434 List<ScheduleRealInfo> sriList = new ArrayList<>();
... ...
src/main/resources/application-dev.properties
... ... @@ -4,7 +4,7 @@ server.port=9088
4 4 dubbo.use=false
5 5  
6 6 #JPA
7   -spring.jpa.hibernate.ddl-auto= update
  7 +spring.jpa.hibernate.ddl-auto= none
8 8 spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
9 9 spring.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
10 10 spring.jpa.database= MYSQL
... ... @@ -33,6 +33,9 @@ spring.datasource.hikari.connection-timeout= 3000
33 33 spring.datasource.hikari.connection-test-query= SELECT 1
34 34 spring.datasource.hikari.validation-timeout= 3000
35 35  
  36 +jp.time = cmd /c time
  37 +jp.date = cmd /c date
  38 +
36 39 ## gps client data
37 40 http.gps.real.cache.url= http://10.10.150.24:12580/realGps/all
38 41 ## gateway real data
... ... @@ -40,4 +43,5 @@ http.gps.real.url= http://114.80.178.12:18080/transport_server/rtgps/
40 43 ## gateway send directive
41 44 http.send.directive = http://192.168.168.201:9090/transport_server/message/
42 45 ## rfid data
43   -http.rfid.url= http://114.80.178.12:29000/rfid
44 46 \ No newline at end of file
  47 +http.rfid.url= http://114.80.178.12:29000/rfid
  48 +
... ...
src/main/resources/control-jdbc.properties
1 1 station.mysql.driver= com.mysql.jdbc.Driver
2   -station.mysql.url= jdbc:mysql://10.10.200.121:3306/control?useUnicode=true&characterEncoding=utf-8&useSSL=false
  2 +station.mysql.url= jdbc:mysql://127.0.0.1/jp_control?useUnicode=true&characterEncoding=utf-8&useSSL=false
3 3 station.mysql.username= root
4   -station.mysql.password= root2jsp
  4 +station.mysql.password= root
5 5  
6 6 #station.mysql.driver= com.mysql.jdbc.Driver
7 7 #station.mysql.url= jdbc:mysql://10.10.200.121:3306/station?useUnicode=true&characterEncoding=utf-8
... ...
src/main/resources/logback.xml
... ... @@ -3,7 +3,7 @@
3 3 <configuration>
4 4  
5 5 <!-- <property resource="application.properties" /> -->
6   - <property name="LOG_BASE" value="E:/bsth_control_logs" />
  6 + <property name="LOG_BASE" value="D:/bsth_control_logs" />
7 7 <!-- 控制台输出 -->
8 8 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
9 9  
... ... @@ -17,7 +17,7 @@
17 17 <!-- 主日志文件 -->
18 18 <appender name="FILE"
19 19 class="ch.qos.logback.core.rolling.RollingFileAppender">
20   - <file>${LOG_BASE}/main/main.log</file>
  20 + <file>${LOG_BASE}/mainks/main.log</file>
21 21 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
22 22 <fileNamePattern>${LOG_BASE}/main/main-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
23 23 <timeBasedFileNamingAndTriggeringPolicy
... ...
src/main/resources/ms-jdbc.properties
... ... @@ -4,6 +4,6 @@
4 4 #ms.mysql.password= 123456
5 5  
6 6 ms.mysql.driver= com.mysql.jdbc.Driver
7   -ms.mysql.url= jdbc:mysql://10.10.150.122:3306/ms?useUnicode=true&characterEncoding=utf-8
  7 +ms.mysql.url= jdbc:mysql://127.0.0.17:3306/ms?useUnicode=true&characterEncoding=utf-8
8 8 ms.mysql.username= root
9   -ms.mysql.password= root2jsp
10 9 \ No newline at end of file
  10 +ms.mysql.password= root
11 11 \ No newline at end of file
... ...
src/main/resources/static/pages/base/line/addstation.html
... ... @@ -206,7 +206,7 @@
206 206 </div>
207 207 </div>
208 208 <script type="text/javascript">
209   -$('#add_station_mobal').on('AddStationMobal.show', function(e, addMap,ajaxd,staobj,editRoute,fun){
  209 +$('#add_station_mobal').on('add', function(e, addMap,ajaxd,staobj,editRoute,fun){
210 210 var Station = staobj;
211 211 var Line = editRoute.getLineObj();
212 212 // 延迟加载
... ...
src/main/resources/static/pages/forms/export/import_Jdl.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/export/import_Jygl.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/export/refuel.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/export/text.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/export/车辆充电量.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/account.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/allline.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/busInterval0.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/busInterval1.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/calcIntervalCount.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/calcIntervalList1.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/calcIntervalSum.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/calcLbStatuAnaly.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/calcSheetList.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/calcSheetList1.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/calcTurnoutrate.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/calcTurnoutrateZgf.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/calcjsyspy.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/calcsingledata.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/cardSheetList.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/cardSheetList1.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/cardSheetList2.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/changetochange.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/commandState.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/commandState1.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/commandState2.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/correctForm.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/countByBus1.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/countByBus1s.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/countByBus2.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/countByBus2s.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/countByLine.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/countByLines.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/countInterval.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/countIntervalXx.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/daily.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/energy_dlb.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/energy_ylb.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/executionrate.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/export_Jdl.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/firstAndLastBus.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/firstAndLastBus_delay.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/firstAndLastBus_map.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/firstAndLastBus_sum.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/historyMessage.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/inoutstation.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/interval.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/jd_daily.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/jobSummary.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/lbStatuAnaly.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/linepasswengerflow.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/list.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/listDl.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/message.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/oilListMonth.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/onTime.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/onTime1.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/onTime2.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/onlinelist.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/operationservice.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/peoCarPlan.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/repairReport.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/report_register.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/scheduleAnaly.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/scheduleAnaly_sum.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/scheduleDaily.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/scheduleDaily_df.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/scheduleDaily_m.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/schedulePlan.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/sheetList.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/sheetList1.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/sheetList2.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/shifday.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/shiftuehiclemanth.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/shiftuehiclemanthclzbh.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/shiftuehiclemanthspy.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/singledata.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/statisticsDaily_.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/statisticsDaily_2.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/statisticsDaily_3.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/timeAndSpeed.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/turnoutrate.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/vehicleloading.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/waybill.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/waybill_minhang.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/waybill_minhang_dl.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/waybill_qingpu.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/waybillday.xls 0 → 100644
No preview for this file type
src/main/resources/static/pages/forms/mould/workDaily.xls 0 → 100644
No preview for this file type