|
|
@@ -14,7 +14,7 @@ import me.zhengjie.base.util.ApplicationContextUtil;
|
|
|
import me.zhengjie.dao.mybatis.entity.SysUserEntity;
|
|
|
import me.zhengjie.base.AppBaseResponse;
|
|
|
import me.zhengjie.base.AppResultData;
|
|
|
-import me.zhengjie.dao.mybatis.mapper.SysUserMapper;
|
|
|
+import me.zhengjie.dao.mybatis.mapper.*;
|
|
|
import me.zhengjie.application.bank.service.FileInfoService;
|
|
|
import me.zhengjie.base.util.BeanCopyUtils;
|
|
|
import me.zhengjie.base.util.FileUploadUtil;
|
|
|
@@ -27,9 +27,6 @@ import me.zhengjie.application.admin.controller.vo.CertificateReq;
|
|
|
import me.zhengjie.application.admin.controller.vo.NotaryOfficeCreateReq;
|
|
|
import me.zhengjie.application.admin.controller.vo.NotaryOfficeQueryReq;
|
|
|
import me.zhengjie.application.admin.controller.vo.NotaryOfficeQueryRsp;
|
|
|
-import me.zhengjie.dao.mybatis.mapper.BankMapper;
|
|
|
-import me.zhengjie.dao.mybatis.mapper.NotaryOfficeMapper;
|
|
|
-import me.zhengjie.dao.mybatis.mapper.OfficeXbankMapper;
|
|
|
import me.zhengjie.application.admin.service.NotaryOfficeService;
|
|
|
import me.zhengjie.base.util.CFCACertUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -74,6 +71,8 @@ public class NotaryOfficeServiceImpl extends ServiceImpl<NotaryOfficeMapper, Not
|
|
|
@Value("${spring.profiles.active}")
|
|
|
private String systemEnv;
|
|
|
@Autowired
|
|
|
+ private FileInfoMapper fileInfoMapper;
|
|
|
+ @Autowired
|
|
|
private FileInfoService fileInfoService;
|
|
|
@Autowired
|
|
|
private ApplicationContextUtil contextUtil;
|
|
|
@@ -93,7 +92,7 @@ public class NotaryOfficeServiceImpl extends ServiceImpl<NotaryOfficeMapper, Not
|
|
|
// 判断是否为上传图片
|
|
|
String imageId = officeQueryRsp.getImageId();
|
|
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(imageId) && imageId.matches("-?[0-9]+.?[0-9]*")) {
|
|
|
- String filePath = fileInfoService.getById(imageId).getPath();
|
|
|
+ String filePath = fileInfoMapper.selectById(imageId).getPath();
|
|
|
officeQueryRsp.setLogo(FileUploadUtil.getFileUrl(filePath));
|
|
|
officeQueryRsp.setImageId(imageId);
|
|
|
} else {
|
|
|
@@ -102,7 +101,7 @@ public class NotaryOfficeServiceImpl extends ServiceImpl<NotaryOfficeMapper, Not
|
|
|
}
|
|
|
String sealImg = officeQueryRsp.getSealImg();
|
|
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(sealImg) && sealImg.matches("-?[0-9]+.?[0-9]*")) {
|
|
|
- String filePath = fileInfoService.getById(sealImg).getPath();
|
|
|
+ String filePath = fileInfoMapper.selectById(sealImg).getPath();
|
|
|
officeQueryRsp.setSealImg(FileUploadUtil.getFileUrl(filePath));
|
|
|
|
|
|
}
|