Commit e05be1c2 authored by dahai's avatar dahai

push

parent 602f7c04
......@@ -286,7 +286,7 @@ public class ReceiptApi {
*/
@RequestMapping("queryReceiptDateByCheckDate")
public List<Map<String, Object>> queryReceiptDateByCheckDate(@RequestParam("startDate") String startDate,@RequestParam("endDate") String endDate) {
return receiptService.selectReceiptDateByCheckDate(replaceDate(startDate),replaceDate(endDate));
return receiptService.selectReceiptDateByCheckDate(replaceNullString(replaceDate(startDate)),replaceNullString(replaceDate(endDate)));
}
......@@ -298,7 +298,7 @@ public class ReceiptApi {
*/
@RequestMapping("queryReceiptDateByReceiptDate")
public List<Map<String, Object>> queryReceiptDateByReceiptDate(String startDate, String endDate) {
return receiptService.selectReceiptDateByReceiptDate(replaceDate(startDate),replaceDate(endDate));
return receiptService.selectReceiptDateByReceiptDate(replaceNullString(replaceDate(startDate)),replaceNullString(replaceDate(endDate)));
}
/**
......@@ -311,6 +311,17 @@ public class ReceiptApi {
public List<Map<String, Object>> queryPoliceName(@RequestParam("policeCode") String policeCode) {
return receiptService.queryPoliceName(policeCode);
}
/**
* 字符串去除空格
*
* @param str 原始字符串
* @return 返回新的字符串
*/
private String replaceNullString(String str) {
if (str == "") {
return null;
} else return str;
}
/**
* 去除字符串中中线
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment