Selaa lähdekoodia

修改BUG:长数字ID转为字符串类型

zou.yingbin 5 vuotta sitten
vanhempi
commit
423ee97e72
1 muutettua tiedostoa jossa 6 lisäystä ja 6 poistoa
  1. 6 6
      models/contractModel.go

+ 6 - 6
models/contractModel.go

@@ -126,25 +126,25 @@ type PendingAuditBizModel struct {
 
 func (r *PendingAuditBizModel) buildSql(accIDs string) string {
 	sqlId := "select t.*, u.accountname AreaName" +
-		"  from (select spottradeid   BizID," +
+		"  from (select to_char(spottradeid)   BizID," +
 		"               spottradename BizName," +
-		"               spotaccountid AccountID," +
+		"               to_char(spotaccountid) AccountID," +
 		"               3               as Type," +
 		"               areauserid    userId," +
 		"               applystatus   Status" +
 		"          from erms2_spottradeapply" +
 		"        union all" +
-		"        select wrrcontractid   BizID," +
+		"        select to_char(wrrcontractid)   BizID," +
 		"               wrrcontractname BizName," +
-		"               accountid," +
+		"               to_char(accountid) accountid," +
 		"               2                 as Type," +
 		"               areauserid      userId," +
 		"               applystatus     Status" +
 		"          from erms2_wrrapply t" +
 		"        union all" +
-		"        select a.asapplyid   BizID," +
+		"        select to_char(a.asapplyid)   BizID," +
 		"               a.asname      BizName," +
-		"               b.accountid," +
+		"               to_char(b.accountid) accountid," +
 		"               1             as Type," +
 		"               a.userid," +
 		"               a.applystatus Status" +