| | |
| | | import com.zy.asrs.entity.WrkMast; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.common.web.BaseController; |
| | | import io.swagger.models.auth.In; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @GetMapping(value = "/wrkMast/removeShuttle/{wrkNo}") |
| | | @ManagerAuth(memo = "弃车") |
| | | public R redPri(@PathVariable Integer wrkNo) { |
| | | WrkMast wrkMast = wrkMastService.selectById(wrkNo); |
| | | if (wrkMast == null) { |
| | | return R.error("工作档不存在"); |
| | | } |
| | | |
| | | if (wrkMast.getShuttleNo() == null) { |
| | | return R.error("工作档无小车"); |
| | | } |
| | | |
| | | wrkMast.setShuttleNo(null); |
| | | if (!wrkMastService.updateById(wrkMast)) { |
| | | return R.error("弃车失败"); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | } |