Commit a937be67c31b32aa8048b3cc88a9fff3f9e698f6

Authored by yiming
1 parent 244ef0fe

bf

bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/controller/BsthTLineController.java
@@ -230,13 +230,17 @@ public class BsthTLineController extends BaseController @@ -230,13 +230,17 @@ public class BsthTLineController extends BaseController
230 230
231 @PostMapping("/findByName") 231 @PostMapping("/findByName")
232 @ResponseBody 232 @ResponseBody
233 - public BsthTLine findByName(String name) 233 + public List<BsthTLine> findByName(String name)
234 { 234 {
235 BsthTLine bsthTLine = new BsthTLine(); 235 BsthTLine bsthTLine = new BsthTLine();
236 236
237 bsthTLine.setLineName(name); 237 bsthTLine.setLineName(name);
238 -  
239 - return bsthTLineService.selectBsthTLineList(bsthTLine).get(0); 238 + BsthTLine bsthTLineOld=bsthTLineService.selectBsthTLineList(bsthTLine).get(0);
  239 + BsthTLine bsthTLineNew=bsthTLineService.selectBsthTLineExamineByLineName(name);
  240 + List<BsthTLine> bsthTLines=new ArrayList<>();
  241 + bsthTLines.add(bsthTLineOld);
  242 + bsthTLines.add(bsthTLineNew);
  243 + return bsthTLines;
240 } 244 }
241 245
242 /** 246 /**
bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/service/impl/BsthTLineServiceImpl.java
@@ -260,8 +260,7 @@ public class BsthTLineServiceImpl implements IBsthTLineService @@ -260,8 +260,7 @@ public class BsthTLineServiceImpl implements IBsthTLineService
260 lineEditReport.setVehiclesNumber(history.getVehiclesNumber()); 260 lineEditReport.setVehiclesNumber(history.getVehiclesNumber());
261 lineEditReport.setNumberPerson(history.getNumberPerson()); 261 lineEditReport.setNumberPerson(history.getNumberPerson());
262 if(history.getStartDate()==null){ 262 if(history.getStartDate()==null){
263 - String date=LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd hh:mm:ss"));  
264 - lineEditReport.setStartDate(new Date(date)); 263 + lineEditReport.setStartDate(new Date());
265 }else { 264 }else {
266 lineEditReport.setStartDate(history.getStartDate()); 265 lineEditReport.setStartDate(history.getStartDate());
267 } 266 }
bsthLineProfiles/src/main/resources/mybatis/mybatis/system/BsthTLineMapper.xml
@@ -681,8 +681,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -681,8 +681,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
681 <if test="personAvg != null "> and person_avg = #{personAvg}</if> 681 <if test="personAvg != null "> and person_avg = #{personAvg}</if>
682 <if test="startDate != null "> and start_date = #{startDate}</if> 682 <if test="startDate != null "> and start_date = #{startDate}</if>
683 <if test="nightParking != null and nightParking != ''"> and night_parking = #{nightParking}</if> 683 <if test="nightParking != null and nightParking != ''"> and night_parking = #{nightParking}</if>
684 - <if test="examineStatus == 'true' "> and examine_status in(0,1)</if>  
685 - <if test="examineStatus == 'false' "> and examine_status =2</if> 684 + <if test="examineStatus != null"> and examine_status = #{examineStatus}</if>
686 <if test="examineType != null and examineType != ''"> and examine_type = #{examineType}</if> 685 <if test="examineType != null and examineType != ''"> and examine_type = #{examineType}</if>
687 <if test="createTimeStr != null and createTimeStr != ''"> and create_time >= #{createTimeStr}</if> 686 <if test="createTimeStr != null and createTimeStr != ''"> and create_time >= #{createTimeStr}</if>
688 <if test="createTimeEnd != null and createTimeEnd != ''"> and create_time &lt;= #{createTimeEnd}</if> 687 <if test="createTimeEnd != null and createTimeEnd != ''"> and create_time &lt;= #{createTimeEnd}</if>
bsthLineProfiles/src/main/resources/templates/system/line/map.html
@@ -45,7 +45,7 @@ body, html, #container { @@ -45,7 +45,7 @@ body, html, #container {
45 <li role="presentation"><a onclick="show('station','road')" role="tab" data-toggle="tab">道路查询</a></li> 45 <li role="presentation"><a onclick="show('station','road')" role="tab" data-toggle="tab">道路查询</a></li>
46 </ul> 46 </ul>
47 47
48 - <div id="station"> 48 + <form id="station">
49 <div class="row"> 49 <div class="row">
50 <h4></h4> 50 <h4></h4>
51 <label class="col-sm-3"><h4>&nbsp;&nbsp;站点</h4></label> 51 <label class="col-sm-3"><h4>&nbsp;&nbsp;站点</h4></label>
@@ -73,9 +73,9 @@ body, html, #container { @@ -73,9 +73,9 @@ body, html, #container {
73 <button type="button" class="el-button el-button--default el-button--mini" onclick="$.form.reset();"><!----><i class="el-icon-refresh"></i><span>清除站点结果</span></button> 73 <button type="button" class="el-button el-button--default el-button--mini" onclick="$.form.reset();"><!----><i class="el-icon-refresh"></i><span>清除站点结果</span></button>
74 </div> 74 </div>
75 </div> 75 </div>
76 - </div> 76 + </form>
77 77
78 - <div id="road" style="display:none;"> 78 + <form id="road" style="display:none;">
79 <div class="row"> 79 <div class="row">
80 <h4></h4> 80 <h4></h4>
81 <label class="col-sm-3"><h4>&nbsp;&nbsp;路名</h4></label> 81 <label class="col-sm-3"><h4>&nbsp;&nbsp;路名</h4></label>
@@ -90,11 +90,10 @@ body, html, #container { @@ -90,11 +90,10 @@ body, html, #container {
90 <button type="button" class="el-button el-button--primary el-button--mini" onclick="searchRoad();"><!----><i class="el-icon-search"></i><span>搜索</span></button> 90 <button type="button" class="el-button el-button--primary el-button--mini" onclick="searchRoad();"><!----><i class="el-icon-search"></i><span>搜索</span></button>
91 </div> 91 </div>
92 <div class="col-sm-4"> 92 <div class="col-sm-4">
93 - <button type="button" class="el-button el-button--default el-button--mini" onclick="$.form.reset();"><!----><i class="el-icon-refresh"></i><span>清除站点结果</span></button> 93 + <button type="button" class="el-button el-button--default el-button--mini" onclick="reset();"><!----><i class="el-icon-refresh"></i><span>清除站点结果</span></button>
94 </div> 94 </div>
95 </div> 95 </div>
96 - </div>  
97 - 96 + </form>
98 </div> 97 </div>
99 98
100 99
bsthLineProfiles/src/main/resources/templates/system/lineAdd/line.html
@@ -82,7 +82,6 @@ @@ -82,7 +82,6 @@
82 82
83 function queryParams(params) { 83 function queryParams(params) {
84 var search = $.table.queryParams(params); 84 var search = $.table.queryParams(params);
85 - search.examineStatus ='true';  
86 search.examineType='0'; 85 search.examineType='0';
87 return search; 86 return search;
88 } 87 }
@@ -249,6 +248,9 @@ @@ -249,6 +248,9 @@
249 { 248 {
250 field: 'lastStation', 249 field: 'lastStation',
251 title: '末站' 250 title: '末站'
  251 + },{
  252 + field: 'examineStatus',
  253 + title: '审核状态'
252 }]; 254 }];
253 255
254 256
bsthLineProfiles/src/main/resources/templates/system/lineExamine/line.html
@@ -94,7 +94,7 @@ @@ -94,7 +94,7 @@
94 94
95 function queryParams(params) { 95 function queryParams(params) {
96 var search = $.table.queryParams(params); 96 var search = $.table.queryParams(params);
97 - search.examineStatus ='true'; 97 + search.examineStatus='0';
98 var createTimeStr=$('#createTimeStr').val(); 98 var createTimeStr=$('#createTimeStr').val();
99 var createTimeEnd=$('#createTimeEnd').val(); 99 var createTimeEnd=$('#createTimeEnd').val();
100 search.createTimeStr=createTimeStr; 100 search.createTimeStr=createTimeStr;
bsthLineProfiles/src/main/resources/templates/system/lineHistory/edit.html
@@ -591,12 +591,17 @@ @@ -591,12 +591,17 @@
591 }, 591 },
592 function(data) { 592 function(data) {
593 var bsthTLineOld=data[0]; 593 var bsthTLineOld=data[0];
  594 + console.log(bsthTLineOld)
  595 +
594 var bsthTLineNew=data[1]; 596 var bsthTLineNew=data[1];
  597 + console.log(bsthTLineNew)
595 if(bsthTLineNew!=null){ 598 if(bsthTLineNew!=null){
596 for(let i in bsthTLineOld){ 599 for(let i in bsthTLineOld){
597 var o=bsthTLineOld[i]==null?'':bsthTLineOld[i]; 600 var o=bsthTLineOld[i]==null?'':bsthTLineOld[i];
598 var n=bsthTLineNew[i]==null?'':bsthTLineNew[i]; 601 var n=bsthTLineNew[i]==null?'':bsthTLineNew[i];
599 if(o!=n){ 602 if(o!=n){
  603 + console.log(o)
  604 + console.log(n)
600 i=i=='fcompany'?'fCompany':i; 605 i=i=='fcompany'?'fCompany':i;
601 i=i=='plineId'?'pLineId':i; 606 i=i=='plineId'?'pLineId':i;
602 var input=document.getElementsByName(i)[0]; 607 var input=document.getElementsByName(i)[0];