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
189775df
Commit
189775df
authored
Aug 17, 2021
by
hzc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
指标新增排序号和考核类别
parent
ab22ba49
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
+20
-2
DataEnterCtrl.java
...com/keymobile/indicators/api/hytobacco/DataEnterCtrl.java
+1
-0
BaseIndDef.java
...mobile/indicators/model/entity/indicators/BaseIndDef.java
+1
-1
DriveIndDef.java
...obile/indicators/model/entity/indicators/DriveIndDef.java
+3
-1
DriveIndDefService.java
...bile/indicators/service/hytobacco/DriveIndDefService.java
+15
-0
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/DataEnterCtrl.java
View file @
189775df
...
...
@@ -115,6 +115,7 @@ public class DataEnterCtrl {
//查同期(精确值
List
<
TaskIndValue
>
indLastCorrectValues
=
taskService
.
findDefaultValues
(
sameTermValueTimeStr
,
sameTermValueTimeStr
,
indIds
);
list
=
genernateEditObjects
(
task
,
defaultValues
,
defaultLastValueValues
,
indLastCorrectValues
,
objs
,
groupObj
.
getObjType
());
}
else
{
//查询精确值
...
...
src/main/java/com/keymobile/indicators/model/entity/indicators/BaseIndDef.java
View file @
189775df
...
...
@@ -37,7 +37,7 @@ public class BaseIndDef {
private
String
code
;
//标识编码
private
Integer
catalogId
;
//挂靠目录id
private
String
catalogIdPath
;
//挂靠目录idPath,方便用目录类别找到对应的挂靠指标
private
List
<
BaseIndDef
>
childrens
=
new
ArrayList
<>();
//子基础项
private
String
formulaInfo
;
...
...
src/main/java/com/keymobile/indicators/model/entity/indicators/DriveIndDef.java
View file @
189775df
...
...
@@ -40,6 +40,8 @@ public class DriveIndDef {
private
Date
updateTime
;
private
Integer
defStaTime
;
private
Integer
defEndTime
;
private
Integer
indNum
;
//指标序号 - 2021/8/17 hzc
private
String
checkType
;
//考核类型- 2021/8/17 hzc
private
String
formulaInfo
;
}
src/main/java/com/keymobile/indicators/service/hytobacco/DriveIndDefService.java
View file @
189775df
...
...
@@ -9,6 +9,9 @@ import java.util.Map;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
com.keymobile.indicators.constant.Constants
;
import
com.keymobile.indicators.model.entity.indicators.DriveIndCatalog
;
import
com.keymobile.indicators.model.mapper.indmapper.DriveIndCatalogMapper
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -37,6 +40,9 @@ public class DriveIndDefService {
private
ShortboardRuleMapper
shortboardRuleMapper
;
@Autowired
private
IndicatorsRelService
indRelService
;
@Autowired
private
DriveIndCatalogMapper
driveIndCatalogMapper
;
public
String
saveOrUpdate
(
DriveIndDef
driveIndDef
,
String
code
,
Integer
catalogId
,
String
catalogIdPath
,
String
user
,
String
isUpdate
,
String
shortboardIds
)
throws
Exception
{
//判断公式合法性
...
...
@@ -47,6 +53,15 @@ public class DriveIndDefService {
if
(
StringUtils
.
isBlank
(
driveIndDef
.
getIndId
()))
{
throw
new
Exception
(
"指标编号不能为空"
);
}
String
[]
idPathArr
=
catalogIdPath
.
split
(
Constants
.
SEP_NOUN
);
String
catalogPid
=
idPathArr
[
0
];
if
(
idPathArr
.
length
>
1
){
//上一级目录id
catalogPid
=
idPathArr
[
idPathArr
.
length
-
2
];
}
DriveIndCatalog
driveIndCatalog
=
driveIndCatalogMapper
.
selectByPrimaryKey
(
catalogPid
);
driveIndDef
.
setIndLevel
(
driveIndCatalog
.
getCatalogName
());
if
(
"0"
.
equals
(
isUpdate
))
{
//新建
DriveIndDef
dbDriveIndDef
=
this
.
getById
(
driveIndDef
.
getIndId
());
if
(
dbDriveIndDef
!=
null
)
{
...
...
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