线路修改

jni
liuguijing 2 years ago
parent 734f2b1194
commit 4f74009a62

@ -4,28 +4,25 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotEmpty;
import java.util.List;
@Data @Data
@ApiModel(value = "修改线路对象", description = "修改线路对象描述") @ApiModel(value = "修改线路对象", description = "修改线路对象描述")
public class UpdateLineVo { public class UpdateLineVo {
@ApiModelProperty(value = "线路编号", example = "123456") @ApiModelProperty(value = "线路编号", example = "123456")
@NotBlank(message = "线路编号不能缺少") @NotNull(message = "线路编号不能缺少")
private Integer id; private Integer id;
@ApiModelProperty(value = "线路名称", example = "名称名称") @ApiModelProperty(value = "线路名称", example = "名称名称")
@NotBlank(message = "线路名称不能缺少") @NotNull(message = "线路名称不能缺少")
private String name; private String name;
@ApiModelProperty(value = "单位", example = "单位") @ApiModelProperty(value = "单位", example = "单位")
@NotBlank(message = "单位不能缺少")
private String bsManufacturer; private String bsManufacturer;
@ApiModelProperty(value = "电压等级编号", example = "型号型号") @ApiModelProperty(value = "电压等级编号", example = "型号型号")
@NotBlank(message = "电压编号不能缺少") @NotNull(message = "电压编号不能缺少")
private Integer dyLevelid; private Integer dyLevelid;
} }

@ -33,7 +33,7 @@
y.name as dy_level_name y.name as dy_level_name
from `lines` x, from `lines` x,
dy_level y dy_level y
where x.dy_level_id = y.id and x.status = #{status} where x.dy_level_id = y.id and x.status = #{status} order by x.create_time desc
</select> </select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select

Loading…
Cancel
Save