|
@@ -159,6 +159,10 @@ public class ContractServiceImpl implements ContractService, InitializingBean {
|
|
|
@Override
|
|
|
public SysUserTsign register(Integer userId, String realName, String idCardNo, String mobileNo) {
|
|
|
|
|
|
+ if (StringUtils.isBlank(realName) || StringUtils.isBlank(idCardNo) || StringUtils.isBlank(mobileNo)) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
SysUserTsign sysUserTsign = sysUserTsignService.get(userId);
|
|
|
if (sysUserTsign == null) {
|
|
|
|
|
@@ -221,7 +225,9 @@ public class ContractServiceImpl implements ContractService, InitializingBean {
|
|
|
throw new BizException("生成pdf协议失败", e);
|
|
|
}
|
|
|
|
|
|
- eSealPlugin.userSign(sysUserTsign.getAccountId(), sysUserTsign.getSealData(), srcPdfPath, srcPdfPath);
|
|
|
+ if (sysUserTsign != null) {
|
|
|
+ eSealPlugin.userSign(sysUserTsign.getAccountId(), sysUserTsign.getSealData(), srcPdfPath, srcPdfPath);
|
|
|
+ }
|
|
|
|
|
|
Date date = new Date();
|
|
|
// 上传到oss
|
|
@@ -365,7 +371,9 @@ public class ContractServiceImpl implements ContractService, InitializingBean {
|
|
|
}
|
|
|
|
|
|
eSealPlugin.organSign(organTsign.getSealData(), srcPdfPath, srcPdfPath);
|
|
|
- eSealPlugin.userSign(sysUserTsign.getAccountId(), sysUserTsign.getSealData(), srcPdfPath, srcPdfPath);
|
|
|
+ if (sysUserTsign != null) {
|
|
|
+ eSealPlugin.userSign(sysUserTsign.getAccountId(), sysUserTsign.getSealData(), srcPdfPath, srcPdfPath);
|
|
|
+ }
|
|
|
|
|
|
// 上传到oss
|
|
|
String dateStrOss = dateFormatOss.format(date);
|
|
@@ -526,7 +534,9 @@ public class ContractServiceImpl implements ContractService, InitializingBean {
|
|
|
|
|
|
eSealPlugin.organSign(organTsign.getSealData(), srcPdfPath, srcPdfPath);
|
|
|
|
|
|
- eSealPlugin.userSign(sysUserTsign.getAccountId(), sysUserTsign.getSealData(), srcPdfPath, srcPdfPath);
|
|
|
+ if (sysUserTsign != null) {
|
|
|
+ eSealPlugin.userSign(sysUserTsign.getAccountId(), sysUserTsign.getSealData(), srcPdfPath, srcPdfPath);
|
|
|
+ }
|
|
|
|
|
|
// 上传到oss
|
|
|
String dateStrOss = dateFormatOss.format(date);
|
|
@@ -691,7 +701,9 @@ public class ContractServiceImpl implements ContractService, InitializingBean {
|
|
|
|
|
|
eSealPlugin.organSign(organTsign.getSealData(), srcPdfPath, srcPdfPath);
|
|
|
|
|
|
- eSealPlugin.userSign(sysUserTsign.getAccountId(), sysUserTsign.getSealData(), srcPdfPath, srcPdfPath);
|
|
|
+ if (sysUserTsign != null) {
|
|
|
+ eSealPlugin.userSign(sysUserTsign.getAccountId(), sysUserTsign.getSealData(), srcPdfPath, srcPdfPath);
|
|
|
+ }
|
|
|
|
|
|
// 上传到oss
|
|
|
String dateStrOss = dateFormatOss.format(date);
|
|
@@ -872,7 +884,9 @@ public class ContractServiceImpl implements ContractService, InitializingBean {
|
|
|
|
|
|
eSealPlugin.organSign(organTsign.getSealData(), srcPdfPath, srcPdfPath);
|
|
|
|
|
|
- eSealPlugin.userSign(sysUserTsign.getAccountId(), sysUserTsign.getSealData(), srcPdfPath, srcPdfPath);
|
|
|
+ if (sysUserTsign != null) {
|
|
|
+ eSealPlugin.userSign(sysUserTsign.getAccountId(), sysUserTsign.getSealData(), srcPdfPath, srcPdfPath);
|
|
|
+ }
|
|
|
|
|
|
// 上传到oss
|
|
|
String dateStrOss = dateFormatOss.format(date);
|