15 changed files with 2664 additions and 10 deletions
			
			
		| @ -0,0 +1,109 @@ | |||
| package com.zc.business.controller; | |||
| 
 | |||
| import java.util.List; | |||
| import java.util.Map; | |||
| import javax.servlet.http.HttpServletResponse; | |||
| import org.springframework.security.access.prepost.PreAuthorize; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.PostMapping; | |||
| import org.springframework.web.bind.annotation.PutMapping; | |||
| import org.springframework.web.bind.annotation.DeleteMapping; | |||
| import org.springframework.web.bind.annotation.PathVariable; | |||
| import org.springframework.web.bind.annotation.RequestBody; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| import org.springframework.web.bind.annotation.RestController; | |||
| import com.ruoyi.common.annotation.Log; | |||
| import com.ruoyi.common.core.controller.BaseController; | |||
| import com.ruoyi.common.core.domain.AjaxResult; | |||
| import com.ruoyi.common.enums.BusinessType; | |||
| import com.zc.business.domain.DcObservationStation; | |||
| import com.zc.business.service.IDcObservationStationService; | |||
| import com.ruoyi.common.utils.poi.ExcelUtil; | |||
| import com.ruoyi.common.core.page.TableDataInfo; | |||
| 
 | |||
| /** | |||
|  * 观测站信息Controller | |||
|  *  | |||
|  * @author ruoyi | |||
|  * @date 2024-12-09 | |||
|  */ | |||
| @RestController | |||
| @RequestMapping("/dcObservationStation") | |||
| public class DcObservationStationController extends BaseController | |||
| { | |||
|     @Autowired | |||
|     private IDcObservationStationService dcObservationStationService; | |||
| 
 | |||
|     /** | |||
|      * 查询观测站信息列表 | |||
|      */ | |||
|     @GetMapping("/list") | |||
|     public TableDataInfo list(DcObservationStation dcObservationStation) | |||
|     { | |||
|         startPage(); | |||
|         List<DcObservationStation> list = dcObservationStationService.selectDcObservationStationList(dcObservationStation); | |||
|         return getDataTable(list); | |||
|     } | |||
| 
 | |||
|     /** | |||
|      * 导出观测站信息列表 | |||
|      */ | |||
|     @Log(title = "观测站信息", businessType = BusinessType.EXPORT) | |||
|     @PostMapping("/export") | |||
|     public void export(HttpServletResponse response, DcObservationStation dcObservationStation) | |||
|     { | |||
|         List<DcObservationStation> list = dcObservationStationService.selectDcObservationStationList(dcObservationStation); | |||
|         ExcelUtil<DcObservationStation> util = new ExcelUtil<>(DcObservationStation.class); | |||
|         util.exportExcel(response, list, "观测站信息数据"); | |||
|     } | |||
| 
 | |||
|     /** | |||
|      * 获取观测站信息详细信息 | |||
|      */ | |||
|     @GetMapping(value = "/{id}") | |||
|     public AjaxResult getInfo(@PathVariable("id") Long id) | |||
|     { | |||
|         return AjaxResult.success(dcObservationStationService.selectDcObservationStationById(id)); | |||
|     } | |||
| 
 | |||
|     /** | |||
|      * 新增观测站信息 | |||
|      */ | |||
|     @Log(title = "观测站信息", businessType = BusinessType.INSERT) | |||
|     @PostMapping | |||
|     public AjaxResult add(@RequestBody DcObservationStation dcObservationStation) | |||
|     { | |||
|         return toAjax(dcObservationStationService.insertDcObservationStation(dcObservationStation)); | |||
|     } | |||
| 
 | |||
|     /** | |||
|      * 修改观测站信息 | |||
|      */ | |||
|     @Log(title = "观测站信息", businessType = BusinessType.UPDATE) | |||
|     @PutMapping | |||
|     public AjaxResult edit(@RequestBody DcObservationStation dcObservationStation) | |||
|     { | |||
|         return toAjax(dcObservationStationService.updateDcObservationStation(dcObservationStation)); | |||
|     } | |||
| 
 | |||
|     /** | |||
|      * 删除观测站信息 | |||
|      */ | |||
|     @Log(title = "观测站信息", businessType = BusinessType.DELETE) | |||
| 	@DeleteMapping("/{ids}") | |||
|     public AjaxResult remove(@PathVariable Long[] ids) | |||
|     { | |||
|         return toAjax(dcObservationStationService.deleteDcObservationStationByIds(ids)); | |||
|     } | |||
| 
 | |||
|     /** | |||
|      * 查询所有观测站 | |||
|      */ | |||
|     @Log(title = "查询所有观测站", businessType = BusinessType.DELETE) | |||
| 	@PostMapping("/selectAllStation") | |||
|     public List<Map<String,Object>> selectAllStation() | |||
|     { | |||
|         return dcObservationStationService.selectAllStation(); | |||
|     } | |||
| } | |||
| @ -0,0 +1,671 @@ | |||
| package com.zc.business.domain; | |||
| 
 | |||
| import java.util.Date; | |||
| import com.fasterxml.jackson.annotation.JsonFormat; | |||
| import org.apache.commons.lang3.builder.ToStringBuilder; | |||
| import org.apache.commons.lang3.builder.ToStringStyle; | |||
| import com.ruoyi.common.annotation.Excel; | |||
| import com.ruoyi.common.core.domain.BaseEntity; | |||
| 
 | |||
