自动化立体仓库 - WMS系统
#
野心家
2023-09-01 ca301e64c071ecbdf9e7442070fa7b9b80ca56e4
src/main/java/com/zy/asrs/controller/MobileController.java
@@ -24,6 +24,7 @@
import com.zy.common.model.WrkDto;
import com.zy.common.utils.HttpHandler;
import com.zy.common.web.BaseController;
import com.zy.common.web.param.SearchLocParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
@@ -329,20 +330,65 @@
    /*...........................赣州新增..............以下.............赣州新增...........................*/
    @PostMapping("/test/startUp/auth")
    @ManagerAuth(memo = "申请PACK测试")
    public synchronized R startUpTestPACK(@RequestBody TestMast testMast) {
        if (Cools.isEmpty(testMast)) {
            return R.parse(BaseRes.PARAM);
        }
        mobileService.startUpTestPACK(testMast); //提交测试系统
        return R.ok();
    }
//    @PostMapping("/test/startUp/auth")
//    @ManagerAuth(memo = "申请PACK测试")
//    public synchronized R startUpTestPACK(@RequestBody TestMast testMast) {
//        if (Cools.isEmpty(testMast)) {
//            return R.parse(BaseRes.PARAM);
//        }
//        mobileService.startUpTestPACK(testMast); //提交测试系统
//        return R.ok();
//    }
    @PostMapping("/test/suspend/auth")
//    @ManagerAuth(memo = "暂停测试")
    public synchronized R suspendTestPACK() {
        mobileService.suspendTestPACK();  //请求暂停测试
        return R.ok();
    @ResponseBody
    public synchronized R suspendTestPACK(@RequestBody SearchLocParam param) {
        if (mobileService.suspendTestPACK(param.getBarcode())){  //请求暂停测试
            return R.ok();
        }else {
            return R.error("暂停失败");
        }
    }
    /**
     * 测试库基本信息
     */
    @RequestMapping("/pack/basic/information")
//    @ManagerAuth(memo = "测试库基本信息")
    public R packTestBasicInformation(){
        return R.ok().add(mobileService.packTestBasicInformation());
    }
    /**
     * 测试库使用情况
     */
    @RequestMapping("/pack/usage/rate")
//    @ManagerAuth(memo = "测试库使用情况")
    public R packUsageRate(){
        return R.ok().add(mobileService.packUsageRate());
    }
    /**
     * 测试库合格数
     */
    @RequestMapping("/pack/qualified")
//    @ManagerAuth(memo = "测试库合格数")
    public R packQualified(){
        return R.ok().add(mobileService.packQualified());
    }
    /**
     * 早8-晚20
     */
    @RequestMapping("/pack/morning")
//    @ManagerAuth(memo = "测试库合格数")
    public R chartAxisMorning(){
        return R.ok().add(mobileService.chartAxisMorning());
    }
    /**
     * 晚20-第二天早8
     */
    @RequestMapping("/pack/evening")
//    @ManagerAuth(memo = "测试库合格数")
    public R chartAxisEvening(){
        return R.ok().add(mobileService.chartAxisEvening());
    }
    /*...........................赣州新增..............以上.............赣州新增...........................*/