浏览代码

修改BUG

zhou.xiaoning 3 年之前
父节点
当前提交
55a211d5d7
共有 2 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      service/thjNtf.go
  2. 二进制
      static/产能预售合同.docx

+ 1 - 1
service/thjNtf.go

@@ -172,7 +172,7 @@ func onTHJPurchaseTradeNtf(bytes *[]byte) {
 	docx1.Replace("${SELLUSER}", selluserinfo.CUSTOMERNAME, -1)
 	docx1.Replace("${SELLUSER}", selluserinfo.CUSTOMERNAME, -1)
 	docx1.Replace("${LASTAMOUNT}", strconv.FormatFloat(thjpurchasetradedetail.LASTAMOUNT, 'f', -1, 64), -1)
 	docx1.Replace("${LASTAMOUNT}", strconv.FormatFloat(thjpurchasetradedetail.LASTAMOUNT, 'f', -1, 64), -1)
 	docx1.Replace("${DEPOSITRATE}", strconv.FormatFloat(thjpurchasetradedetail.DEPOSITRATE*100, 'f', -1, 64)+"%", -1)
 	docx1.Replace("${DEPOSITRATE}", strconv.FormatFloat(thjpurchasetradedetail.DEPOSITRATE*100, 'f', -1, 64)+"%", -1)
-	docx1.Replace("${TRADEQTY}", strconv.Itoa(int(thjpurchasetradedetail.TRADEQTY)), -1)
+	docx1.Replace("TRADEQTY", strconv.Itoa(int(thjpurchasetradedetail.TRADEQTY)), -1)
 	docx1.Replace("${TRADEPRICE}", strconv.FormatFloat(thjpurchasetradedetail.TRADEPRICE, 'f', -1, 64), -1)
 	docx1.Replace("${TRADEPRICE}", strconv.FormatFloat(thjpurchasetradedetail.TRADEPRICE, 'f', -1, 64), -1)
 	docx1.Replace("${ENDDATEMONTH}", strconv.Itoa(int(wrpresaleinfo.ENDDATE.Local().Month())), -1)
 	docx1.Replace("${ENDDATEMONTH}", strconv.Itoa(int(wrpresaleinfo.ENDDATE.Local().Month())), -1)
 	docx1.Replace("${THJDELIVERYMODE}", thjdeliverymode, -1)
 	docx1.Replace("${THJDELIVERYMODE}", thjdeliverymode, -1)

二进制
static/产能预售合同.docx