|
|
|
@ -72,18 +72,23 @@ public class HuiLianTongUnionCardConfig { |
|
|
|
|
* @throws Exception |
|
|
|
|
*/ |
|
|
|
|
public static JSONObject queryConsumptionRecordByBusiness(String businessType,String cardNo,Long sdate,Long edate,Integer page,Integer pageSize) throws Exception { |
|
|
|
|
Map<String,Object> dataMap = new HashMap<>(); |
|
|
|
|
dataMap.put("businessType", businessType); |
|
|
|
|
dataMap.put("cardNo", cardNo); |
|
|
|
|
dataMap.put("page", page); |
|
|
|
|
dataMap.put("pageSize", pageSize); |
|
|
|
|
if (sdate != null) { |
|
|
|
|
dataMap.put("sdate", DateUtil.date2String(new Date(sdate), "yyyy-MM-dd")); |
|
|
|
|
try { |
|
|
|
|
Map<String,Object> dataMap = new HashMap<>(); |
|
|
|
|
dataMap.put("businessType", businessType); |
|
|
|
|
dataMap.put("cardNo", cardNo); |
|
|
|
|
dataMap.put("page", page); |
|
|
|
|
dataMap.put("pageSize", pageSize); |
|
|
|
|
if (sdate != null) { |
|
|
|
|
dataMap.put("sdate", DateUtil.date2String(new Date(sdate), "yyyy-MM-dd")); |
|
|
|
|
} |
|
|
|
|
if (edate != null) { |
|
|
|
|
dataMap.put("edate", DateUtil.date2String(new Date(edate), "yyyy-MM-dd")); |
|
|
|
|
} |
|
|
|
|
return request("qtk/queryConsumptionRecordByBusiness", dataMap); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQUEST_TIMED_OUT, ""); |
|
|
|
|
} |
|
|
|
|
if (edate != null) { |
|
|
|
|
dataMap.put("edate", DateUtil.date2String(new Date(edate), "yyyy-MM-dd")); |
|
|
|
|
} |
|
|
|
|
return request("qtk/queryConsumptionRecordByBusiness", dataMap); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|