Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
admin-backend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
admin-backend
Commits
96cf036e
Commit
96cf036e
authored
Mar 12, 2024
by
brent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
27f834c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
task.go
controllers/task.go
+3
-2
task.go
models/task.go
+1
-1
No files found.
controllers/task.go
View file @
96cf036e
...
...
@@ -148,7 +148,8 @@ func (server *TaskController) BillDetails() {
queryQB
,
_
:=
orm
.
NewQueryBuilder
(
"mysql"
)
queryQB
.
Select
(
"id"
,
"fee"
,
"type"
,
"time"
,
"result"
)
.
From
(
"bills"
)
.
Where
(
"worker_acc != ''"
)
From
(
"bills"
)
.
Where
(
"worker_acc != ''"
)
.
And
(
"uid != ''"
)
if
info
.
Role
!=
1
&&
info
.
Role
!=
2
{
countQB
.
And
(
fmt
.
Sprintf
(
"uid = '%d'"
,
info
.
UserID
))
...
...
@@ -350,7 +351,7 @@ func (server *TaskController) Tasks() {
ApiPath
:
apiPath
,
Model
:
model
,
BaseModel
:
baseModel
,
Kind
:
kind
,
Kind
:
models
.
TaskKind
(
kind
)
.
EnString
()
,
//Desc: desc,
Workload
:
task
.
Workload
,
ProfitAcc
:
task
.
ProfitAcc
,
...
...
models/task.go
View file @
96cf036e
...
...
@@ -176,7 +176,7 @@ type Bills struct {
//Key int `orm:"column(key);auto"`
Id
string
`json:"id";orm:"column(id)"`
Type
string
`json:"type";orm:"column(type)"`
Kind
int
`json:"kind,omitempty"`
Kind
string
`json:"kind,omitempty"`
Uid
string
`json:"uid";orm:"column(uid)"`
ProfitAcc
string
`json:"profit_acc";orm:"column(profit_acc)"`
Fee
string
`json:"fee";orm:"column(fee)"`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment