|
|
@@ -15,6 +15,7 @@ import me.zhengjie.dao.mybatis.mapper.*;
|
|
|
import me.zhengjie.application.bank.service.FileInfoService;
|
|
|
import me.zhengjie.application.bank.service.BankOrderService;
|
|
|
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.base.ResultCode;
|
|
|
import me.zhengjie.base.plus.QueryWrapperUtil;
|
|
|
@@ -92,7 +93,8 @@ public class AdminOrderServiceImpl implements AdminOrderService {
|
|
|
ApplicationContextUtil contextUtil;
|
|
|
@Autowired
|
|
|
ContractOrderRepository contractOrderRepository;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private SysUserMapper userMapper;
|
|
|
@Override
|
|
|
public AppBaseResponse<List<NotaryOrderQueryRsp>> query(NotaryOrderQueryReq req) {
|
|
|
AppBaseResponse<List<NotaryOrderQueryRsp>> response = new AppBaseResponse<>();
|
|
|
@@ -632,8 +634,8 @@ public class AdminOrderServiceImpl implements AdminOrderService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public AppBaseResponse<NotaryOrderQueryRsp> bankCustomer(NotaryOrderQueryReq req) {
|
|
|
- AppBaseResponse response = new AppBaseResponse();
|
|
|
+ public AppBaseResponse<String> bankCustomer(NotaryOrderQueryReq req) {
|
|
|
+ AppBaseResponse<String> response = new AppBaseResponse<>();
|
|
|
try {
|
|
|
ContractOrderEntity contractOrderEntity = contractOrderMapper.selectById(req.getId());
|
|
|
SysUserEntity user = userDao.selectById(contextUtil.getCurrentUserId());
|
|
|
@@ -641,14 +643,15 @@ public class AdminOrderServiceImpl implements AdminOrderService {
|
|
|
&& contractOrderEntity.getNotaryOfficeId().equals(user.getOrgId().split("_")[1])) {
|
|
|
SysUserEntity customer = userDao.selectById(contractOrderEntity.getCustomerId());
|
|
|
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 {
|
|
|
response.fail(ResultCode.INTERFACE_ILLEGAL_REQUEST);
|
|
|
}
|
|
|
@@ -788,6 +791,21 @@ public class AdminOrderServiceImpl implements AdminOrderService {
|
|
|
// 共同责任人身份证反面照片
|
|
|
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;
|
|
|
}
|
|
|
|