浏览代码

单号失真问题

deng.yinping 3 年之前
父节点
当前提交
42889ce268
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      models/ferroalloy.go

+ 2 - 2
models/ferroalloy.go

@@ -1378,7 +1378,7 @@ func (r *Thjpurchasetransfer) GetDataByPage() (interface{}, error, int, int, int
 }
 
 type ThjpurchasetransferDetail struct {
-	WRTRADEDETAILID  int64   `json:"wrtradedetailid" xorm:"WRTRADEDETAILID"`         // 采购成交单ID(321+Unix秒时间戳(10位)+xxxxxx)
+	WRTRADEDETAILID  string  `json:"wrtradedetailid" xorm:"WRTRADEDETAILID"`         // 采购成交单ID(321+Unix秒时间戳(10位)+xxxxxx)
 	TRANSFERID       string  `json:"transferid" xorm:"TRANSFERID" form:"transferid"` // 转让单号
 	WRSTANDARDID     int32   `json:"wrstandardid" xorm:"WRSTANDARDID"`               // 现货商品ID
 	TRANSFERPRICE    float64 `json:"transferprice" xorm:"TRANSFERPRICE"`             // 转让价格
@@ -1443,7 +1443,7 @@ func (r *ThjpurchasetransferDetail) buildSql() string {
         to_char(pi.enddate, 'yyyy-MM-dd') ENDDATE,
 		to_char(t.CREATETIME, 'yyyy-MM-dd hh24:mm:ss') CREATETIME,
 		to_char(t.TRANSFERTRADETIME, 'yyyy-MM-dd hh24:mm:ss') TRANSFERTRADETIME,
-		t.WRTRADEDETAILID
+		to_char(t.WRTRADEDETAILID) WRTRADEDETAILID
 	from THJ_PurchaseTransfer t 
 	inner join THJ_PurchaseTradeDetail d on d.WRTRADEDETAILID = t.WRTRADEDETAILID
 	left join wr_presaleinfo pi on pi.presaleapplyid = t.presaleapplyid