Commit b975e446455f67fb595f95a7f9d032aa3ff4fc8c

Authored by yiming
1 parent 66aa765f

bf

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