This website works better with JavaScript.
Home
Explore
Help
Sign In
SmartCanteen
/
smart_canteen
Watch
2
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
update
master
dengbiao
2 months ago
parent
cb4f0a3831
commit
0579f4c610
2 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
app/admin/md/md_enterprise.go
+3
-0
app/admin/svc/svc_enterprise.go
+ 1
- 0
app/admin/md/md_enterprise.go
View File
@@ -50,6 +50,7 @@ type EnterpriseListReq struct {
Kind int `json:"kind" label:"种类"`
Pvd int `json:"pvd" label:"场景"`
Mode int `json:"mode" label:"模式"`
State int32 `json:"state" label:"状态"`
}
type EnterpriseDetailResp struct {
+ 3
- 0
app/admin/svc/svc_enterprise.go
View File
@@ -38,6 +38,9 @@ func EnterpriseList(admin model.Admin, req md.EnterpriseListReq) (m []model.Ente
if req.Mode != 0 {
sess.And("mode = ?", req.Mode)
}
if req.State != 0 {
sess.And("state = ?", req.State)
}
total, err = sess.FindAndCount(&m)
if err != nil {
return
Write
Preview
Loading…
Cancel
Save