Commit 3c215200 authored by duanruiming's avatar duanruiming

[update] 恢复调度实体类

parent 28c74a3b
...@@ -392,7 +392,8 @@ public class DTStaticInfoServiceImpl implements StaticInfoService { ...@@ -392,7 +392,8 @@ public class DTStaticInfoServiceImpl implements StaticInfoService {
@Override @Override
public List<CrossSchedulesPO> crossSchedules(CrossSchedulesDTO crossSchedulesDTO) throws Exception { public List<CrossSchedulesPO> crossSchedules(CrossSchedulesDTO crossSchedulesDTO) throws Exception {
String crossId = crossSchedulesDTO.getCrossId(); // String crossId = crossSchedulesDTO.getCrossId();
String crossId = "12F7L08J8S0";
CrossInfoPO crossInfoPO = crossInfoCache.getCrossInfoCache().get(crossId); CrossInfoPO crossInfoPO = crossInfoCache.getCrossInfoCache().get(crossId);
String message = String.format(Constants.COMMAND_COMMON, Constants.COMMAND_QUERY, Constants.COMMAND_SCHEDULE_CONFIG); String message = String.format(Constants.COMMAND_COMMON, Constants.COMMAND_QUERY, Constants.COMMAND_SCHEDULE_CONFIG);
String scheduleSign = Constants.COMMAND_SCHEDULE_CONFIG.concat(Constants.COMMAND_QUERY_REPLY); String scheduleSign = Constants.COMMAND_SCHEDULE_CONFIG.concat(Constants.COMMAND_QUERY_REPLY);
......
...@@ -5,6 +5,9 @@ import io.swagger.annotations.ApiModelProperty; ...@@ -5,6 +5,9 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.util.List;
/** /**
* @author Kent HAN * @author Kent HAN
...@@ -13,7 +16,12 @@ import javax.validation.constraints.NotBlank; ...@@ -13,7 +16,12 @@ import javax.validation.constraints.NotBlank;
@Data @Data
@ApiModel(value = "CrossSchedulesDTO", description = "查询时间表数据输入参数") @ApiModel(value = "CrossSchedulesDTO", description = "查询时间表数据输入参数")
public class CrossSchedulesDTO { public class CrossSchedulesDTO {
@ApiModelProperty(value = "路口编号") @ApiModelProperty(value = "厂商代码 HK")
@NotBlank @NotBlank
private String crossId; @Pattern(regexp = "^[A-Z]*$", message = "厂商代码只能包含大写英文字母")
String manufacturerCode;
@ApiModelProperty(value = "路口列表")
@NotEmpty
List<String> crossIdList;
} }
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