| /** | |||
|  * 观测站信息对象 dc_observation_station | |||
|  *  | |||
|  * @author ruoyi | |||
|  * @date 2024-12-09 | |||
|  */ | |||
| public class DcObservationStation extends BaseEntity | |||
| { | |||
|     private static final long serialVersionUID = 1L; | |||
| 
 | |||
|     /** id */ | |||
|     private Long id; | |||
| 
 | |||
|     /** 物联id */ | |||
|     @Excel(name = "物联id") | |||
|     private String iotDeviceId; | |||
| 
 | |||
|     /** 年份 */ | |||
|     @Excel(name = "年份") | |||
|     private String year; | |||
| 
 | |||
|     /** 观测站标识 */ | |||
|     @Excel(name = "观测站标识") | |||
|     private String sign; | |||
| 
 | |||
|     /** 出临行政区划代码 */ | |||
|     @Excel(name = "出临行政区划代码") | |||
|     private String regionCode; | |||
| 
 | |||
|     /** 观测站编号 */ | |||
|     @Excel(name = "观测站编号") | |||
|     private String code; | |||
| 
 | |||
|     /** 观测站名称 */ | |||
|     @Excel(name = "观测站名称") | |||
|     private String name; | |||
| 
 | |||
|     /** 观测站类型 */ | |||
|     @Excel(name = "观测站类型") | |||
|     private String type; | |||
| 
 | |||
|     /** 站点桩号 */ | |||
|     @Excel(name = "站点桩号") | |||
|     private String stakeMark; | |||
| 
 | |||
|     /** 起点桩号 */ | |||
|     @Excel(name = "起点桩号") | |||
|     private String stakeMarkStart; | |||
| 
 | |||
|     /** 止点桩号 */ | |||
|     @Excel(name = "止点桩号") | |||
|     private String stakeMarkEnd; | |||
| 
 | |||
|     /** 观测里程 */ | |||
|     @Excel(name = "观测里程") | |||
|     private String observationMileage; | |||
| 
 | |||
|     /** 比重起点桩号 */ | |||
|     @Excel(name = "比重起点桩号") | |||
|     private String proportionStakeMarkStart; | |||
| 
 | |||
|     /** 比重止点桩号 */ | |||
|     @Excel(name = "比重止点桩号") | |||
|     private String proportionStakeMarkEnd; | |||
| 
 | |||
|     /** 比重观测里程 */ | |||
|     @Excel(name = "比重观测里程") | |||
|     private String proportionMileage; | |||
| 
 | |||
|     /** 起点名称 */ | |||
|     @Excel(name = "起点名称") | |||
|     private String startName; | |||
| 
 | |||
|     /** 止点名称 */ | |||
|     @Excel(name = "止点名称") | |||
|     private String endName; | |||
| 
 | |||
|     /** 调查方法 */ | |||
|     @Excel(name = "调查方法") | |||
|     private String investigationMethods; | |||
| 
 | |||
|     /** 车道数量 */ | |||
|     @Excel(name = "车道数量") | |||
|     private String lanesNum; | |||
| 
 | |||
|     /** 技术等级 */ | |||
|     @Excel(name = "技术等级") | |||
|     private String technicalLevel; | |||
| 
 | |||
|     /** 技术等级唯一 */ | |||
|     @Excel(name = "技术等级唯一",readConverterExp = "0=否,1=是") | |||
|     private String uniqueTechnicalLevel; | |||
| 
 | |||
|     /** 路面类型 */ | |||
|     @Excel(name = "路面类型") | |||
|     private String roadSurfaceType; | |||
| 
 | |||
|     /** 路面宽度 */ | |||
|     @Excel(name = "路面宽度") | |||
|     private String roadWidth; | |||
| 
 | |||
|     /** 设计速度 */ | |||
|     @Excel(name = "设计速度") | |||
|     private String speed; | |||
| 
 | |||
|     /** 基准通行能力 */ | |||
|     @Excel(name = "基准通行能力") | |||
|     private String benchmarkTrafficCapacity; | |||
| 
 | |||
|     /** 地貌 */ | |||
|     @Excel(name = "地貌") | |||
|     private String landforms; | |||
| 
 | |||
|     /** 供电方式 */ | |||
|     @Excel(name = "供电方式") | |||
|     private String powerSupplyMode; | |||
| 
 | |||
|     /** 通讯方式 */ | |||
|     @Excel(name = "通讯方式") | |||
|     private String communicationMethod; | |||
| 
 | |||
|     /** 调查人员数量 */ | |||
|     @Excel(name = "调查人员数量") | |||
|     private String numberOfInvestigators; | |||
| 
 | |||
|     /** 建站日期 */ | |||
|     @JsonFormat(pattern = "yyyy-MM-dd") | |||
|     @Excel(name = "建站日期", width = 30, dateFormat = "yyyy-MM-dd") | |||
|     private Date dateOfWebsiteEstablishment; | |||
| 
 | |||
|     /** 经度 */ | |||
|     @Excel(name = "经度") | |||
|     private String longitude; | |||
| 
 | |||
|     /** 纬度 */ | |||
|     @Excel(name = "纬度") | |||
|     private String latitude; | |||
| 
 | |||
|     /** 路线标识 */ | |||
|     @Excel(name = "路线标识") | |||
|     private String routeSignage; | |||
| 
 | |||
|     /** 路线编号 */ | |||
|     @Excel(name = "路线编号") | |||
|     private String routeCode; | |||
| 
 | |||
|     /** 路线名称 */ | |||
|     @Excel(name = "路线名称") | |||
|     private String routeName; | |||
| 
 | |||
|     /** 路线类型 */ | |||
|     @Excel(name = "路线类型") | |||
|     private String routeType; | |||
| 
 | |||
|     /** 路线简称 */ | |||
|     @Excel(name = "路线简称") | |||
|     private String routeAbbreviation; | |||
| 
 | |||
|     /** 路线业务编号 */ | |||
|     @Excel(name = "路线业务编号") | |||
|     private String routeBusinessNumber; | |||
| 
 | |||
|     /** 行政区划代码 */ | |||
|     @Excel(name = "行政区划代码") | |||
|     private String regionalismCode; | |||
| 
 | |||
|     /** 行政区划名称 */ | |||
|     @Excel(name = "行政区划名称") | |||
|     private String regionalismName; | |||
| 
 | |||
|     /** 行政区划简称 */ | |||
|     @Excel(name = "行政区划简称") | |||
|     private String regionalismAbbreviation; | |||
| 
 | |||
|     /** 机构标识 */ | |||
|     @Excel(name = "机构标识") | |||
|     private String institutionIdentification; | |||
| 
 | |||
|     /** 上级机构标识 */ | |||
|     @Excel(name = "上级机构标识") | |||
|     private String superiorOrganizationIdentification; | |||
| 
 | |||
|     /** 管理机构编号 */ | |||
|     @Excel(name = "管理机构编号") | |||
|     private String managementOrganizationNumber; | |||
| 
 | |||
|     /** 管理机构名称 */ | |||
|     @Excel(name = "管理机构名称") | |||
|     private String nameOfManagementOrganization; | |||
| 
 | |||
|     /** 管理机构类型 */ | |||
|     @Excel(name = "管理机构类型") | |||
|     private String typeOfManagementOrganization; | |||
| 
 | |||
|     public void setId(Long id)  | |||
|     { | |||
|         this.id = id; | |||
|     } | |||
| 
 | |||
|     public Long getId()  | |||
|     { | |||
|         return id; | |||
|     } | |||
| 
 | |||
|     public String getIotDeviceId() { | |||
|         return iotDeviceId; | |||
|     } | |||
| 
 | |||
|     public void setIotDeviceId(String iotDeviceId) { | |||
|         this.iotDeviceId = iotDeviceId; | |||
|     } | |||
| 
 | |||
|     public void setYear(String year) | |||
|     { | |||
|         this.year = year; | |||
|     } | |||
| 
 | |||
|     public String getYear()  | |||
|     { | |||
|         return year; | |||
|     } | |||
|     public void setSign(String sign)  | |||
|     { | |||
|         this.sign = sign; | |||
|     } | |||
| 
 | |||
|     public String getSign()  | |||
|     { | |||
|         return sign; | |||
|     } | |||
|     public void setRegionCode(String regionCode)  | |||
|     { | |||
|         this.regionCode = regionCode; | |||
|     } | |||
| 
 | |||
|     public String getRegionCode()  | |||
|     { | |||
|         return regionCode; | |||
|     } | |||
|     public void setCode(String code)  | |||
|     { | |||
|         this.code = code; | |||
|     } | |||
| 
 | |||
|     public String getCode()  | |||
|     { | |||
|         return code; | |||
|     } | |||
|     public void setName(String name)  | |||
|     { | |||
|         this.name = name; | |||
|     } | |||
| 
 | |||
|     public String getName()  | |||
|     { | |||
|         return name; | |||
|     } | |||
|     public void setType(String type)  | |||
|     { | |||
|         this.type = type; | |||
|     } | |||
| 
 | |||
|     public String getType()  | |||
|     { | |||
|         return type; | |||
|     } | |||
|     public void setStakeMark(String stakeMark)  | |||
|     { | |||
|         this.stakeMark = stakeMark; | |||
|     } | |||
| 
 | |||
|     public String getStakeMark()  | |||
|     { | |||
|         return stakeMark; | |||
|     } | |||
|     public void setStakeMarkStart(String stakeMarkStart)  | |||
|     { | |||
|         this.stakeMarkStart = stakeMarkStart; | |||
|     } | |||
| 
 | |||
|     public String getStakeMarkStart()  | |||
|     { | |||
|         return stakeMarkStart; | |||
|     } | |||
|     public void setStakeMarkEnd(String stakeMarkEnd)  | |||
|     { | |||
|         this.stakeMarkEnd = stakeMarkEnd; | |||
|     } | |||
| 
 | |||
|     public String getStakeMarkEnd()  | |||
|     { | |||
|         return stakeMarkEnd; | |||
|     } | |||
|     public void setObservationMileage(String observationMileage)  | |||
|     { | |||
|         this.observationMileage = observationMileage; | |||
|     } | |||
| 
 | |||
|     public String getObservationMileage()  | |||
|     { | |||
|         return observationMileage; | |||
|     } | |||
|     public void setProportionStakeMarkStart(String proportionStakeMarkStart)  | |||
|     { | |||
|         this.proportionStakeMarkStart = proportionStakeMarkStart; | |||
|     } | |||
| 
 | |||
|     public String getProportionStakeMarkStart()  | |||
|     { | |||
|         return proportionStakeMarkStart; | |||
|     } | |||
|     public void setProportionStakeMarkEnd(String proportionStakeMarkEnd)  | |||
|     { | |||
|         this.proportionStakeMarkEnd = proportionStakeMarkEnd; | |||
|     } | |||
| 
 | |||
|     public String getProportionStakeMarkEnd()  | |||
|     { | |||
|         return proportionStakeMarkEnd; | |||
|     } | |||
|     public void setProportionMileage(String proportionMileage)  | |||
|     { | |||
|         this.proportionMileage = proportionMileage; | |||
|     } | |||
| 
 | |||
|     public String getProportionMileage()  | |||
|     { | |||
|         return proportionMileage; | |||
|     } | |||
|     public void setStartName(String startName)  | |||
|     { | |||
|         this.startName = startName; | |||
|     } | |||
| 
 | |||
|     public String getStartName()  | |||
|     { | |||
|         return startName; | |||
|     } | |||
|     public void setEndName(String endName)  | |||
|     { | |||
|         this.endName = endName; | |||
|     } | |||
| 
 | |||
|     public String getEndName()  | |||
|     { | |||
|         return endName; | |||
|     } | |||
|     public void setInvestigationMethods(String investigationMethods)  | |||
|     { | |||
|         this.investigationMethods = investigationMethods; | |||
|     } | |||
| 
 | |||
|     public String getInvestigationMethods()  | |||
|     { | |||
|         return investigationMethods; | |||
|     } | |||
|     public void setLanesNum(String lanesNum) | |||
|     { | |||
|         this.lanesNum = lanesNum; | |||
|     } | |||
| 
 | |||
|     public String getLanesNum() | |||
|     { | |||
|         return lanesNum; | |||
|     } | |||
|     public void setTechnicalLevel(String technicalLevel)  | |||
|     { | |||
|         this.technicalLevel = technicalLevel; | |||
|     } | |||
| 
 | |||
|     public String getTechnicalLevel()  | |||
|     { | |||
|         return technicalLevel; | |||
|     } | |||
|     public void setUniqueTechnicalLevel(String uniqueTechnicalLevel)  | |||
|     { | |||
|         this.uniqueTechnicalLevel = uniqueTechnicalLevel; | |||
|     } | |||
| 
 | |||
|     public String getUniqueTechnicalLevel()  | |||
|     { | |||
|         return uniqueTechnicalLevel; | |||
|     } | |||
|     public void setRoadSurfaceType(String roadSurfaceType)  | |||
|     { | |||
|         this.roadSurfaceType = roadSurfaceType; | |||
|     } | |||
| 
 | |||
|     public String getRoadSurfaceType()  | |||
|     { | |||
|         return roadSurfaceType; | |||
|     } | |||
|     public void setRoadWidth(String roadWidth)  | |||
|     { | |||
|         this.roadWidth = roadWidth; | |||
|     } | |||
| 
 | |||
|     public String getRoadWidth()  | |||
|     { | |||
|         return roadWidth; | |||
|     } | |||
|     public void setSpeed(String speed) | |||
|     { | |||
|         this.speed = speed; | |||
|     } | |||
| 
 | |||
|     public String getSpeed() | |||
|     { | |||
|         return speed; | |||
|     } | |||
|     public void setBenchmarkTrafficCapacity(String benchmarkTrafficCapacity)  | |||
|     { | |||
|         this.benchmarkTrafficCapacity = benchmarkTrafficCapacity; | |||
|     } | |||
| 
 | |||
|     public String getBenchmarkTrafficCapacity()  | |||
|     { | |||
|         return benchmarkTrafficCapacity; | |||
|     } | |||
|     public void setLandforms(String landforms)  | |||
|     { | |||
|         this.landforms = landforms; | |||
|     } | |||
| 
 | |||
|     public String getLandforms()  | |||
|     { | |||
|         return landforms; | |||
|     } | |||
|     public void setPowerSupplyMode(String powerSupplyMode)  | |||
|     { | |||
|         this.powerSupplyMode = powerSupplyMode; | |||
|     } | |||
| 
 | |||
|     public String getPowerSupplyMode()  | |||
|     { | |||
|         return powerSupplyMode; | |||
|     } | |||
|     public void setCommunicationMethod(String communicationMethod)  | |||
|     { | |||
|         this.communicationMethod = communicationMethod; | |||
|     } | |||
| 
 | |||
|     public String getCommunicationMethod()  | |||
|     { | |||
|         return communicationMethod; | |||
|     } | |||
|     public void setNumberOfInvestigators(String numberOfInvestigators) | |||
|     { | |||
|         this.numberOfInvestigators = numberOfInvestigators; | |||
|     } | |||
| 
 | |||
|     public String getNumberOfInvestigators() | |||
|     { | |||
|         return numberOfInvestigators; | |||
|     } | |||
|     public void setDateOfWebsiteEstablishment(Date dateOfWebsiteEstablishment)  | |||
|     { | |||
|         this.dateOfWebsiteEstablishment = dateOfWebsiteEstablishment; | |||
|     } | |||
| 
 | |||
|     public Date getDateOfWebsiteEstablishment()  | |||
|     { | |||
|         return dateOfWebsiteEstablishment; | |||
|     } | |||
|     public void setLongitude(String longitude)  | |||
|     { | |||
|         this.longitude = longitude; | |||
|     } | |||
| 
 | |||
|     public String getLongitude()  | |||
|     { | |||
|         return longitude; | |||
|     } | |||
|     public void setLatitude(String latitude)  | |||
|     { | |||
|         this.latitude = latitude; | |||
|     } | |||
| 
 | |||
|     public String getLatitude()  | |||
|     { | |||
|         return latitude; | |||
|     } | |||
|     public void setRouteSignage(String routeSignage)  | |||
|     { | |||
|         this.routeSignage = routeSignage; | |||
|     } | |||
| 
 | |||
|     public String getRouteSignage()  | |||
|     { | |||
|         return routeSignage; | |||
|     } | |||
|     public void setRouteCode(String routeCode)  | |||
|     { | |||
|         this.routeCode = routeCode; | |||
|     } | |||
| 
 | |||
|     public String getRouteCode()  | |||
|     { | |||
|         return routeCode; | |||
|     } | |||
|     public void setRouteName(String routeName)  | |||
|     { | |||
|         this.routeName = routeName; | |||
|     } | |||
| 
 | |||
|     public String getRouteName()  | |||
|     { | |||
|         return routeName; | |||
|     } | |||
|     public void setRouteType(String routeType)  | |||
|     { | |||
|         this.routeType = routeType; | |||
|     } | |||
| 
 | |||
|     public String getRouteType()  | |||
|     { | |||
|         return routeType; | |||
|     } | |||
|     public void setRouteAbbreviation(String routeAbbreviation)  | |||
|     { | |||
|         this.routeAbbreviation = routeAbbreviation; | |||
|     } | |||
| 
 | |||
|     public String getRouteAbbreviation()  | |||
|     { | |||
|         return routeAbbreviation; | |||
|     } | |||
|     public void setRouteBusinessNumber(String routeBusinessNumber)  | |||
|     { | |||
|         this.routeBusinessNumber = routeBusinessNumber; | |||
|     } | |||
| 
 | |||
|     public String getRouteBusinessNumber()  | |||
|     { | |||
|         return routeBusinessNumber; | |||
|     } | |||
|     public void setRegionalismCode(String regionalismCode)  | |||
|     { | |||
|         this.regionalismCode = regionalismCode; | |||
|     } | |||
| 
 | |||
|     public String getRegionalismCode()  | |||
|     { | |||
|         return regionalismCode; | |||
|     } | |||
|     public void setRegionalismName(String regionalismName)  | |||
|     { | |||
|         this.regionalismName = regionalismName; | |||
|     } | |||
| 
 | |||
|     public String getRegionalismName()  | |||
|     { | |||
|         return regionalismName; | |||
|     } | |||
|     public void setRegionalismAbbreviation(String regionalismAbbreviation)  | |||
|     { | |||
|         this.regionalismAbbreviation = regionalismAbbreviation; | |||
|     } | |||
| 
 | |||
|     public String getRegionalismAbbreviation()  | |||
|     { | |||
|         return regionalismAbbreviation; | |||
|     } | |||
|     public void setInstitutionIdentification(String institutionIdentification)  | |||
|     { | |||
|         this.institutionIdentification = institutionIdentification; | |||
|     } | |||
| 
 | |||
|     public String getInstitutionIdentification()  | |||
|     { | |||
|         return institutionIdentification; | |||
|     } | |||
|     public void setSuperiorOrganizationIdentification(String superiorOrganizationIdentification)  | |||
|     { | |||
|         this.superiorOrganizationIdentification = superiorOrganizationIdentification; | |||
|     } | |||
| 
 | |||
|     public String getSuperiorOrganizationIdentification()  | |||
|     { | |||
|         return superiorOrganizationIdentification; | |||
|     } | |||
|     public void setManagementOrganizationNumber(String managementOrganizationNumber)  | |||
|     { | |||
|         this.managementOrganizationNumber = managementOrganizationNumber; | |||
|     } | |||
| 
 | |||
|     public String getManagementOrganizationNumber()  | |||
|     { | |||
|         return managementOrganizationNumber; | |||
|     } | |||
|     public void setNameOfManagementOrganization(String nameOfManagementOrganization)  | |||
|     { | |||
|         this.nameOfManagementOrganization = nameOfManagementOrganization; | |||
|     } | |||
| 
 | |||
|     public String getNameOfManagementOrganization()  | |||
|     { | |||
|         return nameOfManagementOrganization; | |||
|     } | |||
|     public void setTypeOfManagementOrganization(String typeOfManagementOrganization)  | |||
|     { | |||
|         this.typeOfManagementOrganization = typeOfManagementOrganization; | |||
|     } | |||
| 
 | |||
|     public String getTypeOfManagementOrganization()  | |||
|     { | |||
|         return typeOfManagementOrganization; | |||
|     } | |||
| 
 | |||
|     @Override | |||
|     public String toString() { | |||
|         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |||
|             .append("id", getId()) | |||
|             .append("year", getYear()) | |||
|             .append("sign", getSign()) | |||
|             .append("regionCode", getRegionCode()) | |||
|             .append("code", getCode()) | |||
|             .append("name", getName()) | |||
|             .append("type", getType()) | |||
|             .append("stakeMark", getStakeMark()) | |||
|             .append("stakeMarkStart", getStakeMarkStart()) | |||
|             .append("stakeMarkEnd", getStakeMarkEnd()) | |||
|             .append("observationMileage", getObservationMileage()) | |||
|             .append("proportionStakeMarkStart", getProportionStakeMarkStart()) | |||
|             .append("proportionStakeMarkEnd", getProportionStakeMarkEnd()) | |||
|             .append("proportionMileage", getProportionMileage()) | |||
|             .append("startName", getStartName()) | |||
|             .append("endName", getEndName()) | |||
|             .append("investigationMethods", getInvestigationMethods()) | |||
|             .append("lanesNum", getLanesNum()) | |||
|             .append("technicalLevel", getTechnicalLevel()) | |||
|             .append("uniqueTechnicalLevel", getUniqueTechnicalLevel()) | |||
|             .append("roadSurfaceType", getRoadSurfaceType()) | |||
|             .append("roadWidth", getRoadWidth()) | |||
|             .append("speed", getSpeed()) | |||
|             .append("benchmarkTrafficCapacity", getBenchmarkTrafficCapacity()) | |||
|             .append("landforms", getLandforms()) | |||
|             .append("powerSupplyMode", getPowerSupplyMode()) | |||
|             .append("communicationMethod", getCommunicationMethod()) | |||
|             .append("numberOfInvestigators", getNumberOfInvestigators()) | |||
|             .append("dateOfWebsiteEstablishment", getDateOfWebsiteEstablishment()) | |||
|             .append("longitude", getLongitude()) | |||
|             .append("latitude", getLatitude()) | |||
|             .append("remark", getRemark()) | |||
|             .append("updateTime", getUpdateTime()) | |||
|             .append("routeSignage", getRouteSignage()) | |||
|             .append("routeCode", getRouteCode()) | |||
|             .append("routeName", getRouteName()) | |||
|             .append("routeType", getRouteType()) | |||
|             .append("routeAbbreviation", getRouteAbbreviation()) | |||
|             .append("routeBusinessNumber", getRouteBusinessNumber()) | |||
|             .append("regionalismCode", getRegionalismCode()) | |||
|             .append("regionalismName", getRegionalismName()) | |||
|             .append("regionalismAbbreviation", getRegionalismAbbreviation()) | |||
|             .append("institutionIdentification", getInstitutionIdentification()) | |||
|             .append("superiorOrganizationIdentification", getSuperiorOrganizationIdentification()) | |||
|             .append("managementOrganizationNumber", getManagementOrganizationNumber()) | |||
|             .append("nameOfManagementOrganization", getNameOfManagementOrganization()) | |||
|             .append("typeOfManagementOrganization", getTypeOfManagementOrganization()) | |||
|             .toString(); | |||
|     } | |||
| } | |||
| @ -0,0 +1,201 @@ | |||
| package com.zc.business.domain; | |||
| 
 | |||
