Bläddra i källkod

Merge remote-tracking branch 'origin/feature-2022.07.29' into feature-2022.07.29

sakuya 3 år sedan
förälder
incheckning
245715c39c

+ 4 - 0
README.md

@@ -106,3 +106,7 @@ https://blog.csdn.net/weixin_44120354/article/details/121116555 linux单机部
 http://docs.minio.org.cn/docs/master/minio-deployment-quickstart-guide 中文文档手册
 https://blog.csdn.net/tianmunan/article/details/118874734 配置主从模式
 https://blog.csdn.net/duan196_118/article/details/105294267 mysql安装 centos系统的
+
+
+
+

+ 44 - 27
eladmin-system/src/main/java/me/zhengjie/application/admin/service/impl/NotaryOrderServiceImpl.java

@@ -90,12 +90,12 @@ public class NotaryOrderServiceImpl extends ServiceImpl<NotaryOrderMapper, Notar
 	ICityDao cityDao;
 	@Autowired
 	OrderCochainService orderCochainService;
-	
+
 	@Autowired
 	FileInfoService fileInfoService;
 	@Autowired
 	ApplicationContextUtil contextUtil;
-	
+
 	@Override
 	public AppBaseResponse<List<NotaryOrderQueryRsp>> query(NotaryOrderQueryReq req) {
 		AppBaseResponse<List<NotaryOrderQueryRsp>> response = new AppBaseResponse<>();
@@ -335,7 +335,8 @@ public class NotaryOrderServiceImpl extends ServiceImpl<NotaryOrderMapper, Notar
 			return response;
 		}
 		// 检查面谈笔录是否提交
