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
3e6b5362
Commit
3e6b5362
authored
Mar 02, 2021
by
wuzhilong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格口文件邮件号检查
parent
ba51a8b9
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
71 additions
and
17 deletions
+71
-17
ReadExcelApi.java
src/main/java/com/yxproject/start/api/ReadExcelApi.java
+10
-2
ReceiptApi.java
src/main/java/com/yxproject/start/api/ReceiptApi.java
+7
-7
DetailReceiptListMapper.java
...a/com/yxproject/start/mapper/DetailReceiptListMapper.java
+1
-1
PersonPostMapper.java
...ain/java/com/yxproject/start/mapper/PersonPostMapper.java
+14
-0
ReceiptMapper.java
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
+17
-6
PersonPostService.java
...n/java/com/yxproject/start/service/PersonPostService.java
+3
-0
ReceiptService.java
...main/java/com/yxproject/start/service/ReceiptService.java
+3
-0
PersonPostServiceImpl.java
...m/yxproject/start/service/impl/PersonPostServiceImpl.java
+10
-0
ReceiptServiceImpl.java
.../com/yxproject/start/service/impl/ReceiptServiceImpl.java
+5
-0
excelAndSearch.js
...n/resources/static/views/excelAndSearch/excelAndSearch.js
+1
-1
No files found.
src/main/java/com/yxproject/start/api/ReadExcelApi.java
View file @
3e6b5362
...
@@ -77,6 +77,8 @@ public class ReadExcelApi {
...
@@ -77,6 +77,8 @@ public class ReadExcelApi {
// 将普通属性存入map中,之后调用
// 将普通属性存入map中,之后调用
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
List
<
FileItem
>
list
=
null
;
List
<
FileItem
>
list
=
null
;
int
post
=
0
;
int
backPost
=
0
;
try
{
try
{
//将当前上下文初始化给 CommonsMutipartResolver (多部分解析器)
//将当前上下文初始化给 CommonsMutipartResolver (多部分解析器)
CommonsMultipartResolver
multipartResolver
=
new
CommonsMultipartResolver
(
CommonsMultipartResolver
multipartResolver
=
new
CommonsMultipartResolver
(
...
@@ -157,6 +159,9 @@ public class ReadExcelApi {
...
@@ -157,6 +159,9 @@ public class ReadExcelApi {
entityList
.
add
(
personPostEntity
);
entityList
.
add
(
personPostEntity
);
}
}
personPostService
.
savePersonPost
(
entityList
);
personPostService
.
savePersonPost
(
entityList
);
//查询导入新格口文件邮件号是否使用过
post
=
personPostService
.
findWaybillNumber
(
fileNameDicEntity
.
getFileId
()+
""
);
backPost
=
personPostService
.
findBackWaybillNumber
(
fileNameDicEntity
.
getFileId
()+
""
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
logger
.
error
(
"上传文件名"
+
filename
+
"起始时间"
+
startDate
+
"截止时间"
+
endDate
);
logger
.
error
(
"上传文件名"
+
filename
+
"起始时间"
+
startDate
+
"截止时间"
+
endDate
);
...
@@ -185,8 +190,11 @@ public class ReadExcelApi {
...
@@ -185,8 +190,11 @@ public class ReadExcelApi {
map
.
put
(
"msg"
,
"导入个人邮寄信息表异常"
);
map
.
put
(
"msg"
,
"导入个人邮寄信息表异常"
);
return
map
;
return
map
;
}
}
map
.
put
(
"result"
,
"true"
);
if
(
post
+
backPost
>
0
){
map
.
put
(
"msg"
,
"上传成功"
);
map
.
put
(
"msg"
,
"邮寄订单导入成功,邮件号异常正向邮件号重复 "
+
post
+
" 条,反向邮件号重复 "
+
backPost
+
"条"
);
}
else
{
map
.
put
(
"msg"
,
"上传成功!"
);
}
return
map
;
return
map
;
}
}
...
...
src/main/java/com/yxproject/start/api/ReceiptApi.java
View file @
3e6b5362
...
@@ -293,7 +293,6 @@ public class ReceiptApi {
...
@@ -293,7 +293,6 @@ public class ReceiptApi {
if
(
resultProd
.
size
()>
0
){
//通过交接单id判断是否以生成交接单
if
(
resultProd
.
size
()>
0
){
//通过交接单id判断是否以生成交接单
String
receiptId
=
resultProd
.
get
(
0
).
get
(
"RECEIPT_ID"
)+
""
;
//交接单id
String
receiptId
=
resultProd
.
get
(
0
).
get
(
"RECEIPT_ID"
)+
""
;
//交接单id
String
acceptNo
=
resultProd
.
get
(
0
).
get
(
"ACCEPT_NO"
)+
""
;
//受理号
String
acceptNo
=
resultProd
.
get
(
0
).
get
(
"ACCEPT_NO"
)+
""
;
//受理号
String
groupNo
=
acceptNo
.
substring
(
0
,
acceptNo
.
length
()-
2
);
//-------------------未生成交接单-------------------
//-------------------未生成交接单-------------------
if
(
"null"
.
equals
(
receiptId
)){
if
(
"null"
.
equals
(
receiptId
)){
String
cardType
=
resultProd
.
get
(
0
).
get
(
"CARD_TYPE"
)+
""
;
//任务单制证类型
String
cardType
=
resultProd
.
get
(
0
).
get
(
"CARD_TYPE"
)+
""
;
//任务单制证类型
...
@@ -307,18 +306,18 @@ public class ReceiptApi {
...
@@ -307,18 +306,18 @@ public class ReceiptApi {
//保存交接单
//保存交接单
//-------------------特征-------------------
//-------------------特征-------------------
// todo ,重做退回没加判断
// todo ,重做退回没加判断
if
(
specialType
==
"2"
){
//受理类型(1余证2快证3退证)
if
(
"2"
.
equals
(
specialType
)
){
//受理类型(1余证2快证3退证)
receiptListEntity
.
setQrCode
(
acceptNo
);
//条形码(受理组号或受理号)
receiptListEntity
.
setQrCode
(
acceptNo
);
//条形码(受理组号或受理号)
receiptListEntity
.
setPoliceCode
(
"110000000000"
);
//公安机关代码
receiptListEntity
.
setPoliceCode
(
"110000000000"
);
//公安机关代码
receiptListEntity
.
setFinishCount
((
long
)
1
);
//复核数量
receiptListEntity
.
setFinishCount
((
long
)
1
);
//复核数量
receiptListEntity
.
setCardTypeId
((
long
)
0
);
//制证类型
receiptListEntity
.
setCardTypeId
((
long
)
0
);
//制证类型
receiptListEntity
.
setOldCardTypeId
((
long
)
2
);
// 原制证类型
receiptListEntity
.
setOldCardTypeId
((
long
)
0
);
// 原制证类型
receiptListEntity
.
setFjdm
(
"110000"
);
//分局代码
receiptListEntity
.
setFjdm
(
"110000"
);
//分局代码
receiptListEntity
.
setCheckName
(
name
);
//复核姓名
receiptListEntity
.
setCheckName
(
name
);
//复核姓名
}
else
{
}
else
{
//-------------------普证 个人邮寄 港澳证 台湾证 -------------------
//-------------------普证 个人邮寄 港澳证 台湾证 -------------------
receiptListEntity
.
setQrCode
(
groupNo
+
"00"
);
//封签编号
acceptNo
=
acceptNo
.
substring
(
0
,
acceptNo
.
length
()-
2
);
receiptListEntity
.
set
FinishCount
(
Long
.
valueOf
(
validCount
));
//证件数量
receiptListEntity
.
set
QrCode
(
acceptNo
);
//封签编号
receiptListEntity
.
setCardTypeId
(
Long
.
valueOf
(
cardType
));
//制证类型
receiptListEntity
.
setCardTypeId
(
Long
.
valueOf
(
cardType
));
//制证类型
if
(
"null"
.
equals
(
oldCardType
)){
if
(
"null"
.
equals
(
oldCardType
)){
...
@@ -338,15 +337,16 @@ public class ReceiptApi {
...
@@ -338,15 +337,16 @@ public class ReceiptApi {
default
:
default
:
receiptListEntity
.
setFjdm
(
fjdm
);
receiptListEntity
.
setFjdm
(
fjdm
);
}
}
List
<
Map
<
String
,
Object
>>
list
=
receiptService
.
findReceiptListCount
(
acceptNo
+
"%"
);
receiptListEntity
.
setFinishCount
((
long
)
list
.
size
());
//证件数量
}
}
//生成交接单
//生成交接单
long
S
=
receiptService
.
createReceiptList
(
receiptListEntity
);
long
S
=
receiptService
.
createReceiptList
(
receiptListEntity
);
//生成交接详单
//生成交接详单
//上传受理号、受理号、姓名、派出所代码、身份证号、受理单位、交接单ID、性别
//上传受理号、受理号、姓名、派出所代码、身份证号、受理单位、交接单ID、性别
receiptId
=
receiptListEntity
.
getId
()+
""
;
receiptId
=
receiptListEntity
.
getId
()+
""
;
String
policeCode
=
receiptListEntity
.
getPoliceCode
();
String
policeCode
=
receiptListEntity
.
getPoliceCode
();
receiptService
.
createDetailReceiptList
(
receiptId
,
group
No
+
"%"
,
policeCode
);
receiptService
.
createDetailReceiptList
(
receiptId
,
accept
No
+
"%"
,
policeCode
);
map
.
put
(
"show"
,
true
);
map
.
put
(
"show"
,
true
);
map
.
put
(
"state"
,
1
);
map
.
put
(
"state"
,
1
);
map
.
put
(
"id"
,
receiptId
);
map
.
put
(
"id"
,
receiptId
);
...
...
src/main/java/com/yxproject/start/mapper/DetailReceiptListMapper.java
View file @
3e6b5362
...
@@ -48,7 +48,7 @@ public interface DetailReceiptListMapper {
...
@@ -48,7 +48,7 @@ public interface DetailReceiptListMapper {
"POLICE_CODE,FINISH_COUNT,DIC_UPLOAD_UNIT_T.UNIT_NAME GAJG_MC,CARD_TYPE_DIC.CARD_TYPE\n"
+
"POLICE_CODE,FINISH_COUNT,DIC_UPLOAD_UNIT_T.UNIT_NAME GAJG_MC,CARD_TYPE_DIC.CARD_TYPE\n"
+
"from RECEIPT_LIST \n"
+
"from RECEIPT_LIST \n"
+
"left join PRODYD_DBA.DIC_UPLOAD_UNIT_T@PRODYD_LINK on DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO = RECEIPT_LIST.POLICE_CODE\n"
+
"left join PRODYD_DBA.DIC_UPLOAD_UNIT_T@PRODYD_LINK on DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO = RECEIPT_LIST.POLICE_CODE\n"
+
"left join CARD_TYPE_DIC on
decode(RECEIPT_LIST.Old_CARD_TYPE_ID,null,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.Old_CARD_TYPE_ID)
= CARD_TYPE_DIC.CARD_TYPE_ID\n"
+
"left join CARD_TYPE_DIC on
RECEIPT_LIST.CARD_TYPE_ID
= CARD_TYPE_DIC.CARD_TYPE_ID\n"
+
"where RECEIPT_LIST.id in (${str}) order by receipt_date"
)
"where RECEIPT_LIST.id in (${str}) order by receipt_date"
)
public
List
<
Map
<
String
,
Object
>>
selectPoliceDataById
(
@Param
(
"str"
)
String
str
);
public
List
<
Map
<
String
,
Object
>>
selectPoliceDataById
(
@Param
(
"str"
)
String
str
);
...
...
src/main/java/com/yxproject/start/mapper/PersonPostMapper.java
View file @
3e6b5362
...
@@ -185,4 +185,18 @@ public interface PersonPostMapper {
...
@@ -185,4 +185,18 @@ public interface PersonPostMapper {
"on dataa.DWDM=datab.DWDM"
)
"on dataa.DWDM=datab.DWDM"
)
public
List
<
Map
<
String
,
Object
>>
downloadUploadInfo
(
@Param
(
"strDate"
)
String
strDate
,
@Param
(
"endDate"
)
String
endDate
);
public
List
<
Map
<
String
,
Object
>>
downloadUploadInfo
(
@Param
(
"strDate"
)
String
strDate
,
@Param
(
"endDate"
)
String
endDate
);
@Select
(
"select count(*) from PERSON_POST\n"
+
" where FILE_ID <>#{fileID}\n"
+
" and WAYBILL_NUMBER in \n"
+
" (select WAYBILL_NUMBER from PERSON_POST\n"
+
" where FILE_ID=#{fileID})"
)
public
int
findWaybillNumber
(
@Param
(
"fileID"
)
String
fileID
);
@Select
(
"select count(*) from PERSON_POST\n"
+
" where FILE_ID <>#{fileID}\n"
+
" and BACK_WAYBILL_NUMBER in \n"
+
" (select BACK_WAYBILL_NUMBER from PERSON_POST\n"
+
" where FILE_ID=#{fileID})"
)
public
int
findBackWaybillNumber
(
@Param
(
"fileID"
)
String
fileID
);
}
}
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
View file @
3e6b5362
...
@@ -251,10 +251,10 @@ public interface ReceiptMapper {
...
@@ -251,10 +251,10 @@ public interface ReceiptMapper {
public
Map
<
String
,
Object
>
selectTimes
(
@Param
(
"groupNo"
)
String
groupNo
);
public
Map
<
String
,
Object
>
selectTimes
(
@Param
(
"groupNo"
)
String
groupNo
);
@Select
(
"<script>"
+
@Select
(
"<script>"
+
"select RECEIPT_LIST.id,RECEIPT_LIST.QR_CODE,RECEIPT_LIST.RECEIPT_DATE,RECEIPT_LIST.POLICE_CODE,
decode(RECEIPT_LIST.Old_CARD_TYPE_ID,null,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.Old_CARD_TYPE_ID)
CARD_TYPE_ID,\n"
+
"select RECEIPT_LIST.id,RECEIPT_LIST.QR_CODE,RECEIPT_LIST.RECEIPT_DATE,RECEIPT_LIST.POLICE_CODE,
RECEIPT_LIST.CARD_TYPE_ID
CARD_TYPE_ID,\n"
+
"RECEIPT_LIST.FINISH_COUNT,DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO GAJG_DM,DIC_UPLOAD_UNIT_T.UNIT_NAME GAJG_MC,RECEIPT_LIST.CHECK_DATE,RECEIPT_LIST.CHECK_NAME\n"
+
"RECEIPT_LIST.FINISH_COUNT,DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO GAJG_DM,DIC_UPLOAD_UNIT_T.UNIT_NAME GAJG_MC,RECEIPT_LIST.CHECK_DATE,RECEIPT_LIST.CHECK_NAME\n"
+
",CARD_TYPE_DIC.CARD_TYPE,COUNTY_DIC.COUNTY_CODE ,COUNTY_DIC.COUNTYNAME,RECEIPT_LIST.state,RECEIPT_LIST.IS_PRINT from RECEIPT_LIST \n"
+
",CARD_TYPE_DIC.CARD_TYPE,COUNTY_DIC.COUNTY_CODE ,COUNTY_DIC.COUNTYNAME,RECEIPT_LIST.state,RECEIPT_LIST.IS_PRINT from RECEIPT_LIST \n"
+
"left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID =
decode(RECEIPT_LIST.Old_CARD_TYPE_ID,null,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.Old_CARD_TYPE_ID)
\n"
+
"left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID =
RECEIPT_LIST.CARD_TYPE_ID
\n"
+
"left join PRODYD_DBA.DIC_UPLOAD_UNIT_T@PRODYD_LINK on DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO = RECEIPT_LIST.POLICE_CODE\n"
+
"left join PRODYD_DBA.DIC_UPLOAD_UNIT_T@PRODYD_LINK on DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO = RECEIPT_LIST.POLICE_CODE\n"
+
"left join COUNTY_DIC on substr(RECEIPT_LIST.POLICE_CODE,0,6) = COUNTY_DIC.COUNTY_CODE"
+
"left join COUNTY_DIC on substr(RECEIPT_LIST.POLICE_CODE,0,6) = COUNTY_DIC.COUNTY_CODE"
+
" where CHECK_DATE is not null and RECEIPT_LIST.IS_PRINT = 0 "
+
" where CHECK_DATE is not null and RECEIPT_LIST.IS_PRINT = 0 "
+
...
@@ -268,10 +268,10 @@ public interface ReceiptMapper {
...
@@ -268,10 +268,10 @@ public interface ReceiptMapper {
@Select
(
"select RECEIPT_LIST.id,RECEIPT_LIST.QR_CODE,RECEIPT_LIST.RECEIPT_DATE,RECEIPT_LIST.POLICE_CODE,
decode(RECEIPT_LIST.Old_CARD_TYPE_ID,null,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.Old_CARD_TYPE_ID)
CARD_TYPE_ID,\n"
+
@Select
(
"select RECEIPT_LIST.id,RECEIPT_LIST.QR_CODE,RECEIPT_LIST.RECEIPT_DATE,RECEIPT_LIST.POLICE_CODE,
RECEIPT_LIST.CARD_TYPE_ID
CARD_TYPE_ID,\n"
+
"RECEIPT_LIST.FINISH_COUNT,DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO GAJG_DM,DIC_UPLOAD_UNIT_T.UNIT_NAME GAJG_MC,RECEIPT_LIST.CHECK_DATE,RECEIPT_LIST.CHECK_NAME\n"
+
"RECEIPT_LIST.FINISH_COUNT,DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO GAJG_DM,DIC_UPLOAD_UNIT_T.UNIT_NAME GAJG_MC,RECEIPT_LIST.CHECK_DATE,RECEIPT_LIST.CHECK_NAME\n"
+
",CARD_TYPE_DIC.CARD_TYPE,COUNTY_DIC.COUNTY_CODE ,COUNTY_DIC.COUNTYNAME,RECEIPT_LIST.state,RECEIPT_LIST.IS_PRINT from RECEIPT_LIST \n"
+
",CARD_TYPE_DIC.CARD_TYPE,COUNTY_DIC.COUNTY_CODE ,COUNTY_DIC.COUNTYNAME,RECEIPT_LIST.state,RECEIPT_LIST.IS_PRINT from RECEIPT_LIST \n"
+
"left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID =
decode(RECEIPT_LIST.Old_CARD_TYPE_ID,null,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.Old_CARD_TYPE_ID)
\n"
+
"left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID =
RECEIPT_LIST.CARD_TYPE_ID
\n"
+
"left join PRODYD_DBA.DIC_UPLOAD_UNIT_T@PRODYD_LINK on DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO = RECEIPT_LIST.POLICE_CODE\n"
+
"left join PRODYD_DBA.DIC_UPLOAD_UNIT_T@PRODYD_LINK on DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO = RECEIPT_LIST.POLICE_CODE\n"
+
"left join COUNTY_DIC on RECEIPT_LIST.FJDM = COUNTY_DIC.COUNTY_CODE"
+
"left join COUNTY_DIC on RECEIPT_LIST.FJDM = COUNTY_DIC.COUNTY_CODE"
+
" where to_char(RECEIPT_DATE,'yyyyMMddhhmmss') BETWEEN ${startDate} and ${endDate} order by RECEIPT_LIST.id "
)
" where to_char(RECEIPT_DATE,'yyyyMMddhhmmss') BETWEEN ${startDate} and ${endDate} order by RECEIPT_LIST.id "
)
...
@@ -280,10 +280,10 @@ public interface ReceiptMapper {
...
@@ -280,10 +280,10 @@ public interface ReceiptMapper {
//修改表链接
//修改表链接
@Select
(
"<script>"
+
@Select
(
"<script>"
+
"select RECEIPT_LIST.id,RECEIPT_LIST.QR_CODE,to_char(RECEIPT_LIST.RECEIPT_DATE,'yyyy-MM-dd') RECEIPT_DATE,RECEIPT_LIST.POLICE_CODE,
decode(RECEIPT_LIST.Old_CARD_TYPE_ID,null,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.Old_CARD_TYPE_ID)
CARD_TYPE_ID,\n"
+
"select RECEIPT_LIST.id,RECEIPT_LIST.QR_CODE,to_char(RECEIPT_LIST.RECEIPT_DATE,'yyyy-MM-dd') RECEIPT_DATE,RECEIPT_LIST.POLICE_CODE,
RECEIPT_LIST.CARD_TYPE_ID
CARD_TYPE_ID,\n"
+
"RECEIPT_LIST.FINISH_COUNT,DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO GAJG_DM,DIC_UPLOAD_UNIT_T.UNIT_NAME GAJG_MC,to_char(CHECK_DATE,'yyyyMMdd') CHECK_DATE,RECEIPT_LIST.CHECK_NAME\n"
+
"RECEIPT_LIST.FINISH_COUNT,DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO GAJG_DM,DIC_UPLOAD_UNIT_T.UNIT_NAME GAJG_MC,to_char(CHECK_DATE,'yyyyMMdd') CHECK_DATE,RECEIPT_LIST.CHECK_NAME\n"
+
",CARD_TYPE_DIC.CARD_TYPE,CARD_TYPE_DIC.CARD_TYPE,RECEIPT_LIST.fjdm COUNTY_CODE ,POLICE_DIC.police_name COUNTYNAME from RECEIPT_LIST \n"
+
",CARD_TYPE_DIC.CARD_TYPE,CARD_TYPE_DIC.CARD_TYPE,RECEIPT_LIST.fjdm COUNTY_CODE ,POLICE_DIC.police_name COUNTYNAME from RECEIPT_LIST \n"
+
"left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID =
decode(RECEIPT_LIST.Old_CARD_TYPE_ID,null,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.Old_CARD_TYPE_ID)
\n"
+
"left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID =
RECEIPT_LIST.CARD_TYPE_ID
\n"
+
"left join PRODYD_DBA.DIC_UPLOAD_UNIT_T@PRODYD_LINK on DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO= RECEIPT_LIST.POLICE_CODE \n"
+
"left join PRODYD_DBA.DIC_UPLOAD_UNIT_T@PRODYD_LINK on DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO= RECEIPT_LIST.POLICE_CODE \n"
+
"left join POLICE_DIC on RECEIPT_LIST.fjdm= POLICE_DIC.POLICE_CODE "
+
"left join POLICE_DIC on RECEIPT_LIST.fjdm= POLICE_DIC.POLICE_CODE "
+
" where RECEIPT_LIST.id in (${string}) order by RECEIPT_LIST.id "
+
" where RECEIPT_LIST.id in (${string}) order by RECEIPT_LIST.id "
+
...
@@ -370,6 +370,17 @@ public interface ReceiptMapper {
...
@@ -370,6 +370,17 @@ public interface ReceiptMapper {
"and prod_card_t.ACCEPT_NO not like 'L%' \n"
+
"and prod_card_t.ACCEPT_NO not like 'L%' \n"
+
"ORDER BY prod_card_t.ACCEPT_NO DESC "
)
"ORDER BY prod_card_t.ACCEPT_NO DESC "
)
public
List
<
Map
<
String
,
Object
>>
selectProdAcceptNo
(
@Param
(
"id"
)
String
id
,
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"expireDate"
)
String
expireDate
);
public
List
<
Map
<
String
,
Object
>>
selectProdAcceptNo
(
@Param
(
"id"
)
String
id
,
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"expireDate"
)
String
expireDate
);
//查询交接单详单 组内数量
@Select
(
"select UPLOAD_NO,ACCEPT_NO,NAME,ID_NO,SIGN_GOVT,SEX_NO\n"
+
"from PROD_DBA.prod_card_t@PROD_LINK cardT \n"
+
"where cardT.ACCEPT_NO not in \n"
+
"(select ACCEPT_NO from SPECIAL_CARD \n"
+
"where GROUP_NO like #{groupNo} "
+
" AND SPECIAL_TYPE<> 1 ) \n"
+
"and cardT.ACCEPT_NO like #{groupNo}"
)
public
List
<
Map
<
String
,
Object
>>
findReceiptListCount
(
@Param
(
"groupNo"
)
String
groupNo
);
//生成交接单详单
//生成交接单详单
@Insert
(
"INSERT INTO DETAIL_RECEIPT_LIST(UPLOAD_NO,accept_no,name,POLICE_CODE,card_id,SIGN_GOVT,RECEIPT_ID,SEX)\n"
+
@Insert
(
"INSERT INTO DETAIL_RECEIPT_LIST(UPLOAD_NO,accept_no,name,POLICE_CODE,card_id,SIGN_GOVT,RECEIPT_ID,SEX)\n"
+
"select UPLOAD_NO,ACCEPT_NO,NAME,#{policeCode},ID_NO,SIGN_GOVT,#{receiptId},SEX_NO\n"
+
"select UPLOAD_NO,ACCEPT_NO,NAME,#{policeCode},ID_NO,SIGN_GOVT,#{receiptId},SEX_NO\n"
+
...
...
src/main/java/com/yxproject/start/service/PersonPostService.java
View file @
3e6b5362
...
@@ -57,4 +57,7 @@ public interface PersonPostService {
...
@@ -57,4 +57,7 @@ public interface PersonPostService {
public
List
<
Map
<
String
,
Object
>>
downloadUploadInfo
(
HttpServletRequest
request
,
HttpServletResponse
response
,
String
startDate
,
String
endDate
);
public
List
<
Map
<
String
,
Object
>>
downloadUploadInfo
(
HttpServletRequest
request
,
HttpServletResponse
response
,
String
startDate
,
String
endDate
);
public
int
findWaybillNumber
(
@Param
(
"fileID"
)
String
fileID
);
public
int
findBackWaybillNumber
(
@Param
(
"fileID"
)
String
fileID
);
}
}
src/main/java/com/yxproject/start/service/ReceiptService.java
View file @
3e6b5362
...
@@ -96,6 +96,9 @@ public interface ReceiptService {
...
@@ -96,6 +96,9 @@ public interface ReceiptService {
public
List
<
Map
<
String
,
Object
>>
selectProdAcceptNo
(
String
id
,
String
beginDate
,
String
expireDate
);
public
List
<
Map
<
String
,
Object
>>
selectProdAcceptNo
(
String
id
,
String
beginDate
,
String
expireDate
);
public
List
<
Map
<
String
,
Object
>>
findReceiptListCount
(
String
groupNo
);
public
boolean
createDetailReceiptList
(
String
receiptId
,
String
groupNo
,
String
policeCode
);
public
boolean
createDetailReceiptList
(
String
receiptId
,
String
groupNo
,
String
policeCode
);
...
...
src/main/java/com/yxproject/start/service/impl/PersonPostServiceImpl.java
View file @
3e6b5362
...
@@ -167,6 +167,16 @@ public class PersonPostServiceImpl implements PersonPostService {
...
@@ -167,6 +167,16 @@ public class PersonPostServiceImpl implements PersonPostService {
List
<
Map
<
String
,
Object
>>
list
=
personPostMapper
.
downloadUploadInfo
(
strDate
,
endDate
);
List
<
Map
<
String
,
Object
>>
list
=
personPostMapper
.
downloadUploadInfo
(
strDate
,
endDate
);
return
list
;
return
list
;
}
}
@Override
public
int
findWaybillNumber
(
String
fileID
){
int
mum
=
personPostMapper
.
findWaybillNumber
(
fileID
);
return
mum
;
}
@Override
public
int
findBackWaybillNumber
(
String
fileID
){
int
mum
=
personPostMapper
.
findBackWaybillNumber
(
fileID
);
return
mum
;
}
// /**
// /**
// * 查询个人邮寄信息
// * 查询个人邮寄信息
// * @param fileName 文件名
// * @param fileName 文件名
...
...
src/main/java/com/yxproject/start/service/impl/ReceiptServiceImpl.java
View file @
3e6b5362
...
@@ -486,6 +486,11 @@ public class ReceiptServiceImpl implements ReceiptService {
...
@@ -486,6 +486,11 @@ public class ReceiptServiceImpl implements ReceiptService {
return
receiptMapper
.
selectProdAcceptNo
(
id
,
beginDate
,
expireDate
);
return
receiptMapper
.
selectProdAcceptNo
(
id
,
beginDate
,
expireDate
);
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
findReceiptListCount
(
String
groupNo
){
List
<
Map
<
String
,
Object
>>
list
=
receiptMapper
.
findReceiptListCount
(
groupNo
);
return
list
;
};
@Override
public
boolean
createDetailReceiptList
(
String
receiptId
,
String
groupNo
,
String
policeCode
)
{
public
boolean
createDetailReceiptList
(
String
receiptId
,
String
groupNo
,
String
policeCode
)
{
receiptMapper
.
createDetailReceiptList
(
receiptId
,
groupNo
,
policeCode
);
receiptMapper
.
createDetailReceiptList
(
receiptId
,
groupNo
,
policeCode
);
return
true
;
return
true
;
...
...
src/main/resources/static/views/excelAndSearch/excelAndSearch.js
View file @
3e6b5362
...
@@ -98,7 +98,7 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm
...
@@ -98,7 +98,7 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm
if
(
data
.
result
==
"true"
){
if
(
data
.
result
==
"true"
){
$scope
.
closeThisDialog
();
$scope
.
closeThisDialog
();
getData
();
getData
();
MessageService
.
showAlert
(
"上传成功"
)
MessageService
.
showAlert
(
data
.
msg
);
}
else
{
}
else
{
$scope
.
msgText
=
data
.
msg
;
$scope
.
msgText
=
data
.
msg
;
}
}
...
...
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