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
e05be1c2
Commit
e05be1c2
authored
Apr 16, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
602f7c04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
ReceiptApi.java
src/main/java/com/yxproject/start/api/ReceiptApi.java
+13
-2
No files found.
src/main/java/com/yxproject/start/api/ReceiptApi.java
View file @
e05be1c2
...
@@ -286,7 +286,7 @@ public class ReceiptApi {
...
@@ -286,7 +286,7 @@ public class ReceiptApi {
*/
*/
@RequestMapping
(
"queryReceiptDateByCheckDate"
)
@RequestMapping
(
"queryReceiptDateByCheckDate"
)
public
List
<
Map
<
String
,
Object
>>
queryReceiptDateByCheckDate
(
@RequestParam
(
"startDate"
)
String
startDate
,
@RequestParam
(
"endDate"
)
String
endDate
)
{
public
List
<
Map
<
String
,
Object
>>
queryReceiptDateByCheckDate
(
@RequestParam
(
"startDate"
)
String
startDate
,
@RequestParam
(
"endDate"
)
String
endDate
)
{
return
receiptService
.
selectReceiptDateByCheckDate
(
replace
Date
(
startDate
),
replaceDate
(
endDate
));
return
receiptService
.
selectReceiptDateByCheckDate
(
replace
NullString
(
replaceDate
(
startDate
)),
replaceNullString
(
replaceDate
(
endDate
)
));
}
}
...
@@ -298,7 +298,7 @@ public class ReceiptApi {
...
@@ -298,7 +298,7 @@ public class ReceiptApi {
*/
*/
@RequestMapping
(
"queryReceiptDateByReceiptDate"
)
@RequestMapping
(
"queryReceiptDateByReceiptDate"
)
public
List
<
Map
<
String
,
Object
>>
queryReceiptDateByReceiptDate
(
String
startDate
,
String
endDate
)
{
public
List
<
Map
<
String
,
Object
>>
queryReceiptDateByReceiptDate
(
String
startDate
,
String
endDate
)
{
return
receiptService
.
selectReceiptDateByReceiptDate
(
replace
Date
(
startDate
),
replaceDate
(
endDate
));
return
receiptService
.
selectReceiptDateByReceiptDate
(
replace
NullString
(
replaceDate
(
startDate
)),
replaceNullString
(
replaceDate
(
endDate
)
));
}
}
/**
/**
...
@@ -311,6 +311,17 @@ public class ReceiptApi {
...
@@ -311,6 +311,17 @@ public class ReceiptApi {
public
List
<
Map
<
String
,
Object
>>
queryPoliceName
(
@RequestParam
(
"policeCode"
)
String
policeCode
)
{
public
List
<
Map
<
String
,
Object
>>
queryPoliceName
(
@RequestParam
(
"policeCode"
)
String
policeCode
)
{
return
receiptService
.
queryPoliceName
(
policeCode
);
return
receiptService
.
queryPoliceName
(
policeCode
);
}
}
/**
* 字符串去除空格
*
* @param str 原始字符串
* @return 返回新的字符串
*/
private
String
replaceNullString
(
String
str
)
{
if
(
str
==
""
)
{
return
null
;
}
else
return
str
;
}
/**
/**
* 去除字符串中中线
* 去除字符串中中线
...
...
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