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
66564790
Commit
66564790
authored
Jul 14, 2020
by
张祺
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hy-tobacco' of
http://132.232.112.242:7090/zhangkb/indicators
into hy-tobacco
parents
d4870059
3eaae77b
Show 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 @
66564790
...
@@ -98,10 +98,10 @@ public class IndicatorsDefCtrl {
...
@@ -98,10 +98,10 @@ public class IndicatorsDefCtrl {
@ApiOperation
(
value
=
"新建考核指标(isUpdate:0 新增 1修改)"
,
notes
=
"新建考核指标(isUpdate:0 新增 1修改)"
)
@ApiOperation
(
value
=
"新建考核指标(isUpdate:0 新增 1修改)"
,
notes
=
"新建考核指标(isUpdate:0 新增 1修改)"
)
@PostMapping
(
value
=
"/createDriveInd"
)
@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
String
catalogIdPath
,
@RequestParam
String
user
,
@RequestParam
String
isUpdate
,
@RequestParam
(
required
=
false
)
String
shortboardIds
)
throws
Exception
{
@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
=
"删除考核指标"
)
@ApiOperation
(
value
=
"删除考核指标"
,
notes
=
"删除考核指标"
)
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/DriveIndDefService.java
View file @
66564790
...
@@ -45,7 +45,7 @@ public class DriveIndDefService {
...
@@ -45,7 +45,7 @@ public class DriveIndDefService {
}
}
if
(
"0"
.
equals
(
isUpdate
))
{
//新建
if
(
"0"
.
equals
(
isUpdate
))
{
//新建
DriveIndDef
dbDriveIndDef
=
this
.
getById
(
driveIndDef
.
getIndId
());
DriveIndDef
dbDriveIndDef
=
this
.
getById
(
driveIndDef
.
getIndId
());
if
(
dbDriveIndDef
=
=
null
)
{
if
(
dbDriveIndDef
!
=
null
)
{
return
"indId is exist,create drive indicators fail"
;
return
"indId is exist,create drive indicators fail"
;
}
else
{
}
else
{
driveIndDef
.
setCreater
(
user
);
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