|
|
@@ -1,6 +1,8 @@
|
|
|
package me.zhengjie.application.admin.service.impl;
|
|
|
|
|
|
import cfca.trustsign.common.vo.cs.UploadSignInfoVO;
|
|
|
+import com.alibaba.fastjson.JSONArray;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import me.zhengjie.application.admin.service.AdminNotarizationManageService;
|
|
|
import me.zhengjie.application.bank.service.UserAXQInfoService;
|
|
|
@@ -10,6 +12,7 @@ import me.zhengjie.dao.mybatis.entity.ContractOrderEntity;
|
|
|
import me.zhengjie.dao.mybatis.entity.SysUserEntity;
|
|
|
import me.zhengjie.dao.mybatis.entity.UserAXQInfoEntity;
|
|
|
import me.zhengjie.dao.mybatis.mapper.SysUserMapper;
|
|
|
+import me.zhengjie.domain.model.ModelSynthesizerDomain;
|
|
|
import me.zhengjie.domain.order.OrderConstant;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -24,6 +27,23 @@ public class AdminNotarizationManageServiceImpl implements AdminNotarizationMana
|
|
|
private final UserAXQInfoRepository userAXQInfoRepository;
|
|
|
private final UserAXQInfoService userAXQInfoService;
|
|
|
private final SysUserMapper userMapper;
|
|
|
+ private final ModelSynthesizerDomain modelSynthesizerDomain;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void recreateCommonDoc(final String businessNo) {
|
|
|
+ ContractOrderEntity contractOrderEntity = contractOrderRepository.getContractOrderWithBizNo(businessNo);
|
|
|
+ JSONArray jsonArray = new JSONArray();
|
|
|
+ JSONObject userMain = new JSONObject();
|
|
|
+ userMain.put("imageId", userAXQInfoRepository.getUserAXQInfoWithIdcard(contractOrderEntity.getIdCard()).getImgSealId());
|
|
|
+ jsonArray.add(userMain);
|
|
|
+ //
|
|
|
+ if (contractOrderEntity.getJointFlag() == OrderConstant.JOINT_FLAG_TRUE) {
|
|
|
+ JSONObject userJoint = new JSONObject();
|
|
|
+ userJoint.put("imageId", userAXQInfoRepository.getUserAXQInfoWithIdcard(contractOrderEntity.getJointIdCard()).getImgSealId());
|
|
|
+ jsonArray.add(userJoint);
|
|
|
+ }
|
|
|
+ modelSynthesizerDomain.recreateCommonDoc(businessNo, jsonArray);
|
|
|
+ }
|
|
|
|
|
|
@Override
|
|
|
public void resignCommonDoc(final String businessNo) {
|