Commit def320d9 authored by brent's avatar brent

modify

parent 96cf036e
...@@ -144,12 +144,13 @@ func (server *TaskController) BillDetails() { ...@@ -144,12 +144,13 @@ func (server *TaskController) BillDetails() {
countQB, _ := orm.NewQueryBuilder("mysql") countQB, _ := orm.NewQueryBuilder("mysql")
countQB.Select("count(*)"). countQB.Select("count(*)").
From("bills").Where("worker_acc != ''") From("bills").Where("worker_acc != ''").
And("uid != '0'")
queryQB, _ := orm.NewQueryBuilder("mysql") queryQB, _ := orm.NewQueryBuilder("mysql")
queryQB.Select("id", "fee", "type", "time", "result"). queryQB.Select("id", "fee", "type", "time", "result").
From("bills").Where("worker_acc != ''"). From("bills").Where("worker_acc != ''").
And("uid != ''") And("uid != '0'")
if info.Role != 1 && info.Role != 2 { if info.Role != 1 && info.Role != 2 {
countQB.And(fmt.Sprintf("uid = '%d'", info.UserID)) countQB.And(fmt.Sprintf("uid = '%d'", info.UserID))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment