diff --git a/ghy-admin/src/main/java/com/ghy/web/controller/worker/WorkerCertificationController.java b/ghy-admin/src/main/java/com/ghy/web/controller/worker/WorkerCertificationController.java index d26ff451..2d9f3c08 100644 --- a/ghy-admin/src/main/java/com/ghy/web/controller/worker/WorkerCertificationController.java +++ b/ghy-admin/src/main/java/com/ghy/web/controller/worker/WorkerCertificationController.java @@ -7,6 +7,7 @@ import com.ghy.common.core.page.TableDataInfo; import com.ghy.common.enums.BusinessType; import com.ghy.common.enums.WorkerCertifyStatus; import com.ghy.common.enums.WorkerStatus; +import com.ghy.common.json.JSONObject; import com.ghy.common.utils.ExceptionUtil; import com.ghy.common.utils.poi.ExcelUtil; import com.ghy.system.domain.SysArea; @@ -183,4 +184,21 @@ public class WorkerCertificationController extends BaseController return AjaxResult.error(e.getMessage()); } } + + @PostMapping("/changeStatus") + @ResponseBody + public AjaxResult changeStatus(String ids,Integer status){ + try { + int result = workerCertificationService.changeStatus(ids, status); + if(result > 0){ + return AjaxResult.success("操作成功!"); + }else { + return AjaxResult.warn("操作失败!"); + } + }catch (Exception e){ + e.printStackTrace(); + logger.error(ExceptionUtil.getExceptionMessage(e)); + return AjaxResult.error("操作失败!"); + } + } } diff --git a/ghy-admin/src/main/resources/templates/worker/certification/certification.html b/ghy-admin/src/main/resources/templates/worker/certification/certification.html index 26edb597..93b2251f 100644 --- a/ghy-admin/src/main/resources/templates/worker/certification/certification.html +++ b/ghy-admin/src/main/resources/templates/worker/certification/certification.html @@ -28,8 +28,11 @@