KK 3 years ago
parent c25c701ea6
commit 5dd1557b82

@ -19,12 +19,13 @@ import (
type AppUserReq struct {
bean.Page
AppUserInfo
Mobile string `json:"mobile"`
Nickname string `json:"nickname"`
Start string `json:"start"`
End string `json:"end"`
Kind uint `json:"kind"`
TaxBillType string `json:"taxBillType"`
IsEnterprise uint `json:"isEnterprise"` // 1公司 2 个人
TaxType string `json:"tax_type"`
IsEnterprise uint `json:"is_enterprise"` // 1公司 2 个人
}
type AppUserInfo struct {
@ -70,7 +71,7 @@ func (o logic) AppUser(args AppUserReq) (res []AppUserInfo, total int64, err err
if args.TaxType != "" {
query = query.Where("id in (?)", mysql.Db.Select("user_id").Model(&company.Info{}).Where("tax_type = ?", args.TaxType))
}
if args.IsEnterprise != 0 { // 判断公司还是个人
if args.IsEnterprise == 0 { // 判断公司还是个人
if args.IsEnterprise == 1 {
query = query.Where("is_enterprise = ? ", args.IsEnterprise)
} else {

Loading…
Cancel
Save