|
@@ -166,6 +166,7 @@ type ErmcpUserModel struct {
|
|
|
STATUSDESC string `json:"statusdesc"` // 账户状态中文描述
|
|
STATUSDESC string `json:"statusdesc"` // 账户状态中文描述
|
|
|
ATTACHMENT1 string `json:"attachment1" xorm:"'ATTACHMENT1'"` // 附件1
|
|
ATTACHMENT1 string `json:"attachment1" xorm:"'ATTACHMENT1'"` // 附件1
|
|
|
CARDFRONTPHOTOURL string `json:"cardfrontphotourl" xorm:"'CARDFRONTPHOTOURL'"` // 证件正面图片地址
|
|
CARDFRONTPHOTOURL string `json:"cardfrontphotourl" xorm:"'CARDFRONTPHOTOURL'"` // 证件正面图片地址
|
|
|
|
|
+ CARDBACKPHOTOURL string `json:"cardbackphotourl" xorm:"'CARDBACKPHOTOURL'"` // 证件反面图片地址
|
|
|
COUNTRYID int32 `json:"countryid" xorm:"'COUNTRYID'"` // 国家
|
|
COUNTRYID int32 `json:"countryid" xorm:"'COUNTRYID'"` // 国家
|
|
|
PROVINCEID int32 `json:"provinceid" xorm:"'PROVINCEID'"` // 省
|
|
PROVINCEID int32 `json:"provinceid" xorm:"'PROVINCEID'"` // 省
|
|
|
CITYID int32 `json:"cityid" xorm:"'CITYID'"` // 市
|
|
CITYID int32 `json:"cityid" xorm:"'CITYID'"` // 市
|
|
@@ -177,6 +178,7 @@ type ErmcpUserModel struct {
|
|
|
TAXPAYERNUM string `json:"taxpayernum" xorm:"'taxpayernum'"` // 纳税人识别号
|
|
TAXPAYERNUM string `json:"taxpayernum" xorm:"'taxpayernum'"` // 纳税人识别号
|
|
|
LEGALPERSONNAME string `json:"legalpersonname" xorm:"'legalpersonname'"` // 法人姓名(企业)
|
|
LEGALPERSONNAME string `json:"legalpersonname" xorm:"'legalpersonname'"` // 法人姓名(企业)
|
|
|
CONTACTNAME string `json:"contactname" xorm:"'contactname'"` // 联系人
|
|
CONTACTNAME string `json:"contactname" xorm:"'contactname'"` // 联系人
|
|
|
|
|
+ EMAIL string `json:"email" xorm:"'EMAIL'"` // 邮件
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (r *ErmcpUserModel) buildWskhSql(accStatus string) string {
|
|
func (r *ErmcpUserModel) buildWskhSql(accStatus string) string {
|
|
@@ -194,6 +196,7 @@ func (r *ErmcpUserModel) buildWskhSql(accStatus string) string {
|
|
|
" t.REMARK," +
|
|
" t.REMARK," +
|
|
|
" t.ATTACHMENT1," +
|
|
" t.ATTACHMENT1," +
|
|
|
" t.CARDFRONTPHOTOURL," +
|
|
" t.CARDFRONTPHOTOURL," +
|
|
|
|
|
+ " t.CARDBACKPHOTOURL," +
|
|
|
" t.userstate status," +
|
|
" t.userstate status," +
|
|
|
" t.countryid," +
|
|
" t.countryid," +
|
|
|
" t.provinceid," +
|
|
" t.provinceid," +
|
|
@@ -204,7 +207,8 @@ func (r *ErmcpUserModel) buildWskhSql(accStatus string) string {
|
|
|
" to_char(t.auditime,'yyyy-mm-dd hh24:mi:ss') audittime," +
|
|
" to_char(t.auditime,'yyyy-mm-dd hh24:mi:ss') audittime," +
|
|
|
" t.taxpayernum," +
|
|
" t.taxpayernum," +
|
|
|
" t.legalpersonname," +
|
|
" t.legalpersonname," +
|
|
|
- " t.contactname" +
|
|
|
|
|
|
|
+ " t.contactname," +
|
|
|
|
|
+ " t.email" +
|
|
|
" from wskh_userinfo t" +
|
|
" from wskh_userinfo t" +
|
|
|
" left join enumdicitem e" +
|
|
" left join enumdicitem e" +
|
|
|
" on t.cardtype = e.enumitemname" +
|
|
" on t.cardtype = e.enumitemname" +
|
|
@@ -231,6 +235,7 @@ func (r *ErmcpUserModel) buildSql(accStatus string) string {
|
|
|
" u.REMARK," +
|
|
" u.REMARK," +
|
|
|
" u.ATTACHMENT1," +
|
|
" u.ATTACHMENT1," +
|
|
|
" u.CARDFRONTPHOTOURL," +
|
|
" u.CARDFRONTPHOTOURL," +
|
|
|
|
|
+ " u.CARDBACKPHOTOURL," +
|
|
|
" t.accountstatus status," +
|
|
" t.accountstatus status," +
|
|
|
" u.countryid," +
|
|
" u.countryid," +
|
|
|
" u.provinceid," +
|
|
" u.provinceid," +
|
|
@@ -238,6 +243,7 @@ func (r *ErmcpUserModel) buildSql(accStatus string) string {
|
|
|
" u.taxpayernum," +
|
|
" u.taxpayernum," +
|
|
|
" u.legalpersonname," +
|
|
" u.legalpersonname," +
|
|
|
" u.contactname," +
|
|
" u.contactname," +
|
|
|
|
|
+ " u.email," +
|
|
|
" to_char(t.createtime,'yyyy-mm-dd hh24:mi:ss') createtime," +
|
|
" to_char(t.createtime,'yyyy-mm-dd hh24:mi:ss') createtime," +
|
|
|
" to_char(t.modifytime,'yyyy-mm-dd hh24:mi:ss') modifytime," +
|
|
" to_char(t.modifytime,'yyyy-mm-dd hh24:mi:ss') modifytime," +
|
|
|
" to_char(t.audittime,'yyyy-mm-dd hh24:mi:ss') audittime," +
|
|
" to_char(t.audittime,'yyyy-mm-dd hh24:mi:ss') audittime," +
|
|
@@ -279,6 +285,7 @@ func (r *ErmcpUserModel) DecryptField(isWskh bool) {
|
|
|
|
|
|
|
|
r.CARDNUM = fd(r.CARDNUM)
|
|
r.CARDNUM = fd(r.CARDNUM)
|
|
|
r.MOBILE = fd(r.MOBILE)
|
|
r.MOBILE = fd(r.MOBILE)
|
|
|
|
|
+ r.EMAIL = fd(r.EMAIL)
|
|
|
|
|
|
|
|
if !isWskh {
|
|
if !isWskh {
|
|
|
// 正式用户表(非网上开户)需要解密电话号码
|
|
// 正式用户表(非网上开户)需要解密电话号码
|