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

Commit aae58ad3 authored by 胡佳晨's avatar 胡佳晨

提交 上传场地

parent 01ddffb8
......@@ -191,8 +191,12 @@ public class InnerService {
ResponseDataVo<List<STFieldListVo>> response =
JsonUtils.fromJson(json, new TypeReference<ResponseDataVo<List<STFieldListVo>>>() {
});
STInsertFieldParam insertTicketParam = STInsertFieldParam.getNew();
if (response.getData().size() == 1) {
STFieldListVo innerVo = response.getData().get(0);
setVenueCode(vo.getFieldId(), innerVo.getVenueCode());
return true;
} else {
insertTicketParam.setVenueCode(getVenueCode(vo.getFieldId()));
insertTicketParam.setProvinceId(Integer.parseInt(vo.getProvinceId()));
insertTicketParam.setCityId(Integer.parseInt(vo.getCityId()));
......@@ -205,7 +209,6 @@ public class InnerService {
insertTicketParam.setHasSeat(null);
insertTicketParam.setSeatNum(null);
insertTicketParam.setSeatingCapacity(null);
MultiValueMap<String, String> header = CollectionUtil.linkedMultiValueMapStringString();
header.add("Accept", "application/json;charset=UTF-8");
String resultData = HttpUtil.postRaw(platform + "/platform/st/field/insert", JSON.toJSONString(insertTicketParam), header);
......@@ -213,6 +216,7 @@ public class InnerService {
});
setVenueCode(vo.getFieldId(), innerReturnVo.getData().getVenueCode());
return true;
}
} catch (Exception e) {
return false;
}
......
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