| import com.fasterxml.jackson.annotation.JsonFormat; | |||
| import com.ruoyi.common.annotation.Excel; | |||
| import com.ruoyi.common.core.domain.BaseEntity; | |||
| import org.apache.commons.lang3.builder.ToStringBuilder; | |||
| import org.apache.commons.lang3.builder.ToStringStyle; | |||
| 
 | |||
| import java.util.Date; | |||
| 
 | |||
| /** | |||
|  * 一类交调数据对象 dc_traffic_survey_data | |||
|  *  | |||
|  * @author liuwenge | |||
|  * @date 2024-10-29 | |||
|  */ | |||
| public class DcTrafficSpeedData extends BaseEntity | |||
| { | |||
|     private static final long serialVersionUID = 1L; | |||
| 
 | |||
|     /** $column.columnComment */ | |||
|     private Long id; | |||
| 
 | |||
|     /** 物联设备主键 */ | |||
|     private String iotDeviceId; | |||
| 
 | |||
|     /** 方向1-上行,2-中,3-下行 */ | |||
|     private String direction; | |||
| 
 | |||
|     /** 时间 */ | |||
|     @Excel(name = "时间") | |||
|     private String time; | |||
| 
 | |||
|     /** 中小客车平均地点车速 */ | |||
|     @Excel(name = "中小客车") | |||
|     private Integer inAndSmallAverageVehicleSpeed; | |||
| 
 | |||
|     /** 大客车平均地点车速 */ | |||
|     @Excel(name = "大客车") | |||
|     private Integer averageSpeedOfBus; | |||
| 
 | |||
|     /** 小型货车平均地点车速 */ | |||
|     @Excel(name = "小型货车") | |||
|     private Integer smallTrucksAverageVehicleSpeed; | |||
| 
 | |||
|     /** 中型货车平均地点车速 */ | |||
|     @Excel(name = "中型货车") | |||
|     private Integer averageSpeedOfMediumSizeTrucks; | |||
| 
 | |||
|     /** 大型货车平均地点车速 */ | |||
|     @Excel(name = "大型货车") | |||
|     private Integer averageSpeedOfLargeTrucks; | |||
| 
 | |||
|     /** 特大型货车平均地点车速 */ | |||
|     @Excel(name = "特大型货车") | |||
|     private Integer averageSpeedOfExtraLargeTrucks; | |||
| 
 | |||
|     /** 集装箱车平均地点车速 */ | |||
|     @Excel(name = "集装箱车") | |||
|     private Integer averageSpeedOfContainerTruck; | |||
| 
 | |||
|     /** 摩托车平均地点车速 */ | |||
|     @Excel(name = "摩托车") | |||
|     private Integer averageSpeedOfMotorcycle; | |||
| 
 | |||
|     /** 拖拉机平均地点车速 */ | |||
|     @Excel(name = "拖拉机") | |||
|     private Integer averageSpeedOfTractor; | |||
| 
 | |||
|     /** 平均地点车速 */ | |||
|     @Excel(name = "平均车速") | |||
|     private Integer avgSpeed; | |||
| 
 | |||
|     public Long getId() { | |||
|         return id; | |||
|     } | |||
| 
 | |||
|     public void setId(Long id) { | |||
|         this.id = id; | |||
|     } | |||
| 
 | |||
|     public String getIotDeviceId() { | |||
|         return iotDeviceId; | |||
|     } | |||
| 
 | |||
|     public void setIotDeviceId(String iotDeviceId) { | |||
|         this.iotDeviceId = iotDeviceId; | |||
|     } | |||
| 
 | |||
|     public String getDirection() { | |||
|         return direction; | |||
|     } | |||
| 
 | |||
|     public void setDirection(String direction) { | |||
|         this.direction = direction; | |||
|     } | |||
| 
 | |||
|     public String getTime() { | |||
|         return time; | |||
|     } | |||
| 
 | |||
|     public void setTime(String time) { | |||
|         this.time = time; | |||
|     } | |||
| 
 | |||
|     public Integer getInAndSmallAverageVehicleSpeed() { | |||
|         return inAndSmallAverageVehicleSpeed; | |||
|     } | |||
| 
 | |||
|     public void setInAndSmallAverageVehicleSpeed(Integer inAndSmallAverageVehicleSpeed) { | |||
|         this.inAndSmallAverageVehicleSpeed = inAndSmallAverageVehicleSpeed; | |||
|     } | |||
| 
 | |||
|     public Integer getAverageSpeedOfBus() { | |||
|         return averageSpeedOfBus; | |||
|     } | |||
| 
 | |||
|     public void setAverageSpeedOfBus(Integer averageSpeedOfBus) { | |||
|         this.averageSpeedOfBus = averageSpeedOfBus; | |||
|     } | |||
| 
 | |||
|     public Integer getSmallTrucksAverageVehicleSpeed() { | |||
|         return smallTrucksAverageVehicleSpeed; | |||
|     } | |||
| 
 | |||
|     public void setSmallTrucksAverageVehicleSpeed(Integer smallTrucksAverageVehicleSpeed) { | |||
|         this.smallTrucksAverageVehicleSpeed = smallTrucksAverageVehicleSpeed; | |||
|     } | |||
| 
 | |||
|     public Integer getAverageSpeedOfMediumSizeTrucks() { | |||
|         return averageSpeedOfMediumSizeTrucks; | |||
|     } | |||
| 
 | |||
|     public void setAverageSpeedOfMediumSizeTrucks(Integer averageSpeedOfMediumSizeTrucks) { | |||
|         this.averageSpeedOfMediumSizeTrucks = averageSpeedOfMediumSizeTrucks; | |||
|     } | |||
| 
 | |||
|     public Integer getAverageSpeedOfLargeTrucks() { | |||
|         return averageSpeedOfLargeTrucks; | |||
|     } | |||
| 
 | |||
|     public void setAverageSpeedOfLargeTrucks(Integer averageSpeedOfLargeTrucks) { | |||
|         this.averageSpeedOfLargeTrucks = averageSpeedOfLargeTrucks; | |||
|     } | |||
| 
 | |||
|     public Integer getAverageSpeedOfExtraLargeTrucks() { | |||
|         return averageSpeedOfExtraLargeTrucks; | |||
|     } | |||
| 
 | |||
|     public void setAverageSpeedOfExtraLargeTrucks(Integer averageSpeedOfExtraLargeTrucks) { | |||
|         this.averageSpeedOfExtraLargeTrucks = averageSpeedOfExtraLargeTrucks; | |||
|     } | |||
| 
 | |||
|     public Integer getAverageSpeedOfContainerTruck() { | |||
|         return averageSpeedOfContainerTruck; | |||
|     } | |||
| 
 | |||
|     public void setAverageSpeedOfContainerTruck(Integer averageSpeedOfContainerTruck) { | |||
|         this.averageSpeedOfContainerTruck = averageSpeedOfContainerTruck; | |||
|     } | |||
| 
 | |||
|     public Integer getAverageSpeedOfMotorcycle() { | |||
|         return averageSpeedOfMotorcycle; | |||
|     } | |||
| 
 | |||
|     public void setAverageSpeedOfMotorcycle(Integer averageSpeedOfMotorcycle) { | |||
|         this.averageSpeedOfMotorcycle = averageSpeedOfMotorcycle; | |||
|     } | |||
| 
 | |||
|     public Integer getAverageSpeedOfTractor() { | |||
|         return averageSpeedOfTractor; | |||
|     } | |||
| 
 | |||
|     public void setAverageSpeedOfTractor(Integer averageSpeedOfTractor) { | |||
|         this.averageSpeedOfTractor = averageSpeedOfTractor; | |||
|     } | |||
| 
 | |||
|     public Integer getAvgSpeed() { | |||
|         return avgSpeed; | |||
|     } | |||
| 
 | |||
|     public void setAvgSpeed(Integer avgSpeed) { | |||
|         this.avgSpeed = avgSpeed; | |||
|     } | |||
| 
 | |||
| 
 | |||
|     public DcTrafficSpeedData(){} | |||
| 
 | |||
|     public DcTrafficSpeedData(Integer initData){ | |||
|         this.inAndSmallAverageVehicleSpeed = initData; | |||
|         this.averageSpeedOfBus = initData; | |||
|         this.smallTrucksAverageVehicleSpeed = initData; | |||
|         this.averageSpeedOfMediumSizeTrucks = initData; | |||
|         this.averageSpeedOfLargeTrucks = initData; | |||
|         this.averageSpeedOfExtraLargeTrucks = initData; | |||
|         this.averageSpeedOfContainerTruck = initData; | |||
|         this.averageSpeedOfMotorcycle = initData; | |||
|         this.averageSpeedOfTractor = initData; | |||
|         this.avgSpeed = initData; | |||
|     } | |||
| } | |||
| @ -0,0 +1,76 @@ | |||
| package com.zc.business.domain; | |||
| 
 | |||
