Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nbya
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
haoyanbin
nbya
Commits
ba19a872
Commit
ba19a872
authored
Jan 24, 2022
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c73565e3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
org_match_evaluate.go
app/operate/apis/org_match_evaluate.go
+1
-0
org_match_evaluate_wonderful.go
app/operate/service/dto/org_match_evaluate_wonderful.go
+1
-0
org_match_evaluate_wonderful.go
app/operate/service/org_match_evaluate_wonderful.go
+1
-0
No files found.
app/operate/apis/org_match_evaluate.go
View file @
ba19a872
...
@@ -277,6 +277,7 @@ func (e OrgMatchEvaluate) Update(c *gin.Context) {
...
@@ -277,6 +277,7 @@ func (e OrgMatchEvaluate) Update(c *gin.Context) {
}
}
reqWonderfulDelete
:=
dto
.
OrgMatchEvaluateWonderfulDeleteReq
{}
reqWonderfulDelete
:=
dto
.
OrgMatchEvaluateWonderfulDeleteReq
{}
reqWonderfulDelete
.
Ids
=
delIds
reqWonderfulDelete
.
Ids
=
delIds
reqWonderfulDelete
.
EId
=
eId
sWonderful
.
Remove
(
&
reqWonderfulDelete
)
sWonderful
.
Remove
(
&
reqWonderfulDelete
)
e
.
OK
(
req
.
GetId
(),
"修改成功"
)
e
.
OK
(
req
.
GetId
(),
"修改成功"
)
}
}
app/operate/service/dto/org_match_evaluate_wonderful.go
View file @
ba19a872
...
@@ -91,6 +91,7 @@ func (s *OrgMatchEvaluateWonderfulGetReq) GetId() interface{} {
...
@@ -91,6 +91,7 @@ func (s *OrgMatchEvaluateWonderfulGetReq) GetId() interface{} {
// OrgMatchEvaluateWonderfulDeleteReq 功能删除请求参数
// OrgMatchEvaluateWonderfulDeleteReq 功能删除请求参数
type
OrgMatchEvaluateWonderfulDeleteReq
struct
{
type
OrgMatchEvaluateWonderfulDeleteReq
struct
{
Ids
[]
int
`json:"ids"`
Ids
[]
int
`json:"ids"`
EId
int
`json:"eId"`
}
}
func
(
s
*
OrgMatchEvaluateWonderfulDeleteReq
)
GetId
()
interface
{}
{
func
(
s
*
OrgMatchEvaluateWonderfulDeleteReq
)
GetId
()
interface
{}
{
...
...
app/operate/service/org_match_evaluate_wonderful.go
View file @
ba19a872
...
@@ -95,6 +95,7 @@ func (e *OrgMatchEvaluateWonderful) Remove(d *dto.OrgMatchEvaluateWonderfulDelet
...
@@ -95,6 +95,7 @@ func (e *OrgMatchEvaluateWonderful) Remove(d *dto.OrgMatchEvaluateWonderfulDelet
db
:=
e
.
Orm
.
Model
(
&
data
)
.
db
:=
e
.
Orm
.
Model
(
&
data
)
.
Where
(
"id not in (?)"
,
d
.
GetId
())
.
Where
(
"id not in (?)"
,
d
.
GetId
())
.
Where
(
"match_evaluate_id = ? "
,
d
.
EId
)
.
Delete
(
&
data
)
Delete
(
&
data
)
if
err
:=
db
.
Error
;
err
!=
nil
{
if
err
:=
db
.
Error
;
err
!=
nil
{
e
.
Log
.
Errorf
(
"Service RemoveOrgMatchEvaluateWonderful error:%s
\r\n
"
,
err
)
e
.
Log
.
Errorf
(
"Service RemoveOrgMatchEvaluateWonderful error:%s
\r\n
"
,
err
)
...
...
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