-		List<OrderFileEntity> orderFileList = orderFileRepository.getOrderFileListByCodes(req.getPartyId(), "6,7,8,9".split(","));
+		List<OrderFileEntity> orderFileList = orderFileRepository.getOrderFileListByCodes(req.getPartyId(),
+				"6,7,8,9".split(","));
 		if (orderFileList == null || orderFileList.size() == 0) {
 			response.fail(ResultCode.INTERVIEW_NOTE_UNSUBMIT);
 			return response;
@@ -423,19 +424,24 @@ public class NotaryOrderServiceImpl extends ServiceImpl<NotaryOrderMapper, Notar
 		QueryWrapper<MortgageEntity> mortgageQw = new QueryWrapper<>();
 		mortgageQw.eq("business_no", notaryOrderEntity.getBusinessNo());
 		MortgageEntity mortgageEntity = mortgageMapper.selectOne(mortgageQw);
-		map.put("$MortgageName$", mortgageEntity.getUsername());
-		map.put("$MortgageIDNo$", mortgageEntity.getIdCard());
-		map.put("$MortgageSex$", "1".equals(mortgageEntity.getSex()) ? "男" : "女");
-		map.put("$MortgageBirthdday$", mortgageEntity.getBirth());
-		map.put("$HouseAddr$", mortgageEntity.getHouseLocation());
+		if(mortgageEntity!=null) {
+			map.put("$MortgageName$", mortgageEntity.getUsername());
+			map.put("$MortgageIDNo$", mortgageEntity.getIdCard());
+			map.put("$MortgageSex$", "1".equals(mortgageEntity.getSex()) ? "男" : "女");
+			map.put("$MortgageBirthdday$", mortgageEntity.getBirth());
+			map.put("$HouseAddr$", mortgageEntity.getHouseLocation());
+		}
 		// 担保人信息
 		QueryWrapper<GuaranteeEntity> guaranteeQw = new QueryWrapper<>();
 		guaranteeQw.eq("business_no", notaryOrderEntity.getBusinessNo());
 		GuaranteeEntity guaranteeEntity = guaranteeMapper.selectOne(guaranteeQw);
-		map.put("$GuaranteeName$", guaranteeEntity.getUsername());
-		map.put("$GuaranteeIDNo$", guaranteeEntity.getIdCard());
-		map.put("$GuaranteeSex$", "1".equals(guaranteeEntity.getSex()) ? "男" : "女");
-		map.put("$GuaranteeBirthdday$", guaranteeEntity.getBirth());
+		if(guaranteeEntity!=null) {
+			map.put("$GuaranteeName$", guaranteeEntity.getUsername());
+			map.put("$GuaranteeIDNo$", guaranteeEntity.getIdCard());
+			map.put("$GuaranteeSex$", "1".equals(guaranteeEntity.getSex()) ? "男" : "女");
+			map.put("$GuaranteeBirthdday$", guaranteeEntity.getBirth());
+		}
+
 		// 银行信息
 		BankEntity bankEntity = bankMapper.selectById(notaryOrderEntity.getBankId());
 		map.put("$Bank$", bankEntity.getBankName());
@@ -450,9 +456,11 @@ public class NotaryOrderServiceImpl extends ServiceImpl<NotaryOrderMapper, Notar
 		String htmlPath = "";
 		String pdfPath = "";
 		try {
-			InputStream inputStream = NotaryNoteServiceImpl.class.getClassLoader().getResourceAsStream("template/note/notary-model.html");
+			InputStream inputStream = NotaryNoteServiceImpl.class.getClassLoader()
+					.getResourceAsStream("template/note/notary-model.html");
 			result = IOUtils.toString(inputStream, StandardCharsets.UTF_8);
-			String content = result.replace("${ModelContent}", TextTempletUtil.replaceContent(modelEntity.getContent(), map));
+			String content = result.replace("${ModelContent}",
+					TextTempletUtil.replaceContent(modelEntity.getContent(), map));
 			htmlPath = FileUploadUtil.saveHtml(content, notaryOrderEntity.getBusinessNo(), req.getPartyId());
 			pdfPath = FileUploadUtil.savePdf(content, notaryOrderEntity.getBusinessNo(), req.getPartyId());
 		} catch (Exception e) {
@@ -540,8 +548,8 @@ public class NotaryOrderServiceImpl extends ServiceImpl<NotaryOrderMapper, Notar
 			saveOrder.setUpdater(contextUtil.getCurrentUserId().toString());
 			saveOrder.setStatus(StatusEnum.NotaryStatusEnum.PASS.getStatus().toString());
 			notaryOrderMapper.updateById(saveOrder);
-			//流程走完之后需要把数据插入到order_cochain
-			OrderCochainEntity orderCochain=new OrderCochainEntity();
+			// 流程走完之后需要把数据插入到order_cochain
+			OrderCochainEntity orderCochain = new OrderCochainEntity();
 			orderCochain.setStatus("0");
 			orderCochain.setBusinessNo(businessNo);
 			orderCochain.setCreateTime(LocalDateTime.now());
@@ -590,19 +598,26 @@ public class NotaryOrderServiceImpl extends ServiceImpl<NotaryOrderMapper, Notar
 			QueryWrapper<MortgageEntity> mortgageQw = new QueryWrapper<>();
 			mortgageQw.eq("business_no", req.getBusinessNo());
 			MortgageEntity mortgageEntity = mortgageMapper.selectOne(mortgageQw);
-			map.put("$MortgageName$", mortgageEntity.getUsername());
-			map.put("$MortgageIDNo$", mortgageEntity.getIdCard());
-			map.put("$MortgageSex$", "1".equals(mortgageEntity.getSex()) ? "男" : "女");
-			map.put("$MortgageBirthdday$", mortgageEntity.getBirth());
-			map.put("$HouseAddr$", mortgageEntity.getHouseLocation());
+			if (mortgageEntity != null) {
+				map.put("$MortgageName$", mortgageEntity.getUsername());
+				map.put("$MortgageIDNo$", mortgageEntity.getIdCard());
+				map.put("$MortgageSex$", "1".equals(mortgageEntity.getSex()) ? "男" : "女");
+				map.put("$MortgageBirthdday$", mortgageEntity.getBirth());
+				map.put("$HouseAddr$", mortgageEntity.getHouseLocation());
+			}
+
 			// 获取担保人信息
 			QueryWrapper<GuaranteeEntity> guaranteeQw = new QueryWrapper<>();
 			guaranteeQw.eq("business_no", req.getBusinessNo());
+
 			GuaranteeEntity guaranteeEntity = guaranteeMapper.selectOne(guaranteeQw);
-			map.put("$GuaranteeName$", guaranteeEntity.getUsername());
-			map.put("$GuaranteeIDNo$", guaranteeEntity.getIdCard());
-			map.put("$GuaranteeSex$", "1".equals(guaranteeEntity.getSex()) ? "男" : "女");
-			map.put("$GuaranteeBirthdday$", guaranteeEntity.getBirth());
+			if (guaranteeEntity != null) {
+				map.put("$GuaranteeName$", guaranteeEntity.getUsername());
+				map.put("$GuaranteeIDNo$", guaranteeEntity.getIdCard());
+				map.put("$GuaranteeSex$", "1".equals(guaranteeEntity.getSex()) ? "男" : "女");
+				map.put("$GuaranteeBirthdday$", guaranteeEntity.getBirth());
+			}
+
 			// 获取银行信息
 			BankEntity bankEntity = bankMapper.selectById(orderEntity.getBankId());
 			map.put("$Bank$", bankEntity.getBankName());
@@ -722,11 +737,13 @@ public class NotaryOrderServiceImpl extends ServiceImpl<NotaryOrderMapper, Notar
 				put("9", "面谈笔录");
 			}
 		};