| import com.fasterxml.jackson.annotation.JsonFormat; | |||
| import com.ruoyi.common.annotation.Excel; | |||
| import com.ruoyi.common.core.domain.BaseEntity; | |||
| import org.apache.commons.lang3.builder.ToStringBuilder; | |||
| import org.apache.commons.lang3.builder.ToStringStyle; | |||
| 
 | |||
| import java.util.Date; | |||
| 
 | |||
| /** | |||
|  * 一类交调数据对象 dc_traffic_survey_data | |||
|  *  | |||
|  * @author liuwenge | |||
|  * @date 2024-10-29 | |||
|  */ | |||
| public class DcTrafficSurveyDataQueryParams extends BaseEntity | |||
| { | |||
|     private static final long serialVersionUID = 1L; | |||
| 
 | |||
|     /** 物联设备主键 */ | |||
|     private String iotDeviceId; | |||
| 
 | |||
|     /** 方向1-上行,2-中,3-下行 */ | |||
|     private String direction; | |||
| 
 | |||
|     /** 时间 */ | |||
|     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | |||
|     private Date date; | |||
| 
 | |||
|     /** 类型 (1:日, 2:月, 3:年) */ | |||
|     private String type; | |||
| 
 | |||
|     /** 数据类型 (1:流量, 2:车速) */ | |||
|     private String dataType; | |||
| 
 | |||
|     public String getIotDeviceId() { | |||
|         return iotDeviceId; | |||
|     } | |||
| 
 | |||
|     public void setIotDeviceId(String iotDeviceId) { | |||
|         this.iotDeviceId = iotDeviceId; | |||
|     } | |||
| 
 | |||
|     public String getDirection() { | |||
|         return direction; | |||
|     } | |||
| 
 | |||
|     public void setDirection(String direction) { | |||
|         this.direction = direction; | |||
|     } | |||
| 
 | |||
|     public Date getDate() { | |||
|         return date; | |||
|     } | |||
| 
 | |||
|     public void setDate(Date date) { | |||
|         this.date = date; | |||
|     } | |||
| 
 | |||
|     public String getType() { | |||
|         return type; | |||
|     } | |||
| 
 | |||
|     public void setType(String type) { | |||
|         this.type = type; | |||
|     } | |||
| 
 | |||
|     public String getDataType() { | |||
|         return dataType; | |||
|     } | |||
| 
 | |||
|     public void setDataType(String dataType) { | |||
|         this.dataType = dataType; | |||
|     } | |||
| } | |||
| @ -0,0 +1,190 @@ | |||
| package com.zc.business.domain; | |||
| 
 | |||
