Commit 7556340d8ab170c1892f019bc4dbde81e8fc1023

Authored by yiming
1 parent 581e9a52

bf

bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/controller/BsthTLineAddController.java
@@ -113,7 +113,7 @@ public class BsthTLineAddController extends BaseController @@ -113,7 +113,7 @@ public class BsthTLineAddController extends BaseController
113 bl.setLineName(bsthTLine.getLineName()); 113 bl.setLineName(bsthTLine.getLineName());
114 bl=bsthTLineService.selectBsthTLineExamineByLineName(bl); 114 bl=bsthTLineService.selectBsthTLineExamineByLineName(bl);
115 if(bl==null){ 115 if(bl==null){
116 - bsthTLine.setLineUpdateType("3"); 116 + bsthTLine.setLineUpdateType("0");
117 return toAjax(bsthTLineService.insertBsthTLineExamine(bsthTLine)); 117 return toAjax(bsthTLineService.insertBsthTLineExamine(bsthTLine));
118 }else { 118 }else {
119 bsthTLine.setId(bl.getId()); 119 bsthTLine.setId(bl.getId());
bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/controller/BsthTLineHistoryReportController.java
@@ -85,6 +85,7 @@ public class BsthTLineHistoryReportController extends BaseController @@ -85,6 +85,7 @@ public class BsthTLineHistoryReportController extends BaseController
85 Map<String,List<DictData>> dictMap = new HashMap(); 85 Map<String,List<DictData>> dictMap = new HashMap();
86 List<String> titles=new ArrayList<>(); 86 List<String> titles=new ArrayList<>();
87 titles.add("lineName"); 87 titles.add("lineName");
  88 + titles.add("lineUpdateType");
88 for(DictData d : dicts) { 89 for(DictData d : dicts) {
89 if(dictMap.get(d.getDictType()) == null) { 90 if(dictMap.get(d.getDictType()) == null) {
90 dictMap.put(d.getDictType(), new ArrayList<DictData>()); 91 dictMap.put(d.getDictType(), new ArrayList<DictData>());
@@ -106,13 +107,16 @@ public class BsthTLineHistoryReportController extends BaseController @@ -106,13 +107,16 @@ public class BsthTLineHistoryReportController extends BaseController
106 String v =f.get(line)==null?"":f.get(line).toString(); 107 String v =f.get(line)==null?"":f.get(line).toString();
107 String vo=f2.get(line)==null?"":f2.get(line).toString(); 108 String vo=f2.get(line)==null?"":f2.get(line).toString();
108 //如果没变置空 109 //如果没变置空
109 - if(v.equals(vo)){  
110 - f.set(line, null);  
111 - f2.set(line, null);  
112 - }else {  
113 - titles.add(name);  
114 - titles.add(name+"Old"); 110 + if(!"lineUpdateType".equals(name)){
  111 + if(v.equals(vo)){
  112 + f.set(line, null);
  113 + f2.set(line, null);
  114 + }else {
  115 + titles.add(name);
  116 + titles.add(name+"Old");
  117 + }
115 } 118 }
  119 +
116 v =f.get(line)==null?"":f.get(line).toString(); 120 v =f.get(line)==null?"":f.get(line).toString();
117 vo=f2.get(line)==null?"":f2.get(line).toString(); 121 vo=f2.get(line)==null?"":f2.get(line).toString();
118 //编码转换 122 //编码转换
bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/domain/LineHistoryReport.java
@@ -22,6 +22,11 @@ public class LineHistoryReport extends BaseEntity @@ -22,6 +22,11 @@ public class LineHistoryReport extends BaseEntity
22 @Excel(name = "线路名称") 22 @Excel(name = "线路名称")
23 private String lineName; 23 private String lineName;
24 24
  25 + @Excel(name = "性质")
  26 + private String lineUpdateType;
  27 +
  28 + private String lineUpdateTypeOld;
  29 +
25 @Excel(name = "公司") 30 @Excel(name = "公司")
26 private String company; 31 private String company;
27 @Excel(name = "原公司") 32 @Excel(name = "原公司")
@@ -366,15 +371,8 @@ public class LineHistoryReport extends BaseEntity @@ -366,15 +371,8 @@ public class LineHistoryReport extends BaseEntity
366 @Excel(name = "原启用日期", width = 30, dateFormat = "yyyy-MM-dd") 371 @Excel(name = "原启用日期", width = 30, dateFormat = "yyyy-MM-dd")
367 private Date startDateOld; 372 private Date startDateOld;
368 373
369 - @Excel(name = "夜间停车场")  
370 - private String nightParking;  
371 - @Excel(name = "原夜间停车场")  
372 - private String nightParkingOld;  
373 374
374 - @Excel(name = "性质")  
375 - private String lineUpdateType;  
376 - @Excel(name = "原性质")  
377 - private String lineUpdateTypeOld; 375 +
378 376
379 //营收类型(公交线路/机场专线/特约车线路/零星特约车线路/交通车线路/团客车线路/其他线路 377 //营收类型(公交线路/机场专线/特约车线路/零星特约车线路/交通车线路/团客车线路/其他线路
380 @Excel(name = "营收类型") 378 @Excel(name = "营收类型")
@@ -1433,21 +1431,7 @@ public class LineHistoryReport extends BaseEntity @@ -1433,21 +1431,7 @@ public class LineHistoryReport extends BaseEntity
1433 this.startDateOld = startDateOld; 1431 this.startDateOld = startDateOld;
1434 } 1432 }
1435 1433
1436 - public String getNightParking() {  
1437 - return nightParking;  
1438 - }  
1439 -  
1440 - public void setNightParking(String nightParking) {  
1441 - this.nightParking = nightParking;  
1442 - }  
1443 1434
1444 - public String getNightParkingOld() {  
1445 - return nightParkingOld;  
1446 - }  
1447 -  
1448 - public void setNightParkingOld(String nightParkingOld) {  
1449 - this.nightParkingOld = nightParkingOld;  
1450 - }  
1451 1435
1452 public String getLineUpdateType() { 1436 public String getLineUpdateType() {
1453 return lineUpdateType; 1437 return lineUpdateType;
bsthLineProfiles/src/main/resources/mybatis/mybatis/system/BsthTLineMapper.xml
@@ -1764,7 +1764,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -1764,7 +1764,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
1764 h1.car_plate carPlate,h1.number_person numberPerson,h1.number_person_driver numberPersonDriver,h1.number_person_sales numberPersonSales, 1764 h1.car_plate carPlate,h1.number_person numberPerson,h1.number_person_driver numberPersonDriver,h1.number_person_sales numberPersonSales,
1765 h1.bus_ev_number busEvNumber,h1.directions directions,h1.number_of_manage numberOfManage,h1.halfway_station halfwayStation, 1765 h1.bus_ev_number busEvNumber,h1.directions directions,h1.number_of_manage numberOfManage,h1.halfway_station halfwayStation,
1766 h1.full_customer_percent fullCustomerPercent,h1.low_customer_percent lowCustomerPercent,h1.divide_level divideLevel, 1766 h1.full_customer_percent fullCustomerPercent,h1.low_customer_percent lowCustomerPercent,h1.divide_level divideLevel,
1767 - h1.has_timelists hasTimelists,h1.is_metro isMetro,h1.metro_time metroTime,h1.cold_bonus_type coldBonusType,h1.night_parking nightParking,h1.start_date startDate, 1767 + h1.has_timelists hasTimelists,h1.is_metro isMetro,h1.metro_time metroTime,h1.cold_bonus_type coldBonusType,h1.start_date startDate,
1768 h1.line_update_type lineUpdateType,h1.revenue_type revenueType, 1768 h1.line_update_type lineUpdateType,h1.revenue_type revenueType,
1769 h2.id idOld,h2.line_name lineNameOld,h2.company companyOld,h2.f_company fCompanyOld,h2.p_line_id pLineIdOld, 1769 h2.id idOld,h2.line_name lineNameOld,h2.company companyOld,h2.f_company fCompanyOld,h2.p_line_id pLineIdOld,
1770 h2.service_type serviceTypeOld,h2.line_level lineLevelOld,h2.line_type lineTypeOld,h2.district districtOld, 1770 h2.service_type serviceTypeOld,h2.line_level lineLevelOld,h2.line_type lineTypeOld,h2.district districtOld,
@@ -1782,7 +1782,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -1782,7 +1782,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
1782 h2.car_plate carPlateOld,h2.number_person numberPersonOld,h2.number_person_driver numberPersonDriverOld,h2.number_person_sales numberPersonSalesOld, 1782 h2.car_plate carPlateOld,h2.number_person numberPersonOld,h2.number_person_driver numberPersonDriverOld,h2.number_person_sales numberPersonSalesOld,
1783 h2.bus_ev_number busEvNumberOld,h2.directions directionsOld,h2.number_of_manage numberOfManageOld,h2.halfway_station halfwayStationOld, 1783 h2.bus_ev_number busEvNumberOld,h2.directions directionsOld,h2.number_of_manage numberOfManageOld,h2.halfway_station halfwayStationOld,
1784 h2.full_customer_percent fullCustomerPercentOld,h2.low_customer_percent lowCustomerPercentOld,h2.divide_level divideLevelOld, 1784 h2.full_customer_percent fullCustomerPercentOld,h2.low_customer_percent lowCustomerPercentOld,h2.divide_level divideLevelOld,
1785 - h2.has_timelists hasTimelistsOld,h2.is_metro isMetroOld,h2.metro_time metroTimeOld,h2.cold_bonus_type coldBonusTypeOld,h2.night_parking nightParkingOld,h2.start_date startDateOld, 1785 + h2.has_timelists hasTimelistsOld,h2.is_metro isMetroOld,h2.metro_time metroTimeOld,h2.cold_bonus_type coldBonusTypeOld,h2.start_date startDateOld,
1786 h2.line_update_type lineUpdateTypeOld,h2.revenue_type revenueTypeOld 1786 h2.line_update_type lineUpdateTypeOld,h2.revenue_type revenueTypeOld
1787 FROM bsth_t_line_history h1 LEFT JOIN bsth_t_line_history h2 on h1.history_id=h2.id 1787 FROM bsth_t_line_history h1 LEFT JOIN bsth_t_line_history h2 on h1.history_id=h2.id
1788 <where> 1788 <where>