Commit 96abb4e3 by 丁伟峰

业务配置相关的前后端接口DTO定义;

1 parent 68dd4f8d
package com.dituhui.pea.order.dto;
import java.util.List;
public class BusinessTeamAddDTO {
@lombok.Data
public static class Request {
/**
* 工程师codes
*/
private List<String> engineerCodes;
/**
* 分站Id
*/
private String groupId;
/**
* 工作队名称
*/
private String teamName;
/**
* 配件仓Id
*/
private String warehouseId;
/**
* 开放工作日
*/
private List<String> workdays;
}
}
package com.dituhui.pea.order.dto;
import java.util.List;
public class BusinessTeamConfigInitDTO {
@lombok.Data
public static class Result {
/**
* 次日预排班间隔
*/
private String nextScheduleInterval;
/**
* 当日预排班间隔
*/
private String todayScheduleInterval;
/**
* 最优策略
*/
private List<LabelValueDTO> schedulingStrategy;
/**
* 网点指派策略
*/
private List<LabelValueDTO> assignStrategy;
/**
* 交通方式
*/
private List<LabelValueDTO> transportMode;
}
}
package com.dituhui.pea.order.dto;
public class BusinessTeamConfigSubmitDTO {
@lombok.Data
public static class Request {
/**
* 网点指派策略
*/
private String assiginStrategy;
/**
* cutoff时间
*/
private String cutoffTime;
/**
* 次日预排班间隔
*/
private String nextScheduleInterval;
/**
* 最优策略
*/
private String scheduleStrategy;
/**
* 工作队Id
*/
private String teamId;
/**
* 当日预排班间隔
*/
private String todayScheduleInterval;
/**
* 交通方式
*/
private String transportMode;
/**
* 下班时间
*/
private String workOff;
/**
* 上班时间
*/
private String workOn;
}
}
package com.dituhui.pea.order.dto;
import java.util.List;
public class BusinessTeamDeleteDTO {
@lombok.Data
public static class Request {
/**
* 工作队Id
*/
private String teamId;
}
}
package com.dituhui.pea.order.dto;
import java.util.List;
public class BusinessTeamDetailDTO {
@lombok.Data
public static class Request {
private String teamId;
}
@lombok.Data
public static class Result {
private String capacity;
private Engineer[] engineers;
private ScheduleConfig scheduleConfig;
private String teamId;
private String teamName;
private String warehouseId;
private List<String> workdays;
}
@lombok.Data
public static class Engineer {
private String engineerCode;
private String engineerName;
}
/**
* 排班配置
*/
@lombok.Data
public static class ScheduleConfig {
/**
* 网点指派策略
*/
private String assiginStrategy;
/**
* cutoff时间
*/
private String cutoffTime;
/**
* 次日预排班间隔
*/
private String nextScheduleInterval;
/**
* 最优策略
*/
private String scheduleStrategy;
/**
* 当日预排班间隔
*/
private String todayScheduleInterval;
/**
* 交通方式
*/
private String transportMode;
/**
* 下班时间
*/
private String workOff;
/**
* 上班时间
*/
private String workOn;
}
}
package com.dituhui.pea.order.dto;
import java.util.List;
public class BusinessTeamUpdateDTO {
/**
* Request
*/
@lombok.Data
public static class Request {
/**
* 工程师codes
*/
private List<String> engineerCodes;
/**
* 分站Id
*/
private String groupId;
/**
* 工作队Id
*/
private String teamId;
/**
* 工作队名称
*/
private String teamName;
/**
* 配件仓Id
*/
private String warehouseId;
/**
* 开放工作日
*/
private List<String> workdays;
}
}
package com.dituhui.pea.order.dto;
import java.util.List;
import static com.dituhui.pea.order.config.OrderConfig.DEFAULT_PAGE_SIZE;
public class BusinessTeamsDTO {
@lombok.Data
public static class Request {
private String levelType;
private String levelValue;
private Integer size = DEFAULT_PAGE_SIZE;
private Integer page = 1;
}
@lombok.Data
public static class Result {
/**
* 列表
*/
private List<Content> content;
/**
* 当前页码
*/
private String pageCurrent;
/**
* 总页数
*/
private String pages;
/**
* 每业条数
*/
private String pageSize;
/**
* 总条数
*/
private String total;
}
@lombok.Data
public static class Content {
/**
* 剩余容量
*/
private String capacityRest;
/**
* 已占容量
*/
private String capacityUse;
/**
* 工程师
*/
private String engineers;
/**
* 当前单数
*/
private String ordersNum;
/**
* 人数/分钟数
*/
private String peopleMinute;
/**
* 工作队名称
*/
private String teamName;
/**
* 配件仓
*/
private String warehouseName;
/**
* 开放工作日
*/
private String workdays;
}
}
package com.dituhui.pea.order.dto;
public class BusinessWarehousesDTO {
@lombok.Data
public static class Request {
private String groupId;
}
@lombok.Data
public static class Result {
private Content[] content;
}
@lombok.Data
public static class Content {
/**
* 配件仓Id
*/
private String warehouseId;
/**
* 配件仓名称
*/
private String warehouseName;
}
}
package com.dituhui.pea.order.dto;
import java.util.List;
public class EngineerCalendarDTO {
@lombok.Data
public static class Request {
private String date;
/**
* 姓名,工号
*/
private String key;
private String levelType;
private String levelValue;
}
@lombok.Data
public static class Result {
private List<Engineer> engineers;
}
@lombok.Data
public static class Engineer {
private List<Calendar> calendar;
private String engineerCode;
private String name;
}
@lombok.Data
public static class Calendar {
private List<Content> content;
private String date;
private String week;
}
@lombok.Data
public static class Content {
private String title;
private String type;
private String value;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!