| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.zy.acs.framework.common.Cools; |
| | | import com.zy.acs.framework.exception.CoolException; |
| | | import com.zy.acs.manager.common.constant.Constants; |
| | | import com.zy.acs.manager.manager.entity.Segment; |
| | | import com.zy.acs.manager.manager.entity.Task; |
| | | import com.zy.acs.manager.manager.enums.ActionStsType; |
| | |
| | | .eq(Segment::getTravelId, travelId) |
| | | .eq(Segment::getState, SegmentStateType.INIT.toString()) |
| | | .orderByDesc(Segment::getSerial) |
| | | .last("limit 1") |
| | | .last(Constants.LIMIT_ONE) |
| | | ); |
| | | } |
| | | |
| | |
| | | .eq(Segment::getSerial, serial - 1) |
| | | .eq(Segment::getState, SegmentStateType.FINISH.toString()) |
| | | .orderByDesc(Segment::getId) |
| | | .last("limit 1") |
| | | .last(Constants.LIMIT_ONE) |
| | | ); |
| | | } |
| | | |