自动化立体仓库 - WMS系统
Junjie
2024-08-01 a073250f6f4f8c32888bc60b24ff6984e29af51e
src/main/java/com/zy/asrs/controller/WrkMastController.java
@@ -15,6 +15,7 @@
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.*;
@@ -245,5 +246,24 @@
        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();
    }
}