| | |
| | | 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/transplant/auth") |
| | | @ManagerAuth(memo = "移库确认") |
| | | public synchronized R transplant(@RequestBody Review review) { |
| | | if (Cools.isEmpty(review)) { |
| | | return R.parse(BaseRes.PARAM); |
| | | } |
| | | mobileService.transplant(review); //移库确认 |
| | | 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("暂停失败"); |
| | | } |
| | | } |
| | | /*...........................赣州新增..............以上.............赣州新增...........................*/ |
| | | |