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
df1b4385
Commit
df1b4385
authored
Mar 12, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
交接单4.5
parent
c86d6e1c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
ReceiptApi.java
src/main/java/com/yxproject/start/api/ReceiptApi.java
+12
-3
No files found.
src/main/java/com/yxproject/start/api/ReceiptApi.java
View file @
df1b4385
...
...
@@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RestController;
import
java.math.BigDecimal
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -32,6 +33,7 @@ public class ReceiptApi {
@RequestMapping
(
"createReceiptList"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
createReceiptList
(
@RequestParam
(
"id"
)
String
id
)
{
try
{
//判断是否是特证
if
(
receiptService
.
selectSpecialCardByAcceptNo
(
id
)
==
1
)
{
//查询这个受理号是否生成了交接单
...
...
@@ -124,6 +126,10 @@ public class ReceiptApi {
int
finishCount
=
receiptService
.
selectCount
(
groupNo
)
-
specialCardCount
;
receiptService
.
updateFinishCount
(
groupNo
,
finishCount
);
}
}
catch
(
NullPointerException
e
){
return
false
;
}
return
true
;
}
...
...
@@ -137,11 +143,8 @@ public class ReceiptApi {
List
<
Map
<
String
,
Object
>>
resultMap
=
receiptService
.
selectReceiptListOfSpecialCard
();
for
(
int
i
=
0
;
i
<
resultMap
.
size
();
i
++){
String
groupNo
=
(
String
)
resultMap
.
get
(
i
).
get
(
"QR_CODE"
);
System
.
out
.
println
(
"1111111111111111111111111111"
+
groupNo
);
Map
<
String
,
Object
>
map
=
receiptService
.
selectCountTime
(
groupNo
);
System
.
out
.
println
(
"22222222222222222222222222222"
+
map
.
get
(
"download"
));
resultMap
.
get
(
i
).
put
(
"download"
,
map
.
get
(
"download"
));
// resultMap.get(i).put("",map.get(""));
resultMap
.
get
(
i
).
put
(
"checkerCount"
,
map
.
get
(
"checkerCount"
));
resultMap
.
get
(
i
).
put
(
"electricCount"
,
map
.
get
(
"electricCount"
));
}
...
...
@@ -170,6 +173,8 @@ public class ReceiptApi {
@RequestMapping
(
"selectDetailList"
)
public
List
<
Map
<
String
,
Object
>>
selectDetailList
(
@RequestParam
(
"receiptId"
)
String
receiptId
){
List
<
Map
<
String
,
Object
>>
resultList
=
receiptService
.
selectDetailList
(
receiptId
);
try
{
for
(
int
i
=
0
;
i
<
resultList
.
size
();
i
++){
String
groupNo
=
(
String
)
resultList
.
get
(
i
).
get
(
"QR_CODE"
);
Map
<
String
,
Object
>
map
=
receiptService
.
selectTimes
(
groupNo
);
...
...
@@ -177,7 +182,11 @@ public class ReceiptApi {
resultList
.
get
(
i
).
put
(
"checkDate"
,
map
.
get
(
"checkDate"
));
resultList
.
get
(
i
).
put
(
"electricDate"
,
map
.
get
(
"electricDate"
));
}
}
catch
(
NullPointerException
e
){
return
new
ArrayList
<>();
}
return
resultList
;
}
/**
...
...
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