机构管理.公章管理优化
This commit is contained in:
+20
-17
@@ -1,16 +1,9 @@
|
||||
package com.ruoyi.web.controller.wisdomarbitrate;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.exception.EsignDemoException;
|
||||
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
||||
import com.ruoyi.wisdomarbitrate.domain.DeptIdentify;
|
||||
import com.ruoyi.wisdomarbitrate.domain.SealSignRecord;
|
||||
import com.ruoyi.wisdomarbitrate.domain.SmsSendRecord;
|
||||
import com.ruoyi.wisdomarbitrate.domain.*;
|
||||
import com.ruoyi.wisdomarbitrate.domain.vo.SealListVO;
|
||||
import com.ruoyi.wisdomarbitrate.service.IDeptIdentifyService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -26,6 +19,16 @@ public class DeptIdentifyController extends BaseController {
|
||||
@Autowired
|
||||
private IDeptIdentifyService deptIdentifyService;
|
||||
|
||||
/**
|
||||
* 新增机构
|
||||
* @param deptIdentify
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/insert")
|
||||
public AjaxResult insertDeptIdentify(@RequestBody DeptIdentify deptIdentify){
|
||||
return deptIdentifyService.insertDeptIdentify(deptIdentify);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询部门认证数据
|
||||
*/
|
||||
@@ -46,7 +49,7 @@ public class DeptIdentifyController extends BaseController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 启用
|
||||
* 机构启用/禁用
|
||||
*/
|
||||
@PostMapping("/enableDept")
|
||||
public AjaxResult enableDept(@Validated @RequestBody DeptIdentify deptIdentify) {
|
||||
@@ -56,13 +59,13 @@ public class DeptIdentifyController extends BaseController {
|
||||
/**
|
||||
* 上传自定义公章
|
||||
*
|
||||
* @param deptIdentify
|
||||
* @param
|
||||
* @param file
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/sealUpload")
|
||||
public AjaxResult sealUpload(Long id, String sealName , @RequestParam("file") MultipartFile file) {
|
||||
return deptIdentifyService.sealUpload(id,sealName, file);
|
||||
public AjaxResult sealUpload(Long id, @RequestParam("file") MultipartFile file) {
|
||||
return deptIdentifyService.sealUpload(id, file);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -76,7 +79,7 @@ public class DeptIdentifyController extends BaseController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 签章图片列表查询
|
||||
* 公章列表查询
|
||||
* @param deptIdentify
|
||||
* @return
|
||||
*/
|
||||
@@ -89,14 +92,14 @@ public class DeptIdentifyController extends BaseController {
|
||||
|
||||
/**
|
||||
* 印章启用或者禁用
|
||||
* @param deptIdentify
|
||||
* @param sealManage
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/updateSealLockStatus")
|
||||
public AjaxResult updateSealLockStatus(@Validated @RequestBody DeptIdentify deptIdentify){
|
||||
if(deptIdentify.getSealId()==null ||deptIdentify.getSealStatus()==null){
|
||||
public AjaxResult updateSealLockStatus(@Validated @RequestBody SealManage sealManage){
|
||||
if(sealManage.getId()==null ||sealManage.getSealStatus()==null){
|
||||
return error("参数校验失败");
|
||||
}
|
||||
return deptIdentifyService.updateSealLockStatus(deptIdentify);
|
||||
return deptIdentifyService.updateSealLockStatus(sealManage);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user