Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
70f3cdbb
Commit
70f3cdbb
authored
Apr 23, 2019
by
ad
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
2595600e
28b7f30b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
306 additions
and
202 deletions
+306
-202
TaskListMapper.java
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
+1
-1
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+187
-188
service.js
src/main/resources/static/js/service.js
+0
-2
receitp.html
src/main/resources/static/views/receitp/receitp.html
+84
-1
receitp.js
src/main/resources/static/views/receitp/receitp.js
+32
-8
report.html
src/main/resources/static/views/report/report.html
+2
-2
No files found.
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
View file @
70f3cdbb
...
...
@@ -476,7 +476,7 @@ public interface TaskListMapper {
"left join (\n"
+
" select substr(accept_no,0,8) group_no, sum(decode(accept_no,null,0,1)) faileCount \n"
+
" from FAILED_CARD \n"
+
" where FAILED_CARD.state <4 and FAILED_CARD.state != FAILED_CARD.INITIATOR \n"
+
" where FAILED_CARD.state <
=
4 and FAILED_CARD.state != FAILED_CARD.INITIATOR \n"
+
" and accept_no not in (select accept_no from special_card ) \n"
+
" group by substr(accept_no,0,8) ) fc \n"
+
" on fc.group_no= group_no.group_no \n"
+
...
...
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
70f3cdbb
package
com
.
yxproject
.
start
.
service
.
impl
;
import
com.yxproject.start.entity.*
;
import
com.yxproject.start.entity.TaskList.CountCountyEntity
;
import
com.yxproject.start.entity.TaskList.CountGajgEntity
;
import
com.yxproject.start.entity.TaskList.TaskListEntity
;
import
com.yxproject.start.mapper.GroupNoMapper
;
import
com.yxproject.start.mapper.SpecialCardMapper
;
import
com.yxproject.start.mapper.TaskListMapper
;
import
com.yxproject.start.service.FailedCardService
;
import
com.yxproject.start.service.TaskListService
;
import
org.apache.commons.collections.ArrayStack
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.math.BigDecimal
;
import
java.util.*
;
import
java.util.ArrayList
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.Map
;
@Service
public
class
TaskListServiceImpl
implements
TaskListService
{
...
...
@@ -37,12 +37,12 @@ public class TaskListServiceImpl implements TaskListService {
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
updateState
(
List
<
String
>
failedList
,
List
<
String
>
list
,
String
process
,
String
name
)
{
public
boolean
updateState
(
List
<
String
>
failedList
,
List
<
String
>
list
,
String
process
,
String
name
)
{
for
(
String
taskId
:
list
)
{
switch
(
process
)
{
case
"3"
:
taskListMapper
.
updateState3
(
taskId
,
process
,
name
);
taskListMapper
.
updateState4
(
taskId
,
(
Long
.
valueOf
(
process
)
+
2
)+
""
,
name
);
taskListMapper
.
updateState4
(
taskId
,
(
Long
.
valueOf
(
process
)
+
2
)
+
""
,
name
);
break
;
case
"4"
:
taskListMapper
.
updateState4
(
taskId
,
process
,
name
);
...
...
@@ -61,18 +61,18 @@ public class TaskListServiceImpl implements TaskListService {
}
}
for
(
String
failedId
:
failedList
)
{
for
(
String
failedId
:
failedList
)
{
FailedCardEntity
failedCardEntity
=
new
FailedCardEntity
();
failedCardEntity
.
setFailedCardId
(
Long
.
valueOf
(
failedId
));
switch
(
process
){
switch
(
process
)
{
case
"2"
:
failedCardEntity
.
setState
((
long
)
1
);
failedCardEntity
.
setState
((
long
)
1
);
break
;
case
"3"
:
failedCardEntity
.
setState
((
long
)
4
);
failedCardEntity
.
setState
((
long
)
4
);
break
;
case
"6"
:
failedCardEntity
.
setState
((
long
)
5
);
failedCardEntity
.
setState
((
long
)
5
);
break
;
}
failedCardService
.
updateFailedCardState
(
failedCardEntity
);
...
...
@@ -82,39 +82,37 @@ public class TaskListServiceImpl implements TaskListService {
}
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
updateState1
(
List
<
String
>
failedList
,
List
<
String
>
list
,
String
process
,
String
name
,
String
workGroup
)
{
public
boolean
updateState1
(
List
<
String
>
failedList
,
List
<
String
>
list
,
String
process
,
String
name
,
String
workGroup
)
{
for
(
String
taskId
:
list
)
{
taskListMapper
.
updateState1
(
taskId
,
process
,
name
,
workGroup
);
taskListMapper
.
updateState1
(
taskId
,
process
,
name
,
workGroup
);
}
return
true
;
}
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
updateState2
(
List
<
String
>
failedlist
,
List
<
String
>
list
,
String
process
,
String
name
)
{
if
(
"2"
.
equals
(
process
))
{
public
boolean
updateState2
(
List
<
String
>
failedlist
,
List
<
String
>
list
,
String
process
,
String
name
)
{
if
(
"2"
.
equals
(
process
))
{
for
(
String
taskId
:
list
)
{
taskListMapper
.
updateState2
(
taskId
,
process
,
name
);
}
}
else
{
}
else
{
for
(
String
taskId
:
list
)
{
taskListMapper
.
updateState2
(
taskId
,
process
,
name
);
}
for
(
String
taskId
:
list
)
{
taskListMapper
.
updateState2
(
taskId
,
(
Long
.
valueOf
(
process
)+
2
)+
""
,
name
);
taskListMapper
.
updateState2
(
taskId
,
(
Long
.
valueOf
(
process
)
+
2
)
+
""
,
name
);
}
}
for
(
String
failedId
:
failedlist
)
{
for
(
String
failedId
:
failedlist
)
{
FailedCardEntity
failedCardEntity
=
new
FailedCardEntity
();
failedCardEntity
.
setFailedCardId
(
Long
.
valueOf
(
failedId
));
failedCardEntity
.
setState
((
long
)
1
);
failedCardEntity
.
setState
((
long
)
1
);
failedCardService
.
updateFailedCardState
(
failedCardEntity
);
}
return
true
;
...
...
@@ -135,7 +133,7 @@ public class TaskListServiceImpl implements TaskListService {
for
(
Map
o
:
maps
)
{
// 组合JSON
if
(
typeMap
!=
null
&&
typeMap
.
containsKey
(
o
.
get
(
"CARD_TYPE"
)
+
""
))
{
List
<
Map
<
String
,
Object
>>
mapList
=
(
List
<
Map
<
String
,
Object
>>)
typeMap
.
get
(
o
.
get
(
"CARD_TYPE"
)
+
""
);
List
<
Map
<
String
,
Object
>>
mapList
=
(
List
<
Map
<
String
,
Object
>>)
typeMap
.
get
(
o
.
get
(
"CARD_TYPE"
)
+
""
);
mapList
.
add
(
o
);
typeMap
.
put
(
o
.
get
(
"CARD_TYPE"
)
+
""
,
mapList
);
}
else
{
...
...
@@ -148,26 +146,26 @@ public class TaskListServiceImpl implements TaskListService {
for
(
String
type
:
typeMap
.
keySet
())
{
List
<
Map
<
String
,
Object
>>
mapList
=
(
List
<
Map
<
String
,
Object
>>)
typeMap
.
get
(
type
);
Map
<
String
,
Object
>
typemap
=
new
LinkedHashMap
<>();
int
i
=
0
;
int
i
=
0
;
for
(
Map
<
String
,
Object
>
o
:
mapList
)
{
if
(
typemap
.
containsKey
(
i
+
""
))
{
List
<
Map
<
String
,
Object
>>
maplist
=
(
List
<
Map
<
String
,
Object
>>)
typemap
.
get
(
i
+
""
);
if
(
maplist
.
size
()>=
30
)
{
if
(
typemap
.
containsKey
(
i
+
""
))
{
List
<
Map
<
String
,
Object
>>
maplist
=
(
List
<
Map
<
String
,
Object
>>)
typemap
.
get
(
i
+
""
);
if
(
maplist
.
size
()
>=
30
)
{
i
++;
List
<
Map
<
String
,
Object
>>
maplist1
=
new
ArrayList
<>();
maplist1
.
add
(
o
);
typemap
.
put
(
i
+
""
,
maplist1
);
typemap
.
put
(
i
+
""
,
maplist1
);
continue
;
}
else
{
}
else
{
maplist
.
add
(
o
);
typemap
.
put
(
i
+
""
,
maplist
);
typemap
.
put
(
i
+
""
,
maplist
);
continue
;
}
}
else
{
}
else
{
List
<
Map
<
String
,
Object
>>
maplist
=
new
ArrayList
<>();
maplist
.
add
(
o
);
typemap
.
put
(
i
+
""
,
maplist
);
typemap
.
put
(
i
+
""
,
maplist
);
continue
;
}
}
...
...
@@ -180,7 +178,7 @@ public class TaskListServiceImpl implements TaskListService {
String
typeName
=
null
;
List
<
Map
<
String
,
Object
>>
countyList
=
new
ArrayList
<>();
Map
<
String
,
List
<
Map
<
String
,
Object
>>>
mapList
=
(
Map
<
String
,
List
<
Map
<
String
,
Object
>>>)
typeMap
.
get
(
type
);
int
num
=
0
;
int
num
=
0
;
for
(
String
county
:
mapList
.
keySet
())
{
Map
<
String
,
Object
>
countyMapGroup
=
new
LinkedHashMap
<>();
int
validCount
=
0
;
...
...
@@ -193,9 +191,9 @@ public class TaskListServiceImpl implements TaskListService {
submitDate
=
countyMap
.
get
(
"SUBMIT_DATE"
);
countyName
=
countyMap
.
get
(
"COUNTYNAME"
)
+
""
;
typeName
=
countyMap
.
get
(
"CARD_TYPE_ID"
)
+
""
;
if
(
Long
.
valueOf
(
countyMap
.
get
(
"DEAL_FLAG"
)
+
""
)
<
dealFlag
)
{
if
(
Long
.
valueOf
(
countyMap
.
get
(
"DEAL_FLAG"
)
+
""
)
<
dealFlag
)
{
dealFlag
=
Long
.
valueOf
(
countyMap
.
get
(
"DEAL_FLAG"
)
+
""
);
}
else
{
}
else
{
}
typeSum
+=
Integer
.
valueOf
(
countyMap
.
get
(
"VALID_COUNT"
)
+
""
);
...
...
@@ -229,7 +227,7 @@ public class TaskListServiceImpl implements TaskListService {
countyMapGroup
.
put
(
"groupList"
,
countyMapList
);
countyMapGroup
.
put
(
"saveDate"
,
submitDate
);
num
++;
countyMapGroup
.
put
(
"id"
,
num
);
countyMapGroup
.
put
(
"id"
,
num
);
countyMapGroup
.
put
(
"countyName"
,
countyName
);
countyMapGroup
.
put
(
"countyValidCount"
,
validCount
);
countyMapGroup
.
put
(
"countyInvalidCount"
,
invalidCount
);
...
...
@@ -278,27 +276,27 @@ public class TaskListServiceImpl implements TaskListService {
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
List
<
Object
>
selectByCountyAtAuxiliary
(
long
process
)
{
List
list
=
new
ArrayList
();
if
(
process
==
0
)
{
if
(
process
==
0
)
{
//查询下发状态下的任务单
//查询普通组号列表 在辅助库中
List
<
Map
<
String
,
Object
>>
mapList_common
=
taskListMapper
.
selectByCountyAtAuxiliary_common
(
process
,
process
-
2
);
List
<
Map
<
String
,
Object
>>
mapList_common
=
taskListMapper
.
selectByCountyAtAuxiliary_common
(
process
,
process
-
2
);
//查询快证组号列表 在辅助库中
List
<
Map
<
String
,
Object
>>
mapList_fast
=
taskListMapper
.
selectByCountyAtAuxiliary_fast
(
process
,
process
-
2
);
List
<
Map
<
String
,
Object
>>
mapList_fast
=
taskListMapper
.
selectByCountyAtAuxiliary_fast
(
process
,
process
-
2
);
//查询余证组号列表 在辅助库中
List
<
Map
<
String
,
Object
>>
mapList_remaind
=
taskListMapper
.
selectByCountyAtAuxiliary_remaind
(
process
,
process
-
2
);
List
<
Map
<
String
,
Object
>>
mapList_remaind
=
taskListMapper
.
selectByCountyAtAuxiliary_remaind
(
process
,
process
-
2
);
list
=
formateMap
(
mapList_common
);
list
.
addAll
(
formateMap
(
mapList_fast
));
list
.
addAll
(
formateMap
(
mapList_remaind
));
}
else
{
}
else
{
//查询膜打印状态下的任务单详情
//查询普通组号列表 在辅助库、制证库中
List
<
Map
<
String
,
Object
>>
mapList_common
=
taskListMapper
.
selectByCountyAtAuxiliary_common3
(
process
,
process
-
1
);
List
<
Map
<
String
,
Object
>>
mapList_common
=
taskListMapper
.
selectByCountyAtAuxiliary_common3
(
process
,
process
-
1
);
//查询快证组号列表 在辅助库、制证库中
List
<
Map
<
String
,
Object
>>
mapList_fast
=
taskListMapper
.
selectByCountyAtAuxiliary_fast4
(
process
,
process
-
1
);
List
<
Map
<
String
,
Object
>>
mapList_fast
=
taskListMapper
.
selectByCountyAtAuxiliary_fast4
(
process
,
process
-
1
);
//查询余证组号列表 在辅助库、制证库中
List
<
Map
<
String
,
Object
>>
mapList_remaind
=
taskListMapper
.
selectByCountyAtAuxiliary_remaind4
(
process
,
process
-
1
);
List
<
Map
<
String
,
Object
>>
mapList_remaind
=
taskListMapper
.
selectByCountyAtAuxiliary_remaind4
(
process
,
process
-
1
);
//查询余证组号列表 在辅助库、制证库中
List
<
Map
<
String
,
Object
>>
mapList_failed
=
taskListMapper
.
selectByCountyAtAuxiliary_failed3
(
process
-
1
);
List
<
Map
<
String
,
Object
>>
mapList_failed
=
taskListMapper
.
selectByCountyAtAuxiliary_failed3
(
process
-
1
);
list
=
formateMap5
(
mapList_common
);
list
.
addAll
(
formateMap5
(
mapList_fast
));
list
.
addAll
(
formateMap5
(
mapList_remaind
));
...
...
@@ -318,15 +316,15 @@ public class TaskListServiceImpl implements TaskListService {
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Map
selectByCountyAtAuxiliary2
(
long
process
,
String
workGroup
)
{
public
Map
selectByCountyAtAuxiliary2
(
long
process
,
String
workGroup
)
{
//查询普通组号列表 在辅助库中
List
<
Map
<
String
,
Object
>>
mapList_common
=
taskListMapper
.
selectByCountyAtAuxiliary_common4
(
process
-
1
,
process
-
1
,
Long
.
valueOf
(
workGroup
));
List
<
Map
<
String
,
Object
>>
mapList_common
=
taskListMapper
.
selectByCountyAtAuxiliary_common4
(
process
-
1
,
process
-
1
,
Long
.
valueOf
(
workGroup
));
//查询快证组号列表 在辅助库中
List
<
Map
<
String
,
Object
>>
mapList_fast
=
taskListMapper
.
selectByCountyAtAuxiliary_fast9
(
process
-
1
,
process
-
1
,
Long
.
valueOf
(
workGroup
));
List
<
Map
<
String
,
Object
>>
mapList_fast
=
taskListMapper
.
selectByCountyAtAuxiliary_fast9
(
process
-
1
,
process
-
1
,
Long
.
valueOf
(
workGroup
));
//查询余证组号列表 在辅助库中
List
<
Map
<
String
,
Object
>>
mapList_remaind
=
taskListMapper
.
selectByCountyAtAuxiliary_remaind9
(
process
-
1
,
process
-
1
,
Long
.
valueOf
(
workGroup
));
List
<
Map
<
String
,
Object
>>
mapList_remaind
=
taskListMapper
.
selectByCountyAtAuxiliary_remaind9
(
process
-
1
,
process
-
1
,
Long
.
valueOf
(
workGroup
));
//查询废证组号列表 在辅助库中
List
<
Map
<
String
,
Object
>>
mapList_failed
=
taskListMapper
.
selectByCountyAtAuxiliary_failed4
(
process
-
2
,
Long
.
valueOf
(
workGroup
));
List
<
Map
<
String
,
Object
>>
mapList_failed
=
taskListMapper
.
selectByCountyAtAuxiliary_failed4
(
process
-
2
,
Long
.
valueOf
(
workGroup
));
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
list
=
formateMap
(
mapList_common
);
...
...
@@ -354,7 +352,7 @@ public class TaskListServiceImpl implements TaskListService {
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
List
selectByCountyAtAuxiliary3
(
long
process
,
String
workGroup
)
{
public
List
selectByCountyAtAuxiliary3
(
long
process
,
String
workGroup
)
{
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
//电写入
// if (process==4){
...
...
@@ -375,13 +373,13 @@ public class TaskListServiceImpl implements TaskListService {
// }else {
//分拣任务单
//查询普通组号列表 在辅助库、制证库中
List
<
Map
<
String
,
Object
>>
mapList_common
=
taskListMapper
.
selectByCountyAtAuxiliary_common2
(
process
,
process
-
1
,
Long
.
valueOf
(
workGroup
));
List
<
Map
<
String
,
Object
>>
mapList_common
=
taskListMapper
.
selectByCountyAtAuxiliary_common2
(
process
,
process
-
1
,
Long
.
valueOf
(
workGroup
));
//查询快证组号列表 在辅助库、制证库中
List
<
Map
<
String
,
Object
>>
mapList_fast
=
taskListMapper
.
selectByCountyAtAuxiliary_fast2
(
process
,
process
-
1
,
Long
.
valueOf
(
workGroup
));
List
<
Map
<
String
,
Object
>>
mapList_fast
=
taskListMapper
.
selectByCountyAtAuxiliary_fast2
(
process
,
process
-
1
,
Long
.
valueOf
(
workGroup
));
//查询余证组号列表 在辅助库、制证库中
List
<
Map
<
String
,
Object
>>
mapList_remaind
=
taskListMapper
.
selectByCountyAtAuxiliary_remaind2
(
process
,
process
-
1
,
Long
.
valueOf
(
workGroup
));
List
<
Map
<
String
,
Object
>>
mapList_remaind
=
taskListMapper
.
selectByCountyAtAuxiliary_remaind2
(
process
,
process
-
1
,
Long
.
valueOf
(
workGroup
));
//查询余证组号列表 在辅助库、制证库中
List
<
Map
<
String
,
Object
>>
mapList_failed
=
taskListMapper
.
selectByCountyAtAuxiliary_failed2
(
process
-
1
,
Long
.
valueOf
(
workGroup
));
List
<
Map
<
String
,
Object
>>
mapList_failed
=
taskListMapper
.
selectByCountyAtAuxiliary_failed2
(
process
-
1
,
Long
.
valueOf
(
workGroup
));
list
=
formateMap2
(
mapList_common
);
list
.
addAll
(
formateMap2
(
mapList_fast
));
...
...
@@ -425,13 +423,13 @@ public class TaskListServiceImpl implements TaskListService {
// }else {
//分拣任务单
//查询普通组号列表 在辅助库、制证库中
List
<
Map
<
String
,
Object
>>
mapList_common
=
taskListMapper
.
selectByCountyAtAuxiliary_common5
(
process
,
process
-
1
);
List
<
Map
<
String
,
Object
>>
mapList_common
=
taskListMapper
.
selectByCountyAtAuxiliary_common5
(
process
,
process
-
1
);
//查询快证组号列表 在辅助库、制证库中
List
<
Map
<
String
,
Object
>>
mapList_fast
=
taskListMapper
.
selectByCountyAtAuxiliary_fast5
(
process
,
process
-
1
);
List
<
Map
<
String
,
Object
>>
mapList_fast
=
taskListMapper
.
selectByCountyAtAuxiliary_fast5
(
process
,
process
-
1
);
//查询余证组号列表 在辅助库、制证库中
List
<
Map
<
String
,
Object
>>
mapList_remaind
=
taskListMapper
.
selectByCountyAtAuxiliary_remaind5
(
process
,
process
-
1
);
List
<
Map
<
String
,
Object
>>
mapList_remaind
=
taskListMapper
.
selectByCountyAtAuxiliary_remaind5
(
process
,
process
-
1
);
//查询余证组号列表 在辅助库、制证库中
List
<
Map
<
String
,
Object
>>
mapList_failed
=
taskListMapper
.
selectByCountyAtAuxiliary_failed5
(
process
-
1
);
List
<
Map
<
String
,
Object
>>
mapList_failed
=
taskListMapper
.
selectByCountyAtAuxiliary_failed5
(
process
-
1
);
list
=
formateMap2
(
mapList_common
);
list
.
addAll
(
formateMap2
(
mapList_fast
));
...
...
@@ -454,7 +452,7 @@ public class TaskListServiceImpl implements TaskListService {
* @return
*/
@Override
public
List
selectHistoryTaskAtAuxiliary
(
long
process
,
String
date
,
String
workGroup
)
{
public
List
selectHistoryTaskAtAuxiliary
(
long
process
,
String
date
,
String
workGroup
)
{
int
pro
=
(
int
)
process
;
List
<
Map
<
String
,
Object
>>
mapList
=
new
ArrayList
<>();
switch
(
pro
)
{
...
...
@@ -484,17 +482,17 @@ public class TaskListServiceImpl implements TaskListService {
//查询历史任务单 废证
mapList
.
addAll
(
taskListMapper
.
selectHistoryTaskAtAuxiliary_failed2
(
date
));
break
;
case
3
:
//查询历史任务单 大批证
mapList
=
taskListMapper
.
selectHistoryTaskAtAuxiliary_common3
(
date
);
//查询历史任务单 快证
mapList
.
addAll
(
taskListMapper
.
selectHistoryTaskAtAuxiliary_fast3
(
date
));
//查询历史任务单 余证
mapList
.
addAll
(
taskListMapper
.
selectHistoryTaskAtAuxiliary_remaind3
(
date
));
//查询历史任务单 废证
// mapList.addAll(taskListMapper.selectHistoryTaskAtAuxiliary_failed3(date));
mapList
.
addAll
(
taskListMapper
.
selectHistoryTaskAtAuxiliary_failed4
(
date
,
workGroup
));
break
;
//
case 3:
//
//查询历史任务单 大批证
//
mapList = taskListMapper.selectHistoryTaskAtAuxiliary_common3(date);
//
//查询历史任务单 快证
//
mapList.addAll(taskListMapper.selectHistoryTaskAtAuxiliary_fast3(date));
//
//查询历史任务单 余证
//
mapList.addAll(taskListMapper.selectHistoryTaskAtAuxiliary_remaind3(date));
//
//查询历史任务单 废证
//
//
mapList.addAll(taskListMapper.selectHistoryTaskAtAuxiliary_failed3(date));
// mapList.addAll(taskListMapper.selectHistoryTaskAtAuxiliary_failed4(date,
workGroup));
//
break;
case
4
:
//查询历史任务单 大批证
mapList
=
taskListMapper
.
selectHistoryTaskAtAuxiliary_common4
(
date
);
...
...
@@ -503,18 +501,18 @@ public class TaskListServiceImpl implements TaskListService {
//查询历史任务单 余证
mapList
.
addAll
(
taskListMapper
.
selectHistoryTaskAtAuxiliary_remaind4
(
date
));
//查询历史任务单 废证
mapList
.
addAll
(
taskListMapper
.
selectHistoryTaskAtAuxiliary_failed4
(
date
,
workGroup
));
mapList
.
addAll
(
taskListMapper
.
selectHistoryTaskAtAuxiliary_failed4
(
date
,
workGroup
));
break
;
case
5
:
case
3
:
//查询历史任务单 大批证
mapList
=
taskListMapper
.
selectHistoryTaskAtAuxiliary_common5
(
date
,
workGroup
);
mapList
=
taskListMapper
.
selectHistoryTaskAtAuxiliary_common5
(
date
,
workGroup
);
//查询历史任务单 快证
mapList
.
addAll
(
taskListMapper
.
selectHistoryTaskAtAuxiliary_fast5
(
date
,
workGroup
));
mapList
.
addAll
(
taskListMapper
.
selectHistoryTaskAtAuxiliary_fast5
(
date
,
workGroup
));
//查询历史任务单 余证
mapList
.
addAll
(
taskListMapper
.
selectHistoryTaskAtAuxiliary_remaind5
(
date
,
workGroup
));
mapList
.
addAll
(
taskListMapper
.
selectHistoryTaskAtAuxiliary_remaind5
(
date
,
workGroup
));
//查询历史任务单 废证
mapList
.
addAll
(
taskListMapper
.
selectHistoryTaskAtAuxiliary_failed5
(
date
,
workGroup
));
mapList
.
addAll
(
taskListMapper
.
selectHistoryTaskAtAuxiliary_failed5
(
date
,
workGroup
));
break
;
default
:
break
;
...
...
@@ -559,7 +557,7 @@ public class TaskListServiceImpl implements TaskListService {
* @return
*/
@Override
public
List
<
Map
<
String
,
Object
>>
selectGroupAtACCU
(
String
date
,
String
typeCode
,
String
countyCode
)
{
public
List
<
Map
<
String
,
Object
>>
selectGroupAtACCU
(
String
date
,
String
typeCode
,
String
countyCode
)
{
return
taskListMapper
.
selectGroupAtACCUByCountyCode
(
date
,
typeCode
,
countyCode
);
}
...
...
@@ -571,7 +569,7 @@ public class TaskListServiceImpl implements TaskListService {
* @return
*/
@Override
public
List
<
Map
<
String
,
Object
>>
selectGroupAtACCU
(
String
groupNo
)
{
public
List
<
Map
<
String
,
Object
>>
selectGroupAtACCU
(
String
groupNo
)
{
return
groupNoMapper
.
selectGroupAtACCUByGroupNo
(
groupNo
);
}
...
...
@@ -595,7 +593,7 @@ public class TaskListServiceImpl implements TaskListService {
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
saveTask
(
List
<
Map
<
String
,
Object
>>
list
,
String
submitName
,
String
process
)
{
public
boolean
saveTask
(
List
<
Map
<
String
,
Object
>>
list
,
String
submitName
,
String
process
)
{
Map
<
String
,
Object
>
stringObjectMap
=
list
.
get
(
0
);
TaskEntity
taskEntity
=
new
TaskEntity
();
taskEntity
.
setCardType
(
Long
.
valueOf
(
stringObjectMap
.
get
(
"CARD_TYPE_ID"
)
+
""
));
...
...
@@ -704,75 +702,76 @@ public class TaskListServiceImpl implements TaskListService {
@Override
public
List
<
Map
<
String
,
Object
>>
selectFilmReport
(
String
startDate
,
String
endDate
)
{
List
<
Map
<
String
,
Object
>>
mapList
=
taskListMapper
.
selectFilmReport
(
startDate
,
endDate
);
Map
<
String
,
Object
>
dateMap
=
new
LinkedHashMap
<>();
for
(
Map
<
String
,
Object
>
map
:
mapList
)
{
if
(
dateMap
.
containsKey
(
map
.
get
(
"PRINT_OUT_DATE"
)
+
""
))
{
List
<
Map
<
String
,
Object
>>
dateList
=(
List
<
Map
<
String
,
Object
>>)
dateMap
.
get
(
map
.
get
(
"PRINT_OUT_DATE"
)+
""
);
Map
<
String
,
Object
>
dateMap
=
new
LinkedHashMap
<>();
for
(
Map
<
String
,
Object
>
map
:
mapList
)
{
if
(
dateMap
.
containsKey
(
map
.
get
(
"PRINT_OUT_DATE"
)
+
""
))
{
List
<
Map
<
String
,
Object
>>
dateList
=
(
List
<
Map
<
String
,
Object
>>)
dateMap
.
get
(
map
.
get
(
"PRINT_OUT_DATE"
)
+
""
);
dateList
.
add
(
map
);
dateMap
.
put
(
map
.
get
(
"PRINT_OUT_DATE"
)
+
""
,
dateList
);
}
else
{
List
<
Map
<
String
,
Object
>>
dateList
=
new
ArrayList
();
dateMap
.
put
(
map
.
get
(
"PRINT_OUT_DATE"
)
+
""
,
dateList
);
}
else
{
List
<
Map
<
String
,
Object
>>
dateList
=
new
ArrayList
();
dateList
.
add
(
map
);
dateMap
.
put
(
map
.
get
(
"PRINT_OUT_DATE"
)
+
""
,
dateList
);
dateMap
.
put
(
map
.
get
(
"PRINT_OUT_DATE"
)
+
""
,
dateList
);
}
}
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
int
failedCount
=
0
;
int
pu
=
0
;
int
kuai
=
0
;
int
jun
=
0
;
int
pu
=
0
;
int
kuai
=
0
;
int
jun
=
0
;
int
you
=
0
;
for
(
String
date
:
dateMap
.
keySet
())
{
Map
<
String
,
Object
>
datemap
=
new
LinkedHashMap
<>();
datemap
.
put
(
"date"
,
date
);
datemap
.
put
(
"pu"
,
0
);
datemap
.
put
(
"you"
,
0
);
datemap
.
put
(
"kuai"
,
0
);
datemap
.
put
(
"jun"
,
0
);
datemap
.
put
(
"fei"
,
0
);
List
<
Map
<
String
,
Object
>>
dateList
=(
List
<
Map
<
String
,
Object
>>)
dateMap
.
get
(
date
);
if
(
dateList
!=
null
)
{
for
(
Map
<
String
,
Object
>
map
:
dateList
)
{
datemap
.
put
(
"fei"
,
(
map
.
get
(
"FAILED_COUNT"
)
==
null
?
0
:
((
BigDecimal
)
map
.
get
(
"FAILED_COUNT"
)).
longValue
())
);
if
(
"0"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)
+
""
))
{
for
(
String
date
:
dateMap
.
keySet
())
{
Map
<
String
,
Object
>
datemap
=
new
LinkedHashMap
<>();
datemap
.
put
(
"date"
,
date
);
datemap
.
put
(
"pu"
,
0
);
datemap
.
put
(
"you"
,
0
);
datemap
.
put
(
"kuai"
,
0
);
datemap
.
put
(
"jun"
,
0
);
datemap
.
put
(
"fei"
,
0
);
List
<
Map
<
String
,
Object
>>
dateList
=
(
List
<
Map
<
String
,
Object
>>)
dateMap
.
get
(
date
);
if
(
dateList
!=
null
)
{
for
(
Map
<
String
,
Object
>
map
:
dateList
)
{
datemap
.
put
(
"fei"
,
(
map
.
get
(
"FAILED_COUNT"
)
==
null
?
0
:
((
BigDecimal
)
map
.
get
(
"FAILED_COUNT"
)).
longValue
())
);
if
(
"0"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)
+
""
))
{
long
valid_count
=
((
BigDecimal
)
map
.
get
(
"VALID_COUNT"
)).
longValue
();
pu
+=
valid_count
;
datemap
.
put
(
"pu"
,
valid_count
);
}
else
if
(
"1"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)+
""
))
{
pu
+=
valid_count
;
datemap
.
put
(
"pu"
,
valid_count
);
}
else
if
(
"1"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)
+
""
))
{
long
valid_count
=
((
BigDecimal
)
map
.
get
(
"VALID_COUNT"
)).
longValue
();
kuai
+=
valid_count
;
datemap
.
put
(
"kuai"
,
valid_count
);
}
else
if
(
"6"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)+
""
))
{
kuai
+=
valid_count
;
datemap
.
put
(
"kuai"
,
valid_count
);
}
else
if
(
"6"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)
+
""
))
{
long
valid_count
=
((
BigDecimal
)
map
.
get
(
"VALID_COUNT"
)).
longValue
();
jun
+=
valid_count
;
datemap
.
put
(
"jun"
,
valid_count
);
jun
+=
valid_count
;
datemap
.
put
(
"jun"
,
valid_count
);
}
else
if
(
"9"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)+
""
))
{
}
else
if
(
"9"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)
+
""
))
{
long
valid_count
=
((
BigDecimal
)
map
.
get
(
"VALID_COUNT"
)).
longValue
();
you
+=
valid_count
;
datemap
.
put
(
"you"
,
valid_count
);
}
else
{
you
+=
valid_count
;
datemap
.
put
(
"you"
,
valid_count
);
}
else
{
}
}
}
failedCount
+=
Integer
.
valueOf
(
datemap
.
get
(
"fei"
)+
""
);
failedCount
+=
Integer
.
valueOf
(
datemap
.
get
(
"fei"
)
+
""
);
list
.
add
(
datemap
);
}
Map
<
String
,
Object
>
datemap
=
new
LinkedHashMap
<>();
datemap
.
put
(
"date"
,
"合计"
);
datemap
.
put
(
"pu"
,
pu
);
datemap
.
put
(
"you"
,
you
);
datemap
.
put
(
"kuai"
,
kuai
);
datemap
.
put
(
"jun"
,
jun
);
datemap
.
put
(
"fei"
,
failedCount
);
Map
<
String
,
Object
>
datemap
=
new
LinkedHashMap
<>();
datemap
.
put
(
"date"
,
"合计"
);
datemap
.
put
(
"pu"
,
pu
);
datemap
.
put
(
"you"
,
you
);
datemap
.
put
(
"kuai"
,
kuai
);
datemap
.
put
(
"jun"
,
jun
);
datemap
.
put
(
"fei"
,
failedCount
);
list
.
add
(
datemap
);
return
list
;
}
/**
* 查询工作组报表
*
* @param startDate 开始时间
* @param endDate 结束时间
* @param workGroup 工作组
...
...
@@ -781,69 +780,69 @@ public class TaskListServiceImpl implements TaskListService {
@Override
public
List
<
Map
<
String
,
Object
>>
selectWorkGroupReport
(
String
startDate
,
String
endDate
,
String
workGroup
)
{
List
<
Map
<
String
,
Object
>>
mapList
=
taskListMapper
.
selectWorkGroupReport
(
startDate
,
endDate
,
workGroup
);
Map
<
String
,
Object
>
dateMap
=
new
LinkedHashMap
<>();
for
(
Map
<
String
,
Object
>
map
:
mapList
)
{
if
(
dateMap
.
containsKey
(
map
.
get
(
"PUNCHING_DATE"
)
+
""
))
{
List
<
Map
<
String
,
Object
>>
dateList
=(
List
<
Map
<
String
,
Object
>>)
dateMap
.
get
(
map
.
get
(
"PUNCHING_DATE"
)+
""
);
Map
<
String
,
Object
>
dateMap
=
new
LinkedHashMap
<>();
for
(
Map
<
String
,
Object
>
map
:
mapList
)
{
if
(
dateMap
.
containsKey
(
map
.
get
(
"PUNCHING_DATE"
)
+
""
))
{
List
<
Map
<
String
,
Object
>>
dateList
=
(
List
<
Map
<
String
,
Object
>>)
dateMap
.
get
(
map
.
get
(
"PUNCHING_DATE"
)
+
""
);
dateList
.
add
(
map
);
dateMap
.
put
(
map
.
get
(
"PUNCHING_DATE"
)
+
""
,
dateList
);
}
else
{
List
<
Map
<
String
,
Object
>>
dateList
=
new
ArrayList
();
dateMap
.
put
(
map
.
get
(
"PUNCHING_DATE"
)
+
""
,
dateList
);
}
else
{
List
<
Map
<
String
,
Object
>>
dateList
=
new
ArrayList
();
dateList
.
add
(
map
);
dateMap
.
put
(
map
.
get
(
"PUNCHING_DATE"
)
+
""
,
dateList
);
dateMap
.
put
(
map
.
get
(
"PUNCHING_DATE"
)
+
""
,
dateList
);
}
}
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
int
failedCount
=
0
;
int
pu
=
0
;
int
kuai
=
0
;
int
jun
=
0
;
int
pu
=
0
;
int
kuai
=
0
;
int
jun
=
0
;
int
you
=
0
;
for
(
String
date
:
dateMap
.
keySet
())
{
Map
<
String
,
Object
>
datemap
=
new
LinkedHashMap
<>();
datemap
.
put
(
"date"
,
date
);
datemap
.
put
(
"pu"
,
0
);
datemap
.
put
(
"you"
,
0
);
datemap
.
put
(
"kuai"
,
0
);
datemap
.
put
(
"jun"
,
0
);
datemap
.
put
(
"fei"
,
0
);
List
<
Map
<
String
,
Object
>>
dateList
=(
List
<
Map
<
String
,
Object
>>)
dateMap
.
get
(
date
);
if
(
dateList
!=
null
)
{
for
(
Map
<
String
,
Object
>
map
:
dateList
)
{
datemap
.
put
(
"fei"
,
(
map
.
get
(
"FAILED_COUNT"
)
==
null
?
0
:
((
BigDecimal
)
map
.
get
(
"FAILED_COUNT"
)).
longValue
())
);
if
(
"0"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)
+
""
))
{
for
(
String
date
:
dateMap
.
keySet
())
{
Map
<
String
,
Object
>
datemap
=
new
LinkedHashMap
<>();
datemap
.
put
(
"date"
,
date
);
datemap
.
put
(
"pu"
,
0
);
datemap
.
put
(
"you"
,
0
);
datemap
.
put
(
"kuai"
,
0
);
datemap
.
put
(
"jun"
,
0
);
datemap
.
put
(
"fei"
,
0
);
List
<
Map
<
String
,
Object
>>
dateList
=
(
List
<
Map
<
String
,
Object
>>)
dateMap
.
get
(
date
);
if
(
dateList
!=
null
)
{
for
(
Map
<
String
,
Object
>
map
:
dateList
)
{
datemap
.
put
(
"fei"
,
(
map
.
get
(
"FAILED_COUNT"
)
==
null
?
0
:
((
BigDecimal
)
map
.
get
(
"FAILED_COUNT"
)).
longValue
())
);
if
(
"0"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)
+
""
))
{
long
valid_count
=
((
BigDecimal
)
map
.
get
(
"VALID_COUNT"
)).
longValue
();
pu
+=
valid_count
;
datemap
.
put
(
"pu"
,
valid_count
);
}
else
if
(
"1"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)+
""
))
{
pu
+=
valid_count
;
datemap
.
put
(
"pu"
,
valid_count
);
}
else
if
(
"1"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)
+
""
))
{
long
valid_count
=
((
BigDecimal
)
map
.
get
(
"VALID_COUNT"
)).
longValue
();
kuai
+=
valid_count
;
datemap
.
put
(
"kuai"
,
valid_count
);
}
else
if
(
"6"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)+
""
))
{
kuai
+=
valid_count
;
datemap
.
put
(
"kuai"
,
valid_count
);
}
else
if
(
"6"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)
+
""
))
{
long
valid_count
=
((
BigDecimal
)
map
.
get
(
"VALID_COUNT"
)).
longValue
();
jun
+=
valid_count
;
datemap
.
put
(
"jun"
,
valid_count
);
jun
+=
valid_count
;
datemap
.
put
(
"jun"
,
valid_count
);
}
else
if
(
"9"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)+
""
))
{
}
else
if
(
"9"
.
equals
(
map
.
get
(
"CARD_TYPE_ID"
)
+
""
))
{
long
valid_count
=
((
BigDecimal
)
map
.
get
(
"VALID_COUNT"
)).
longValue
();
you
+=
valid_count
;
datemap
.
put
(
"you"
,
valid_count
);
}
else
{
you
+=
valid_count
;
datemap
.
put
(
"you"
,
valid_count
);
}
else
{
}
}
}
failedCount
+=
Integer
.
valueOf
(
datemap
.
get
(
"fei"
)+
""
);
failedCount
+=
Integer
.
valueOf
(
datemap
.
get
(
"fei"
)
+
""
);
list
.
add
(
datemap
);
}
Map
<
String
,
Object
>
datemap
=
new
LinkedHashMap
<>();
datemap
.
put
(
"date"
,
"合计"
);
datemap
.
put
(
"pu"
,
pu
);
datemap
.
put
(
"you"
,
you
);
datemap
.
put
(
"kuai"
,
kuai
);
datemap
.
put
(
"jun"
,
jun
);
datemap
.
put
(
"fei"
,
failedCount
);
Map
<
String
,
Object
>
datemap
=
new
LinkedHashMap
<>();
datemap
.
put
(
"date"
,
"合计"
);
datemap
.
put
(
"pu"
,
pu
);
datemap
.
put
(
"you"
,
you
);
datemap
.
put
(
"kuai"
,
kuai
);
datemap
.
put
(
"jun"
,
jun
);
datemap
.
put
(
"fei"
,
failedCount
);
list
.
add
(
datemap
);
return
list
;
}
...
...
@@ -855,43 +854,43 @@ public class TaskListServiceImpl implements TaskListService {
@Override
public
String
selectCountSubmit
(
String
date
)
{
String
count1
=
taskListMapper
.
selectCountSubmit
(
date
);
String
count1
=
taskListMapper
.
selectCountSubmit
(
date
);
return
count1
;
}
@Override
public
String
selectCountSubmit2
(
String
date
)
{
String
count2
=
taskListMapper
.
selectCountSubmit2
(
date
);
String
count2
=
taskListMapper
.
selectCountSubmit2
(
date
);
return
count2
;
}
@Override
public
String
selectCountIssue
(
String
date
)
{
String
count1
=
taskListMapper
.
selectCountIssue
(
date
);
String
count1
=
taskListMapper
.
selectCountIssue
(
date
);
return
count1
;
}
@Override
public
String
selectCountIssue2
(
String
date
)
{
String
count2
=
taskListMapper
.
selectCountIssue2
(
date
);
String
count2
=
taskListMapper
.
selectCountIssue2
(
date
);
return
count2
;
}
@Override
public
String
selectCountPrintOut
(
String
date
)
{
String
count1
=
taskListMapper
.
selectCountPrintOut
(
date
);
String
count1
=
taskListMapper
.
selectCountPrintOut
(
date
);
return
count1
;
}
@Override
public
String
selectCountPrintOut2
(
String
date
)
{
String
count2
=
taskListMapper
.
selectCountPrintOut2
(
date
);
String
count2
=
taskListMapper
.
selectCountPrintOut2
(
date
);
return
count2
;
}
@Override
public
String
selectCountPosition
(
String
date
)
{
String
count1
=
taskListMapper
.
selectCountPosition
(
date
);
String
count1
=
taskListMapper
.
selectCountPosition
(
date
);
return
count1
;
}
...
...
@@ -903,13 +902,13 @@ public class TaskListServiceImpl implements TaskListService {
@Override
public
String
selectCountConcora
(
String
date
)
{
String
count1
=
taskListMapper
.
selectCountConcora
(
date
);
String
count1
=
taskListMapper
.
selectCountConcora
(
date
);
return
count1
;
}
@Override
public
String
selectCountConcora2
(
String
date
)
{
String
count2
=
taskListMapper
.
selectCountConcora2
(
date
);
String
count2
=
taskListMapper
.
selectCountConcora2
(
date
);
return
null
;
}
...
...
@@ -921,31 +920,31 @@ public class TaskListServiceImpl implements TaskListService {
@Override
public
String
selectCountPunching2
(
String
date
)
{
String
count2
=
taskListMapper
.
selectCountPunching2
(
date
);
String
count2
=
taskListMapper
.
selectCountPunching2
(
date
);
return
count2
;
}
@Override
public
String
selectCountSorting
(
String
date
)
{
String
count1
=
taskListMapper
.
selectCountSorting
(
date
);
String
count1
=
taskListMapper
.
selectCountSorting
(
date
);
return
count1
;
}
@Override
public
String
selectCountSorting2
(
String
date
)
{
String
count2
=
taskListMapper
.
selectCountSorting2
(
date
);
String
count2
=
taskListMapper
.
selectCountSorting2
(
date
);
return
count2
;
}
@Override
public
String
selectCountQuality
(
String
date
)
{
String
count1
=
taskListMapper
.
selectCountQuality
(
date
);
String
count1
=
taskListMapper
.
selectCountQuality
(
date
);
return
count1
;
}
@Override
public
String
selectCountQuality2
(
String
date
)
{
String
count2
=
taskListMapper
.
selectCountQuality2
(
date
);
String
count2
=
taskListMapper
.
selectCountQuality2
(
date
);
return
count2
;
}
...
...
@@ -994,7 +993,7 @@ public class TaskListServiceImpl implements TaskListService {
for
(
Map
o
:
maplist
)
{
// 组合JSON
if
(
typeMap
!=
null
&
typeMap
.
containsKey
(
o
.
get
(
"CARD_TYPE"
)
+
""
))
{
List
<
Map
<
String
,
Object
>>
mapList
=
(
List
<
Map
<
String
,
Object
>>)
typeMap
.
get
(
o
.
get
(
"CARD_TYPE"
)
+
""
);
List
<
Map
<
String
,
Object
>>
mapList
=
(
List
<
Map
<
String
,
Object
>>)
typeMap
.
get
(
o
.
get
(
"CARD_TYPE"
)
+
""
);
mapList
.
add
(
o
);
typeMap
.
put
(
o
.
get
(
"CARD_TYPE"
)
+
""
,
mapList
);
}
else
{
...
...
@@ -1151,11 +1150,11 @@ public class TaskListServiceImpl implements TaskListService {
typeSum
+=
Integer
.
valueOf
(
countyMap
.
get
(
"VALID_COUNT"
)
+
""
);
typeSum
-=
Integer
.
valueOf
(
countyMap
.
get
(
"SPECIAL_CARD_COUNT"
)
+
""
);
//工位类型总数减去废证数
typeSum
-=
Integer
.
valueOf
(((
"null"
.
equals
(
countyMap
.
get
(
"FAILECOUNT"
)
+
""
)?
"0"
:
countyMap
.
get
(
"FAILECOUNT"
)+
""
)));
typeSum
-=
Integer
.
valueOf
(((
"null"
.
equals
(
countyMap
.
get
(
"FAILECOUNT"
)
+
""
)
?
"0"
:
countyMap
.
get
(
"FAILECOUNT"
)
+
""
)));
validCount
+=
Integer
.
valueOf
(
countyMap
.
get
(
"VALID_COUNT"
)
+
""
);
invalidCount
+=
Integer
.
valueOf
(
countyMap
.
get
(
"INVALID_COUNT"
)
+
""
);
specialCount
+=
Integer
.
valueOf
(
countyMap
.
get
(
"SPECIAL_CARD_COUNT"
)
+
""
);
faileCount
+=
Integer
.
valueOf
(((
"null"
.
equals
(
countyMap
.
get
(
"FAILECOUNT"
)
+
""
)?
"0"
:
countyMap
.
get
(
"FAILECOUNT"
)+
""
)));
faileCount
+=
Integer
.
valueOf
(((
"null"
.
equals
(
countyMap
.
get
(
"FAILECOUNT"
)
+
""
)
?
"0"
:
countyMap
.
get
(
"FAILECOUNT"
)
+
""
)));
eWriteCount
+=
Integer
.
valueOf
(
countyMap
.
get
(
"E_WRITER_COUNT"
)
+
""
);
recheckCount
+=
Integer
.
valueOf
(
countyMap
.
get
(
"FINISH_COUNT"
)
+
""
);
checkCount
+=
Integer
.
valueOf
(
countyMap
.
get
(
"CHECK_COUNT"
)
+
""
);
...
...
@@ -1406,7 +1405,7 @@ public class TaskListServiceImpl implements TaskListService {
countyMapGroup
.
put
(
"countyName"
,
countyName
);
countyMapGroup
.
put
(
"countyValidCount"
,
validCount
);
countyMapGroup
.
put
(
"countyInvalidCount"
,
invalidCount
);
countyMapGroup
.
put
(
"workGroup"
,
workGroup
);
countyMapGroup
.
put
(
"workGroup"
,
workGroup
);
countyList
.
add
(
countyMapGroup
);
}
mapType
.
put
(
"typeCode"
,
typeName
);
...
...
@@ -1507,7 +1506,7 @@ public class TaskListServiceImpl implements TaskListService {
countyMapGroup
.
put
(
"countyName"
,
countyName
);
countyMapGroup
.
put
(
"countyValidCount"
,
validCount
);
countyMapGroup
.
put
(
"countyInvalidCount"
,
invalidCount
);
countyMapGroup
.
put
(
"recheckCount"
,
recheckCount
);
countyMapGroup
.
put
(
"recheckCount"
,
recheckCount
);
countyList
.
add
(
countyMapGroup
);
}
mapType
.
put
(
"typeCode"
,
typeName
);
...
...
src/main/resources/static/js/service.js
View file @
70f3cdbb
...
...
@@ -959,8 +959,6 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
url
:
"../exportExcel/printReceiptExcelData"
,
data
:
body
,
headers
:
{
'Content-Type'
:
'application/json'
}
// transformRequest: angular.identity,
// responseType:'arraybuffer'
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
...
...
src/main/resources/static/views/receitp/receitp.html
View file @
70f3cdbb
<div
class=
"content row"
>
<div
class=
"content row"
>
<div
class=
"col-md-12"
style=
"margin-top:20px;"
>
<div
class=
"row"
>
<!-- /.col -->
...
...
@@ -147,4 +147,87 @@
</div>
</div>
</div>
<div
id=
"divPrint"
>
<div
class=
"title"
style=
"text-align: center;"
>
北京市公安局证件制作管理中心交接岗位
<br
/>
身份证交接单
</div>
<div>
交接日期:{{receitpDataToPrint.date}}
</div>
<div>
送至:
</div>
<table
cellpadding=
"0"
cellspacing=
"0"
border=
"1"
style=
"text-align: center;"
>
<thead>
<tr>
<th
width=
"60"
>
序号
</th>
<th
width=
"130"
>
身份证受理组号
</th>
<th
colspan=
"2"
>
身份证所属派出所名称
</th>
<th
width=
"80"
>
数量
</th>
<th
width=
"145"
>
备注
</th>
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"item in receitpDataToPrint.list"
>
<td
width=
"60"
>
{{$index+1}}
</td>
<td
width=
"130"
>
{{item.QR_CODE}}
</td>
<td
colspan=
"2"
style=
"text-align: left;"
>
异地居民身份证{{item.COUNTYNAME}}{{item.GAJG_MC}}
</td>
<td
width=
"80"
>
{{item.FINISH_COUNT}}
</td>
<td
width=
"145"
>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td
colspan=
"2"
class=
"center"
>
合计
</td>
<td
colspan=
"2"
>
</td>
<td
class=
"center"
>
{{receitpDataToPrint.total}}
</td>
<td>
</td>
</tr>
<tr>
<td
colspan=
"3"
style=
"height: 110px;"
>
<div
class=
"sign"
>
交付人(签字):
</div>
<br
/>
<br
/>
<br
/>
<br
/>
<div
class=
"signdate"
>
日期:
</div>
</td>
<td
colspan=
"3"
style=
"height: 110px;"
>
<div
class=
"sign"
>
接收人(签字):
</div>
<br
/>
<br
/>
<br
/>
<br
/>
<div
class=
"signdate"
>
日期:
</div>
</td>
</tr>
</tfoot>
</table>
</div>
src/main/resources/static/views/receitp/receitp.js
View file @
70f3cdbb
...
...
@@ -117,7 +117,7 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
}
}
}
var
iRadioValue
=
1
;
$scope
.
printReceitp
=
function
(
typeCode
)
{
var
startDate
=
$
(
'#datepicker1'
).
val
();
var
endDate
=
$
(
'#datepicker2'
).
val
();
...
...
@@ -135,14 +135,37 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
}
console
.
log
(
json
)
HttpService
.
printReceitpData
(
json
,
function
(
data
)
{
console
.
log
(
data
)
// var blob = new Blob([data], {type: "application/vnd.ms-excel"});
// var a = document.createElement("a");
// document.body.appendChild(a);
// a.href = URL.createObjectURL(blob);
// // a.download = fileName;
// a.click();
$scope
.
receitpDataToPrint
=
data
;
$timeout
(
function
()
{
var
LODOP
=
getLodop
();
LODOP
.
SET_LICENSES
(
""
,
"15F0BE661E7F32F37491843CB2510905"
,
"C94CEE276DB2187AE6B65D56B3FC2848"
,
""
);
//初始化
LODOP
.
PRINT_INIT
(
"打印交接单"
);
LODOP
.
SET_PRINT_PAGESIZE
(
1
,
0
,
0
,
"A4"
);
LODOP
.
ADD_PRINT_TEXT
(
10
,
0
,
"100%"
,
20
,
"北京市公安局证件制作管理中心交接岗位"
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Bold"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Alignment"
,
2
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"FontSize"
,
15
);
LODOP
.
ADD_PRINT_TEXT
(
35
,
0
,
"100%"
,
20
,
"身份证交接单"
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Bold"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Alignment"
,
2
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"FontSize"
,
15
);
LODOP
.
ADD_PRINT_TEXT
(
70
,
30
,
"100%"
,
20
,
"交接日期:"
+
$scope
.
receitpDataToPrint
.
date
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Bold"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Alignment"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"FontSize"
,
12
);
LODOP
.
ADD_PRINT_TEXT
(
90
,
30
,
"100%"
,
20
,
"送至:"
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Bold"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Alignment"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"FontSize"
,
12
);
LODOP
.
ADD_PRINT_TABLE
(
110
,
3
,
740
,
"100%"
,
document
.
getElementById
(
"divPrint"
).
innerHTML
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"HOrient"
,
2
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Vorient"
,
3
);
LODOP
.
PREVIEW
();
// LODOP.PRINT();
})
})
}
});
\ No newline at end of file
src/main/resources/static/views/report/report.html
View file @
70f3cdbb
...
...
@@ -27,8 +27,8 @@
<table
class=
"table table-hover postTable"
>
<thead>
<tr>
<th
ng-if=
"2"
>
打印日期
</th>
<th
ng-if=
"3"
>
预定位日期
</th>
<th
ng-if=
"
state==
2"
>
打印日期
</th>
<th
ng-if=
"
state==
3"
>
预定位日期
</th>
<th>
大批证
</th>
<th>
邮寄证
</th>
<th>
军人证
</th>
...
...
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