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
c2f65819
Commit
c2f65819
authored
Mar 09, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
411154e5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
15 deletions
+52
-15
FailedCardApi.java
src/main/java/com/yxproject/start/api/FailedCardApi.java
+8
-6
FailedCardMapper.java
...ain/java/com/yxproject/start/mapper/FailedCardMapper.java
+9
-2
PersonPostMapper.java
...ain/java/com/yxproject/start/mapper/PersonPostMapper.java
+30
-3
PersonPostServiceImpl.java
...m/yxproject/start/service/impl/PersonPostServiceImpl.java
+5
-2
SelectSerialNumberServiceImpl.java
...ect/start/service/impl/SelectSerialNumberServiceImpl.java
+0
-2
No files found.
src/main/java/com/yxproject/start/api/FailedCardApi.java
View file @
c2f65819
...
...
@@ -94,27 +94,29 @@ public class FailedCardApi {
public
Boolean
insertRemaining
(
@RequestBody
String
jsonStr
){
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
jsonStr
);
JSONArray
jsonarray
=
JSONArray
.
fromObject
(
jsonObject
.
get
(
"list"
));
System
.
out
.
println
(
"1111111111111"
+
jsonarray
);
TaskEntity
taskEntity
=
new
TaskEntity
();
for
(
int
i
=
0
;
i
<
jsonarray
.
size
();
i
++)
{
/*查询生成任务单需要的数据*/
// JSONObject jsonObject2 =(JSONObject)o;
Map
<
String
,
Object
>
resultMap
=
failedCardService
.
selectTaskListDate
((
String
)
jsonarray
.
get
(
i
));
try
{
//TODO 会报空指针异常
String
countyCode
=
resultMap
.
get
(
"COUNTY_CODE"
).
toString
();
Long
cardType
=
(
Long
)
resultMap
.
get
(
"CARD_TYPE_ID"
);
String
acceptNo
=
(
String
)
resultMap
.
get
(
"ACCEPT_NO"
);
taskEntity
.
setCountyCode
(
countyCode
);
taskEntity
.
setCardType
(
cardType
);
taskEntity
.
setTaskStateId
((
long
)
1
);
}
catch
(
NullPointerException
e
){
}
System
.
out
.
println
(
"333333333333333333333333过"
);
taskListService
.
saveTask
(
taskEntity
);
/*特证表添加特证*/
failedCardService
.
addSpecialCard
(
(
String
)
jsonarray
.
get
(
i
)
);
failedCardService
.
addSpecialCard
(
acceptNo
);
/*特证数+1*/
failedCardService
.
specialCardAdd
((
String
)
jsonarray
.
get
(
i
));
failedCardService
.
specialCardAdd
(
acceptNo
);
}
catch
(
NullPointerException
e
){
}
}
return
true
;
}
...
...
src/main/java/com/yxproject/start/mapper/FailedCardMapper.java
View file @
c2f65819
...
...
@@ -71,12 +71,19 @@ public interface FailedCardMapper {
@Select
(
"select SPECIAL_CARD.SPECIAL_TYPE,subStr(prod_card_t.UPLOAD_NO,0,6),SPECIAL_CARD.INITIATOR,PREPRO_PERSON.CARD_TYPE_ID\n"
+
@Select
(
"select SPECIAL_CARD.SPECIAL_TYPE,
prod_card_t.accept_no,
subStr(prod_card_t.UPLOAD_NO,0,6),SPECIAL_CARD.INITIATOR,PREPRO_PERSON.CARD_TYPE_ID\n"
+
"from prod_card_t@prod_link\n"
+
"left join SPECIAL_CARD on prod_card_t.accept_no = SPECIAL_CARD.accept_no\n"
+
"left join PREPRO_PERSON on PREPRO_PERSON.JMSFZSLH=prod_card_t.UPLOAD_NO\n"
+
"where prod_card_t.accept_no=#{acceptNo}"
)
"where prod_card_t.accept_no=#{acceptNo}
or prod_card_t.ID_NO=#{acceptNo}
"
)
public
Map
<
String
,
Object
>
selectTaskListDate
(
String
acceptNo
);
/*历史回迁证*/
}
src/main/java/com/yxproject/start/mapper/PersonPostMapper.java
View file @
c2f65819
...
...
@@ -29,7 +29,11 @@ public interface PersonPostMapper {
//TODO getToCounty是List
@Select
(
"SELECT * FROM PERSON_POST "
+
@Select
(
"<script> "
+
"SELECT * FROM "
+
"( "
+
"SELECT A.*, ROWNUM RN "
+
" from (SELECT * FROM PERSON_POST "
+
" LEFT JOIN FILE_NAME_DIC ON FILE_NAME_DIC.FILE_ID=PERSON_POST.FILE_ID"
+
"WHERE 1=1"
+
" <when test='applicantName!=null'> and PERSON_POST.APPLICANT_NAME = #{applicantName} </when>"
+
...
...
@@ -38,8 +42,29 @@ public interface PersonPostMapper {
" <when test='latticeMouthInformation!=null'> and PERSON_POST.LATTICE_MOUTH_INFORMATION=#{latticeMouthInformation} </when>"
+
" <when test='getToCounty!=null'> and PERSON_POST.GET_TO_COUNTY in ( #{getToCounty} ) </when>"
+
" <when test='uploadDate!=null'> and FILE_NAME_DIC.UPLOAD_DATE=#{uploadDate} </when>"
+
"PERSON_POST limit #{firstIndex},#{pageSize}"
)
public
List
<
PersonPostEntity
>
findAllPersonalData
(
@Param
(
"applicantName"
)
String
applicantName
,
@Param
(
"orderNumber"
)
String
orderNumber
,
@Param
(
"state"
)
String
state
,
@Param
(
"latticeMouthInformation"
)
String
latticeMouthInformation
,
@Param
(
"getToCounty"
)
String
getToCounty
,
@Param
(
"uploadDate"
)
String
uploadDate
,
@Param
(
"firstIndex"
)
String
firstIndex
,
@Param
(
"pageSize"
)
String
pageSize
);
// "PERSON_POST limit #{firstIndex},#{pageSize}"
") "
+
"A"
+
")"
+
"WHERE RN BETWEEN #{firstIndex} AND #{pageSize}"
+
"</script>"
)
public
List
<
PersonPostEntity
>
findAllPersonalData
(
@Param
(
"applicantName"
)
String
applicantName
,
@Param
(
"orderNumber"
)
String
orderNumber
,
@Param
(
"state"
)
String
state
,
@Param
(
"latticeMouthInformation"
)
String
latticeMouthInformation
,
@Param
(
"getToCounty"
)
String
getToCounty
,
@Param
(
"uploadDate"
)
String
uploadDate
,
@Param
(
"firstIndex"
)
long
firstIndex
,
@Param
(
"pageSize"
)
long
pageSize
);
@Select
(
"<script> "
+
"SELECT COUNT(*) FROM NEW_FILES \n"
+
"LEFT JOIN PREPRO_PERSON ON NEW_FILES.ID = PREPRO_PERSON.NEW_FILE_ID "
+
" where 1=1 "
+
" <when test='applicantName!=null'> and PERSON_POST.APPLICANT_NAME = #{applicantName} </when>"
+
" <when test='orderNumber!=null'> and PERSON_POST.ORDER_NUMBER=#{orderNumber} </when>"
+
" <when test='state!=null'> and PERSON_POST.STATE=#{state} </when>"
+
" <when test='latticeMouthInformation!=null'> and PERSON_POST.LATTICE_MOUTH_INFORMATION=#{latticeMouthInformation} </when>"
+
" <when test='getToCounty!=null'> and PERSON_POST.GET_TO_COUNTY in ( #{getToCounty} ) </when>"
+
" <when test='uploadDate!=null'> and FILE_NAME_DIC.UPLOAD_DATE=#{uploadDate} </when>"
+
"</script>"
)
public
int
findPersonalDataCount
(
String
applicantName
,
String
orderNumber
,
String
state
,
String
latticeMouthInformation
,
List
<
String
>
getToCounty
,
String
uploadDate
);
@Delete
(
"DELETE PERSON_POST "
+
"WHERE 1=1"
+
...
...
@@ -51,6 +76,8 @@ public interface PersonPostMapper {
" <when test='uploadDate!=null'> and FILE_NAME_DIC.UPLOAD_DATE=#{uploadDate} </when>"
)
public
boolean
deleteAllPersonalData
(
@Param
(
"applicantName"
)
String
applicantName
,
@Param
(
"orderNumber"
)
String
orderNumber
,
@Param
(
"state"
)
String
state
,
@Param
(
"latticeMouthInformation"
)
String
latticeMouthInformation
,
List
<
String
>
getToCounty
,
@Param
(
"uploadDate"
)
String
uploadDate
);
@Delete
(
"DELETE FROM PERSON_POST WHERE FILE_ID = #{fileId}"
)
public
void
deletePersonPostByFileId
(
@Param
(
"fileId"
)
String
fileId
);
...
...
src/main/java/com/yxproject/start/service/impl/PersonPostServiceImpl.java
View file @
c2f65819
...
...
@@ -53,6 +53,8 @@ public class PersonPostServiceImpl implements PersonPostService {
@Override
public
List
<
PersonPostEntity
>
findPersonalData
(
String
applicantName
,
String
orderNumber
,
String
state
,
String
latticeMouthInformation
,
List
<
String
>
getToCounty
,
String
uploadDate
,
String
firstIndex
,
String
pageSize
){
String
str
=
null
;
long
firstIndexLong
=
Long
.
valueOf
(
firstIndex
);
long
pageSizeLong
=
Long
.
valueOf
(
pageSize
);
for
(
int
i
=
0
;
i
<
getToCounty
.
size
();
i
++){
if
(
i
==
getToCounty
.
size
()-
1
){
str
+=
"'"
+
getToCounty
.
get
(
i
);
...
...
@@ -60,7 +62,7 @@ public class PersonPostServiceImpl implements PersonPostService {
str
+=
"'"
+
getToCounty
.
get
(
i
)+
","
;
}
}
List
<
PersonPostEntity
>
list
=
personPostMapper
.
findAllPersonalData
(
applicantName
,
orderNumber
,
state
,
latticeMouthInformation
,
str
,
uploadDate
,
firstIndex
,
pageSize
);
List
<
PersonPostEntity
>
list
=
personPostMapper
.
findAllPersonalData
(
applicantName
,
orderNumber
,
state
,
latticeMouthInformation
,
str
,
uploadDate
,
firstIndex
Long
*
pageSizeLong
,(
firstIndexLong
-
1
)
*
pageSizeLong
+
1
);
return
list
;
}
...
...
@@ -86,7 +88,8 @@ public class PersonPostServiceImpl implements PersonPostService {
@Override
public
int
findPersonalDataCount
(
String
applicantName
,
String
orderNumber
,
String
state
,
String
latticeMouthInformation
,
List
<
String
>
getToCounty
,
String
uploadDate
)
{
return
0
;
int
count
=
personPostMapper
.
findPersonalDataCount
(
applicantName
,
orderNumber
,
state
,
latticeMouthInformation
,
getToCounty
,
uploadDate
);
return
count
;
}
// /**
...
...
src/main/java/com/yxproject/start/service/impl/SelectSerialNumberServiceImpl.java
View file @
c2f65819
...
...
@@ -16,7 +16,6 @@ public class SelectSerialNumberServiceImpl implements SelectSerialNumberService{
@Override
public
List
<
Map
<
String
,
Object
>>
selectByWorkOrderFromYX
(
String
id
){
List
<
Map
<
String
,
Object
>>
result
=
selectSerialNumberMapper
.
selectByWorkOrder
(
id
);
System
.
out
.
println
(
"任务单信息:"
+
result
);
return
result
;
}
...
...
@@ -24,7 +23,6 @@ public class SelectSerialNumberServiceImpl implements SelectSerialNumberService{
public
List
<
Map
<
String
,
Object
>>
selectByGroupNo
(
String
id
)
{
System
.
out
.
println
(
"impl"
);
List
<
Map
<
String
,
Object
>>
result
=
selectSerialNumberMapper
.
selectByGroupNo
(
id
);
System
.
out
.
println
(
"查询结果:"
+
result
);
return
result
;
}
...
...
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