修复json强制转小写
This commit is contained in:
@@ -68,17 +68,18 @@ public class MyCardController {
|
||||
@ApiOperation("查询")
|
||||
@PostMapping("/query")
|
||||
@ResponseBody
|
||||
public Map<String, List<QueryOrderResp>> query(@RequestParam(value = "StartDateTime", required = false) String startDateTime, @RequestParam(value = "EndDateTime", required = false) String endDateTime, @RequestParam(value = "MyCardTradeNo", required = false) String myCardTradeNo, HttpServletRequest request) {
|
||||
public String query(@RequestParam(value = "StartDateTime", required = false) String startDateTime, @RequestParam(value = "EndDateTime", required = false) String endDateTime, @RequestParam(value = "MyCardTradeNo", required = false) String myCardTradeNo, HttpServletRequest request) {
|
||||
String ipAddress = IPUtils.getRealIpAddress(request);
|
||||
log.info("myCard query ipAddress : {}", ipAddress);
|
||||
if (!Arrays.asList("218.32.37.148", "40.83.124.36", "210.71.189.165", "40.81.30.67", "40.81.29.75").contains(ipAddress)) {
|
||||
return Collections.emptyMap();
|
||||
return JSONObject.toJSONString(Collections.emptyMap());
|
||||
}
|
||||
Date startTime = DateTimeUtil.convertStrToDate(startDateTime, DateTimeUtil.UTC_DEFAULT_DATETIME_PATTERN);
|
||||
Date endTime = DateTimeUtil.convertStrToDate(endDateTime, DateTimeUtil.UTC_DEFAULT_DATETIME_PATTERN);
|
||||
Map<String, List<QueryOrderResp>> map = new HashMap<>();
|
||||
map.put("trades", myCardBizService.query(startTime, endTime, myCardTradeNo));
|
||||
return map;
|
||||
|
||||
return JSONObject.toJSONString(map);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user