| | |
| | | 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; |
| | |
| | | |
| | | |
| | | /*...........................赣州新增..............以下.............赣州新增...........................*/ |
| | | @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()); |
| | | } |
| | | /*...........................赣州新增..............以上.............赣州新增...........................*/ |
| | | |