zancun
This commit is contained in:
+8
-2
@@ -135,13 +135,13 @@ public class DeptIdentifyServiceImpl implements IDeptIdentifyService {
|
||||
//创建机构图片印章
|
||||
// String annexPath = "D:\\develop\\2.jpg";
|
||||
String sealName = "自定义" + UUID.randomUUID() + ""; //自定义印章印章名称不能重复,所以用UUID确保唯一性
|
||||
EsignHttpResponse response = SignAward.createOrgByImage(identify,sealName,annexPath);
|
||||
EsignHttpResponse response = SignAward.createOrgByImage(identify, sealName, annexPath);
|
||||
JSONObject jsonObject = JSONObject.parseObject(response.getBody());
|
||||
int code = jsonObject.getIntValue("code");
|
||||
if (code == 0) { //业务码,0表示成功,非0表示异常。
|
||||
String sealId = jsonObject.getJSONObject("data").getString("sealId");
|
||||
//保存到表里
|
||||
SealManage sealManage = new SealManage();
|
||||
SealManage sealManage = new SealManage();
|
||||
sealManage.setIdentifyId(identify.getId());
|
||||
sealManage.setSealName(sealName);
|
||||
sealManage.setSealId(sealId);
|
||||
@@ -297,6 +297,12 @@ public class DeptIdentifyServiceImpl implements IDeptIdentifyService {
|
||||
if (identifyType == null) {
|
||||
deptIdentify.setIdentifyType(1); // 设置机构默认为仲裁机构
|
||||
}
|
||||
//先查询看数据库里有没有相同的机构经办人
|
||||
List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentify);
|
||||
if (deptIdentifies != null && deptIdentifies.size() > 0) {
|
||||
//说明之前新增过
|
||||
return AjaxResult.error("信息重复");
|
||||
}
|
||||
deptIdentify.setIdentifyStatus(0); //设置认证状态默认为未认证
|
||||
deptIdentify.setIsUse(0); //设置认证状态默认为未认证
|
||||
int i = deptIdentifyMapper.insertDeptIdentify(deptIdentify);//设置机构默认为未启用
|
||||
|
||||
Reference in New Issue
Block a user