|
|
@@ -38,7 +38,7 @@ func (EnterpriseWithCompanyWithWxpayInfo) TableName() string { |
|
|
|
} |
|
|
|
|
|
|
|
func (companyWithWxpayInfoDb *CompanyWithWxpayInfoDb) GetCompanyWithWxpayInfoByEnterprise(enterpriseId int) (wxMchId string, err error) { |
|
|
|
var m *EnterpriseWithCompanyWithWxpayInfo |
|
|
|
var m EnterpriseWithCompanyWithWxpayInfo |
|
|
|
get, err := companyWithWxpayInfoDb.Db.Where("enterprise.id = ?", enterpriseId). |
|
|
|
Join("LEFT", "company", "enterprise.company_id = company.id"). |
|
|
|
Join("LEFT", "company_with_wxpay_info", "company.id = company_with_wxpay_info.company_id"). |
|
|
|