Commit a937be67c31b32aa8048b3cc88a9fff3f9e698f6
1 parent
244ef0fe
bf
Showing
7 changed files
with
23 additions
and
15 deletions
bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/controller/BsthTLineController.java
| ... | ... | @@ -230,13 +230,17 @@ public class BsthTLineController extends BaseController |
| 230 | 230 | |
| 231 | 231 | @PostMapping("/findByName") |
| 232 | 232 | @ResponseBody |
| 233 | - public BsthTLine findByName(String name) | |
| 233 | + public List<BsthTLine> findByName(String name) | |
| 234 | 234 | { |
| 235 | 235 | BsthTLine bsthTLine = new BsthTLine(); |
| 236 | 236 | |
| 237 | 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 | 260 | lineEditReport.setVehiclesNumber(history.getVehiclesNumber()); |
| 261 | 261 | lineEditReport.setNumberPerson(history.getNumberPerson()); |
| 262 | 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 | 264 | }else { |
| 266 | 265 | lineEditReport.setStartDate(history.getStartDate()); |
| 267 | 266 | } | ... | ... |
bsthLineProfiles/src/main/resources/mybatis/mybatis/system/BsthTLineMapper.xml
| ... | ... | @@ -681,8 +681,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| 681 | 681 | <if test="personAvg != null "> and person_avg = #{personAvg}</if> |
| 682 | 682 | <if test="startDate != null "> and start_date = #{startDate}</if> |
| 683 | 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 | 685 | <if test="examineType != null and examineType != ''"> and examine_type = #{examineType}</if> |
| 687 | 686 | <if test="createTimeStr != null and createTimeStr != ''"> and create_time >= #{createTimeStr}</if> |
| 688 | 687 | <if test="createTimeEnd != null and createTimeEnd != ''"> and create_time <= #{createTimeEnd}</if> | ... | ... |
bsthLineProfiles/src/main/resources/templates/system/line/map.html
| ... | ... | @@ -45,7 +45,7 @@ body, html, #container { |
| 45 | 45 | <li role="presentation"><a onclick="show('station','road')" role="tab" data-toggle="tab">道路查询</a></li> |
| 46 | 46 | </ul> |
| 47 | 47 | |
| 48 | - <div id="station"> | |
| 48 | + <form id="station"> | |
| 49 | 49 | <div class="row"> |
| 50 | 50 | <h4></h4> |
| 51 | 51 | <label class="col-sm-3"><h4> 站点</h4></label> |
| ... | ... | @@ -73,9 +73,9 @@ body, html, #container { |
| 73 | 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 | 74 | </div> |
| 75 | 75 | </div> |
| 76 | - </div> | |
| 76 | + </form> | |
| 77 | 77 | |
| 78 | - <div id="road" style="display:none;"> | |
| 78 | + <form id="road" style="display:none;"> | |
| 79 | 79 | <div class="row"> |
| 80 | 80 | <h4></h4> |
| 81 | 81 | <label class="col-sm-3"><h4> 路名</h4></label> |
| ... | ... | @@ -90,11 +90,10 @@ body, html, #container { |
| 90 | 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 | 91 | </div> |
| 92 | 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 | 94 | </div> |
| 95 | 95 | </div> |
| 96 | - </div> | |
| 97 | - | |
| 96 | + </form> | |
| 98 | 97 | </div> |
| 99 | 98 | |
| 100 | 99 | ... | ... |
bsthLineProfiles/src/main/resources/templates/system/lineAdd/line.html
| ... | ... | @@ -82,7 +82,6 @@ |
| 82 | 82 | |
| 83 | 83 | function queryParams(params) { |
| 84 | 84 | var search = $.table.queryParams(params); |
| 85 | - search.examineStatus ='true'; | |
| 86 | 85 | search.examineType='0'; |
| 87 | 86 | return search; |
| 88 | 87 | } |
| ... | ... | @@ -249,6 +248,9 @@ |
| 249 | 248 | { |
| 250 | 249 | field: 'lastStation', |
| 251 | 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 | 94 | |
| 95 | 95 | function queryParams(params) { |
| 96 | 96 | var search = $.table.queryParams(params); |
| 97 | - search.examineStatus ='true'; | |
| 97 | + search.examineStatus='0'; | |
| 98 | 98 | var createTimeStr=$('#createTimeStr').val(); |
| 99 | 99 | var createTimeEnd=$('#createTimeEnd').val(); |
| 100 | 100 | search.createTimeStr=createTimeStr; | ... | ... |
bsthLineProfiles/src/main/resources/templates/system/lineHistory/edit.html
| ... | ... | @@ -591,12 +591,17 @@ |
| 591 | 591 | }, |
| 592 | 592 | function(data) { |
| 593 | 593 | var bsthTLineOld=data[0]; |
| 594 | + console.log(bsthTLineOld) | |
| 595 | + | |
| 594 | 596 | var bsthTLineNew=data[1]; |
| 597 | + console.log(bsthTLineNew) | |
| 595 | 598 | if(bsthTLineNew!=null){ |
| 596 | 599 | for(let i in bsthTLineOld){ |
| 597 | 600 | var o=bsthTLineOld[i]==null?'':bsthTLineOld[i]; |
| 598 | 601 | var n=bsthTLineNew[i]==null?'':bsthTLineNew[i]; |
| 599 | 602 | if(o!=n){ |
| 603 | + console.log(o) | |
| 604 | + console.log(n) | |
| 600 | 605 | i=i=='fcompany'?'fCompany':i; |
| 601 | 606 | i=i=='plineId'?'pLineId':i; |
| 602 | 607 | var input=document.getElementsByName(i)[0]; | ... | ... |