Commit b3dd7862 by dujunli

需求变更,完善接口参数变更

parent 2f4e051c
......@@ -12,6 +12,7 @@ import com.xiaomai.utils.XMJSONPath;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
......@@ -847,18 +848,24 @@ public class ReserveTools extends XMBaseTest {
super.beforeDataRequest();
JSONObject body=new JSONObject();
body.put("weekdays",weekdays);
body.put("courseId",courseId);
body.put("coachId",coachId);
body.put("startDate",startDate);
body.put("endDate",endDate);
body.put("leftCapacity",leftCapacity);
body.put("minuteOffset",minuteOffset);
body.put("spanMinutes",spanMinutes);
body.put("pageSize",12);
if(!StringUtils.isEmpty(areaId)){
body.put("areaId",areaId);
}
List<JSONObject> weekDayTimeRequests=new ArrayList<>();
JSONObject weekDayTimeRequestObject = new JSONObject()
.fluentPut("minuteOffset",minuteOffset)
.fluentPut("spanMinutes", spanMinutes)
.fluentPut("weekdays",weekdays);
weekDayTimeRequests.add(weekDayTimeRequestObject);
body.put("weekDayTimeRequests",weekDayTimeRequests);
body.put("brandId", dataApi.getLoginInfo().getBrandId());
body.put("operatorId", dataApi.getLoginInfo().getAdminId()); // 操作人id
body.put("studioId", dataApi.getLoginInfo().getStudioId());
......@@ -894,9 +901,15 @@ public class ReserveTools extends XMBaseTest {
body.put("coachId",coachId);
body.put("memberId",memberId);
body.put("benefitId",benefitId);
body.put("reserveDayInfoList",reserveDayInfoList);
body.put("minuteOffset",minuteOffset);
body.put("spanMinutes",spanMinutes);
List<JSONObject> reserveTimeRequests=new ArrayList<>();
JSONObject reserveTimeRequestObject = new JSONObject()
.fluentPut("minuteOffset",minuteOffset)
.fluentPut("spanMinutes", spanMinutes)
.fluentPut("reserveDayInfoList",reserveDayInfoList);
reserveTimeRequests.add(reserveTimeRequestObject);
body.put("reserveTimeRequests",reserveTimeRequests);
body.put("reserveMemberNum",reserveMemberNum);
body.put("brandId", dataApi.getLoginInfo().getBrandId());
body.put("operatorId", dataApi.getLoginInfo().getAdminId());
......
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