|
|
@@ -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());
|