| | |
| | | import com.stylefeng.guns.modular.system.service.*; |
| | | import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.ui.Model; |
| | |
| | | stopover.setType(3); |
| | | stopoverList.add(stopover); |
| | | } |
| | | itLineSiteService.insertBatch(stopoverList); |
| | | if(!CollectionUtils.isEmpty(stopoverList)){ |
| | | itLineSiteService.insertBatch(stopoverList); |
| | | } |
| | | |
| | | //添加价格设置 |
| | | addPrice(tLine.getId(), subArr); |
| | |
| | | stopover.setType(3); |
| | | stopoverList.add(stopover); |
| | | } |
| | | itLineSiteService.insertBatch(stopoverList); |
| | | if(!CollectionUtils.isEmpty(stopoverList)){ |
| | | itLineSiteService.insertBatch(stopoverList); |
| | | } |
| | | |
| | | //删除线路价格 |
| | | itLinePriceService.delete(new EntityWrapper<TLinePrice>().eq("lineId",tLine.getId())); |