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
2a19af74
Commit
2a19af74
authored
Nov 15, 2021
by
wuzhilong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GAT数据导出
parent
53c1411c
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
56 additions
and
22 deletions
+56
-22
ReceiptApi.java
src/main/java/com/yxproject/start/api/ReceiptApi.java
+2
-2
DetailReceiptListMapper.java
...a/com/yxproject/start/mapper/DetailReceiptListMapper.java
+2
-1
ReceiptMapper.java
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
+21
-4
ReceiptService.java
...main/java/com/yxproject/start/service/ReceiptService.java
+1
-1
ReceiptServiceImpl.java
.../com/yxproject/start/service/impl/ReceiptServiceImpl.java
+7
-2
ExportExcel.java
src/main/java/com/yxproject/start/utils/ExportExcel.java
+10
-0
service.js
src/main/resources/static/js/service.js
+3
-3
downloadGongan.html
...resources/static/views/downloadGongan/downloadGongan.html
+5
-2
downloadGongan.js
...n/resources/static/views/downloadGongan/downloadGongan.js
+5
-7
No files found.
src/main/java/com/yxproject/start/api/ReceiptApi.java
View file @
2a19af74
...
@@ -771,12 +771,12 @@ public class ReceiptApi {
...
@@ -771,12 +771,12 @@ public class ReceiptApi {
* @return
* @return
*/
*/
@RequestMapping
(
"queryPoliceDataByDownLoadDate"
)
@RequestMapping
(
"queryPoliceDataByDownLoadDate"
)
public
List
<
Map
<
String
,
Object
>>
queryPoliceDataByDownLoadDate
(
@RequestParam
(
"startDate"
)
String
startDate
,
@RequestParam
(
"endDate"
)
String
endDate
,
HttpServletRequest
requ
)
{
public
List
<
Map
<
String
,
Object
>>
queryPoliceDataByDownLoadDate
(
@RequestParam
(
"startDate"
)
String
startDate
,
@RequestParam
(
"endDate"
)
String
endDate
,
@RequestParam
(
"gat"
)
String
gat
,
HttpServletRequest
requ
)
{
String
remoteAddr
=
requ
.
getRemoteAddr
();
String
remoteAddr
=
requ
.
getRemoteAddr
();
MDC
.
put
(
"ip"
,
remoteAddr
);
MDC
.
put
(
"ip"
,
remoteAddr
);
List
<
Map
<
String
,
Object
>>
policeData
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
policeData
=
new
ArrayList
<>();
try
{
try
{
policeData
=
receiptService
.
selectPoliceDataByDownLoadDate
(
replaceDate
(
startDate
),
replaceDate
(
endDate
));
policeData
=
receiptService
.
selectPoliceDataByDownLoadDate
(
replaceDate
(
startDate
),
replaceDate
(
endDate
)
,
gat
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
"开始时间:"
+
startDate
+
"结束时间:"
+
endDate
);
logger
.
error
(
"开始时间:"
+
startDate
+
"结束时间:"
+
endDate
);
logger
.
error
(
"Exception 查询公安网数据(历史)异常"
,
e
);
logger
.
error
(
"Exception 查询公安网数据(历史)异常"
,
e
);
...
...
src/main/java/com/yxproject/start/mapper/DetailReceiptListMapper.java
View file @
2a19af74
...
@@ -22,7 +22,8 @@ public interface DetailReceiptListMapper {
...
@@ -22,7 +22,8 @@ public interface DetailReceiptListMapper {
*/
*/
@Select
(
"select DETAIL_RECEIPT_LIST.id,DETAIL_RECEIPT_LIST.ACCEPT_NO,DETAIL_RECEIPT_LIST.SIGN_GOVT,DETAIL_RECEIPT_LIST.NAME,DETAIL_RECEIPT_LIST.UPLOAD_NO,\n"
+
@Select
(
"select DETAIL_RECEIPT_LIST.id,DETAIL_RECEIPT_LIST.ACCEPT_NO,DETAIL_RECEIPT_LIST.SIGN_GOVT,DETAIL_RECEIPT_LIST.NAME,DETAIL_RECEIPT_LIST.UPLOAD_NO,\n"
+
"DETAIL_RECEIPT_LIST.sex,DETAIL_RECEIPT_LIST.CARD_ID,DETAIL_RECEIPT_LIST.POLICE_CODE,DIC_UPLOAD_UNIT_T.UNIT_NAME POLICE_NAME,to_char(RECEIPT_LIST.CHECK_DATE,'yyyyMMdd') CHECK_DATE,\n"
+
"DETAIL_RECEIPT_LIST.sex,DETAIL_RECEIPT_LIST.CARD_ID,DETAIL_RECEIPT_LIST.POLICE_CODE,DIC_UPLOAD_UNIT_T.UNIT_NAME POLICE_NAME,to_char(RECEIPT_LIST.CHECK_DATE,'yyyyMMdd') CHECK_DATE,\n"
+
"RECEIPT_LIST.CHECK_NAME,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.OLD_CARD_TYPE_ID,PERSON_POST.WAYBILL_NUMBER,DETAIL_RECEIPT_LIST.note,RECEIPT_LIST.QR_CODE,DETAIL_RECEIPT_LIST.APPLY_PHONE \n"
+
"RECEIPT_LIST.CHECK_NAME,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.OLD_CARD_TYPE_ID,PERSON_POST.WAYBILL_NUMBER,DETAIL_RECEIPT_LIST.note,RECEIPT_LIST.QR_CODE,DETAIL_RECEIPT_LIST.APPLY_PHONE,"
+
"DETAIL_RECEIPT_LIST.ADDRESS,DETAIL_RECEIPT_LIST.GAT_ID \n"
+
"from DETAIL_RECEIPT_LIST \n"
+
"from DETAIL_RECEIPT_LIST \n"
+
"left join RECEIPT_LIST on DETAIL_RECEIPT_LIST.RECEIPT_ID = RECEIPT_LIST.ID\n"
+
"left join RECEIPT_LIST on DETAIL_RECEIPT_LIST.RECEIPT_ID = RECEIPT_LIST.ID\n"
+
"left join PERSON_POST on PERSON_POST.FIRST_WHITE = DETAIL_RECEIPT_LIST.UPLOAD_NO\n"
+
"left join PERSON_POST on PERSON_POST.FIRST_WHITE = DETAIL_RECEIPT_LIST.UPLOAD_NO\n"
+
...
...
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
View file @
2a19af74
...
@@ -331,14 +331,17 @@ public interface ReceiptMapper {
...
@@ -331,14 +331,17 @@ public interface ReceiptMapper {
"where DOWNLOAD_DATE is null and to_char(receipt_date,'yyyyMMdd') BETWEEN #{startDate} and #{endDate} order by receipt_date"
)
"where DOWNLOAD_DATE is null and to_char(receipt_date,'yyyyMMdd') BETWEEN #{startDate} and #{endDate} order by receipt_date"
)
public
List
<
Map
<
String
,
Object
>>
selectPoliceData
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
public
List
<
Map
<
String
,
Object
>>
selectPoliceData
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
@Select
(
"select RECEIPT_LIST.id,QR_CODE,to_char(DOWNLOAD_DATE,'yyyyMMddHH24') receipt_date ,\n"
+
@Select
(
"
<script>
select RECEIPT_LIST.id,QR_CODE,to_char(DOWNLOAD_DATE,'yyyyMMddHH24') receipt_date ,\n"
+
"POLICE_CODE,FINISH_COUNT,RECEIPT_LIST.CARD_TYPE_ID,DIC_UPLOAD_UNIT_T.UNIT_NAME GAJG_MC,CARD_TYPE_DIC.CARD_TYPE\n"
+
"POLICE_CODE,FINISH_COUNT,RECEIPT_LIST.CARD_TYPE_ID,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 RECEIPT_LIST.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 to_char(DOWNLOAD_DATE,'yyyyMMdd') BETWEEN #{startDate} and #{endDate}"
+
"where to_char(DOWNLOAD_DATE,'yyyyMMdd') BETWEEN #{startDate} and #{endDate} "
+
" order by receipt_date"
)
"<if test = 'gat !=\"\"'> "
+
public
List
<
Map
<
String
,
Object
>>
selectPoliceDataByDownLoadDate
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
"AND RECEIPT_LIST.CARD_TYPE_ID in (5,7) "
+
" </if>"
+
" order by receipt_date </script> "
)
public
List
<
Map
<
String
,
Object
>>
selectPoliceDataByDownLoadDate
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"gat"
)
String
gat
);
@Select
(
"<script> select * from DETAIL_RECEIPT_LIST "
+
@Select
(
"<script> select * from DETAIL_RECEIPT_LIST "
+
"where to_char(SUBMIT_DATE,'yyyyMMdd') between #{startDate} and #{endDate} "
+
"where to_char(SUBMIT_DATE,'yyyyMMdd') between #{startDate} and #{endDate} "
+
...
@@ -402,6 +405,20 @@ public interface ReceiptMapper {
...
@@ -402,6 +405,20 @@ public interface ReceiptMapper {
"and cardT.ACCEPT_NO like #{groupNo}"
)
"and cardT.ACCEPT_NO like #{groupNo}"
)
public
boolean
createDetailReceiptList
(
@Param
(
"receiptId"
)
String
receiptId
,
@Param
(
"groupNo"
)
String
groupNo
,
@Param
(
"policeCode"
)
String
policeCode
);
public
boolean
createDetailReceiptList
(
@Param
(
"receiptId"
)
String
receiptId
,
@Param
(
"groupNo"
)
String
groupNo
,
@Param
(
"policeCode"
)
String
policeCode
);
//生成交接单详单——港澳台
@Insert
(
"INSERT INTO DETAIL_RECEIPT_LIST(UPLOAD_NO,accept_no,name,POLICE_CODE,card_id,SIGN_GOVT,RECEIPT_ID,SEX,APPLY_PHONE,GAT_ID,ADDRESS)\n"
+
"select cardT.UPLOAD_NO,cardT.ACCEPT_NO,cardT.NAME,#{policeCode},cardT.ID_NO,cardT.SIGN_GOVT,#{receiptId},cardT.SEX_NO,applyInfo.APPLY_PHONE,"
+
"cardT.CARD_NO,cardT.ADDR1||cardT.ADDR2||cardT.ADDR3\n"
+
"from PRODYD_DBA.prod_card_t@PRODYD_LINK cardT "
+
"LEFT JOIN PRODYD_DBA.PROD_APPLY_INFO_T@PRODYD_LINK applyInfo \n"
+
"ON applyInfo.ACCEPT_NO = cardT.ACCEPT_NO\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
boolean
createDetailReceiptList_GAT
(
@Param
(
"receiptId"
)
String
receiptId
,
@Param
(
"groupNo"
)
String
groupNo
,
@Param
(
"policeCode"
)
String
policeCode
);
//查询历史交接单详单是否存在
//查询历史交接单详单是否存在
@Select
(
"select detail_receipt_list.UPLOAD_NO,detail_receipt_list.ACCEPT_NO,detail_receipt_list.NAME,\n"
+
@Select
(
"select detail_receipt_list.UPLOAD_NO,detail_receipt_list.ACCEPT_NO,detail_receipt_list.NAME,\n"
+
"detail_receipt_list.POLICE_CODE,detail_receipt_list.CARD_ID ,detail_receipt_list.NOTE,\n"
+
"detail_receipt_list.POLICE_CODE,detail_receipt_list.CARD_ID ,detail_receipt_list.NOTE,\n"
+
...
...
src/main/java/com/yxproject/start/service/ReceiptService.java
View file @
2a19af74
...
@@ -90,7 +90,7 @@ public interface ReceiptService {
...
@@ -90,7 +90,7 @@ public interface ReceiptService {
public
List
<
Map
<
String
,
Object
>>
selectPoliceData
(
String
startDate
,
String
endDate
);
public
List
<
Map
<
String
,
Object
>>
selectPoliceData
(
String
startDate
,
String
endDate
);
public
List
<
Map
<
String
,
Object
>>
selectPoliceDataByDownLoadDate
(
String
startDate
,
String
endDate
);
public
List
<
Map
<
String
,
Object
>>
selectPoliceDataByDownLoadDate
(
String
startDate
,
String
endDate
,
String
gat
);
public
List
<
Map
<
String
,
Object
>>
selectQrCodeByCardID
(
String
id
,
String
beginDate
,
String
expireDate
);
public
List
<
Map
<
String
,
Object
>>
selectQrCodeByCardID
(
String
id
,
String
beginDate
,
String
expireDate
);
...
...
src/main/java/com/yxproject/start/service/impl/ReceiptServiceImpl.java
View file @
2a19af74
...
@@ -329,8 +329,8 @@ public class ReceiptServiceImpl implements ReceiptService {
...
@@ -329,8 +329,8 @@ public class ReceiptServiceImpl implements ReceiptService {
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
selectPoliceDataByDownLoadDate
(
String
startDate
,
String
endDate
)
{
public
List
<
Map
<
String
,
Object
>>
selectPoliceDataByDownLoadDate
(
String
startDate
,
String
endDate
,
String
gat
)
{
List
<
Map
<
String
,
Object
>>
list
=
receiptMapper
.
selectPoliceDataByDownLoadDate
(
startDate
,
endDate
);
List
<
Map
<
String
,
Object
>>
list
=
receiptMapper
.
selectPoliceDataByDownLoadDate
(
startDate
,
endDate
,
gat
);
Map
<
String
,
Object
>
dateMap
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
dateMap
=
new
LinkedHashMap
<>();
for
(
Map
<
String
,
Object
>
map
:
list
){
for
(
Map
<
String
,
Object
>
map
:
list
){
if
(
dateMap
.
containsKey
(
map
.
get
(
"RECEIPT_DATE"
)+
""
)){
if
(
dateMap
.
containsKey
(
map
.
get
(
"RECEIPT_DATE"
)+
""
)){
...
@@ -511,7 +511,12 @@ public class ReceiptServiceImpl implements ReceiptService {
...
@@ -511,7 +511,12 @@ public class ReceiptServiceImpl implements ReceiptService {
};
};
@Override
@Override
public
boolean
createDetailReceiptList
(
String
receiptId
,
String
groupNo
,
String
policeCode
)
{
public
boolean
createDetailReceiptList
(
String
receiptId
,
String
groupNo
,
String
policeCode
)
{
if
(
groupNo
.
substring
(
0
,
1
).
equals
(
"E"
)){
receiptMapper
.
createDetailReceiptList
(
receiptId
,
groupNo
,
policeCode
);
receiptMapper
.
createDetailReceiptList
(
receiptId
,
groupNo
,
policeCode
);
}
else
{
receiptMapper
.
createDetailReceiptList_GAT
(
receiptId
,
groupNo
,
policeCode
);
}
return
true
;
return
true
;
}
}
private
String
createGroupNoMiss
(
List
<
String
>
c
,
List
<
String
>
nsList
)
{
private
String
createGroupNoMiss
(
List
<
String
>
c
,
List
<
String
>
nsList
)
{
...
...
src/main/java/com/yxproject/start/utils/ExportExcel.java
View file @
2a19af74
...
@@ -48,6 +48,8 @@ public class ExportExcel {
...
@@ -48,6 +48,8 @@ public class ExportExcel {
sheet
.
setColumnWidth
(
13
,
30
*
110
);
sheet
.
setColumnWidth
(
13
,
30
*
110
);
sheet
.
setColumnWidth
(
14
,
30
*
110
);
sheet
.
setColumnWidth
(
14
,
30
*
110
);
sheet
.
setColumnWidth
(
15
,
30
*
110
);
sheet
.
setColumnWidth
(
15
,
30
*
110
);
sheet
.
setColumnWidth
(
16
,
40
*
110
);
sheet
.
setColumnWidth
(
17
,
80
*
110
);
//第三步创建行row:添加表头0行
//第三步创建行row:添加表头0行
HSSFRow
row
=
sheet
.
createRow
(
0
);
HSSFRow
row
=
sheet
.
createRow
(
0
);
HSSFCellStyle
style
=
wb
.
createCellStyle
();
//样式
HSSFCellStyle
style
=
wb
.
createCellStyle
();
//样式
...
@@ -89,6 +91,10 @@ public class ExportExcel {
...
@@ -89,6 +91,10 @@ public class ExportExcel {
cell
.
setCellValue
(
"备注"
);
cell
.
setCellValue
(
"备注"
);
cell
=
row
.
createCell
(
15
);
//设定值
cell
=
row
.
createCell
(
15
);
//设定值
cell
.
setCellValue
(
"联系方式"
);
cell
.
setCellValue
(
"联系方式"
);
cell
=
row
.
createCell
(
16
);
//设定值
cell
.
setCellValue
(
"通行证号码"
);
cell
=
row
.
createCell
(
17
);
//设定值
cell
.
setCellValue
(
"住址"
);
for
(
int
i
=
0
;
i
<
mapList
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
mapList
.
size
();
i
++){
row
=
sheet
.
createRow
(
i
+
1
);
row
=
sheet
.
createRow
(
i
+
1
);
...
@@ -124,6 +130,10 @@ public class ExportExcel {
...
@@ -124,6 +130,10 @@ public class ExportExcel {
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"NOTE"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"NOTE"
)+
""
);
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"NOTE"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"NOTE"
)+
""
);
cell
=
row
.
createCell
(
15
);
//设定值
cell
=
row
.
createCell
(
15
);
//设定值
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"APPLY_PHONE"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"APPLY_PHONE"
)+
""
);
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"APPLY_PHONE"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"APPLY_PHONE"
)+
""
);
cell
=
row
.
createCell
(
16
);
//设定值
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"GAT_ID"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"GAT_ID"
)+
""
);
cell
=
row
.
createCell
(
17
);
//设定值
cell
.
setCellValue
(
"null"
.
equals
(
mapList
.
get
(
i
).
get
(
"ADDRESS"
)+
""
)?
""
:
mapList
.
get
(
i
).
get
(
"ADDRESS"
)+
""
);
}
}
HSSFSheet
sheet1
=
wb
.
createSheet
(
"公安网信息交接表"
);
HSSFSheet
sheet1
=
wb
.
createSheet
(
"公安网信息交接表"
);
...
...
src/main/resources/static/js/service.js
View file @
2a19af74
...
@@ -1123,14 +1123,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
...
@@ -1123,14 +1123,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success
(
response
.
data
)
success
(
response
.
data
)
})
})
},
},
getHistoryGongan
:
function
(
startDate
,
endDate
,
success
){
getHistoryGongan
:
function
(
startDate
,
endDate
,
str
,
success
){
console
.
log
(
startDate
,
endDate
);
$http
({
$http
({
method
:
'GET'
,
method
:
'GET'
,
url
:
"../ReceiptApi/queryPoliceDataByDownLoadDate"
+
urlTimeStamp
(),
url
:
"../ReceiptApi/queryPoliceDataByDownLoadDate"
+
urlTimeStamp
(),
params
:{
params
:{
startDate
:
startDate
,
startDate
:
startDate
,
endDate
:
endDate
endDate
:
endDate
,
gat
:
str
}
}
}).
then
(
function
successCallback
(
response
)
{
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
success
(
response
.
data
)
...
...
src/main/resources/static/views/downloadGongan/downloadGongan.html
View file @
2a19af74
...
@@ -11,8 +11,11 @@
...
@@ -11,8 +11,11 @@
<input
type=
"text"
style=
"height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;"
ng-model=
"choseDate1"
id=
"datepicker1"
readonly
/>
<input
type=
"text"
style=
"height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;"
ng-model=
"choseDate1"
id=
"datepicker1"
readonly
/>
<span>
至
</span>
<span>
至
</span>
<input
type=
"text"
style=
"height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;"
ng-model=
"choseDate"
id=
"datepicker2"
readonly
/>
<input
type=
"text"
style=
"height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;"
ng-model=
"choseDate"
id=
"datepicker2"
readonly
/>
<button
type=
"button"
class=
"btn btn-primary pull-right"
style=
"height: 30px;line-height: 17px;margin-left: 10px;"
ng-click=
"searchHistory()"
>
查询历史
</button>
<button
type=
"button"
class=
"btn btn-primary pull-right"
style=
"height: 30px;line-height: 17px;"
ng-click=
"doSearchGongan()"
>
查询
</button>
<button
type=
"button"
class=
"btn btn-primary pull-right"
style=
"height: 30px;line-height: 17px;margin-left: 5px;"
ng-click=
"searchHistory('')"
>
查询历史
</button>
<button
type=
"button"
class=
"btn btn-primary pull-right"
style=
"height: 30px;line-height: 17px;margin-left: 5px;"
ng-click=
"doSearchGongan()"
>
查询
</button>
<button
type=
"button"
class=
"btn btn-success pull-right"
style=
"height: 30px;line-height: 17px;margin-left: 5px;"
ng-click=
"searchHistory('gat')"
>
查询港澳台历史
</button>
</div>
</div>
<!-- /.box-tools -->
<!-- /.box-tools -->
</div>
</div>
...
...
src/main/resources/static/views/downloadGongan/downloadGongan.js
View file @
2a19af74
...
@@ -53,7 +53,6 @@ angular.module('AvatarCheck.downloadGongan', ['ngRoute', 'AvatarCheck.http'])
...
@@ -53,7 +53,6 @@ angular.module('AvatarCheck.downloadGongan', ['ngRoute', 'AvatarCheck.http'])
listStr
+=
json
.
list
[
i
]
listStr
+=
json
.
list
[
i
]
}
}
}
}
console
.
log
(
$rootScope
.
loginData
.
name
)
var
url
=
'../exportExcel/printExcelData?name='
+
$rootScope
.
loginData
.
name
+
"&isHistory="
+
$scope
.
isHistory
+
"&list="
+
listStr
;
var
url
=
'../exportExcel/printExcelData?name='
+
$rootScope
.
loginData
.
name
+
"&isHistory="
+
$scope
.
isHistory
+
"&list="
+
listStr
;
var
a
=
document
.
createElement
(
"a"
);
var
a
=
document
.
createElement
(
"a"
);
document
.
body
.
appendChild
(
a
);
document
.
body
.
appendChild
(
a
);
...
@@ -113,18 +112,17 @@ angular.module('AvatarCheck.downloadGongan', ['ngRoute', 'AvatarCheck.http'])
...
@@ -113,18 +112,17 @@ angular.module('AvatarCheck.downloadGongan', ['ngRoute', 'AvatarCheck.http'])
$scope
.
gonganData
[
i
].
isActive
=
false
;
$scope
.
gonganData
[
i
].
isActive
=
false
;
}
}
}
}
console
.
log
(
$scope
.
gonganData
,
"点击查询公安网反馈"
);
})
})
};
};
if
(
$rootScope
.
loginData
.
login
==
true
){
if
(
$rootScope
.
loginData
.
login
==
true
){
$scope
.
doSearchGongan
();
$scope
.
doSearchGongan
();
}
}
$scope
.
searchHistory
=
function
()
{
$scope
.
searchHistory
=
function
(
str
)
{
$scope
.
isHistory
=
1
;
$scope
.
isHistory
=
1
;
var
startDate
=
$
(
'#datepicker1'
).
val
();
var
startDate
=
$
(
'#datepicker1'
).
val
();
var
endDate
=
$
(
'#datepicker2'
).
val
();
var
endDate
=
$
(
'#datepicker2'
).
val
();
HttpService
.
getHistoryGongan
(
startDate
,
endDate
,
function
(
data
){
HttpService
.
getHistoryGongan
(
startDate
,
endDate
,
str
,
function
(
data
){
$scope
.
gonganHistoryData
=
data
;
$scope
.
gonganHistoryData
=
data
;
for
(
var
i
=
0
;
i
<
$scope
.
gonganHistoryData
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
$scope
.
gonganHistoryData
.
length
;
i
++
){
if
(
i
==
$scope
.
currentTab
){
if
(
i
==
$scope
.
currentTab
){
...
@@ -133,16 +131,16 @@ angular.module('AvatarCheck.downloadGongan', ['ngRoute', 'AvatarCheck.http'])
...
@@ -133,16 +131,16 @@ angular.module('AvatarCheck.downloadGongan', ['ngRoute', 'AvatarCheck.http'])
$scope
.
gonganHistoryData
[
i
].
isActive
=
false
;
$scope
.
gonganHistoryData
[
i
].
isActive
=
false
;
}
}
}
}
console
.
log
(
$scope
.
gonganHistoryData
);
})
})
}
}
$scope
.
checkAllPolice
=
function
(
$event
,
date
)
{
$scope
.
checkAllPolice
=
function
(
$event
,
date
)
{
console
.
log
(
date
)
var
checkAllPolice
=
$event
.
target
;
var
checkAllPolice
=
$event
.
target
;
var
checkbox
=
document
.
getElementsByName
(
"checkPolice"
+
date
);
var
checkbox
=
document
.
getElementsByName
(
"checkPolice"
+
date
);
console
.
log
(
checkbox
.
length
);
for
(
var
i
=
0
;
i
<
checkbox
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
checkbox
.
length
;
i
++
){
if
(
checkAllPolice
.
checked
)
{
if
(
checkAllPolice
.
checked
)
{
checkbox
[
i
].
checked
=
true
;
checkbox
[
i
].
checked
=
true
;
...
...
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