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
6a786477
Commit
6a786477
authored
Sep 11, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hy-tobacco' of
ssh://132.232.112.242:7022/zhangkb/indicators
into hy-tobacco
parents
3fb0df06
36d744e5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
13 deletions
+29
-13
DataEnterCtrl.java
...com/keymobile/indicators/api/hytobacco/DataEnterCtrl.java
+6
-2
TaskMapper.java
...mobile/indicators/model/mapper/indicators/TaskMapper.java
+2
-0
TaskServiceImpl.java
...le/indicators/service/dataenter/impl/TaskServiceImpl.java
+16
-10
TaskMapper.xml
src/main/resources/mybatis/mapping/TaskMapper.xml
+5
-1
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/DataEnterCtrl.java
View file @
6a786477
...
@@ -401,7 +401,6 @@ public class DataEnterCtrl {
...
@@ -401,7 +401,6 @@ public class DataEnterCtrl {
data
.
add
(
value
.
getIndName
());
data
.
add
(
value
.
getIndName
());
data
.
add
(
value
.
getIndUnit
());
data
.
add
(
value
.
getIndUnit
());
data
.
add
(
value
.
getObjName
());
data
.
add
(
value
.
getObjName
());
data
.
add
(
value
.
getIndValue
());
if
(
StringUtils
.
isNotBlank
(
value
.
getIndValue
()))
{
if
(
StringUtils
.
isNotBlank
(
value
.
getIndValue
()))
{
data
.
add
(
value
.
getIndValue
());
data
.
add
(
value
.
getIndValue
());
}
else
{
}
else
{
...
@@ -412,6 +411,11 @@ public class DataEnterCtrl {
...
@@ -412,6 +411,11 @@ public class DataEnterCtrl {
}
else
{
}
else
{
data
.
add
(
""
);
data
.
add
(
""
);
}
}
if
(
StringUtils
.
isNotBlank
(
value
.
getDescription
()))
{
data
.
add
(
value
.
getDescription
());
}
else
{
data
.
add
(
""
);
}
datas
.
add
(
data
);
datas
.
add
(
data
);
}
}
}
else
{
}
else
{
...
@@ -517,7 +521,7 @@ public class DataEnterCtrl {
...
@@ -517,7 +521,7 @@ public class DataEnterCtrl {
ExcelObj
obj
,
boolean
hasSameTerm
,
List
<
String
>
data
)
{
ExcelObj
obj
,
boolean
hasSameTerm
,
List
<
String
>
data
)
{
for
(
TaskIndValue
value
:
values
)
{
for
(
TaskIndValue
value
:
values
)
{
if
(
indicator
.
getIndId
().
equals
(
value
.
getIndId
())
&&
if
(
indicator
.
getIndId
().
equals
(
value
.
getIndId
())
&&
obj
.
getObjType
().
equals
(
value
.
getObjType
())&&
//
obj.getObjType().equals(value.getObjType())&&
obj
.
getObjId
().
equals
(
value
.
getObjId
()))
{
obj
.
getObjId
().
equals
(
value
.
getObjId
()))
{
if
(
StringUtils
.
isNotBlank
(
value
.
getIndValue
()))
{
if
(
StringUtils
.
isNotBlank
(
value
.
getIndValue
()))
{
data
.
add
(
value
.
getIndValue
());
data
.
add
(
value
.
getIndValue
());
...
...
src/main/java/com/keymobile/indicators/model/mapper/indicators/TaskMapper.java
View file @
6a786477
...
@@ -79,4 +79,6 @@ public interface TaskMapper extends BaseMapper<Task> {
...
@@ -79,4 +79,6 @@ public interface TaskMapper extends BaseMapper<Task> {
Integer
selectAuDateOrEnDateCounts
(
QueryTaskParam
param
);
Integer
selectAuDateOrEnDateCounts
(
QueryTaskParam
param
);
Integer
updateTaskStatusById
(
@Param
(
"taskId"
)
String
taskId
,
@Param
(
"status"
)
Integer
status
);
Integer
updateTaskStatusById
(
@Param
(
"taskId"
)
String
taskId
,
@Param
(
"status"
)
Integer
status
);
String
selectToRoleIdByTaskId
(
String
taskId
);
}
}
src/main/java/com/keymobile/indicators/service/dataenter/impl/TaskServiceImpl.java
View file @
6a786477
...
@@ -284,19 +284,25 @@ public class TaskServiceImpl implements TaskService {
...
@@ -284,19 +284,25 @@ public class TaskServiceImpl implements TaskService {
Task
task
=
taskMapper
.
getById
(
taskId
);
Task
task
=
taskMapper
.
getById
(
taskId
);
String
ruleLevel
=
task
.
getRuleLevel
();
String
ruleLevel
=
task
.
getRuleLevel
();
String
orgNo
=
task
.
getOrgNo
();
String
orgNo
=
task
.
getOrgNo
();
String
auditUsers
=
task
.
getAuditUsers
();
TaskRuleTargetRoles
taskRuleTargetRoles
=
taskRuleTargetRolesMapper
.
getByOrgNo
(
orgNo
);
TaskRuleTargetRoles
taskRuleTargetRoles
=
taskRuleTargetRolesMapper
.
getByOrgNo
(
orgNo
);
String
enterRoleIdsStr
=
taskRuleTargetRoles
.
getEnterRoleIds
();
// ConfigInfo configInfo = null;
String
auditRoleIds
=
taskRuleTargetRoles
.
getAuditRoleIds
();
// if (Constants.PRIVINCE_TO_CITY.equals(ruleLevel)) {
String
[]
enterRoleIds
=
enterRoleIdsStr
.
split
(
Constants
.
SEP_COMMA
);
// configInfo = configInfoService.getConfigInfoById(Constants.RULE_PROVINCE_AUDIT_ROLE);
//获取填报人角色id
// } else if (Constants.PRIVINCE_TO_COUNTY.equals(ruleLevel)) {
String
roleId
=
taskMapper
.
selectToRoleIdByTaskId
(
taskId
);
// configInfo = configInfoService.getConfigInfoById(Constants.RULE_CITY_AUDIT_ROLE);
//找不到对应的,按原来的方法走。。。。
// } else if (Constants.CITY_TO_COUNTY.equals(ruleLevel)) {
// configInfo = configInfoService.getConfigInfoById(Constants.RULE_COUNTY_AUDIT_ROLE);
String
roleIdStr
=
taskRuleTargetRoles
.
getAuditRoleIds
();
// }
for
(
int
i
=
0
;
i
<
enterRoleIds
.
length
;
i
++)
{
if
(
enterRoleIds
[
i
].
equals
(
roleId
)){
roleIdStr
=
auditRoleIds
.
split
(
Constants
.
SEP_COMMA
)[
i
];
break
;
}
}
if
(
taskRuleTargetRoles
!=
null
)
{
if
(
taskRuleTargetRoles
!=
null
)
{
String
indDept
=
task
.
getRefIndDept
();
String
indDept
=
task
.
getRefIndDept
();
List
<
RoleRefUserModel
>
users
=
getUserByRoleIdStr
(
taskRuleTargetRoles
.
getAuditRoleIds
()
);
List
<
RoleRefUserModel
>
users
=
getUserByRoleIdStr
(
roleIdStr
);
if
(
CollectionUtils
.
isNotEmpty
(
users
))
{
if
(
CollectionUtils
.
isNotEmpty
(
users
))
{
StringBuilder
userIds
=
new
StringBuilder
(
Constants
.
SEP_COMMA
);
StringBuilder
userIds
=
new
StringBuilder
(
Constants
.
SEP_COMMA
);
StringBuilder
userNames
=
new
StringBuilder
(
Constants
.
SEP_COMMA
);
StringBuilder
userNames
=
new
StringBuilder
(
Constants
.
SEP_COMMA
);
...
...
src/main/resources/mybatis/mapping/TaskMapper.xml
View file @
6a786477
...
@@ -168,5 +168,8 @@
...
@@ -168,5 +168,8 @@
`status`=#{status}
`status`=#{status}
WHERE state = 1 and id= #{taskId}
WHERE state = 1 and id= #{taskId}
</update>
</update>
<select
id=
"selectToRoleIdByTaskId"
resultType=
"java.lang.String"
parameterType=
"java.lang.String"
>
select rule.to_role_ids from data_enter_task_rule rule,
data_enter_task task where rule.id = task.rule_id and task.id=#{taskId}
</select>
</mapper>
</mapper>
\ No newline at end of file
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