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
7e57e227
Commit
7e57e227
authored
Feb 23, 2024
by
brent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify task type
parent
5b7780ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
task.go
controllers/task.go
+2
-5
lastupdate.tmp
lastupdate.tmp
+1
-1
mysql.go
libs/mysql/mysql.go
+0
-1
No files found.
controllers/task.go
View file @
7e57e227
...
...
@@ -1391,11 +1391,8 @@ func (server *TaskController) GetTaskTypes() {
var
types
[]
*
models
.
TaskType
sql
:=
"SELECT count(*) FROM task_type WHERE deleted = 0;"
total
,
err
:=
postgres
.
QueryTotal
(
sql
)
if
err
!=
nil
{
server
.
respond
(
models
.
BusinessFailed
,
err
.
Error
())
return
}
var
total
int64
mysql
.
GetMysqlInstace
()
.
Ormer
.
Raw
(
sql
)
.
QueryRow
(
&
total
)
logs
.
Debug
(
"total = %d"
,
total
)
if
total
==
0
{
responseData
:=
struct
{
...
...
lastupdate.tmp
View file @
7e57e227
{"/Users/brent/Documents/wubanWork/ai_developer_admin/controllers":1708678164620771077}
\ No newline at end of file
{"/Users/brent/Documents/wubanWork/ai_developer_admin/controllers":1708684702731316975}
\ No newline at end of file
libs/mysql/mysql.go
View file @
7e57e227
...
...
@@ -61,5 +61,4 @@ func init() {
}
orm
.
SetMaxIdleConns
(
"default"
,
10
)
orm
.
SetMaxOpenConns
(
"default"
,
100
)
}
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