'提交代码'

dev-discount
胡锐 4 years ago
parent fa6ce0bd57
commit 96ec8e09ce
  1. 1
      hai-service/src/main/java/com/hai/common/exception/ErrorCode.java
  2. 27
      hai-service/src/main/java/com/hai/config/HuiLianTongUnionCardConfig.java

@ -121,6 +121,7 @@ public enum ErrorCode {
DELETE_DATA_ERROR("3003","删除数据失败"), DELETE_DATA_ERROR("3003","删除数据失败"),
COMPETENCE_INSUFFICIENT("3004","权限不足"), COMPETENCE_INSUFFICIENT("3004","权限不足"),
REQUEST_ERROR("3005","请求错误"), REQUEST_ERROR("3005","请求错误"),
REQUEST_TIMED_OUT("3006","请求超时,请稍后重试"),
MSG_EVENT_NULL("2999","消息类型为空"), MSG_EVENT_NULL("2999","消息类型为空"),
USE_VISIT_ILLEGAL("4001","用户身份错误"), USE_VISIT_ILLEGAL("4001","用户身份错误"),

@ -72,18 +72,23 @@ public class HuiLianTongUnionCardConfig {
* @throws Exception * @throws Exception
*/ */
public static JSONObject queryConsumptionRecordByBusiness(String businessType,String cardNo,Long sdate,Long edate,Integer page,Integer pageSize) 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<>(); try {
dataMap.put("businessType", businessType); Map<String,Object> dataMap = new HashMap<>();
dataMap.put("cardNo", cardNo); dataMap.put("businessType", businessType);
dataMap.put("page", page); dataMap.put("cardNo", cardNo);
dataMap.put("pageSize", pageSize); dataMap.put("page", page);
if (sdate != null) { dataMap.put("pageSize", pageSize);
dataMap.put("sdate", DateUtil.date2String(new Date(sdate), "yyyy-MM-dd")); 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);
} }
/** /**

Loading…
Cancel
Save