@@ -134,4 +134,16 @@ public class SlApplyApprovalController extends BaseController
return AjaxResult.success(map);
}
+ /***
+ * 重新授权
+ * @param id
+ * @return
+ */
+ @ApiOperation(value = "重新授权")
+ @GetMapping("/auth/{id}")
+ public AjaxResult againAuth(@PathVariable Long id)
+ {
+ return AjaxResult.success(slApplyApprovalService.againAuth(id));
+ }
+
@@ -77,4 +77,11 @@ public interface ISlApplyApprovalService
* @return
*/
Map<String,Object> sysMsgApprova(String phone, String content, Long lockApplyId);
+ * 门锁申请重新授权
+ String againAuth(Long id);
@@ -303,6 +303,23 @@ public class SlApplyApprovalServiceImpl implements ISlApplyApprovalService
/***
+ @Override
+ public String againAuth(Long id) {
+ String str="";
+ try {
+ str = authPower(id);
+ }catch (Exception e) {
+ e.printStackTrace();
+ log.error("重新授权失败:"+e);
+ return str;
* 审批通过后人员密码授权处理
* @param applyId 申请id