|
@@ -15,6 +15,7 @@ import me.zhengjie.dao.mybatis.mapper.*;
|
|
|
import me.zhengjie.application.bank.service.FileInfoService;
|
|
import me.zhengjie.application.bank.service.FileInfoService;
|
|
|
import me.zhengjie.application.bank.service.BankOrderService;
|
|
import me.zhengjie.application.bank.service.BankOrderService;
|
|
|
import me.zhengjie.application.bank.service.impl.NotaryNoteServiceImpl;
|
|
import me.zhengjie.application.bank.service.impl.NotaryNoteServiceImpl;
|
|
|
|
|
+import me.zhengjie.application.bank.controller.vo.BankCustomerVo;
|
|
|
import me.zhengjie.application.bank.controller.vo.FileVo;
|
|
import me.zhengjie.application.bank.controller.vo.FileVo;
|
|
|
import me.zhengjie.base.ResultCode;
|
|
import me.zhengjie.base.ResultCode;
|
|
|
import me.zhengjie.base.plus.QueryWrapperUtil;
|
|
import me.zhengjie.base.plus.QueryWrapperUtil;
|
|
@@ -321,8 +322,8 @@ public class AdminOrderServiceImpl implements AdminOrderService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public AppBaseResponse checkInfoPass(NotaryOrderQueryReq req) {
|
|
|
|
|
- AppBaseResponse response = new AppBaseResponse();
|
|
|
|
|
|
|
+ public AppBaseResponse<?> checkInfoPass(NotaryOrderQueryReq req) {
|
|
|
|
|
+ AppBaseResponse<?> response = new AppBaseResponse();
|
|
|
String currentUserId = String.valueOf(contextUtil.getCurrentUserId());
|
|
String currentUserId = String.valueOf(contextUtil.getCurrentUserId());
|
|
|
ContractOrderEntity contractOrderEntity = contractOrderMapper.selectById(req.getId());
|
|
ContractOrderEntity contractOrderEntity = contractOrderMapper.selectById(req.getId());
|
|
|
contractOrderEntity.setStatus(StatusEnum.NotaryStatusEnum.NOTARIZED.getStatus().toString());
|
|
contractOrderEntity.setStatus(StatusEnum.NotaryStatusEnum.NOTARIZED.getStatus().toString());
|
|
@@ -433,8 +434,8 @@ public class AdminOrderServiceImpl implements AdminOrderService {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
- public AppBaseResponse<NotaryOrderQueryRsp> bankCustomer(NotaryOrderQueryReq req) {
|
|
|
|
|
- AppBaseResponse response = new AppBaseResponse();
|
|
|
|
|
|
|
+ public AppBaseResponse<String> bankCustomer(NotaryOrderQueryReq req) {
|
|
|
|
|
+ AppBaseResponse<String> response = new AppBaseResponse<>();
|
|
|
try {
|
|
try {
|
|
|
ContractOrderEntity contractOrderEntity = contractOrderMapper.selectById(req.getId());
|
|
ContractOrderEntity contractOrderEntity = contractOrderMapper.selectById(req.getId());
|
|
|
SysUserEntity user = userDao.selectById(contextUtil.getCurrentUserId());
|
|
SysUserEntity user = userDao.selectById(contextUtil.getCurrentUserId());
|
|
@@ -442,14 +443,15 @@ public class AdminOrderServiceImpl implements AdminOrderService {
|
|
|
&& contractOrderEntity.getNotaryOfficeId().equals(user.getOrgId().split("_")[1])) {
|
|
&& contractOrderEntity.getNotaryOfficeId().equals(user.getOrgId().split("_")[1])) {
|
|
|
SysUserEntity customer = userDao.selectById(contractOrderEntity.getCustomerId());
|
|
SysUserEntity customer = userDao.selectById(contractOrderEntity.getCustomerId());
|
|
|
BankEntity bankEntity = bankMapper.selectById(customer.getOrgId().split("_")[1]);
|
|
BankEntity bankEntity = bankMapper.selectById(customer.getOrgId().split("_")[1]);
|
|
|
- NotaryOrderQueryRsp returnData = new NotaryOrderQueryRsp();
|
|
|
|
|
- returnData.setBankName(bankEntity.getBankName());
|
|
|
|
|
-// returnData.setCustomerIdCard(customer.getIdCard());
|
|
|
|
|
-// returnData.setCustomerName(customer.getNickName());
|
|
|
|
|
-// returnData.setCustomerPhone(customer.getPhone());
|
|
|
|
|
-// returnData.setCustomerGender(customer.getGender());
|
|
|
|
|
-// returnData.setCustomerLogo(customer.getAvatarName());
|
|
|
|
|
- response.setData(new AppResultData<NotaryOrderQueryRsp>(returnData));
|
|
|
|
|
|
|
+
|
|
|
|
|
+ BankCustomerVo customerVo = new BankCustomerVo();
|
|
|
|
|
+ customerVo.setBankName(bankEntity.getBankName());
|
|
|
|
|
+ customerVo.setCustomerIdCard(customer.getIdCard());
|
|
|
|
|
+ customerVo.setCustomerName(customer.getNickName());
|
|
|
|
|
+ customerVo.setCustomerPhone(customer.getPhone());
|
|
|
|
|
+ customerVo.setCustomerGender(customer.getGender());
|
|
|
|
|
+ customerVo.setCustomerLogo(customer.getAvatarName());
|
|
|
|
|
+ response.setResult(customerVo);
|
|
|
} else {
|
|
} else {
|
|
|
response.fail(ResultCode.INTERFACE_ILLEGAL_REQUEST);
|
|
response.fail(ResultCode.INTERFACE_ILLEGAL_REQUEST);
|
|
|
}
|
|
}
|
|
@@ -481,6 +483,7 @@ public class AdminOrderServiceImpl implements AdminOrderService {
|
|
|
FileInfoEntity fileInfoEntity = fileInfoService.getById(file.getImageId());
|
|
FileInfoEntity fileInfoEntity = fileInfoService.getById(file.getImageId());
|
|
|
OrderFileEntity notaryOrderFile = new OrderFileEntity();
|
|
OrderFileEntity notaryOrderFile = new OrderFileEntity();
|
|
|
notaryOrderFile.setBusinessNo(file.getBusinessNo());
|
|
notaryOrderFile.setBusinessNo(file.getBusinessNo());
|
|
|
|
|
+
|
|
|
notaryOrderFile.setCode(code);
|
|
notaryOrderFile.setCode(code);
|
|
|
notaryOrderFile.setSignedPdfUrl(fileInfoEntity.getPath());
|
|
notaryOrderFile.setSignedPdfUrl(fileInfoEntity.getPath());
|
|
|
notaryOrderFile.setCreateTime(new Date());
|
|
notaryOrderFile.setCreateTime(new Date());
|
|
@@ -511,8 +514,8 @@ public class AdminOrderServiceImpl implements AdminOrderService {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- List<OrderFileEntity> orderFileList = orderFileRepository.getOrderFileListWithCodes(req.getBusinessNo(),"1,2,3,4,5,6".split(","));
|
|
|
|
|
|
|
+ List<OrderFileEntity> orderFileList = orderFileRepository.getOrderFileListWithCodes(req.getBusinessNo(),
|
|
|
|
|
+ "1,2,3,4,5,6".split(","));
|
|
|
|
|
|
|
|
List<Map<String, String>> fileList = new ArrayList<>();
|
|
List<Map<String, String>> fileList = new ArrayList<>();
|
|
|
for (OrderFileEntity orderFile : orderFileList) {
|
|
for (OrderFileEntity orderFile : orderFileList) {
|
|
@@ -561,10 +564,10 @@ public class AdminOrderServiceImpl implements AdminOrderService {
|
|
|
}
|
|
}
|
|
|
// 进行图片拼接,按上传顺序处理
|
|
// 进行图片拼接,按上传顺序处理
|
|
|
// 身份证正面
|
|
// 身份证正面
|
|
|
- String cardFrontImageUrl = fileInfoService.getImageUrl(orderDetail.getIdCardFrontPic(), map);
|
|
|
|
|
|
|
+ String cardFrontImageUrl = fileInfoService.getImageUrl(orderDetail.getIdcardFrontPic(), map);
|
|
|
orderDetail.setCardFrontUrl(cardFrontImageUrl);
|
|
orderDetail.setCardFrontUrl(cardFrontImageUrl);
|
|
|
// 身份证反面
|
|
// 身份证反面
|
|
|
- String cardBackImageUrl = fileInfoService.getImageUrl(orderDetail.getIdCardBackPic(), map);
|
|
|
|
|
|
|
+ String cardBackImageUrl = fileInfoService.getImageUrl(orderDetail.getIdcardBackPic(), map);
|
|
|
orderDetail.setCardBackUrl(cardBackImageUrl);
|
|
orderDetail.setCardBackUrl(cardBackImageUrl);
|
|
|
// 3.结婚证
|
|
// 3.结婚证
|
|
|
List<String> marragePicUrl = fileInfoService.getImageUrlList(orderDetail.getMarragePic(), map);
|
|
List<String> marragePicUrl = fileInfoService.getImageUrlList(orderDetail.getMarragePic(), map);
|
|
@@ -583,11 +586,26 @@ public class AdminOrderServiceImpl implements AdminOrderService {
|
|
|
List<String> otherUploadUrl = fileInfoService.getImageUrlList(otherUpload, map);
|
|
List<String> otherUploadUrl = fileInfoService.getImageUrlList(otherUpload, map);
|
|
|
orderDetail.setOtherUploadUrl(otherUploadUrl);
|
|
orderDetail.setOtherUploadUrl(otherUploadUrl);
|
|
|
// 共同责任人身份证正面照片
|
|
// 共同责任人身份证正面照片
|
|
|
- String jointIdCardFront = fileInfoService.getImageUrl(orderDetail.getJointIdCardFrontPic(), map);
|
|
|
|
|
- orderDetail.setJointIdCardFrontPic(jointIdCardFront);
|
|
|
|
|
|
|
+ String jointIdCardFront = fileInfoService.getImageUrl(orderDetail.getJointIdcardFrontPic(), map);
|
|
|
|
|
+ orderDetail.setJointIdcardFrontPic(jointIdCardFront);
|
|
|
// 共同责任人身份证反面照片
|
|
// 共同责任人身份证反面照片
|
|
|
- String jointIdCardBack = fileInfoService.getImageUrl(orderDetail.getJointIdCardBackPic(), map);
|
|
|
|
|
- orderDetail.setJointIdCardBackPic(jointIdCardBack);
|
|
|
|
|
|
|
+ String jointIdCardBack = fileInfoService.getImageUrl(orderDetail.getJointIdcardBackPic(), map);
|
|
|
|
|
+ orderDetail.setJointIdcardBackPic(jointIdCardBack);
|
|
|
|
|
+ OrderFileEntity notarization = orderFileRepository.getOrderNotarization(businessNo);
|
|
|
|
|
+ OrderFileEntity note = orderFileRepository.getOrderNote(businessNo);
|
|
|
|
|
+ if (notarization != null) {
|
|
|
|
|
+ orderDetail.setNotarizationNo(notarization.getDocNo());
|
|
|
|
|
+ orderDetail.setNotarizaitonSignTime(notarization.getAxqSignedTime());
|
|
|
|
|
+ orderDetail.setAuthNotarization(FileUploadUtil.getPreviewUrl(notarization.getSignedPdfUrl()));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (note != null) {
|
|
|
|
|
+ orderDetail.setAuthNote(FileUploadUtil.getPreviewUrl(note.getSignedPdfUrl()));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!StringUtils.isEmpty(orderDetail.getNotaryUserId())) {
|
|
|
|
|
+ SysUserEntity user = userMapper.selectById(orderDetail.getNotaryUserId());
|
|
|
|
|
+ orderDetail.setNotaryUserName(user.getNickName());
|
|
|
|
|
+ orderDetail.setNotaryFee(200);
|
|
|
|
|
+ }
|
|
|
return orderDetail;
|
|
return orderDetail;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -636,9 +654,9 @@ public class AdminOrderServiceImpl implements AdminOrderService {
|
|
|
List<Integer> list = new ArrayList<Integer>();
|
|
List<Integer> list = new ArrayList<Integer>();
|
|
|
|
|
|
|
|
// 身份证正面
|
|
// 身份证正面
|
|
|
- list.add(Integer.parseInt(orderDetail.getIdCardFrontPic()));
|
|
|
|
|
|
|
+ list.add(Integer.parseInt(orderDetail.getIdcardFrontPic()));
|
|
|
// 身份证反面
|
|
// 身份证反面
|
|
|
- list.add(Integer.parseInt(orderDetail.getIdCardBackPic()));
|
|
|
|
|
|
|
+ list.add(Integer.parseInt(orderDetail.getIdcardBackPic()));
|
|
|
// 3.结婚证
|
|
// 3.结婚证
|
|
|
addImageId(list, orderDetail.getMarragePic());
|
|
addImageId(list, orderDetail.getMarragePic());
|
|
|
// 4.合同附件
|
|
// 4.合同附件
|
|
@@ -648,9 +666,9 @@ public class AdminOrderServiceImpl implements AdminOrderService {
|
|
|
// 6.户口本
|
|
// 6.户口本
|
|
|
addImageId(list, orderDetail.getHkbPic());
|
|
addImageId(list, orderDetail.getHkbPic());
|
|
|
// 7.共同责任人身份证正面照片
|
|
// 7.共同责任人身份证正面照片
|
|
|
- addImageId(list, orderDetail.getJointIdCardFrontPic());
|
|
|
|
|
|
|
+ addImageId(list, orderDetail.getJointIdcardFrontPic());
|
|
|
// 8.共同责任人身份证反面照片
|
|
// 8.共同责任人身份证反面照片
|
|
|
- addImageId(list, orderDetail.getJointIdCardBackPic());
|
|
|
|
|
|
|
+ addImageId(list, orderDetail.getJointIdcardBackPic());
|
|
|
// 其他内容
|
|
// 其他内容
|
|
|
String otherUpload = orderDetail.getOtherUpload();
|
|
String otherUpload = orderDetail.getOtherUpload();
|
|
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(otherUpload)) {
|
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(otherUpload)) {
|