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
bf92a8fa
Commit
bf92a8fa
authored
Sep 03, 2020
by
hzc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改审核角色不对应和填报超时统计
parent
f87d6dea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
11 deletions
+25
-11
TaskCtrl.java
...java/com/keymobile/indicators/api/hytobacco/TaskCtrl.java
+5
-2
TaskServiceImpl.java
...le/indicators/service/dataenter/impl/TaskServiceImpl.java
+17
-6
TaskMapper.xml
src/main/resources/mybatis/mapping/TaskMapper.xml
+3
-3
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/TaskCtrl.java
View file @
bf92a8fa
...
@@ -143,12 +143,14 @@ public class TaskCtrl {
...
@@ -143,12 +143,14 @@ public class TaskCtrl {
List
<
TaskStatusCountResult
>
countResults
=
taskService
.
countTask
(
param
);
List
<
TaskStatusCountResult
>
countResults
=
taskService
.
countTask
(
param
);
if
(
CollectionUtils
.
isNotEmpty
(
countResults
))
{
if
(
CollectionUtils
.
isNotEmpty
(
countResults
))
{
int
count
=
0
;
int
count
=
0
;
int
toEditCount
=
0
;
for
(
TaskStatusCountResult
countResult
:
countResults
)
{
for
(
TaskStatusCountResult
countResult
:
countResults
)
{
if
(
countResult
.
getStatus
()
!=
null
)
{
if
(
countResult
.
getStatus
()
!=
null
)
{
switch
(
countResult
.
getStatus
())
{
switch
(
countResult
.
getStatus
())
{
case
Constants
.
APPLY_STATE_DRAFT
:
case
Constants
.
APPLY_STATE_ISSUE
:
case
Constants
.
APPLY_STATE_DRAFT
:
count
+=
countResult
.
getCount
();
count
+=
countResult
.
getCount
();
result
.
setToEditCount
(
countResult
.
getCount
()
);
toEditCount
+=
countResult
.
getCount
(
);
break
;
break
;
case
Constants
.
APPLY_STATE_AUDITING
:
case
Constants
.
APPLY_STATE_AUDITING
:
count
+=
countResult
.
getCount
();
count
+=
countResult
.
getCount
();
...
@@ -164,6 +166,7 @@ public class TaskCtrl {
...
@@ -164,6 +166,7 @@ public class TaskCtrl {
}
}
}
}
}
}
result
.
setToEditCount
(
toEditCount
);
result
.
setTotalCount
(
count
);
result
.
setTotalCount
(
count
);
//获取填报超时审核超时数
//获取填报超时审核超时数
TaskAnalysisResult
taskAnalysisResult
=
taskService
.
stateCounts
(
param
);
TaskAnalysisResult
taskAnalysisResult
=
taskService
.
stateCounts
(
param
);
...
...
src/main/java/com/keymobile/indicators/service/dataenter/impl/TaskServiceImpl.java
View file @
bf92a8fa
...
@@ -280,14 +280,25 @@ public class TaskServiceImpl implements TaskService {
...
@@ -280,14 +280,25 @@ public class TaskServiceImpl implements TaskService {
Date
now
=
new
Date
();
Date
now
=
new
Date
();
Task
task
=
taskMapper
.
getById
(
taskId
);
Task
task
=
taskMapper
.
getById
(
taskId
);
String
ruleLevel
=
task
.
getRuleLevel
();
String
ruleLevel
=
task
.
getRuleLevel
();
String
orgNo
=
task
.
getOrgNo
();
ConfigInfo
configInfo
=
null
;
ConfigInfo
configInfo
=
null
;
if
(
Constants
.
PRIVINCE_TO_CITY
.
equals
(
ruleLevel
))
{
if
(
StringUtils
.
isNotBlank
(
orgNo
)){
configInfo
=
configInfoService
.
getConfigInfoById
(
Constants
.
RULE_PROVINCE_AUDIT_ROLE
);
if
(
orgNo
.
length
()==
2
){
}
else
if
(
Constants
.
PRIVINCE_TO_COUNTY
.
equals
(
ruleLevel
))
{
configInfo
=
configInfoService
.
getConfigInfoById
(
Constants
.
RULE_PROVINCE_AUDIT_ROLE
);
configInfo
=
configInfoService
.
getConfigInfoById
(
Constants
.
RULE_CITY_AUDIT_ROLE
);
}
else
if
(
orgNo
.
length
()==
4
){
}
else
if
(
Constants
.
CITY_TO_COUNTY
.
equals
(
ruleLevel
))
{
configInfo
=
configInfoService
.
getConfigInfoById
(
Constants
.
RULE_CITY_AUDIT_ROLE
);
configInfo
=
configInfoService
.
getConfigInfoById
(
Constants
.
RULE_COUNTY_AUDIT_ROLE
);
}
else
if
(
orgNo
.
length
()==
6
){
configInfo
=
configInfoService
.
getConfigInfoById
(
Constants
.
RULE_COUNTY_AUDIT_ROLE
);
}
}
}
// ConfigInfo configInfo = null;
// if (Constants.PRIVINCE_TO_CITY.equals(ruleLevel)) {
// configInfo = configInfoService.getConfigInfoById(Constants.RULE_PROVINCE_AUDIT_ROLE);
// } else if (Constants.PRIVINCE_TO_COUNTY.equals(ruleLevel)) {
// configInfo = configInfoService.getConfigInfoById(Constants.RULE_CITY_AUDIT_ROLE);
// } else if (Constants.CITY_TO_COUNTY.equals(ruleLevel)) {
// configInfo = configInfoService.getConfigInfoById(Constants.RULE_COUNTY_AUDIT_ROLE);
// }
if
(
configInfo
!=
null
)
{
if
(
configInfo
!=
null
)
{
String
indDept
=
task
.
getRefIndDept
();
String
indDept
=
task
.
getRefIndDept
();
List
<
RoleRefUserModel
>
users
=
getUserByRoleIdStr
(
configInfo
.
getCfValue
());
List
<
RoleRefUserModel
>
users
=
getUserByRoleIdStr
(
configInfo
.
getCfValue
());
...
...
src/main/resources/mybatis/mapping/TaskMapper.xml
View file @
bf92a8fa
...
@@ -150,13 +150,13 @@
...
@@ -150,13 +150,13 @@
select count(id) from data_enter_task
select count(id) from data_enter_task
<include
refid=
"findTaskWhereSql"
></include>
<include
refid=
"findTaskWhereSql"
></include>
<if
test=
"states != null and states != 0"
>
<if
test=
"states != null and states != 0"
>
and status = #{states}
<choose>
<choose>
<when
test=
"states == 1"
>
<when
test=
"states == 1"
>
and end_date
<
curdate()
and
status in (1,5) and
end_date
<
curdate()
</when>
</when>
<when
test=
" states == 2 "
>
<when
test=
" states == 2 "
>
and audit_end_date
<
curdate()
and
status =2 and
audit_end_date
<
curdate()
</when>
</when>
</choose>
</choose>
</if>
</if>
...
...
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