记得上下班打卡 | git大法好,push需谨慎

Commit 735bd1e4 authored by 胡佳晨's avatar 胡佳晨

暂时提交接口

parent 73691fa1
...@@ -13,7 +13,7 @@ liquidnet: ...@@ -13,7 +13,7 @@ liquidnet:
refresh-ttl: 525600 refresh-ttl: 525600
blacklist_grace_period: 5 blacklist_grace_period: 5
mysql: mysql:
urlHostAndPort: 172.17.205.50:3308 urlHostAndPort: 172.17.192.42:3308
username: root username: root
password: Zhengzai@rd2U# password: Zhengzai@rd2U#
rabbitmq: rabbitmq:
......
...@@ -7,28 +7,28 @@ import lombok.Data; ...@@ -7,28 +7,28 @@ import lombok.Data;
@Data @Data
@ApiModel(value = "STInsertFieldParam", description = "详情") @ApiModel(value = "STInsertFieldParam", description = "详情")
public class STInsertFieldParam { public class STInsertFieldParam {
@ApiModelProperty(value = "场所编码") @ApiModelProperty(value = "场所编码 [为空会新增场所]")
String venueCode; String venueCode;
@ApiModelProperty(value = "省ID") @ApiModelProperty(value = "省ID [新增场所时必填]")
Integer provinceId; Integer provinceId;
@ApiModelProperty(value = "市ID") @ApiModelProperty(value = "市ID [新增场所时必填]")
Integer cityId; Integer cityId;
@ApiModelProperty(value = "区ID") @ApiModelProperty(value = "区ID [新增场所时必填]")
Integer districtId; Integer districtId;
@ApiModelProperty(value = "场所名称") @ApiModelProperty(value = "场所名称 [新增场所时必填]")
String venueName; String venueName;
@ApiModelProperty(value = "场所详细地址") @ApiModelProperty(value = "场所详细地址 [新增场所时必填]")
String venueAddress; String venueAddress;
@ApiModelProperty(value = "经营单位") @ApiModelProperty(value = "经营单位 [非必传]")
String managementCompany; String managementCompany;
@ApiModelProperty(value = "是否有场厅") @ApiModelProperty(value = "是否有场厅 [必传]")
Integer hasHall; Integer hasHall;
@ApiModelProperty(value = "场厅名称") @ApiModelProperty(value = "场厅名称 [有场厅时必传]")
String hallName; String hallName;
@ApiModelProperty(value = "是否有座") @ApiModelProperty(value = "是否有座 [必传]")
Integer hasSeat; Integer hasSeat;
@ApiModelProperty(value = "场厅座位数量") @ApiModelProperty(value = "场厅座位数量 [有座时必传]")
Integer seatNum; Integer seatNum;
@ApiModelProperty(value = "场厅可容纳人数") @ApiModelProperty(value = "场厅可容纳人数 [无座时必传]")
Integer seatingCapacity; Integer seatingCapacity;
} }
...@@ -76,21 +76,32 @@ public class ITicketSystemServiceImpl implements ITicketSystemService { ...@@ -76,21 +76,32 @@ public class ITicketSystemServiceImpl implements ITicketSystemService {
@Override @Override
public List<STFieldListVo> getFieldList(String accessToken, STFieldListParam fieldListParam) { public List<STFieldListVo> getFieldList(String accessToken, STFieldListParam fieldListParam) {
String url = ticketSystemUrl + "/standard/venue/list";//
MultiValueMap<String, String> headers = CollectionUtil.linkedMultiValueMapStringString(); MultiValueMap<String, String> headers = CollectionUtil.linkedMultiValueMapStringString();
headers.add("Accept", "application/json;charset=UTF-8"); headers.add("Accept", "application/json;charset=UTF-8");
HashMap<String, String> params = CollectionUtil.mapStringString(); HashMap<String, String> params = CollectionUtil.mapStringString();
params.put("accessToken", accessToken); params.put("accessToken", accessToken);
params.put("provinceId", fieldListParam.getProvinceId() + "");
params.put("cityId", fieldListParam.getCityId() + "");
params.put("districtId", fieldListParam.getDistrictId() + "");
params.put("pageNo", fieldListParam.getPageNo().toString()); params.put("pageNo", fieldListParam.getPageNo().toString());
params.put("pageSize", fieldListParam.getPageSize().toString()); params.put("pageSize", fieldListParam.getPageSize().toString());
params.put("venueName", fieldListParam.getVenueName()); if(fieldListParam.getProvinceId()!=0) {
ResponseDataVo<List<STFieldListVo>> response = params.put("provinceId", fieldListParam.getProvinceId() + "");
JsonUtils.fromJson(HttpUtil.getRaw(ticketSystemUrl + "/standard/venue/list?accessToken={accessToken}&provinceId={provinceId}&cityId={cityId}&districtId={districtId}&pageNo={pageNo}&pageSize={pageSize}&venueName={venueName}", JSON.toJSONString(params), headers), }
new TypeReference<ResponseDataVo<List<STFieldListVo>>>() { if(fieldListParam.getCityId()!=0) {
params.put("cityId", fieldListParam.getCityId() + "");
}
if(fieldListParam.getDistrictId()!=0) {
params.put("districtId", fieldListParam.getDistrictId() + "");
}
if(fieldListParam.getVenueName()!=null) {
params.put("venueName", fieldListParam.getVenueName());
}
log.debug("URL = "+url);
log.debug("params = "+JSON.toJSONString(params));
ResponseListVo<List<STFieldListVo>> response =
JsonUtils.fromJson(HttpUtil.postRaw(url, JSON.toJSONString(params), headers),
new TypeReference<ResponseListVo<List<STFieldListVo>>>() {
}); });
return response.getData(); return response.getData().getDataList();
} }
@Override @Override
......
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