|
|
@@ -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" +
|