|
@@ -5054,6 +5054,7 @@ type WrDraftUserInfo struct {
|
|
|
CREDITQUOTA float64 `json:"creditquota" xorm:"CREDITQUOTA"` // 授信额度(金瑞)
|
|
CREDITQUOTA float64 `json:"creditquota" xorm:"CREDITQUOTA"` // 授信额度(金瑞)
|
|
|
|
|
|
|
|
Bankbankname string `json:"bankbankname" xorm:"BANKBANKNAME"` // 银行名称
|
|
Bankbankname string `json:"bankbankname" xorm:"BANKBANKNAME"` // 银行名称
|
|
|
|
|
+ MODIFYSTATUS int32 `json:"modifystatus" xorm:"MODIFYSTATUS"` // 变更状态(枚举'modifystatus')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (r *WrDraftUserInfo) calc() {
|
|
func (r *WrDraftUserInfo) calc() {
|
|
@@ -5069,15 +5070,17 @@ func (r *WrDraftUserInfo) calc() {
|
|
|
|
|
|
|
|
func (r *WrDraftUserInfo) buildSql() string {
|
|
func (r *WrDraftUserInfo) buildSql() string {
|
|
|
var sqlId utils.SQLVal = `
|
|
var sqlId utils.SQLVal = `
|
|
|
-SELECT to_char(t.BIRTHDAY, 'yyyy-mm-dd hh24:mi:ss') BIRTHDAY2,
|
|
|
|
|
- to_char(t.CREATETIME, 'yyyy-mm-dd hh24:mi:ss') CREATETIME2,
|
|
|
|
|
- to_char(t.MODIFIERTIME, 'yyyy-mm-dd hh24:mi:ss') MODIFIERTIME2,
|
|
|
|
|
- t.*,
|
|
|
|
|
- b.bankname BANKBANKNAME
|
|
|
|
|
- FROM DRAFT_USERINFO t
|
|
|
|
|
- LEFT JOIN bank_bankinfo b on b.bankid = t.bankid
|
|
|
|
|
- WHERE 1 = 1
|
|
|
|
|
-`
|
|
|
|
|
|
|
+ SELECT to_char(t.BIRTHDAY, 'yyyy-mm-dd hh24:mi:ss') BIRTHDAY2,
|
|
|
|
|
+ to_char(t.CREATETIME, 'yyyy-mm-dd hh24:mi:ss') CREATETIME2,
|
|
|
|
|
+ to_char(t.MODIFIERTIME, 'yyyy-mm-dd hh24:mi:ss') MODIFIERTIME2,
|
|
|
|
|
+ t.*,
|
|
|
|
|
+ b.bankname BANKBANKNAME,
|
|
|
|
|
+ ua.modifystatus MODIFYSTATUS
|
|
|
|
|
+ FROM DRAFT_USERINFO t
|
|
|
|
|
+ LEFT JOIN bank_bankinfo b on b.bankid = t.bankid
|
|
|
|
|
+ LEFT JOIN useraccount ua on ua.userid = t.userid
|
|
|
|
|
+ WHERE 1 = 1
|
|
|
|
|
+ `
|
|
|
sqlId.And("t.userid", r.USERID)
|
|
sqlId.And("t.userid", r.USERID)
|
|
|
sqlId.AndEx("t.userstatus", r.USERSTATUS, r.USERSTATUS != 0)
|
|
sqlId.AndEx("t.userstatus", r.USERSTATUS, r.USERSTATUS != 0)
|
|
|
return sqlId.String()
|
|
return sqlId.String()
|