//package cn.estsh.i3plus.ext.mes.pcn.apiservice.controller.base.bu;
//
//import cn.estsh.i3plus.ext.mes.pcn.api.base.bu3.IBuQManageService;
//import cn.estsh.i3plus.platform.common.util.CommonConstWords;
//import cn.estsh.impp.framework.base.controller.MesPcnBaseController;
//import cn.estsh.impp.framework.boot.exception.ImppBusiException;
//import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
//import cn.estsh.impp.framework.boot.util.ResultBean;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * @Author: xinwang.yi
// * @CreateDate: 2023/04/17 09:14
// * @Description:
// **/
//@RestController
//@Api(tags = "Q管理作业")
//@RequestMapping(CommonConstWords.BASE_URL_MES_PCN + "/bu/q-manage")
//public class BuQManageController extends MesPcnBaseController {
//
//    @Autowired
//    private IBuQManageService qManageService;
//
//    //@PostMapping("/generate-week")
//    //@ApiOperation(value = "生成周点检")
//    //public ResultBean generateWeekCheck(String organizeCode, String workCenterCode) {
//    //
//    //    try {
//    //        qManageService.generateWeekCheck(organizeCode, workCenterCode);
//    //        return ResultBean.success("扫描成功");
//    //    } catch (ImppBusiException busExcep) {
//    //        return ResultBean.fail(busExcep);
//    //    } catch (Exception e) {
//    //        return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
//    //    }
//    //}
//
//    @PostMapping("/generate-month")
//    @ApiOperation(value = "生成月点检")
//    public ResultBean generateMonthCheck(String organizeCode, String workCenterCode) {
//
//        try {
//            qManageService.generateMonthCheck(organizeCode, workCenterCode);
//            return ResultBean.success("生成成功");
//        } catch (ImppBusiException busExcep) {
//            return ResultBean.fail(busExcep);
//        } catch (Exception e) {
//            return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
//        }
//    }
//}
