|
@@ -45,7 +45,7 @@ public class WorkticketController {
|
|
* @param deptnum 风机编号
|
|
* @param deptnum 风机编号
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @CrossOrigin(origins = "*",maxAge = 3600)
|
|
|
|
|
|
+ //@CrossOrigin(origins = "*",maxAge = 3600)
|
|
@GetMapping(value = "windlist")
|
|
@GetMapping(value = "windlist")
|
|
public AjaxResult getWindturbineid(@RequestParam("deptnum")String deptnum) {
|
|
public AjaxResult getWindturbineid(@RequestParam("deptnum")String deptnum) {
|
|
if ("".equals(deptnum.trim())){
|
|
if ("".equals(deptnum.trim())){
|
|
@@ -59,7 +59,7 @@ public class WorkticketController {
|
|
* 工作类型
|
|
* 工作类型
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @CrossOrigin(origins = "*",maxAge = 3600)
|
|
|
|
|
|
+ //@CrossOrigin(origins = "*",maxAge = 3600)
|
|
@GetMapping(value = "list")
|
|
@GetMapping(value = "list")
|
|
public AjaxResult getWorkTypeList() {
|
|
public AjaxResult getWorkTypeList() {
|
|
List<Map> list =workriskpoolService.getWorkriskpoolList();
|
|
List<Map> list =workriskpoolService.getWorkriskpoolList();
|
|
@@ -72,7 +72,7 @@ public class WorkticketController {
|
|
* @param deptnum 场站名称
|
|
* @param deptnum 场站名称
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @CrossOrigin(origins = "*",maxAge = 3600)
|
|
|
|
|
|
+ //@CrossOrigin(origins = "*",maxAge = 3600)
|
|
@GetMapping(value = "getLaborList")
|
|
@GetMapping(value = "getLaborList")
|
|
public AjaxResult getLaborNameList(@RequestParam("deptnum")String deptnum) {
|
|
public AjaxResult getLaborNameList(@RequestParam("deptnum")String deptnum) {
|
|
List<Labor> labors = laborService.getLaborList(deptnum);
|
|
List<Labor> labors = laborService.getLaborList(deptnum);
|
|
@@ -88,7 +88,7 @@ public class WorkticketController {
|
|
* @param worktypeid 作业类型
|
|
* @param worktypeid 作业类型
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @CrossOrigin(origins = "*",maxAge = 3600)
|
|
|
|
|
|
+ //@CrossOrigin(origins = "*",maxAge = 3600)
|
|
@PostMapping(value = "addWindelec")
|
|
@PostMapping(value = "addWindelec")
|
|
public AjaxResult addWorkticket(@RequestParam("workdept")String workdept,
|
|
public AjaxResult addWorkticket(@RequestParam("workdept")String workdept,
|
|
@RequestParam("location")String location,
|
|
@RequestParam("location")String location,
|
|
@@ -105,7 +105,7 @@ public class WorkticketController {
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- return AjaxResult.error(4004, "数据操作失败");
|
|
|
|
|
|
+ return AjaxResult.error(500, "数据操作失败");
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|