|
@@ -471,6 +471,7 @@ public class RoomSelectionInfoService implements BaseService<RoomSelectionInfo,
|
|
|
String filePath = "/home/project/settleDown/tem/receipt.docx";
|
|
|
String fileName = "定金收据.docx";
|
|
|
String sealPath = "/home/project/settleDown/tem/seal.png";
|
|
|
+ String sealPath2 = "/home/project/settleDown/tem/huanpiao.png";
|
|
|
String customerManagementId = newRecord.getCustomerManagementId();
|
|
|
BuyerExample buyerExample = new BuyerExample();
|
|
|
buyerExample.setOrderByClause("order_num asc");
|
|
@@ -524,6 +525,17 @@ public class RoomSelectionInfoService implements BaseService<RoomSelectionInfo,
|
|
|
settingInfoData.put("topOffset", "0");
|
|
|
settingData.put("${seal}", settingInfoData);
|
|
|
|
|
|
+ // 已签约转房款 已退款 用换票模板
|
|
|
+ if(newRecord.getStatus() == 4 || newRecord.getStatus() == 5){
|
|
|
+ filePath = "/home/project/settleDown/tem/receipt_huanpiao.docx";
|
|
|
+ sealData.put("${huanpiao}", sealPath2);
|
|
|
+
|
|
|
+ settingInfoData = new HashMap<>();
|
|
|
+ settingInfoData.put("leftOffset", "300");
|
|
|
+ settingInfoData.put("topOffset", "0");
|
|
|
+ settingData.put("${huanpiao}", settingInfoData);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
try {
|
|
|
File tempWord = ReplaceWord.operateWord(response, filePath, fileName, data, picData, sealData, settingData);
|