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
a50ac197
Commit
a50ac197
authored
Mar 09, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
df58442a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
17 deletions
+22
-17
TaskListApi.java
src/main/java/com/yxproject/start/api/TaskListApi.java
+9
-8
PreproPersonMapper.java
...n/java/com/yxproject/start/mapper/PreproPersonMapper.java
+3
-1
TaskListMapper.java
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
+1
-1
PreproPersonService.java
...java/com/yxproject/start/service/PreproPersonService.java
+2
-1
TaskListService.java
...ain/java/com/yxproject/start/service/TaskListService.java
+2
-2
PreproPersonServiceImpl.java
...yxproject/start/service/impl/PreproPersonServiceImpl.java
+2
-1
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+3
-3
No files found.
src/main/java/com/yxproject/start/api/TaskListApi.java
View file @
a50ac197
...
...
@@ -227,7 +227,7 @@ public class TaskListApi {
countyCode
=
"000000"
;
}
//查询快证是否存在受理库
List
<
Object
>
objects
=
taskListService
.
selectFastCardAtACCU
(
acceptNo
.
substring
(
0
,
8
));
List
<
Map
<
String
,
Object
>
>
objects
=
taskListService
.
selectFastCardAtACCU
(
acceptNo
.
substring
(
0
,
8
));
//存在受理库
if
(
objects
.
size
()
==
1
)
{
taskListService
.
saveFastTask
(
objects
,
name
,
acceptNo
,
Long
.
valueOf
(
cardType
));
...
...
@@ -290,13 +290,14 @@ public class TaskListApi {
String
acceptNo
=
jsonObject
.
getString
(
"acceptNo"
);
String
taskId
=
jsonObject
.
getString
(
"taskId"
);
String
name
=
jsonObject
.
getString
(
"name"
);
List
<
Object
>
objects
=
preproPersonService
.
selectUploadNoByAcceptNo
(
acceptNo
);
for
(
Object
o
:
objects
){
PreproPersonEntity
preproPersonEntity
=
new
PreproPersonEntity
();
Map
<
String
,
Object
>
map
=(
Map
<
String
,
Object
>)
o
;
preproPersonEntity
.
setJmsfzslh
(
map
.
get
(
"UPLOAD_NO"
).
toString
());
preproPersonEntity
.
setIsValid
(
0
);
preproPersonService
.
updatePreproPersonIsValid
(
preproPersonEntity
);
List
<
Map
<
String
,
Object
>>
objects
=
preproPersonService
.
selectUploadNoByAcceptNo
(
acceptNo
);
if
(
objects
.
size
()>
0
){
for
(
Map
<
String
,
Object
>
map
:
objects
){
PreproPersonEntity
preproPersonEntity
=
new
PreproPersonEntity
();
preproPersonEntity
.
setJmsfzslh
(
map
.
get
(
"UPLOAD_NO"
).
toString
());
preproPersonEntity
.
setIsValid
(
0
);
preproPersonService
.
updatePreproPersonIsValid
(
preproPersonEntity
);
}
}
//存在任务单
//更改组号详情的特证数量+1
...
...
src/main/java/com/yxproject/start/mapper/PreproPersonMapper.java
View file @
a50ac197
...
...
@@ -4,6 +4,7 @@ import com.yxproject.start.entity.PreproPersonEntity;
import
org.apache.ibatis.annotations.*
;
import
java.util.List
;
import
java.util.Map
;
/**
* Created by Administrator on 2019/2/15.
...
...
@@ -80,5 +81,5 @@ public interface PreproPersonMapper {
@Select
(
"select UPLOAD_NO,ACCEPT_NO from ACC_CARD_T@ACCU_LINK WHERE ACCEPT_NO =#{acceptNo}\n"
+
"UNION all \n"
+
"select UPLOAD_NO,ACCEPT_NO from PROD_CARD_T@PROD_LINK WHERE ACCEPT_NO =#{acceptNo}"
)
public
List
<
Object
>
selectUploadNoByAcceptNo
(
String
acceptNo
);
public
List
<
Map
<
String
,
Object
>
>
selectUploadNoByAcceptNo
(
String
acceptNo
);
}
\ No newline at end of file
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
View file @
a50ac197
...
...
@@ -283,7 +283,7 @@ public interface TaskListMapper {
"left join county_dic on substr(PREPRO_PERSON.JMSFZSLH,0,6)= county_dic.COUNTY_CODE\n"
+
"where county_dic.COUNTY_CODE is not null and ACC_GROUP_T.deal_flag =3\n"
+
"and ACC_GROUP_T.group_no =#{groupNo}"
)
public
List
<
Object
>
selectFastCardAtACCU
(
@Param
(
"groupNo"
)
String
groupNo
);
public
List
<
Map
<
String
,
Object
>
>
selectFastCardAtACCU
(
@Param
(
"groupNo"
)
String
groupNo
);
/**
* 查询任务单详情
...
...
src/main/java/com/yxproject/start/service/PreproPersonService.java
View file @
a50ac197
...
...
@@ -3,6 +3,7 @@ package com.yxproject.start.service;
import
com.yxproject.start.entity.PreproPersonEntity
;
import
java.util.List
;
import
java.util.Map
;
/**
* @auther zhangyusheng
...
...
@@ -12,7 +13,7 @@ public interface PreproPersonService {
public
boolean
uploadState
(
String
acceptNo
,
String
state
);
public
List
<
Object
>
selectUploadNoByAcceptNo
(
String
acceptNo
);
public
List
<
Map
<
String
,
Object
>
>
selectUploadNoByAcceptNo
(
String
acceptNo
);
public
boolean
updatePreproPersonIsValid
(
PreproPersonEntity
preproPersonEntity
);
...
...
src/main/java/com/yxproject/start/service/TaskListService.java
View file @
a50ac197
...
...
@@ -35,9 +35,9 @@ public interface TaskListService {
public
boolean
saveTask
(
List
<
Object
>
list
,
String
submitName
,
String
process
);
public
List
<
Object
>
selectFastCardAtACCU
(
String
groupNo
);
public
List
<
Map
<
String
,
Object
>
>
selectFastCardAtACCU
(
String
groupNo
);
public
boolean
saveFastTask
(
List
<
Object
>
list
,
String
submitName
,
String
acceptNo
,
long
cardType
);
public
boolean
saveFastTask
(
List
<
Map
<
String
,
Object
>
>
list
,
String
submitName
,
String
acceptNo
,
long
cardType
);
public
List
<
TaskEntity
>
selectTaskEntityByTaskId
(
long
taskId
);
...
...
src/main/java/com/yxproject/start/service/impl/PreproPersonServiceImpl.java
View file @
a50ac197
...
...
@@ -7,6 +7,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.Map
;
/**
* @auther zhangyusheng
...
...
@@ -68,7 +69,7 @@ public class PreproPersonServiceImpl implements PreproPersonService {
* @return
*/
@Override
public
List
<
Object
>
selectUploadNoByAcceptNo
(
String
acceptNo
)
{
public
List
<
Map
<
String
,
Object
>
>
selectUploadNoByAcceptNo
(
String
acceptNo
)
{
return
preproPersonMapper
.
selectUploadNoByAcceptNo
(
acceptNo
);
}
}
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
a50ac197
...
...
@@ -299,7 +299,7 @@ public class TaskListServiceImpl implements TaskListService {
* @return
*/
@Override
public
List
<
Object
>
selectFastCardAtACCU
(
String
groupNo
)
{
public
List
<
Map
<
String
,
Object
>
>
selectFastCardAtACCU
(
String
groupNo
)
{
return
taskListMapper
.
selectFastCardAtACCU
(
groupNo
);
}
...
...
@@ -311,9 +311,9 @@ public class TaskListServiceImpl implements TaskListService {
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
saveFastTask
(
List
<
Object
>
list
,
String
submitName
,
String
acceptNo
,
long
cardType
)
{
public
boolean
saveFastTask
(
List
<
Map
<
String
,
Object
>
>
list
,
String
submitName
,
String
acceptNo
,
long
cardType
)
{
//保存普通证件信息
Map
<
String
,
Object
>
stringObjectMap
=
(
Map
<
String
,
Object
>)
list
.
get
(
0
);
Map
<
String
,
Object
>
stringObjectMap
=
list
.
get
(
0
);
TaskEntity
taskEntity
=
new
TaskEntity
();
taskEntity
.
setCardType
(
cardType
);
taskEntity
.
setCountyCode
(
stringObjectMap
.
get
(
"COUNTY_CODE"
)+
""
);
...
...
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