| import com.fasterxml.jackson.annotation.JsonFormat; | |||
| import com.ruoyi.common.annotation.Excel; | |||
| import com.ruoyi.common.core.domain.BaseEntity; | |||
| import com.ruoyi.common.utils.StringUtils; | |||
| import org.apache.commons.lang3.builder.ToStringBuilder; | |||
| import org.apache.commons.lang3.builder.ToStringStyle; | |||
| 
 | |||
| import java.util.Date; | |||
| 
 | |||
| /** | |||
|  * 一类交调数据对象 dc_traffic_survey_data | |||
|  *  | |||
|  * @author liuwenge | |||
|  * @date 2024-10-29 | |||
|  */ | |||
| public class DcTrafficVolumeData extends BaseEntity | |||
| { | |||
|     private static final long serialVersionUID = 1L; | |||
| 
 | |||
|     /** $column.columnComment */ | |||
|     private Long id; | |||
| 
 | |||
|     /** 物联设备主键 */ | |||
|     private String iotDeviceId; | |||
| 
 | |||
|     /** 时间 */ | |||
|     @Excel(name = "时间") | |||
|     private String time; | |||
| 
 | |||
|     /** 中小客车交通量 */ | |||
|     @Excel(name = "中小客车") | |||
|     private Integer trafficNumberOfInAndSmall; | |||
| 
 | |||
|     /** 大客车交通量 */ | |||
|     @Excel(name = "大客车") | |||
|     private Integer busTrafficVolume; | |||
| 
 | |||
|     /** 小型货车交通量 */ | |||
|     @Excel(name = "小型货车") | |||
|     private Integer trafficVolumeOfSmallTrucks; | |||
| 
 | |||
|     /** 中型货车交通量 */ | |||
|     @Excel(name = "中型货车") | |||
|     private Integer mediumTruckTrafficVolume; | |||
| 
 | |||
|     /** 大型货车交通量 */ | |||
|     @Excel(name = "大型货车") | |||
|     private Integer largeTruckTrafficVolume; | |||
| 
 | |||
|     /** 特大型货车交通量 */ | |||
|     @Excel(name = "特大型货车") | |||
|     private Integer extraLargeTrucksTrafficVolume; | |||
| 
 | |||
|     /** 集装箱车交通量 */ | |||
|     @Excel(name = "集装箱车") | |||
|     private Integer containerTruckTrafficVolume; | |||
| 
 | |||
|     /** 摩托车交通量 */ | |||
|     @Excel(name = "摩托车") | |||
|     private Integer motorcycleTrafficVolume; | |||
| 
 | |||
|     /** 拖拉机交通量 */ | |||
|     @Excel(name = "拖拉机") | |||
|     private Integer tractorTrafficVolume; | |||
| 
 | |||
|     /** 合计 */ | |||
|     @Excel(name = "合计") | |||
|     private Integer trafficVolume; | |||
| 
 | |||
|     public Long getId() { | |||
|         return id; | |||
|     } | |||
| 
 | |||
|     public void setId(Long id) { | |||
|         this.id = id; | |||
|     } | |||
| 
 | |||
|     public String getIotDeviceId() { | |||
|         return iotDeviceId; | |||
|     } | |||
| 
 | |||
|     public void setIotDeviceId(String iotDeviceId) { | |||
|         this.iotDeviceId = iotDeviceId; | |||
|     } | |||
| 
 | |||
|     public String getTime() { | |||
|         return time; | |||
|     } | |||
| 
 | |||
|     public void setTime(String time) { | |||
|         this.time = time; | |||
|     } | |||
| 
 | |||
|     public Integer getTrafficNumberOfInAndSmall() { | |||
|         return trafficNumberOfInAndSmall; | |||
|     } | |||
| 
 | |||
|     public void setTrafficNumberOfInAndSmall(Integer trafficNumberOfInAndSmall) { | |||
|         this.trafficNumberOfInAndSmall = trafficNumberOfInAndSmall; | |||
|     } | |||
| 
 | |||
|     public Integer getBusTrafficVolume() { | |||
|         return busTrafficVolume; | |||
|     } | |||
| 
 | |||
|     public void setBusTrafficVolume(Integer busTrafficVolume) { | |||
|         this.busTrafficVolume = busTrafficVolume; | |||
|     } | |||
| 
 | |||
|     public Integer getTrafficVolumeOfSmallTrucks() { | |||
|         return trafficVolumeOfSmallTrucks; | |||
|     } | |||
| 
 | |||
|     public void setTrafficVolumeOfSmallTrucks(Integer trafficVolumeOfSmallTrucks) { | |||
|         this.trafficVolumeOfSmallTrucks = trafficVolumeOfSmallTrucks; | |||
|     } | |||
| 
 | |||
|     public Integer getMediumTruckTrafficVolume() { | |||
|         return mediumTruckTrafficVolume; | |||
|     } | |||
| 
 | |||
|     public void setMediumTruckTrafficVolume(Integer mediumTruckTrafficVolume) { | |||
|         this.mediumTruckTrafficVolume = mediumTruckTrafficVolume; | |||
|     } | |||
| 
 | |||
|     public Integer getLargeTruckTrafficVolume() { | |||
|         return largeTruckTrafficVolume; | |||
|     } | |||
| 
 | |||
|     public void setLargeTruckTrafficVolume(Integer largeTruckTrafficVolume) { | |||
|         this.largeTruckTrafficVolume = largeTruckTrafficVolume; | |||
|     } | |||
| 
 | |||
|     public Integer getExtraLargeTrucksTrafficVolume() { | |||
|         return extraLargeTrucksTrafficVolume; | |||
|     } | |||
| 
 | |||
|     public void setExtraLargeTrucksTrafficVolume(Integer extraLargeTrucksTrafficVolume) { | |||
|         this.extraLargeTrucksTrafficVolume = extraLargeTrucksTrafficVolume; | |||
|     } | |||
| 
 | |||
|     public Integer getContainerTruckTrafficVolume() { | |||
|         return containerTruckTrafficVolume; | |||
|     } | |||
| 
 | |||
|     public void setContainerTruckTrafficVolume(Integer containerTruckTrafficVolume) { | |||
|         this.containerTruckTrafficVolume = containerTruckTrafficVolume; | |||
|     } | |||
| 
 | |||
|     public Integer getMotorcycleTrafficVolume() { | |||
|         return motorcycleTrafficVolume; | |||
|     } | |||
| 
 | |||
|     public void setMotorcycleTrafficVolume(Integer motorcycleTrafficVolume) { | |||
|         this.motorcycleTrafficVolume = motorcycleTrafficVolume; | |||
|     } | |||
| 
 | |||
|     public Integer getTractorTrafficVolume() { | |||
|         return tractorTrafficVolume; | |||
|     } | |||
| 
 | |||
|     public void setTractorTrafficVolume(Integer tractorTrafficVolume) { | |||
|         this.tractorTrafficVolume = tractorTrafficVolume; | |||
|     } | |||
| 
 | |||
|     public Integer getTrafficVolume() { | |||
|         return trafficVolume; | |||
|     } | |||
| 
 | |||
|     public void setTrafficVolume(Integer trafficVolume) { | |||
|         this.trafficVolume = trafficVolume; | |||
|     } | |||
| 
 | |||
|     public DcTrafficVolumeData(){} | |||
| 
 | |||
|     public DcTrafficVolumeData(Integer initData){ | |||
|         this.trafficNumberOfInAndSmall = initData; | |||
|         this.busTrafficVolume = initData; | |||
|         this.trafficVolumeOfSmallTrucks = initData; | |||
|         this.mediumTruckTrafficVolume = initData; | |||
|         this.largeTruckTrafficVolume = initData; | |||
|         this.extraLargeTrucksTrafficVolume = initData; | |||
|         this.containerTruckTrafficVolume = initData; | |||
|         this.motorcycleTrafficVolume = initData; | |||
|         this.tractorTrafficVolume = initData; | |||
|         this.trafficVolume = initData; | |||
|     } | |||
| } | |||
| @ -0,0 +1,65 @@ | |||
| package com.zc.business.mapper; | |||
| 
 | |||
| import java.util.List; | |||
| import java.util.Map; | |||
| 
 | |||
| import com.zc.business.domain.DcObservationStation; | |||
| 
 | |||
| /** | |||
|  * 观测站信息Mapper接口 | |||
|  *  | |||
|  * @author ruoyi | |||
|  * @date 2024-12-09 | |||
|  */ | |||
| public interface DcObservationStationMapper  | |||
| { | |||
|     /** | |||
|      * 查询观测站信息 | |||
|      *  | |||
|      * @param id 观测站信息主键 | |||
|      * @return 观测站信息 | |||
|      */ | |||
|     public DcObservationStation selectDcObservationStationById(Long id); | |||
| 
 | |||
|     /** | |||
|      * 查询观测站信息列表 | |||
|      *  | |||
|      * @param dcObservationStation 观测站信息 | |||
|      * @return 观测站信息集合 | |||
|      */ | |||
|     List<DcObservationStation> selectDcObservationStationList(DcObservationStation dcObservationStation); | |||
| 
 | |||
|     /** | |||
|      * 新增观测站信息 | |||
|      *  | |||
|      * @param dcObservationStation 观测站信息 | |||
|      * @return 结果 | |||
|      */ | |||
|     int insertDcObservationStation(DcObservationStation dcObservationStation); | |||
| 
 | |||
|     /** | |||
|      * 修改观测站信息 | |||
|      *  | |||
|      * @param dcObservationStation 观测站信息 | |||
|      * @return 结果 | |||
|      */ | |||
|     int updateDcObservationStation(DcObservationStation dcObservationStation); | |||
| 
 | |||
|     /** | |||
|      * 删除观测站信息 | |||
|      *  | |||
|      * @param id 观测站信息主键 | |||
|      * @return 结果 | |||
|      */ | |||
|     int deleteDcObservationStationById(Long id); | |||
| 
 | |||
|     /** | |||
|      * 批量删除观测站信息 | |||
|      *  | |||
|      * @param ids 需要删除的数据主键集合 | |||
|      * @return 结果 | |||
|      */ | |||
|     int deleteDcObservationStationByIds(Long[] ids); | |||
| 
 | |||
|     List<Map<String,Object>> selectAllStation(); | |||
| } | |||
| @ -0,0 +1,65 @@ | |||
| package com.zc.business.service; | |||
| 
 | |||
