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