|
@@ -14,13 +14,11 @@ import me.zhengjie.base.util.FileUploadUtil;
|
|
|
import me.zhengjie.base.util.StatusEnum;
|
|
import me.zhengjie.base.util.StatusEnum;
|
|
|
import me.zhengjie.appapi.vo.NotaryNoteVo;
|
|
import me.zhengjie.appapi.vo.NotaryNoteVo;
|
|
|
import me.zhengjie.dao.ModelRepository;
|
|
import me.zhengjie.dao.ModelRepository;
|
|
|
-import me.zhengjie.dao.entity.OrderFileEntity;
|
|
|
|
|
-import me.zhengjie.dao.mapper.OrderFileMapper;
|
|
|
|
|
|
|
+import me.zhengjie.dao.entity.*;
|
|
|
|
|
+import me.zhengjie.dao.mapper.*;
|
|
|
import me.zhengjie.domain.order.OrderBizCodeMessage;
|
|
import me.zhengjie.domain.order.OrderBizCodeMessage;
|
|
|
import me.zhengjie.modules.security.service.dto.JwtUserDto;
|
|
import me.zhengjie.modules.security.service.dto.JwtUserDto;
|
|
|
-import me.zhengjie.modules.system.entity.*;
|
|
|
|
|
-import me.zhengjie.modules.system.repository.*;
|
|
|
|
|
-import me.zhengjie.modules.system.service.dto.UserDto;
|
|
|
|
|
|
|
+import me.zhengjie.service.admin.dto.UserDto;
|
|
|
import me.zhengjie.base.util.TextTempletUtil;
|
|
import me.zhengjie.base.util.TextTempletUtil;
|
|
|
import me.zhengjie.utils.SecurityUtils;
|
|
import me.zhengjie.utils.SecurityUtils;
|
|
|
import org.apache.commons.io.IOUtils;
|
|
import org.apache.commons.io.IOUtils;
|
|
@@ -47,11 +45,11 @@ public class NotaryNoteServiceImpl extends ServiceImpl<INotaryNoteDao, NotaryNot
|
|
|
@Autowired
|
|
@Autowired
|
|
|
NotaryOrderMapper notaryOrderMapper;
|
|
NotaryOrderMapper notaryOrderMapper;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
- BorrowerMapper borrowerMapper;
|
|
|
|
|
|
|
+ BorrowerMapper borrowerMapper;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
MortgageMapper mortgageMapper;
|
|
MortgageMapper mortgageMapper;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
- GuaranteeMapper guaranteeMapper;
|
|
|
|
|
|
|
+ GuaranteeMapper guaranteeMapper;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
NotaryOfficeMapper notaryOfficeMapper;
|
|
NotaryOfficeMapper notaryOfficeMapper;
|
|
|
@Autowired
|
|
@Autowired
|
|
@@ -228,26 +226,26 @@ public class NotaryNoteServiceImpl extends ServiceImpl<INotaryNoteDao, NotaryNot
|
|
|
*/
|
|
*/
|
|
|
private void saveNotaryUserId(String businessNo){
|
|
private void saveNotaryUserId(String businessNo){
|
|
|
Integer currentUserId = SecurityUtils.getCurrentUserId().intValue();
|
|
Integer currentUserId = SecurityUtils.getCurrentUserId().intValue();
|
|
|
- QueryWrapper<me.zhengjie.modules.system.entity.BorrowerEntity> borrowerQw = new QueryWrapper<>();
|
|
|
|
|
|
|
+ QueryWrapper<BorrowerEntity> borrowerQw = new QueryWrapper<>();
|
|
|
borrowerQw.eq("business_no",businessNo);
|
|
borrowerQw.eq("business_no",businessNo);
|
|
|
- me.zhengjie.modules.system.entity.BorrowerEntity borrowerEntity = borrowerMapper.selectOne(borrowerQw);
|
|
|
|
|
- me.zhengjie.modules.system.entity.BorrowerEntity saveBorrower = new me.zhengjie.modules.system.entity.BorrowerEntity();
|
|
|
|
|
|
|
+ BorrowerEntity borrowerEntity = borrowerMapper.selectOne(borrowerQw);
|
|
|
|
|
+ BorrowerEntity saveBorrower = new BorrowerEntity();
|
|
|
saveBorrower.setId(borrowerEntity.getId());
|
|
saveBorrower.setId(borrowerEntity.getId());
|
|
|
saveBorrower.setUpdateTime(LocalDateTime.now());
|
|
saveBorrower.setUpdateTime(LocalDateTime.now());
|
|
|
saveBorrower.setNotaryUserId(currentUserId);
|
|
saveBorrower.setNotaryUserId(currentUserId);
|
|
|
borrowerMapper.updateById(saveBorrower);
|
|
borrowerMapper.updateById(saveBorrower);
|
|
|
- QueryWrapper<me.zhengjie.modules.system.entity.GuaranteeEntity> guaranteeQw = new QueryWrapper<>();
|
|
|
|
|
|
|
+ QueryWrapper<GuaranteeEntity> guaranteeQw = new QueryWrapper<>();
|
|
|
guaranteeQw.eq("business_no", businessNo);
|
|
guaranteeQw.eq("business_no", businessNo);
|
|
|
- me.zhengjie.modules.system.entity.GuaranteeEntity guaranteeEntity = guaranteeMapper.selectOne(guaranteeQw);
|
|
|
|
|
- me.zhengjie.modules.system.entity.GuaranteeEntity saveGuarantee = new me.zhengjie.modules.system.entity.GuaranteeEntity();
|
|
|
|
|
|
|
+ GuaranteeEntity guaranteeEntity = guaranteeMapper.selectOne(guaranteeQw);
|
|
|
|
|
+ GuaranteeEntity saveGuarantee = new GuaranteeEntity();
|
|
|
saveGuarantee.setId(guaranteeEntity.getId());
|
|
saveGuarantee.setId(guaranteeEntity.getId());
|
|
|
saveGuarantee.setUpdateTime(LocalDateTime.now());
|
|
saveGuarantee.setUpdateTime(LocalDateTime.now());
|
|
|
saveGuarantee.setNotaryUserId(currentUserId);
|
|
saveGuarantee.setNotaryUserId(currentUserId);
|
|
|
guaranteeMapper.updateById(saveGuarantee);
|
|
guaranteeMapper.updateById(saveGuarantee);
|
|
|
- QueryWrapper<me.zhengjie.modules.system.entity.MortgageEntity> mortgageQw = new QueryWrapper<>();
|
|
|
|
|
|
|
+ QueryWrapper<MortgageEntity> mortgageQw = new QueryWrapper<>();
|
|
|
mortgageQw.eq("business_no", businessNo);
|
|
mortgageQw.eq("business_no", businessNo);
|
|
|
- me.zhengjie.modules.system.entity.MortgageEntity mortgageEntity = mortgageMapper.selectOne(mortgageQw);
|
|
|
|
|
- me.zhengjie.modules.system.entity.MortgageEntity saveMortgage = new me.zhengjie.modules.system.entity.MortgageEntity();
|
|
|
|
|
|
|
+ MortgageEntity mortgageEntity = mortgageMapper.selectOne(mortgageQw);
|
|
|
|
|
+ MortgageEntity saveMortgage = new MortgageEntity();
|
|
|
saveMortgage.setId(mortgageEntity.getId());
|
|
saveMortgage.setId(mortgageEntity.getId());
|
|
|
saveMortgage.setUpdateTime(LocalDateTime.now());
|
|
saveMortgage.setUpdateTime(LocalDateTime.now());
|
|
|
saveMortgage.setNotaryUserId(currentUserId);
|
|
saveMortgage.setNotaryUserId(currentUserId);
|