11.10 开发

This commit is contained in:
hejinbo
2023-11-10 18:08:30 +08:00
parent 7cfc39190a
commit 4cf4fa6f5c
14 changed files with 311 additions and 48 deletions
@@ -1,5 +1,6 @@
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;
@@ -9,6 +10,8 @@ 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.vo.SealListVO;
import com.ruoyi.wisdomarbitrate.service.IDeptIdentifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
@@ -19,7 +22,7 @@ import java.util.List;
@RestController
@RequestMapping("/deptIdentify")
public class DeptIdentifyController extends BaseController {
public class DeptIdentifyController extends BaseController {
@Autowired
private IDeptIdentifyService deptIdentifyService;
@@ -52,17 +55,49 @@ public class DeptIdentifyController extends BaseController {
/**
* 上传自定义公章
*
* @param deptIdentify
* @param file
* @return
*/
@PostMapping("sealUpload")
public AjaxResult sealUpload(@Validated @RequestBody DeptIdentify deptIdentify
,@RequestParam("file") MultipartFile file){
return deptIdentifyService.sealUpload(deptIdentify,file);
@PostMapping("/sealUpload")
public AjaxResult sealUpload(@Validated @RequestBody DeptIdentify deptIdentify
, @RequestParam("file") MultipartFile file) {
return deptIdentifyService.sealUpload(deptIdentify, file);
}
/**
* 接收E签宝回调通知
* @param body
* @return
*/
@GetMapping("/notify")
public AjaxResult receiveNotify(String body) {
return deptIdentifyService.receiveNotify(body);
}
/**
* 签章图片列表查询
* @param deptIdentify
* @return
*/
@GetMapping("/sealList")
public TableDataInfo getSealList(DeptIdentify deptIdentify){
startPage();
List<SealListVO> list = deptIdentifyService.getSealList(deptIdentify);
return getDataTable(list);
}
/**
* 印章启用或者禁用
* @param deptIdentify
* @return
*/
@PostMapping("/updateSealLockStatus")
public AjaxResult updateSealLockStatus(@Validated @RequestBody DeptIdentify deptIdentify){
if(deptIdentify.getSealId()==null ||deptIdentify.getSealStatus()==null){
return error("参数校验失败");
}
return deptIdentifyService.updateSealLockStatus(deptIdentify);
}
}