فهرست منبع

兼容邮储产品

sakuya 3 سال پیش
والد
کامیت
f88739b912
1فایلهای تغییر یافته به همراه3 افزوده شده و 15 حذف شده
  1. 3 15
      eladmin-system/src/main/java/me/zhengjie/application/admin/job/GenerateNotarizationJob.java

+ 3 - 15
eladmin-system/src/main/java/me/zhengjie/application/admin/job/GenerateNotarizationJob.java

@@ -77,21 +77,9 @@ public class GenerateNotarizationJob {
      * @param orderFile
      */
     private void signNotarization(OrderFileEntity orderFile) throws Exception{
-        SysUserEntity notaryUser;
-        NotaryOfficeEntity notaryOffice;
-        String notaryUserId;
-        if ("10".equals(orderFile.getContractId().substring(0, 2))) {
-            BorrowerEntity borrower = borrowerMapper.selectById(orderFile.getContractId());
-            notaryUserId = borrower.getNotaryUserId();
-        } else if ("11".equals(orderFile.getContractId().substring(0, 2))) {
-            MortgageEntity mortgage = mortgageMapper.selectById(orderFile.getContractId());
-            notaryUserId = mortgage.getNotaryUserId();
-        } else {
-            GuaranteeEntity guarantee = guaranteeMapper.selectById(orderFile.getContractId());
-            notaryUserId = guarantee.getNotaryUserId();
-        }
-        notaryUser = userDao.selectById(notaryUserId);
-        notaryOffice = notaryOfficeMapper.selectById(notaryUser.getOrgId().split("_")[1]);
+        BorrowerEntity borrower = orderRepository.getBorrowerByBizNo(orderFile.getBusinessNo());
+        SysUserEntity notaryUser = userDao.selectById(borrower.getNotaryUserId());
+        NotaryOfficeEntity notaryOffice = notaryOfficeMapper.selectById(notaryUser.getOrgId().split("_")[1]);
         //
         UploadSignInfoVO notaryUserInfo = new UploadSignInfoVO();
         notaryUserInfo.setUserId(notaryUser.getAxqUserId());