Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
indicators
Overview
Overview
Details
Activity
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
zhangkb
indicators
Commits
03ebd90f
Commit
03ebd90f
authored
Jul 14, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改考核指标新增修改接口bug
parent
bbf353e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
IndicatorsDefCtrl.java
...keymobile/indicators/api/hytobacco/IndicatorsDefCtrl.java
+2
-2
DriveIndDefService.java
...bile/indicators/service/hytobacco/DriveIndDefService.java
+1
-1
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/IndicatorsDefCtrl.java
View file @
03ebd90f
...
...
@@ -98,10 +98,10 @@ public class IndicatorsDefCtrl {
@ApiOperation
(
value
=
"新建考核指标(isUpdate:0 新增 1修改)"
,
notes
=
"新建考核指标(isUpdate:0 新增 1修改)"
)
@PostMapping
(
value
=
"/createDriveInd"
)
public
void
createDriveInd
(
@RequestBody
DriveIndDef
driveIndDef
,
@RequestParam
String
code
,
@RequestParam
Integer
catalogId
,
public
String
createDriveInd
(
@RequestBody
DriveIndDef
driveIndDef
,
@RequestParam
String
code
,
@RequestParam
Integer
catalogId
,
@RequestParam
String
catalogIdPath
,
@RequestParam
String
user
,
@RequestParam
String
isUpdate
,
@RequestParam
(
required
=
false
)
String
shortboardIds
)
throws
Exception
{
driveIndDefService
.
saveOrUpdate
(
driveIndDef
,
code
,
catalogId
,
catalogIdPath
,
user
,
isUpdate
,
shortboardIds
);
return
driveIndDefService
.
saveOrUpdate
(
driveIndDef
,
code
,
catalogId
,
catalogIdPath
,
user
,
isUpdate
,
shortboardIds
);
}
@ApiOperation
(
value
=
"删除考核指标"
,
notes
=
"删除考核指标"
)
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/DriveIndDefService.java
View file @
03ebd90f
...
...
@@ -45,7 +45,7 @@ public class DriveIndDefService {
}
if
(
"0"
.
equals
(
isUpdate
))
{
//新建
DriveIndDef
dbDriveIndDef
=
this
.
getById
(
driveIndDef
.
getIndId
());
if
(
dbDriveIndDef
=
=
null
)
{
if
(
dbDriveIndDef
!
=
null
)
{
return
"indId is exist,create drive indicators fail"
;
}
else
{
driveIndDef
.
setCreater
(
user
);
...
...
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