Commit b975e446455f67fb595f95a7f9d032aa3ff4fc8c
1 parent
66aa765f
bf
Showing
2 changed files
with
7 additions
and
2 deletions
bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/service/impl/BsthTLineServiceImpl.java
| @@ -381,6 +381,7 @@ public class BsthTLineServiceImpl implements IBsthTLineService | @@ -381,6 +381,7 @@ public class BsthTLineServiceImpl implements IBsthTLineService | ||
| 381 | if("2".equals(bsthTLine.getExamineStatus())){//通过 | 381 | if("2".equals(bsthTLine.getExamineStatus())){//通过 |
| 382 | //查出审核表的记录 | 382 | //查出审核表的记录 |
| 383 | bl=bsthTLineMapper.selectBsthTLineExamineById(bsthTLine.getId()); | 383 | bl=bsthTLineMapper.selectBsthTLineExamineById(bsthTLine.getId()); |
| 384 | + long id=bl.getId(); | ||
| 384 | //查出历史当前数据的id | 385 | //查出历史当前数据的id |
| 385 | BsthTLine b=new BsthTLine(); | 386 | BsthTLine b=new BsthTLine(); |
| 386 | b.setLineName(bl.getLineName()); | 387 | b.setLineName(bl.getLineName()); |
| @@ -404,7 +405,7 @@ public class BsthTLineServiceImpl implements IBsthTLineService | @@ -404,7 +405,7 @@ public class BsthTLineServiceImpl implements IBsthTLineService | ||
| 404 | bl.setId(bsthTLine1.getId()); | 405 | bl.setId(bsthTLine1.getId()); |
| 405 | i=bsthTLineMapper.updateBsthTLine(bl); | 406 | i=bsthTLineMapper.updateBsthTLine(bl); |
| 406 | //删除审核表记录 | 407 | //删除审核表记录 |
| 407 | - bsthTLineMapper.deleteBsthTLineExamineById(new String[]{bl.getId().toString()}); | 408 | + bsthTLineMapper.deleteBsthTLineExamineById(new String[]{String.valueOf(id)}); |
| 408 | }else{//未通过 | 409 | }else{//未通过 |
| 409 | //修改审核表状态 | 410 | //修改审核表状态 |
| 410 | bl=new BsthTLine(); | 411 | bl=new BsthTLine(); |
bsthLineProfiles/src/main/resources/mybatis/mybatis/system/BsthTLineMapper.xml
| @@ -153,7 +153,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -153,7 +153,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 153 | <if test="airConditionerType != null and airConditionerType != ''"> and air_conditioner_type = #{airConditionerType}</if> | 153 | <if test="airConditionerType != null and airConditionerType != ''"> and air_conditioner_type = #{airConditionerType}</if> |
| 154 | <if test="sellTicketType != null and sellTicketType != ''"> and sell_ticket_type = #{sellTicketType}</if> | 154 | <if test="sellTicketType != null and sellTicketType != ''"> and sell_ticket_type = #{sellTicketType}</if> |
| 155 | <if test="serviceTime != null and serviceTime != ''"> and service_time = #{serviceTime}</if> | 155 | <if test="serviceTime != null and serviceTime != ''"> and service_time = #{serviceTime}</if> |
| 156 | - <if test="lineDistance != null "> and line_distance = #{lineDistance}</if> | 156 | + <if test="lineDistance != null and lineDistance != ''"> and line_distance = #{lineDistance}</if> |
| 157 | <if test="lineCode != null and lineCode != ''"> and line_code = #{lineCode}</if> | 157 | <if test="lineCode != null and lineCode != ''"> and line_code = #{lineCode}</if> |
| 158 | <if test="warrantYear != null "> and warrant_year = #{warrantYear}</if> | 158 | <if test="warrantYear != null "> and warrant_year = #{warrantYear}</if> |
| 159 | <if test="warrantStartTime != null "> and warrant_start_time = #{warrantStartTime}</if> | 159 | <if test="warrantStartTime != null "> and warrant_start_time = #{warrantStartTime}</if> |
| @@ -1134,6 +1134,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -1134,6 +1134,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 1134 | <if test="timeSchedule != null">time_schedule,</if> | 1134 | <if test="timeSchedule != null">time_schedule,</if> |
| 1135 | <if test="park != null">park,</if> | 1135 | <if test="park != null">park,</if> |
| 1136 | <if test="isWarrant != null">is_warrant,</if> | 1136 | <if test="isWarrant != null">is_warrant,</if> |
| 1137 | + <if test="isWarrantStartTime != null">isWarrant_start_time,</if> | ||
| 1138 | + <if test="isWarrantEndTime != null">isWarrant_end_time,</if> | ||
| 1137 | <if test="roadType != null">road_type,</if> | 1139 | <if test="roadType != null">road_type,</if> |
| 1138 | <if test="ticketPrice != null">ticket_price,</if> | 1140 | <if test="ticketPrice != null">ticket_price,</if> |
| 1139 | <if test="firstStation != null">first_station,</if> | 1141 | <if test="firstStation != null">first_station,</if> |
| @@ -1219,6 +1221,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -1219,6 +1221,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 1219 | <if test="timeSchedule != null">#{timeSchedule},</if> | 1221 | <if test="timeSchedule != null">#{timeSchedule},</if> |
| 1220 | <if test="park != null">#{park},</if> | 1222 | <if test="park != null">#{park},</if> |
| 1221 | <if test="isWarrant != null">#{isWarrant},</if> | 1223 | <if test="isWarrant != null">#{isWarrant},</if> |
| 1224 | + <if test="isWarrantStartTime != null">#{isWarrantStartTime},</if> | ||
| 1225 | + <if test="isWarrantEndTime != null">#{isWarrantEndTime},</if> | ||
| 1222 | <if test="roadType != null">#{roadType},</if> | 1226 | <if test="roadType != null">#{roadType},</if> |
| 1223 | <if test="ticketPrice != null">#{ticketPrice},</if> | 1227 | <if test="ticketPrice != null">#{ticketPrice},</if> |
| 1224 | <if test="firstStation != null">#{firstStation},</if> | 1228 | <if test="firstStation != null">#{firstStation},</if> |