| import java.util.List; | |||
| import java.util.Map; | |||
| 
 | |||
| import com.zc.business.domain.DcObservationStation; | |||
| 
 | |||
| /** | |||
|  * 观测站信息Service接口 | |||
|  *  | |||
|  * @author ruoyi | |||
|  * @date 2024-12-09 | |||
|  */ | |||
| public interface IDcObservationStationService  | |||
| { | |||
|     /** | |||
|      * 查询观测站信息 | |||
|      *  | |||
|      * @param id 观测站信息主键 | |||
|      * @return 观测站信息 | |||
|      */ | |||
|     public DcObservationStation selectDcObservationStationById(Long id); | |||
| 
 | |||
|     /** | |||
|      * 查询观测站信息列表 | |||
|      *  | |||
|      * @param dcObservationStation 观测站信息 | |||
|      * @return 观测站信息集合 | |||
|      */ | |||
|     List<DcObservationStation> selectDcObservationStationList(DcObservationStation dcObservationStation); | |||
| 
 | |||
|     /** | |||
|      * 新增观测站信息 | |||
|      *  | |||
|      * @param dcObservationStation 观测站信息 | |||
|      * @return 结果 | |||
|      */ | |||
|     int insertDcObservationStation(DcObservationStation dcObservationStation); | |||
| 
 | |||
|     /** | |||
|      * 修改观测站信息 | |||
|      *  | |||
|      * @param dcObservationStation 观测站信息 | |||
|      * @return 结果 | |||
|      */ | |||
|     int updateDcObservationStation(DcObservationStation dcObservationStation); | |||
| 
 | |||
|     /** | |||
|      * 批量删除观测站信息 | |||
|      *  | |||
|      * @param ids 需要删除的观测站信息主键集合 | |||
|      * @return 结果 | |||
|      */ | |||
|     int deleteDcObservationStationByIds(Long[] ids); | |||
| 
 | |||
|     /** | |||
|      * 删除观测站信息信息 | |||
|      *  | |||
|      * @param id 观测站信息主键 | |||
|      * @return 结果 | |||
|      */ | |||
|     int deleteDcObservationStationById(Long id); | |||
| 
 | |||
|     List<Map<String,Object>> selectAllStation(); | |||
| } | |||
| @ -0,0 +1,102 @@ | |||
| package com.zc.business.service.impl; | |||
| 
 | |||
| import java.util.List; | |||
| import java.util.Map; | |||
| 
 | |||
| import com.ruoyi.common.utils.DateUtils; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| import com.zc.business.mapper.DcObservationStationMapper; | |||
| import com.zc.business.domain.DcObservationStation; | |||
| import com.zc.business.service.IDcObservationStationService; | |||
| 
 | |||
| /** | |||
|  * 观测站信息Service业务层处理 | |||
|  * | |||
|  * @author ruoyi | |||
|  * @date 2024-12-09 | |||
|  */ | |||
| @Service | |||
| public class DcObservationStationServiceImpl implements IDcObservationStationService | |||
| { | |||
|     @Autowired | |||
|     private DcObservationStationMapper dcObservationStationMapper; | |||
| 
 | |||
|     /** | |||
|      * 查询观测站信息 | |||
|      * | |||
|      * @param id 观测站信息主键 | |||
|      * @return 观测站信息 | |||
|      */ | |||
|     @Override | |||
|     public DcObservationStation selectDcObservationStationById(Long id) | |||
|     { | |||
|         return dcObservationStationMapper.selectDcObservationStationById(id); | |||
|     } | |||
| 
 | |||
|     /** | |||
|      * 查询观测站信息列表 | |||
|      * | |||
|      * @param dcObservationStation 观测站信息 | |||
|      * @return 观测站信息 | |||
|      */ | |||
|     @Override | |||
|     public List<DcObservationStation> selectDcObservationStationList(DcObservationStation dcObservationStation) | |||
|     { | |||
|         return dcObservationStationMapper.selectDcObservationStationList(dcObservationStation); | |||
|     } | |||
| 
 | |||
|     /** | |||
|      * 新增观测站信息 | |||
|      * | |||
|      * @param dcObservationStation 观测站信息 | |||
|      * @return 结果 | |||
|      */ | |||
|     @Override | |||
|     public int insertDcObservationStation(DcObservationStation dcObservationStation) | |||
|     { | |||
|         return dcObservationStationMapper.insertDcObservationStation(dcObservationStation); | |||
|     } | |||
| 
 | |||
|     /** | |||
|      * 修改观测站信息 | |||
|      * | |||
|      * @param dcObservationStation 观测站信息 | |||
|      * @return 结果 | |||
|      */ | |||
|     @Override | |||
|     public int updateDcObservationStation(DcObservationStation dcObservationStation) | |||
|     { | |||
|         dcObservationStation.setUpdateTime(DateUtils.getNowDate()); | |||
|         return dcObservationStationMapper.updateDcObservationStation(dcObservationStation); | |||
|     } | |||
| 
 | |||
|     /** | |||
|      * 批量删除观测站信息 | |||
|      * | |||
|      * @param ids 需要删除的观测站信息主键 | |||
|      * @return 结果 | |||
|      */ | |||
|     @Override | |||
|     public int deleteDcObservationStationByIds(Long[] ids) | |||
|     { | |||
|         return dcObservationStationMapper.deleteDcObservationStationByIds(ids); | |||
|     } | |||
| 
 | |||
|     /** | |||
|      * 删除观测站信息信息 | |||
|      * | |||
|      * @param id 观测站信息主键 | |||
|      * @return 结果 | |||
|      */ | |||
|     @Override | |||
|     public int deleteDcObservationStationById(Long id) | |||
|     { | |||
|         return dcObservationStationMapper.deleteDcObservationStationById(id); | |||
|     } | |||
| 
 | |||
|     @Override | |||
|     public List<Map<String,Object>> selectAllStation(){ | |||
|         return dcObservationStationMapper.selectAllStation(); | |||
|     } | |||
| } | |||
| @ -0,0 +1,289 @@ | |||
| <?xml version="1.0" encoding="UTF-8" ?> | |||
| <!DOCTYPE mapper | |||
| PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||
| "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||
| <mapper namespace="com.zc.business.mapper.DcObservationStationMapper"> | |||
|      | |||
|     <resultMap type="DcObservationStation" id="DcObservationStationResult"> | |||
|         <result property="id"    column="id"    /> | |||
|         <result property="year"    column="year"    /> | |||
|         <result property="sign"    column="sign"    /> | |||
|         <result property="regionCode"    column="region_code"    /> | |||
|         <result property="code"    column="code"    /> | |||
|         <result property="iotDeviceId"    column="iot_device_id"    /> | |||
|         <result property="name"    column="name"    /> | |||
|         <result property="type"    column="type"    /> | |||
|         <result property="stakeMark"    column="stake_mark"    /> | |||
|         <result property="stakeMarkStart"    column="stake_mark_start"    /> | |||
|         <result property="stakeMarkEnd"    column="stake_mark_end"    /> | |||
|         <result property="observationMileage"    column="observation_mileage"    /> | |||
|         <result property="proportionStakeMarkStart"    column="proportion_stake_mark_start"    /> | |||
|         <result property="proportionStakeMarkEnd"    column="proportion_stake_mark_end"    /> | |||
|         <result property="proportionMileage"    column="proportion_mileage"    /> | |||
|         <result property="startName"    column="start_name"    /> | |||
|         <result property="endName"    column="end_name"    /> | |||
|         <result property="investigationMethods"    column="investigation_methods"    /> | |||
|         <result property="lanesNum"    column="lanes_num"    /> | |||
|         <result property="technicalLevel"    column="technical_level"    /> | |||
|         <result property="uniqueTechnicalLevel"    column="unique_technical_level"    /> | |||
|         <result property="roadSurfaceType"    column="road_surface_type"    /> | |||
|         <result property="roadWidth"    column="road_width"    /> | |||
|         <result property="speed"    column="speed"    /> | |||
|         <result property="benchmarkTrafficCapacity"    column="benchmark_traffic_capacity"    /> | |||
|         <result property="landforms"    column="landforms"    /> | |||
|         <result property="powerSupplyMode"    column="power_supply_mode"    /> | |||
|         <result property="communicationMethod"    column="communication_method"    /> | |||
|         <result property="numberOfInvestigators"    column="number_of_investigators"    /> | |||
|         <result property="dateOfWebsiteEstablishment"    column="date_of_website_establishment"    /> | |||
|         <result property="longitude"    column="longitude"    /> | |||
|         <result property="latitude"    column="latitude"    /> | |||
|         <result property="remark"    column="remark"    /> | |||
|         <result property="updateTime"    column="update_time"    /> | |||
|         <result property="routeSignage"    column="route_signage"    /> | |||
|         <result property="routeCode"    column="route_code"    /> | |||
|         <result property="routeName"    column="route_name"    /> | |||
|         <result property="routeType"    column="route_type"    /> | |||
|         <result property="routeAbbreviation"    column="route_abbreviation"    /> | |||
|         <result property="routeBusinessNumber"    column="route_business_number"    /> | |||
|         <result property="regionalismCode"    column="regionalism_code"    /> | |||
|         <result property="regionalismName"    column="regionalism_name"    /> | |||
|         <result property="regionalismAbbreviation"    column="regionalism_abbreviation"    /> | |||
|         <result property="institutionIdentification"    column="institution_identification"    /> | |||
|         <result property="superiorOrganizationIdentification"    column="superior_organization_identification"    /> | |||
|         <result property="managementOrganizationNumber"    column="management_organization_number"    /> | |||
|         <result property="nameOfManagementOrganization"    column="name_of_management_organization"    /> | |||
|         <result property="typeOfManagementOrganization"    column="type_of_management_organization"    /> | |||
|     </resultMap> | |||
| 
 | |||
