Changes
This commit is contained in:
+4
-2
@@ -2,6 +2,8 @@ package com.wanji.software.tocc.infra.maint.api;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||
import com.wanji.software.tocc.infra.maint.model.BridgeListModel;
|
||||
import com.wanji.software.tocc.infra.maint.model.BridgeSearchModel;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.BridgePageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.BridgeResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.BridgeSaveReq;
|
||||
@@ -43,6 +45,6 @@ public interface BridgeApi {
|
||||
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||
|
||||
@PostMapping(PREFIX + "/page")
|
||||
@Operation(summary = "分页查询桥梁信息表")
|
||||
Result<PageResult<BridgeResp>> page(@RequestBody BridgePageReq req);
|
||||
@Operation(summary = "分页查询桥梁")
|
||||
Result<PageResult<BridgeListModel>> page(@RequestBody BridgeSearchModel searchModel);
|
||||
}
|
||||
|
||||
+4
-2
@@ -2,6 +2,8 @@ package com.wanji.software.tocc.infra.maint.api;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.constants.ApiConstants;
|
||||
import com.wanji.software.tocc.infra.maint.model.RoadListModel;
|
||||
import com.wanji.software.tocc.infra.maint.model.RoadSearchModel;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.RoadPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.RoadResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.RoadSaveReq;
|
||||
@@ -43,6 +45,6 @@ public interface RoadApi {
|
||||
Result<Boolean> delete(@Parameter(description = "主键") @RequestParam("id") String id);
|
||||
|
||||
@PostMapping(PREFIX + "/page")
|
||||
@Operation(summary = "分页查询道路信息表")
|
||||
Result<PageResult<RoadResp>> page(@RequestBody RoadPageReq req);
|
||||
@Operation(summary = "分页查询道路")
|
||||
Result<PageResult<RoadListModel>> page(@RequestBody RoadSearchModel searchModel);
|
||||
}
|
||||
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
package com.wanji.software.tocc.infra.maint.model;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
@Schema(description = "桥梁列表")
|
||||
public class BridgeListModel {
|
||||
|
||||
@Schema(description = "ID")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "管养单位-名称")
|
||||
private String deptName;
|
||||
|
||||
@Schema(description = "道路-编码")
|
||||
private String roadCode;
|
||||
|
||||
@Schema(description = "道路-名称")
|
||||
private String roadName;
|
||||
|
||||
@Schema(description = "路段-编码")
|
||||
private String sectionCode;
|
||||
|
||||
@Schema(description = "路段-名称")
|
||||
private String sectionName;
|
||||
|
||||
@Schema(description = "桥梁编码")
|
||||
private String bridgeCode;
|
||||
|
||||
@Schema(description = "桥梁名称")
|
||||
private String bridgeName;
|
||||
|
||||
@Schema(description = "起点桩号")
|
||||
private String chainageStart;
|
||||
|
||||
@Schema(description = "终点桩号")
|
||||
private String chainageEnd;
|
||||
|
||||
@Schema(description = "桥梁类型")
|
||||
private Integer bridgeType;
|
||||
|
||||
@Schema(description = "桥梁全长(m)")
|
||||
private BigDecimal bridgeLen;
|
||||
|
||||
@Schema(description = "跨径总长(m)")
|
||||
private BigDecimal totalSpanLen;
|
||||
|
||||
@Schema(description = "桥面净宽(m)")
|
||||
private BigDecimal deckClearWidth;
|
||||
|
||||
@Schema(description = "行政区划-名称")
|
||||
private String regionName;
|
||||
|
||||
@Schema(description = "状态")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "技术状态")
|
||||
private Integer techStatus;
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package com.wanji.software.tocc.infra.maint.model;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Schema(description = "桥梁查询条件")
|
||||
public class BridgeSearchModel {
|
||||
|
||||
@Schema(description = "页码")
|
||||
private Long pageNo = 1L;
|
||||
|
||||
@Schema(description = "每页条数")
|
||||
private Long pageSize = 10L;
|
||||
|
||||
@Schema(description = "管养单位-ID")
|
||||
private String deptId;
|
||||
|
||||
@Schema(description = "道路-ID")
|
||||
private String roadId;
|
||||
|
||||
@Schema(description = "桥梁编码")
|
||||
private String bridgeCode;
|
||||
|
||||
@Schema(description = "桥梁名称")
|
||||
private String bridgeName;
|
||||
|
||||
@Schema(description = "桥梁类型")
|
||||
private Integer bridgeType;
|
||||
|
||||
@Schema(description = "状态")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "技术状态")
|
||||
private Integer techStatus;
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package com.wanji.software.tocc.infra.maint.model;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
@Schema(description = "道路列表")
|
||||
public class RoadListModel {
|
||||
|
||||
@Schema(description = "ID")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "管养单位-名称")
|
||||
private String deptName;
|
||||
|
||||
@Schema(description = "道路编码")
|
||||
private String roadCode;
|
||||
|
||||
@Schema(description = "道路名称")
|
||||
private String roadName;
|
||||
|
||||
@Schema(description = "起点桩号")
|
||||
private String chainageStart;
|
||||
|
||||
@Schema(description = "终点桩号")
|
||||
private String chainageEnd;
|
||||
|
||||
@Schema(description = "行政等级")
|
||||
private Integer adminLevel;
|
||||
|
||||
@Schema(description = "道路长度(㎞)")
|
||||
private BigDecimal roadLen;
|
||||
|
||||
@Schema(description = "行政区划-名称")
|
||||
private String regionName;
|
||||
|
||||
@Schema(description = "状态")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "技术状态")
|
||||
private Integer techStatus;
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
package com.wanji.software.tocc.infra.maint.model;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Schema(description = "道路查询条件")
|
||||
public class RoadSearchModel {
|
||||
|
||||
@Schema(description = "页码")
|
||||
private Long pageNo = 1L;
|
||||
|
||||
@Schema(description = "每页条数")
|
||||
private Long pageSize = 10L;
|
||||
|
||||
@Schema(description = "管养单位-ID")
|
||||
private String deptId;
|
||||
|
||||
@Schema(description = "道路编码")
|
||||
private String roadCode;
|
||||
|
||||
@Schema(description = "道路名称")
|
||||
private String roadName;
|
||||
|
||||
@Schema(description = "行政等级")
|
||||
private Integer adminLevel;
|
||||
|
||||
@Schema(description = "状态")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "技术状态")
|
||||
private Integer techStatus;
|
||||
}
|
||||
Reference in New Issue
Block a user