-		List<OrderFileEntity> orderFileList = orderFileRepository.getOrderFileListByCodes(req.getPartyId(), "1,2,3,4,5,6,7,8,9".split(","));
+		List<OrderFileEntity> orderFileList = orderFileRepository.getOrderFileListByCodes(req.getPartyId(),
+				"1,2,3,4,5,6,7,8,9".split(","));
 		List<Map<String, String>> fileList = new ArrayList<>();
 		for (OrderFileEntity orderFile : orderFileList) {
 			Map<String, String> content = new HashMap<>();
-			String fileUrl = StringUtils.isEmpty(orderFile.getSignedPdfUrl()) ? orderFile.getPdfUrl() : orderFile.getSignedPdfUrl();
+			String fileUrl = StringUtils.isEmpty(orderFile.getSignedPdfUrl()) ? orderFile.getPdfUrl()
+					: orderFile.getSignedPdfUrl();
 			content.put("name", map.get(orderFile.getCode()));
 			content.put("value", getPreviewUrl(fileUrl));
 			fileList.add(content);

+ 3 - 3
eladmin-system/src/main/java/me/zhengjie/application/bank/controller/AppBankController.java

@@ -87,7 +87,7 @@ public class AppBankController extends BaseController {
 	 * @return
 	 */
 	@RequestMapping("/saveBorrower")
-	public AppBaseResponse saveBorrower(@Valid @RequestBody BorrowerVo vo) {
+	public AppBaseResponse saveBorrower( @RequestBody BorrowerVo vo) {
 		log.info("借款人保存请求的参数:" + vo);
 		String auth = getAuthorization();
 		String sysUser = (String) tokenProvider.getAppToken(auth);
@@ -105,7 +105,7 @@ public class AppBankController extends BaseController {
 	 * @return
 	 */
 	@RequestMapping("/saveGuarantee")
-	public ResponseDTO<String> saveGuarantee(@Valid @RequestBody GuaranteeVo vo) {
+	public ResponseDTO<String> saveGuarantee( @RequestBody GuaranteeVo vo) {
 		String auth = getAuthorization();
 		String sysUser = (String) tokenProvider.getAppToken(auth);
 		SysUserEntity entity = new SysUserEntity();
@@ -122,7 +122,7 @@ public class AppBankController extends BaseController {
 	 * @return
 	 */
 	@RequestMapping("/saveMortgage")
-	public ResponseDTO<String> saveMortgage(@Valid @RequestBody MortgageVo vo) {
+	public ResponseDTO<String> saveMortgage( @RequestBody MortgageVo vo) {
 		String auth = getAuthorization();
 		String sysUser = (String) tokenProvider.getAppToken(auth);
 		SysUserEntity entity = new SysUserEntity();

+ 56 - 39
eladmin-system/src/main/java/me/zhengjie/application/bank/service/impl/NotaryNoteServiceImpl.java

@@ -38,15 +38,15 @@ public class NotaryNoteServiceImpl extends ServiceImpl<INotaryNoteDao, NotaryNot
 	@Autowired
 	NotaryOrderMapper notaryOrderMapper;
 	@Autowired
-    BorrowerMapper borrowerMapper;
+	BorrowerMapper borrowerMapper;
 	@Autowired
-    MortgageMapper mortgageMapper;
+	MortgageMapper mortgageMapper;
 	@Autowired
-    GuaranteeMapper guaranteeMapper;
+	GuaranteeMapper guaranteeMapper;
 	@Autowired
 	NotaryOfficeMapper notaryOfficeMapper;
 	@Autowired
-    ModelMapper modelMapper;
+	ModelMapper modelMapper;
 	@Autowired
 	OrderService orderService;
 	@Autowired
@@ -61,10 +61,10 @@ public class NotaryNoteServiceImpl extends ServiceImpl<INotaryNoteDao, NotaryNot
 		Map<String, String> noteValue = new HashMap<String, String>();
 		// 设置默认值
 		noteValue.put("$Date$", DateUtils.date2String(new Date(), 1));
-		noteValue.put("$Dissent$","无异议");
-		noteValue.put("$Voluntarily$","是");
-		noteValue.put("$Know$","知道");
-		noteValue.put("$AdditionalContent$","没有了");
+		noteValue.put("$Dissent$", "无异议");
+		noteValue.put("$Voluntarily$", "是");
+		noteValue.put("$Know$", "知道");
+		noteValue.put("$AdditionalContent$", "没有了");
 		// 设置用户参数
 		UserDto user = contextUtil.getCurrentUser().getUser();
 		noteValue.put("$Greffier$", user.getNickName());
@@ -80,12 +80,12 @@ public class NotaryNoteServiceImpl extends ServiceImpl<INotaryNoteDao, NotaryNot
 		QueryWrapper<BorrowerEntity> borrowQw = new QueryWrapper<>();
 		borrowQw.eq("business_no", notary.getBusinessNo());
 		BorrowerEntity borrower = borrowerMapper.selectOne(borrowQw);
-		noteValue.put("$LoanName$",borrower.getUsername());
-		noteValue.put("$LoanBirthdday$",borrower.getBirth());
-		noteValue.put("$LoanIDNo$",borrower.getIdCard());
-		noteValue.put("$LoanAmount$",borrower.getSumMoney());
-		noteValue.put("$LoanTerm$",borrower.getStartDate()+"~"+borrower.getEndDate());
-		noteValue.put("$LoanRate$",borrower.getRate());
+		noteValue.put("$LoanName$", borrower.getUsername());
+		noteValue.put("$LoanBirthdday$", borrower.getBirth());
+		noteValue.put("$LoanIDNo$", borrower.getIdCard());
+		noteValue.put("$LoanAmount$", borrower.getSumMoney());
+		noteValue.put("$LoanTerm$", borrower.getStartDate() + "~" + borrower.getEndDate());
+		noteValue.put("$LoanRate$", borrower.getRate());
 		try {
 			SimpleDateFormat monthformatter = new SimpleDateFormat("yyyy-MM");
 			Date beginDate = monthformatter.parse(borrower.getStartDate());
@@ -99,17 +99,20 @@ public class NotaryNoteServiceImpl extends ServiceImpl<INotaryNoteDao, NotaryNot
 		QueryWrapper<MortgageEntity> mortgageQw = new QueryWrapper<>();
 		mortgageQw.eq("business_no", notary.getBusinessNo());
 		MortgageEntity mortgage = mortgageMapper.selectOne(mortgageQw);
-		noteValue.put("$MortgagorName$",mortgage.getUsername());
-		noteValue.put("$MortgagorBirthdday$",mortgage.getBirth());
-		noteValue.put("$MortgagorIDNo$",mortgage.getIdCard());
-		noteValue.put("$HouseAddr$",mortgage.getHouseLocation());
+		if (mortgage != null) {
+			noteValue.put("$MortgagorName$", mortgage.getUsername());
+			noteValue.put("$MortgagorBirthdday$", mortgage.getBirth());
+			noteValue.put("$MortgagorIDNo$", mortgage.getIdCard());
+			noteValue.put("$HouseAddr$", mortgage.getHouseLocation());
+		}
+
 		// 设置担保子订单参数
 		QueryWrapper<GuaranteeEntity> guaranteeQw = new QueryWrapper<>();
 		guaranteeQw.eq("business_no", notary.getBusinessNo());
 		GuaranteeEntity guarantee = guaranteeMapper.selectOne(guaranteeQw);
-		noteValue.put("$GuaranteeName$",guarantee.getUsername());
-		noteValue.put("$GuaranteeBirthdday$",guarantee.getBirth());
-		noteValue.put("$GuaranteeIDNo$",guarantee.getIdCard());
+		noteValue.put("$GuaranteeName$", guarantee.getUsername());
+		noteValue.put("$GuaranteeBirthdday$", guarantee.getBirth());
+		noteValue.put("$GuaranteeIDNo$", guarantee.getIdCard());
 		//
 		String typePrefix = notary.getOrderId().substring(0, 2);
 		String code = "";
@@ -120,7 +123,8 @@ public class NotaryNoteServiceImpl extends ServiceImpl<INotaryNoteDao, NotaryNot
 			noteValue.put("$Sex$", "1".equals(borrower.getSex()) ? "男" : "女");
 			noteValue.put("$Birthdday$", borrower.getBirth());
 			noteValue.put("$HomeAddr$", borrower.getResidence());
-			code = orderService.sameBorrowerMortgage(notary.getOrderId(), StatusEnum.NotaryNoteEnum.BORROWER_NOTE.name()) ? "9" : "6";
+			code = orderService.sameBorrowerMortgage(notary.getOrderId(),
+					StatusEnum.NotaryNoteEnum.BORROWER_NOTE.name()) ? "9" : "6";
 		} else if ("11".equals(typePrefix)) {
 			noteValue.put("$Name$", mortgage.getUsername());
 			noteValue.put("$IDNo$", mortgage.getIdCard());
@@ -128,7 +132,8 @@ public class NotaryNoteServiceImpl extends ServiceImpl<INotaryNoteDao, NotaryNot
 			noteValue.put("$Sex$", "1".equals(mortgage.getSex()) ? "男" : "女");
 			noteValue.put("$Birthdday$", mortgage.getBirth());
 			noteValue.put("$HomeAddr$", mortgage.getResidence());
-			code = orderService.sameBorrowerMortgage(notary.getOrderId(), StatusEnum.NotaryNoteEnum.MORTGAGOR_NOTE.name()) ? "9" : "7";
+			code = orderService.sameBorrowerMortgage(notary.getOrderId(),
+					StatusEnum.NotaryNoteEnum.MORTGAGOR_NOTE.name()) ? "9" : "7";
 		} else if ("12".equals(typePrefix)) {
 			noteValue.put("$Name$", guarantee.getUsername());
 			noteValue.put("$IDNo$", guarantee.getIdCard());
@@ -150,7 +155,7 @@ public class NotaryNoteServiceImpl extends ServiceImpl<INotaryNoteDao, NotaryNot
 		List<NotaryNoteEntity> notaryNotes = list(query);
 		// 组织回传数据
 		List<NotaryNoteDto> notaryNoteDtos = new ArrayList<>();
-		for(NotaryNoteEntity notaryNote:notaryNotes){
+		for (NotaryNoteEntity notaryNote : notaryNotes) {
 			NotaryNoteDto notaryNoteDto = new NotaryNoteDto();
 			notaryNoteDto.setId(notaryNote.getId());
 			notaryNoteDto.setQuestion(TextTempletUtil.replaceContent(notaryNote.getQuestion(), noteValue));
@@ -164,6 +169,7 @@ public class NotaryNoteServiceImpl extends ServiceImpl<INotaryNoteDao, NotaryNot
 
 	/**
 	 * 保存面谈笔录
+	 * 
 	 * @param notary
 	 * @return
 	 */
@@ -174,15 +180,17 @@ public class NotaryNoteServiceImpl extends ServiceImpl<INotaryNoteDao, NotaryNot
 		String typePrefix = notary.getOrderId().substring(0, 2);
 		String code = "";
 		if ("10".equals(typePrefix)) {
-			code = orderService.sameBorrowerMortgage(notary.getOrderId(), StatusEnum.NotaryNoteEnum.BORROWER_NOTE.name()) ? "9" : "6";
+			code = orderService.sameBorrowerMortgage(notary.getOrderId(),
+					StatusEnum.NotaryNoteEnum.BORROWER_NOTE.name()) ? "9" : "6";
 		} else if ("11".equals(typePrefix)) {
-			code = orderService.sameBorrowerMortgage(notary.getOrderId(), StatusEnum.NotaryNoteEnum.MORTGAGOR_NOTE.name()) ? "9" : "7";
+			code = orderService.sameBorrowerMortgage(notary.getOrderId(),
+					StatusEnum.NotaryNoteEnum.MORTGAGOR_NOTE.name()) ? "9" : "7";
 		} else {
 			code = "8";
 		}
 		UserDto userDto = contextUtil.getCurrentUser().getUser();
 		String notaryOfficeId = userDto.getOrgId().split("_")[1];
-		String[] codes = {code};
+		String[] codes = { code };
 		if (modelRepository.existModelInEditing(notaryOfficeId, codes)) {
 			response.fail(OrderBizCodeMessage.MODEL_IN_EDITING);
 			return response;
@@ -194,11 +202,13 @@ public class NotaryNoteServiceImpl extends ServiceImpl<INotaryNoteDao, NotaryNot
 		String htmlContent = "";
 		int i = 1;
 		for (NotaryNoteDto noteDto : notaryNoteDtoList) {
-			htmlContent = htmlContent.concat("<li>").concat(String.valueOf(i++)).concat(".").concat(noteDto.getQuestion()).concat("<br>").concat(noteDto.getAnswer()).concat("</li>");
+			htmlContent = htmlContent.concat("<li>").concat(String.valueOf(i++)).concat(".")
+					.concat(noteDto.getQuestion()).concat("<br>").concat(noteDto.getAnswer()).concat("</li>");
 		}
-		htmlContent = modelContent.replace("${QuestionAnswerList}", htmlContent).replace("${yyyyMMdd}", formatter.format(new Date()));
-		String htmlpath = FileUploadUtil.saveHtml(htmlContent, notary.getBusinessNo(),notary.getOrderId());
-		String pdfPath = FileUploadUtil.savePdf(htmlContent, notary.getBusinessNo(),notary.getOrderId());
+		htmlContent = modelContent.replace("${QuestionAnswerList}", htmlContent).replace("${yyyyMMdd}",
+				formatter.format(new Date()));
+		String htmlpath = FileUploadUtil.saveHtml(htmlContent, notary.getBusinessNo(), notary.getOrderId());
+		String pdfPath = FileUploadUtil.savePdf(htmlContent, notary.getBusinessNo(), notary.getOrderId());
 		//
 		ModelEntity modelEntity = modelRepository.getModelEntity(String.valueOf(officeEntity.getId()), code, "1");
 		OrderFileEntity orderFile = new OrderFileEntity();
@@ -218,12 +228,13 @@ public class NotaryNoteServiceImpl extends ServiceImpl<INotaryNoteDao, NotaryNot
 
 	/**
 	 * 关联当前公证员ID
+	 * 
 	 * @param businessNo
 	 */
-	private void saveNotaryUserId(String businessNo){
+	private void saveNotaryUserId(String businessNo) {
 		String currentUserId = String.valueOf(contextUtil.getCurrentUserId());
 		QueryWrapper<BorrowerEntity> borrowerQw = new QueryWrapper<>();
-		borrowerQw.eq("business_no",businessNo);
+		borrowerQw.eq("business_no", businessNo);
 		BorrowerEntity borrowerEntity = borrowerMapper.selectOne(borrowerQw);
 		BorrowerEntity saveBorrower = new BorrowerEntity();
 		saveBorrower.setId(borrowerEntity.getId());
@@ -240,23 +251,29 @@ public class NotaryNoteServiceImpl extends ServiceImpl<INotaryNoteDao, NotaryNot
 		guaranteeMapper.updateById(saveGuarantee);
 		QueryWrapper<MortgageEntity> mortgageQw = new QueryWrapper<>();
 		mortgageQw.eq("business_no", businessNo);
+		// 非空
 		MortgageEntity mortgageEntity = mortgageMapper.selectOne(mortgageQw);
-		MortgageEntity saveMortgage = new MortgageEntity();
-		saveMortgage.setId(mortgageEntity.getId());
-		saveMortgage.setUpdateTime(LocalDateTime.now());
-		saveMortgage.setNotaryUserId(currentUserId);
-		mortgageMapper.updateById(saveMortgage);
+		if (mortgageEntity != null) {
+			MortgageEntity saveMortgage = new MortgageEntity();
+			saveMortgage.setId(mortgageEntity.getId());
+			saveMortgage.setUpdateTime(LocalDateTime.now());
+			saveMortgage.setNotaryUserId(currentUserId);
+			mortgageMapper.updateById(saveMortgage);
+		}
+
 	}
 
 	/**
 	 * 读取文件内容
+	 * 
 	 * @param code
 	 * @return
 	 */
 	private String readFileInString(String code) {
 		String result = "";
 		try {
-			InputStream inputStream = NotaryNoteServiceImpl.class.getClassLoader().getResourceAsStream("template/note/notary-note.html");
+			InputStream inputStream = NotaryNoteServiceImpl.class.getClassLoader()
+					.getResourceAsStream("template/note/notary-note.html");
 			result = IOUtils.toString(inputStream, StandardCharsets.UTF_8);
 		} catch (Exception e) {
 			e.printStackTrace();