| | |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.zy.client.constant.WcsSystemPropety; |
| | | import com.zy.core.properties.SystemProperties; |
| | | import com.zy.client.domain.enums.SiteStatusType; |
| | | import com.zy.client.domain.param.SystemSwitchParam; |
| | | import com.zy.client.domain.vo.*; |
| | |
| | | @PostMapping("/system/running/status") |
| | | @ManagerAuth(memo = "系统运行状态") |
| | | public R systemRunningStatus(){ |
| | | return R.ok().add(Cools.add("status", WcsSystemPropety.WCS_RUNNING_STATUS.get())); |
| | | return R.ok().add(Cools.add("status", SystemProperties.WCS_RUNNING_STATUS.get())); |
| | | } |
| | | |
| | | @PostMapping("/system/switch") |
| | |
| | | if (Cools.isEmpty(param.getPassword())){ |
| | | return R.error("请输入口令"); |
| | | } |
| | | if (!param.getPassword().equals(WcsSystemPropety.WCS_PASSWORD)){ |
| | | if (!param.getPassword().equals(SystemProperties.WCS_PASSWORD)){ |
| | | return R.error("口令错误"); |
| | | } |
| | | } |
| | | Thread.sleep(2000L); |
| | | WcsSystemPropety.WCS_RUNNING_STATUS.set(param.getOperatorType()==1?Boolean.TRUE:Boolean.FALSE); |
| | | return R.ok().add(Cools.add("status", WcsSystemPropety.WCS_RUNNING_STATUS.get())); |
| | | SystemProperties.WCS_RUNNING_STATUS.set(param.getOperatorType()==1?Boolean.TRUE:Boolean.FALSE); |
| | | return R.ok().add(Cools.add("status", SystemProperties.WCS_RUNNING_STATUS.get())); |
| | | } |
| | | |
| | | @PostMapping("/site/detail") |