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
f24a0913
Commit
f24a0913
authored
Jun 21, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
7ba0b811
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
0 deletions
+18
-0
ReceiptApi.java
src/main/java/com/yxproject/start/api/ReceiptApi.java
+6
-0
ReceiptMapper.java
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
+4
-0
ReceiptService.java
...main/java/com/yxproject/start/service/ReceiptService.java
+1
-0
ReceiptServiceImpl.java
.../com/yxproject/start/service/impl/ReceiptServiceImpl.java
+7
-0
No files found.
src/main/java/com/yxproject/start/api/ReceiptApi.java
View file @
f24a0913
...
@@ -72,6 +72,7 @@ public class ReceiptApi {
...
@@ -72,6 +72,7 @@ public class ReceiptApi {
}
}
receiptListEntity
.
setFinishCount
(
Long
.
valueOf
(
resultDate
.
get
(
"VALID_COUNT"
).
toString
()));
receiptListEntity
.
setFinishCount
(
Long
.
valueOf
(
resultDate
.
get
(
"VALID_COUNT"
).
toString
()));
receiptListEntity
.
setQrCode
(
resultDate
.
get
(
"ACCEPT_NO"
).
toString
());
receiptListEntity
.
setQrCode
(
resultDate
.
get
(
"ACCEPT_NO"
).
toString
());
map
.
put
(
"qrCode"
,
resultDate
.
get
(
"ACCEPT_NO"
).
toString
());
receiptListEntity
.
setState
((
long
)
0
);
receiptListEntity
.
setState
((
long
)
0
);
receiptListEntity
.
setCheckName
(
name
);
receiptListEntity
.
setCheckName
(
name
);
//生成特证交接单
//生成特证交接单
...
@@ -102,6 +103,8 @@ public class ReceiptApi {
...
@@ -102,6 +103,8 @@ public class ReceiptApi {
map
.
put
(
"show"
,
false
);
map
.
put
(
"show"
,
false
);
map
.
put
(
"state"
,
2
);
map
.
put
(
"state"
,
2
);
map
.
put
(
"msg"
,
"已生成交接单"
);
map
.
put
(
"msg"
,
"已生成交接单"
);
List
<
Map
<
String
,
Object
>>
list
=
receiptService
.
selectQrCodeByCardID
(
id
,
beginDate
,
expireDate
);
map
.
put
(
"qrCode"
,(
list
.
size
()>
0
?
list
.
get
(
0
).
get
(
"QR_CODE"
):
null
));
map
.
put
(
"id"
,
mapList
.
get
(
0
).
get
(
"ID"
));
map
.
put
(
"id"
,
mapList
.
get
(
0
).
get
(
"ID"
));
map
.
put
(
"checkName"
,
mapList
.
get
(
0
).
get
(
"CHECK_NAME"
));
map
.
put
(
"checkName"
,
mapList
.
get
(
0
).
get
(
"CHECK_NAME"
));
map
.
put
(
"policeName"
,
mapList
.
get
(
0
).
get
(
"GAJG_MC"
));
map
.
put
(
"policeName"
,
mapList
.
get
(
0
).
get
(
"GAJG_MC"
));
...
@@ -135,6 +138,7 @@ public class ReceiptApi {
...
@@ -135,6 +138,7 @@ public class ReceiptApi {
}
}
receiptListEntity
.
setFinishCount
((
long
)
receiptListDate
.
size
());
receiptListEntity
.
setFinishCount
((
long
)
receiptListDate
.
size
());
receiptListEntity
.
setQrCode
(
receiptListDate
.
get
(
i
).
get
(
"GROUP_NO"
).
toString
());
receiptListEntity
.
setQrCode
(
receiptListDate
.
get
(
i
).
get
(
"GROUP_NO"
).
toString
());
map
.
put
(
"qrCode"
,
receiptListDate
.
get
(
i
).
get
(
"GROUP_NO"
).
toString
());
// 状态0未复核
// 状态0未复核
receiptListEntity
.
setState
((
long
)
0
);
receiptListEntity
.
setState
((
long
)
0
);
receiptListEntity
.
setCheckName
(
name
);
receiptListEntity
.
setCheckName
(
name
);
...
@@ -179,6 +183,8 @@ public class ReceiptApi {
...
@@ -179,6 +183,8 @@ public class ReceiptApi {
map
.
put
(
"msg"
,
"已生成交接单"
);
map
.
put
(
"msg"
,
"已生成交接单"
);
map
.
put
(
"state"
,
2
);
map
.
put
(
"state"
,
2
);
map
.
put
(
"id"
,
mapList
.
get
(
0
).
get
(
"ID"
));
map
.
put
(
"id"
,
mapList
.
get
(
0
).
get
(
"ID"
));
List
<
Map
<
String
,
Object
>>
list
=
receiptService
.
selectQrCodeByCardID
(
id
,
beginDate
,
expireDate
);
map
.
put
(
"qrCode"
,(
list
.
size
()>
0
?
list
.
get
(
0
).
get
(
"QR_CODE"
):
null
));
map
.
put
(
"checkName"
,
mapList
.
get
(
0
).
get
(
"CHECK_NAME"
));
map
.
put
(
"checkName"
,
mapList
.
get
(
0
).
get
(
"CHECK_NAME"
));
map
.
put
(
"policeName"
,
mapList
.
get
(
0
).
get
(
"GAJG_MC"
));
map
.
put
(
"policeName"
,
mapList
.
get
(
0
).
get
(
"GAJG_MC"
));
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
...
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
View file @
f24a0913
...
@@ -277,5 +277,9 @@ public interface ReceiptMapper {
...
@@ -277,5 +277,9 @@ public interface ReceiptMapper {
"</script>"
)
"</script>"
)
public
List
<
DetailReceiptListEntity
>
selectDetailNote
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"name"
)
String
name
);
public
List
<
DetailReceiptListEntity
>
selectDetailNote
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"name"
)
String
name
);
@Select
(
"select RECEIPT_LIST.QR_CODE from RECEIPT_LIST \n"
+
"left join DETAIL_RECEIPT_LIST on DETAIL_RECEIPT_LIST.RECEIPT_ID = RECEIPT_LIST.id\n"
+
"where DETAIL_RECEIPT_LIST.CARD_ID = #{id}"
)
public
List
<
Map
<
String
,
Object
>>
selectQrCodeByCardID
(
@Param
(
"id"
)
String
id
,
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"expireDate"
)
String
expireDate
);
}
}
src/main/java/com/yxproject/start/service/ReceiptService.java
View file @
f24a0913
...
@@ -86,4 +86,5 @@ public interface ReceiptService {
...
@@ -86,4 +86,5 @@ public interface ReceiptService {
public
List
<
Map
<
String
,
Object
>>
selectPoliceDataByDownLoadDate
(
String
startDate
,
String
endDate
);
public
List
<
Map
<
String
,
Object
>>
selectPoliceDataByDownLoadDate
(
String
startDate
,
String
endDate
);
public
List
<
Map
<
String
,
Object
>>
selectQrCodeByCardID
(
String
id
,
String
beginDate
,
String
expireDate
);
}
}
src/main/java/com/yxproject/start/service/impl/ReceiptServiceImpl.java
View file @
f24a0913
...
@@ -348,6 +348,13 @@ public class ReceiptServiceImpl implements ReceiptService {
...
@@ -348,6 +348,13 @@ public class ReceiptServiceImpl implements ReceiptService {
return
detailReceiptListEntityList
;
return
detailReceiptListEntityList
;
}
}
@Override
public
List
<
Map
<
String
,
Object
>>
selectQrCodeByCardID
(
String
id
,
String
beginDate
,
String
expireDate
)
{
List
<
Map
<
String
,
Object
>>
list
=
receiptMapper
.
selectQrCodeByCardID
(
id
,
beginDate
,
expireDate
);
return
list
;
}
private
List
<
Map
<
String
,
Object
>>
formateMap
(
List
<
Map
<
String
,
Object
>>
maplist
)
{
private
List
<
Map
<
String
,
Object
>>
formateMap
(
List
<
Map
<
String
,
Object
>>
maplist
)
{
Map
<
String
,
Object
>
typeMap
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
typeMap
=
new
LinkedHashMap
<>();
for
(
Map
o
:
maplist
)
{
for
(
Map
o
:
maplist
)
{
...
...
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