|     <sql id="selectDcObservationStationVo"> | |||
|         select id, year, sign, region_code, code, iot_device_id, name, type, stake_mark, stake_mark_start, stake_mark_end, observation_mileage, proportion_stake_mark_start, proportion_stake_mark_end, proportion_mileage, start_name, end_name, investigation_methods, lanes_num, technical_level, unique_technical_level, road_surface_type, road_width, speed, benchmark_traffic_capacity, landforms, power_supply_mode, communication_method, number_of_investigators, date_of_website_establishment, longitude, latitude, remark, update_time, route_signage, route_code, route_name, route_type, route_abbreviation, route_business_number, regionalism_code, regionalism_name, regionalism_abbreviation, institution_identification, superior_organization_identification, management_organization_number, name_of_management_organization, type_of_management_organization from dc_observation_station | |||
|     </sql> | |||
| 
 | |||
|     <select id="selectDcObservationStationList" parameterType="DcObservationStation" resultMap="DcObservationStationResult"> | |||
|         <include refid="selectDcObservationStationVo"/> | |||
|         <where>   | |||
|             <if test="year != null  and year != ''"> and year = #{year}</if> | |||
|             <if test="sign != null  and sign != ''"> and sign = #{sign}</if> | |||
|             <if test="regionCode != null  and regionCode != ''"> and region_code = #{regionCode}</if> | |||
|             <if test="code != null  and code != ''"> and code = #{code}</if> | |||
|             <if test="iotDeviceId != null  and iotDeviceId != ''"> and iot_device_id = #{iotDeviceId}</if> | |||
|             <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if> | |||
|             <if test="type != null  and type != ''"> and type = #{type}</if> | |||
|             <if test="stakeMark != null  and stakeMark != ''"> and stake_mark = #{stakeMark}</if> | |||
|             <if test="stakeMarkStart != null  and stakeMarkStart != ''"> and stake_mark_start = #{stakeMarkStart}</if> | |||
|             <if test="stakeMarkEnd != null  and stakeMarkEnd != ''"> and stake_mark_end = #{stakeMarkEnd}</if> | |||
|             <if test="observationMileage != null  and observationMileage != ''"> and observation_mileage = #{observationMileage}</if> | |||
|             <if test="proportionStakeMarkStart != null  and proportionStakeMarkStart != ''"> and proportion_stake_mark_start = #{proportionStakeMarkStart}</if> | |||
|             <if test="proportionStakeMarkEnd != null  and proportionStakeMarkEnd != ''"> and proportion_stake_mark_end = #{proportionStakeMarkEnd}</if> | |||
|             <if test="proportionMileage != null  and proportionMileage != ''"> and proportion_mileage = #{proportionMileage}</if> | |||
|             <if test="startName != null  and startName != ''"> and start_name like concat('%', #{startName}, '%')</if> | |||
|             <if test="endName != null  and endName != ''"> and end_name like concat('%', #{endName}, '%')</if> | |||
|             <if test="investigationMethods != null  and investigationMethods != ''"> and investigation_methods = #{investigationMethods}</if> | |||
|             <if test="lanesNum != null "> and lanes_num = #{lanesNum}</if> | |||
|             <if test="technicalLevel != null  and technicalLevel != ''"> and technical_level = #{technicalLevel}</if> | |||
|             <if test="uniqueTechnicalLevel != null  and uniqueTechnicalLevel != ''"> and unique_technical_level = #{uniqueTechnicalLevel}</if> | |||
|             <if test="roadSurfaceType != null  and roadSurfaceType != ''"> and road_surface_type = #{roadSurfaceType}</if> | |||
|             <if test="roadWidth != null  and roadWidth != ''"> and road_width = #{roadWidth}</if> | |||
|             <if test="speed != null "> and speed = #{speed}</if> | |||
|             <if test="benchmarkTrafficCapacity != null  and benchmarkTrafficCapacity != ''"> and benchmark_traffic_capacity = #{benchmarkTrafficCapacity}</if> | |||
|             <if test="landforms != null  and landforms != ''"> and landforms = #{landforms}</if> | |||
|             <if test="powerSupplyMode != null  and powerSupplyMode != ''"> and power_supply_mode = #{powerSupplyMode}</if> | |||
|             <if test="communicationMethod != null  and communicationMethod != ''"> and communication_method = #{communicationMethod}</if> | |||
|             <if test="numberOfInvestigators != null "> and number_of_investigators = #{numberOfInvestigators}</if> | |||
|             <if test="dateOfWebsiteEstablishment != null "> and date_of_website_establishment = #{dateOfWebsiteEstablishment}</if> | |||
|             <if test="longitude != null  and longitude != ''"> and longitude = #{longitude}</if> | |||
|             <if test="latitude != null  and latitude != ''"> and latitude = #{latitude}</if> | |||
|             <if test="routeSignage != null  and routeSignage != ''"> and route_signage = #{routeSignage}</if> | |||
|             <if test="routeCode != null  and routeCode != ''"> and route_code = #{routeCode}</if> | |||
|             <if test="routeName != null  and routeName != ''"> and route_name like concat('%', #{routeName}, '%')</if> | |||
|             <if test="routeType != null  and routeType != ''"> and route_type = #{routeType}</if> | |||
|             <if test="routeAbbreviation != null  and routeAbbreviation != ''"> and route_abbreviation = #{routeAbbreviation}</if> | |||
|             <if test="routeBusinessNumber != null  and routeBusinessNumber != ''"> and route_business_number = #{routeBusinessNumber}</if> | |||
|             <if test="regionalismCode != null  and regionalismCode != ''"> and regionalism_code = #{regionalismCode}</if> | |||
|             <if test="regionalismName != null  and regionalismName != ''"> and regionalism_name like concat('%', #{regionalismName}, '%')</if> | |||
|             <if test="regionalismAbbreviation != null  and regionalismAbbreviation != ''"> and regionalism_abbreviation = #{regionalismAbbreviation}</if> | |||
|             <if test="institutionIdentification != null  and institutionIdentification != ''"> and institution_identification = #{institutionIdentification}</if> | |||
|             <if test="superiorOrganizationIdentification != null  and superiorOrganizationIdentification != ''"> and superior_organization_identification = #{superiorOrganizationIdentification}</if> | |||
|             <if test="managementOrganizationNumber != null  and managementOrganizationNumber != ''"> and management_organization_number = #{managementOrganizationNumber}</if> | |||
|             <if test="nameOfManagementOrganization != null  and nameOfManagementOrganization != ''"> and name_of_management_organization = #{nameOfManagementOrganization}</if> | |||
|             <if test="typeOfManagementOrganization != null  and typeOfManagementOrganization != ''"> and type_of_management_organization = #{typeOfManagementOrganization}</if> | |||
|         </where> | |||
|     </select> | |||
|      | |||
|     <select id="selectDcObservationStationById" parameterType="Long" resultMap="DcObservationStationResult"> | |||
|         <include refid="selectDcObservationStationVo"/> | |||
|         where id = #{id} | |||
|     </select> | |||
|     <select id="selectAllStation" resultType="Map"> | |||
|         select iot_device_id iotDeviceId, name deviceName from dc_observation_station | |||
|     </select> | |||
| 
 | |||
|     <insert id="insertDcObservationStation" parameterType="DcObservationStation"> | |||
|         insert into dc_observation_station | |||
|         <trim prefix="(" suffix=")" suffixOverrides=","> | |||
|             <if test="id != null">id,</if> | |||
|             <if test="year != null">year,</if> | |||
|             <if test="sign != null">sign,</if> | |||
|             <if test="regionCode != null">region_code,</if> | |||
|             <if test="code != null">code,</if> | |||
|             <if test="iotDeviceId != null">iot_device_id,</if> | |||
|             <if test="name != null">name,</if> | |||
|             <if test="type != null">type,</if> | |||
|             <if test="stakeMark != null">stake_mark,</if> | |||
|             <if test="stakeMarkStart != null">stake_mark_start,</if> | |||
|             <if test="stakeMarkEnd != null">stake_mark_end,</if> | |||
|             <if test="observationMileage != null">observation_mileage,</if> | |||
|             <if test="proportionStakeMarkStart != null">proportion_stake_mark_start,</if> | |||
|             <if test="proportionStakeMarkEnd != null">proportion_stake_mark_end,</if> | |||
|             <if test="proportionMileage != null">proportion_mileage,</if> | |||
|             <if test="startName != null">start_name,</if> | |||
|             <if test="endName != null">end_name,</if> | |||
|             <if test="investigationMethods != null">investigation_methods,</if> | |||
|             <if test="lanesNum != null">lanes_num,</if> | |||
|             <if test="technicalLevel != null">technical_level,</if> | |||
|             <if test="uniqueTechnicalLevel != null">unique_technical_level,</if> | |||
|             <if test="roadSurfaceType != null">road_surface_type,</if> | |||
|             <if test="roadWidth != null">road_width,</if> | |||
|             <if test="speed != null">speed,</if> | |||
|             <if test="benchmarkTrafficCapacity != null">benchmark_traffic_capacity,</if> | |||
|             <if test="landforms != null">landforms,</if> | |||
|             <if test="powerSupplyMode != null">power_supply_mode,</if> | |||
|             <if test="communicationMethod != null">communication_method,</if> | |||
|             <if test="numberOfInvestigators != null">number_of_investigators,</if> | |||
|             <if test="dateOfWebsiteEstablishment != null">date_of_website_establishment,</if> | |||
|             <if test="longitude != null">longitude,</if> | |||
|             <if test="latitude != null">latitude,</if> | |||
|             <if test="remark != null">remark,</if> | |||
|             <if test="updateTime != null">update_time,</if> | |||
|             <if test="routeSignage != null">route_signage,</if> | |||
|             <if test="routeCode != null">route_code,</if> | |||
|             <if test="routeName != null">route_name,</if> | |||
|             <if test="routeType != null">route_type,</if> | |||
|             <if test="routeAbbreviation != null">route_abbreviation,</if> | |||
|             <if test="routeBusinessNumber != null">route_business_number,</if> | |||
|             <if test="regionalismCode != null">regionalism_code,</if> | |||
|             <if test="regionalismName != null">regionalism_name,</if> | |||
|             <if test="regionalismAbbreviation != null">regionalism_abbreviation,</if> | |||
|             <if test="institutionIdentification != null">institution_identification,</if> | |||
|             <if test="superiorOrganizationIdentification != null">superior_organization_identification,</if> | |||
|             <if test="managementOrganizationNumber != null">management_organization_number,</if> | |||
|             <if test="nameOfManagementOrganization != null">name_of_management_organization,</if> | |||
|             <if test="typeOfManagementOrganization != null">type_of_management_organization,</if> | |||
|          </trim> | |||
|         <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
|             <if test="id != null">#{id},</if> | |||
|             <if test="year != null">#{year},</if> | |||
|             <if test="sign != null">#{sign},</if> | |||
|             <if test="regionCode != null">#{regionCode},</if> | |||
|             <if test="code != null">#{code},</if> | |||
|             <if test="iotDeviceId != null">#{iotDeviceId},</if> | |||
|             <if test="name != null">#{name},</if> | |||
|             <if test="type != null">#{type},</if> | |||
|             <if test="stakeMark != null">#{stakeMark},</if> | |||
|             <if test="stakeMarkStart != null">#{stakeMarkStart},</if> | |||
|             <if test="stakeMarkEnd != null">#{stakeMarkEnd},</if> | |||
|             <if test="observationMileage != null">#{observationMileage},</if> | |||
|             <if test="proportionStakeMarkStart != null">#{proportionStakeMarkStart},</if> | |||
|             <if test="proportionStakeMarkEnd != null">#{proportionStakeMarkEnd},</if> | |||
|             <if test="proportionMileage != null">#{proportionMileage},</if> | |||
|             <if test="startName != null">#{startName},</if> | |||
|             <if test="endName != null">#{endName},</if> | |||
|             <if test="investigationMethods != null">#{investigationMethods},</if> | |||
|             <if test="lanesNum != null">#{lanesNum},</if> | |||
|             <if test="technicalLevel != null">#{technicalLevel},</if> | |||
|             <if test="uniqueTechnicalLevel != null">#{uniqueTechnicalLevel},</if> | |||
|             <if test="roadSurfaceType != null">#{roadSurfaceType},</if> | |||
|             <if test="roadWidth != null">#{roadWidth},</if> | |||
|             <if test="speed != null">#{speed},</if> | |||
|             <if test="benchmarkTrafficCapacity != null">#{benchmarkTrafficCapacity},</if> | |||
|             <if test="landforms != null">#{landforms},</if> | |||
|             <if test="powerSupplyMode != null">#{powerSupplyMode},</if> | |||
|             <if test="communicationMethod != null">#{communicationMethod},</if> | |||
|             <if test="numberOfInvestigators != null">#{numberOfInvestigators},</if> | |||
|             <if test="dateOfWebsiteEstablishment != null">#{dateOfWebsiteEstablishment},</if> | |||
|             <if test="longitude != null">#{longitude},</if> | |||
|             <if test="latitude != null">#{latitude},</if> | |||
|             <if test="remark != null">#{remark},</if> | |||
|             <if test="updateTime != null">#{updateTime},</if> | |||
|             <if test="routeSignage != null">#{routeSignage},</if> | |||
|             <if test="routeCode != null">#{routeCode},</if> | |||
|             <if test="routeName != null">#{routeName},</if> | |||
|             <if test="routeType != null">#{routeType},</if> | |||
|             <if test="routeAbbreviation != null">#{routeAbbreviation},</if> | |||
|             <if test="routeBusinessNumber != null">#{routeBusinessNumber},</if> | |||
|             <if test="regionalismCode != null">#{regionalismCode},</if> | |||
|             <if test="regionalismName != null">#{regionalismName},</if> | |||
|             <if test="regionalismAbbreviation != null">#{regionalismAbbreviation},</if> | |||
|             <if test="institutionIdentification != null">#{institutionIdentification},</if> | |||
|             <if test="superiorOrganizationIdentification != null">#{superiorOrganizationIdentification},</if> | |||
|             <if test="managementOrganizationNumber != null">#{managementOrganizationNumber},</if> | |||
|             <if test="nameOfManagementOrganization != null">#{nameOfManagementOrganization},</if> | |||
|             <if test="typeOfManagementOrganization != null">#{typeOfManagementOrganization},</if> | |||
|          </trim> | |||
|     </insert> | |||
| 
 | |||
|     <update id="updateDcObservationStation" parameterType="DcObservationStation"> | |||
|         update dc_observation_station | |||
|         <trim prefix="SET" suffixOverrides=","> | |||
|             <if test="year != null">year = #{year},</if> | |||
|             <if test="sign != null">sign = #{sign},</if> | |||
|             <if test="regionCode != null">region_code = #{regionCode},</if> | |||
|             <if test="code != null">code = #{code},</if> | |||
|             <if test="iotDeviceId != null">iot_device_id = #{iotDeviceId},</if> | |||
|             <if test="name != null">name = #{name},</if> | |||
|             <if test="type != null">type = #{type},</if> | |||
|             <if test="stakeMark != null">stake_mark = #{stakeMark},</if> | |||
|             <if test="stakeMarkStart != null">stake_mark_start = #{stakeMarkStart},</if> | |||
|             <if test="stakeMarkEnd != null">stake_mark_end = #{stakeMarkEnd},</if> | |||
|             <if test="observationMileage != null">observation_mileage = #{observationMileage},</if> | |||
|             <if test="proportionStakeMarkStart != null">proportion_stake_mark_start = #{proportionStakeMarkStart},</if> | |||
|             <if test="proportionStakeMarkEnd != null">proportion_stake_mark_end = #{proportionStakeMarkEnd},</if> | |||
|             <if test="proportionMileage != null">proportion_mileage = #{proportionMileage},</if> | |||
|             <if test="startName != null">start_name = #{startName},</if> | |||
|             <if test="endName != null">end_name = #{endName},</if> | |||
|             <if test="investigationMethods != null">investigation_methods = #{investigationMethods},</if> | |||
|             <if test="lanesNum != null">lanes_num = #{lanesNum},</if> | |||
|             <if test="technicalLevel != null">technical_level = #{technicalLevel},</if> | |||
|             <if test="uniqueTechnicalLevel != null">unique_technical_level = #{uniqueTechnicalLevel},</if> | |||
|             <if test="roadSurfaceType != null">road_surface_type = #{roadSurfaceType},</if> | |||
|             <if test="roadWidth != null">road_width = #{roadWidth},</if> | |||
|             <if test="speed != null">speed = #{speed},</if> | |||
|             <if test="benchmarkTrafficCapacity != null">benchmark_traffic_capacity = #{benchmarkTrafficCapacity},</if> | |||
|             <if test="landforms != null">landforms = #{landforms},</if> | |||
|             <if test="powerSupplyMode != null">power_supply_mode = #{powerSupplyMode},</if> | |||
|             <if test="communicationMethod != null">communication_method = #{communicationMethod},</if> | |||
|             <if test="numberOfInvestigators != null">number_of_investigators = #{numberOfInvestigators},</if> | |||
|             <if test="dateOfWebsiteEstablishment != null">date_of_website_establishment = #{dateOfWebsiteEstablishment},</if> | |||
|             <if test="longitude != null">longitude = #{longitude},</if> | |||
|             <if test="latitude != null">latitude = #{latitude},</if> | |||
|             <if test="remark != null">remark = #{remark},</if> | |||
|             <if test="updateTime != null">update_time = #{updateTime},</if> | |||
|             <if test="routeSignage != null">route_signage = #{routeSignage},</if> | |||
|             <if test="routeCode != null">route_code = #{routeCode},</if> | |||
|             <if test="routeName != null">route_name = #{routeName},</if> | |||
|             <if test="routeType != null">route_type = #{routeType},</if> | |||
|             <if test="routeAbbreviation != null">route_abbreviation = #{routeAbbreviation},</if> | |||
|             <if test="routeBusinessNumber != null">route_business_number = #{routeBusinessNumber},</if> | |||
|             <if test="regionalismCode != null">regionalism_code = #{regionalismCode},</if> | |||
|             <if test="regionalismName != null">regionalism_name = #{regionalismName},</if> | |||
|             <if test="regionalismAbbreviation != null">regionalism_abbreviation = #{regionalismAbbreviation},</if> | |||
|             <if test="institutionIdentification != null">institution_identification = #{institutionIdentification},</if> | |||
|             <if test="superiorOrganizationIdentification != null">superior_organization_identification = #{superiorOrganizationIdentification},</if> | |||
|             <if test="managementOrganizationNumber != null">management_organization_number = #{managementOrganizationNumber},</if> | |||
|             <if test="nameOfManagementOrganization != null">name_of_management_organization = #{nameOfManagementOrganization},</if> | |||
|             <if test="typeOfManagementOrganization != null">type_of_management_organization = #{typeOfManagementOrganization},</if> | |||
|         </trim> | |||
|         where id = #{id} | |||
|     </update> | |||
| 
 | |||
|     <delete id="deleteDcObservationStationById" parameterType="Long"> | |||
|         delete from dc_observation_station where id = #{id} | |||
|     </delete> | |||
| 
 | |||
|     <delete id="deleteDcObservationStationByIds" parameterType="String"> | |||
|         delete from dc_observation_station where id in  | |||
|         <foreach item="id" collection="array" open="(" separator="," close=")"> | |||
|             #{id} | |||
|         </foreach> | |||
|     </delete> | |||
| </mapper> | |||
					Loading…
					
					
				
		Reference in new issue