8 changed files with 453 additions and 0 deletions
@ -0,0 +1,55 @@ |
|||
package com.kms.yg.cz.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.kms.yg.cz.domain.AttStBase; |
|||
import com.kms.yg.cz.service.AttStBaseService; |
|||
import com.shuili.common.annotation.Log; |
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.enums.BusinessType; |
|||
import com.shuili.common.utils.poi.ExcelUtil; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 测站基础信息Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/cz/base") |
|||
@Api(tags = "测站基础信息") |
|||
public class AttStBaseController extends BaseController { |
|||
@Autowired |
|||
private AttStBaseService attStBaseService; |
|||
|
|||
@PostMapping("/list") |
|||
@ApiOperation("测站基础信息列表") |
|||
public IPage list(@RequestBody SearchParam<AttStBase> sp) { |
|||
return attStBaseService.selectPage(sp); |
|||
} |
|||
|
|||
|
|||
@Log(title = "测站基础信息导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("测站基础信息导出") |
|||
public AjaxResult export(@RequestBody AttStBase attStBase) { |
|||
List<AttStBase> list = attStBaseService.listByIds(attStBase.getIds()); |
|||
ExcelUtil<AttStBase> util = new ExcelUtil<>(AttStBase.class); |
|||
return util.exportExcel(list, "base"); |
|||
} |
|||
|
|||
@ApiOperation("测站基础信息详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) { |
|||
return AjaxResult.success(attStBaseService.getById(id)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,55 @@ |
|||
package com.kms.yg.cz.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.kms.yg.cz.domain.AttStMp; |
|||
import com.kms.yg.cz.service.AttStMpService; |
|||
import com.shuili.common.annotation.Log; |
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.enums.BusinessType; |
|||
import com.shuili.common.utils.poi.ExcelUtil; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 测点基础信息Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/cd/base") |
|||
@Api(tags = "测点基础信息") |
|||
public class AttStMpController extends BaseController { |
|||
@Autowired |
|||
private AttStMpService attStMpService; |
|||
|
|||
@PostMapping("/list") |
|||
@ApiOperation("测点基础信息列表") |
|||
public IPage list(@RequestBody SearchParam<AttStMp> sp) { |
|||
return attStMpService.selectPage(sp); |
|||
} |
|||
|
|||
|
|||
@Log(title = "测点基础信息导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("测点基础信息导出") |
|||
public AjaxResult export(@RequestBody AttStMp attStMp) { |
|||
List<AttStMp> list = attStMpService.listByIds(attStMp.getIds()); |
|||
ExcelUtil<AttStMp> util = new ExcelUtil<>(AttStMp.class); |
|||
return util.exportExcel(list, "base"); |
|||
} |
|||
|
|||
@ApiOperation("测点基础信息详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) { |
|||
return AjaxResult.success(attStMpService.getById(id)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,175 @@ |
|||
package com.kms.yg.cz.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@TableName("att_st_base") |
|||
@Data |
|||
@ApiModel("水文水工程监测站基础信息") |
|||
public class AttStBase extends BaseEntity { |
|||
|
|||
@Excel(name = "测站编码") |
|||
@ApiModelProperty("测站编码") |
|||
private String stcd; |
|||
|
|||
@Excel(name = "测站名称") |
|||
@ApiModelProperty("测站名称") |
|||
private String stnm; |
|||
|
|||
@Excel(name = "统一测站编码") |
|||
@ApiModelProperty("统一测站编码") |
|||
private String unistcd; |
|||
|
|||
@Excel(name = "河流名称") |
|||
@ApiModelProperty("河流名称") |
|||
private String rvnm; |
|||
|
|||
@Excel(name = "水系名称") |
|||
@ApiModelProperty("水系名称") |
|||
private String hnnm; |
|||
|
|||
@Excel(name = "流域名称") |
|||
@ApiModelProperty("流域名称") |
|||
private String bsnm; |
|||
|
|||
@Excel(name = "工程类别") |
|||
@ApiModelProperty("工程类别") |
|||
private String prjtp; |
|||
|
|||
@Excel(name = "工程代码") |
|||
@ApiModelProperty("工程代码") |
|||
private String prjcd; |
|||
|
|||
@Excel(name = "经度") |
|||
@ApiModelProperty("经度") |
|||
private String lgtd; |
|||
|
|||
@Excel(name = "纬度") |
|||
@ApiModelProperty("纬度") |
|||
private String lttd; |
|||
|
|||
@Excel(name = "站址") |
|||
@ApiModelProperty("站址") |
|||
private String stlc; |
|||
|
|||
@Excel(name = "行政区划码") |
|||
@ApiModelProperty("行政区划码") |
|||
private String addvcd; |
|||
|
|||
@Excel(name = "基面名称") |
|||
@ApiModelProperty("基面名称") |
|||
private String dtmnm; |
|||
|
|||
@Excel(name = "基面高程") |
|||
@ApiModelProperty("基面高程") |
|||
private String dtmel; |
|||
|
|||
@Excel(name = "基面修正值") |
|||
@ApiModelProperty("基面修正值") |
|||
private String dtpr; |
|||
|
|||
@Excel(name = "站类") |
|||
@ApiModelProperty("站类") |
|||
private String sttp; |
|||
|
|||
@Excel(name = "测站监测要素") |
|||
@ApiModelProperty("测站监测要素") |
|||
private String monProj; |
|||
|
|||
@Excel(name = "报汛等级") |
|||
@ApiModelProperty("报汛等级") |
|||
private String frgrd; |
|||
|
|||
@Excel(name = "建站年月") |
|||
@ApiModelProperty("建站年月") |
|||
private String esstym; |
|||
|
|||
@Excel(name = "始报年月") |
|||
@ApiModelProperty("始报年月") |
|||
private String bgfrym; |
|||
|
|||
@Excel(name = "隶属行业单位") |
|||
@ApiModelProperty("隶属行业单位") |
|||
private String atcunit; |
|||
|
|||
@Excel(name = "信息管理单位") |
|||
@ApiModelProperty("信息管理单位") |
|||
private String admauth; |
|||
|
|||
@Excel(name = "交换管理单位") |
|||
@ApiModelProperty("交换管理单位") |
|||
private String locality; |
|||
|
|||
@Excel(name = "测站岸别") |
|||
@ApiModelProperty("测站岸别") |
|||
private String stbk; |
|||
|
|||
@Excel(name = "测站方位") |
|||
@ApiModelProperty("测站方位") |
|||
private String stazt; |
|||
|
|||
@Excel(name = "至河口距离") |
|||
@ApiModelProperty("至河口距离") |
|||
private String dstrvm; |
|||
|
|||
@Excel(name = "集水面积") |
|||
@ApiModelProperty("集水面积") |
|||
private String drna; |
|||
|
|||
@Excel(name = "拼音码") |
|||
@ApiModelProperty("拼音码") |
|||
private String phcd; |
|||
|
|||
@Excel(name = "启用标志") |
|||
@ApiModelProperty("启用标志") |
|||
private String usfl; |
|||
|
|||
@Excel(name = "质控码") |
|||
@ApiModelProperty("质控码") |
|||
private String qcCode; |
|||
|
|||
@Excel(name = "承建单位") |
|||
@ApiModelProperty("承建单位") |
|||
private String stctr; |
|||
|
|||
@Excel(name = "维护单位") |
|||
@ApiModelProperty("维护单位") |
|||
private String stmtr; |
|||
|
|||
@Excel(name = "建设发起单位") |
|||
@ApiModelProperty("建设发起单位") |
|||
private String gdwrDascUn; |
|||
|
|||
@Excel(name = "建设支撑系统") |
|||
@ApiModelProperty("建设支撑系统") |
|||
private String gdwrDascSys; |
|||
|
|||
@Excel(name = "测站接入系统") |
|||
@ApiModelProperty("测站接入系统") |
|||
private String gdwrDaacSys; |
|||
|
|||
@Excel(name = "测站概况") |
|||
@ApiModelProperty("测站概况") |
|||
private String stcdOv; |
|||
|
|||
@Excel(name = "备注") |
|||
@ApiModelProperty("备注") |
|||
private String note; |
|||
|
|||
@Excel(name = "记录生效时间") |
|||
@ApiModelProperty("记录生效时间") |
|||
private String effDate; |
|||
|
|||
@Excel(name = "记录更新时间") |
|||
@ApiModelProperty("记录更新时间") |
|||
private String updateDate; |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
} |
@ -0,0 +1,99 @@ |
|||
package com.kms.yg.cz.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@TableName("att_st_mp") |
|||
@Data |
|||
@ApiModel("水工程监测测点信息") |
|||
public class AttStMp extends BaseEntity { |
|||
|
|||
@Excel(name = "测站编码") |
|||
@ApiModelProperty("测站编码") |
|||
private String stcd; |
|||
|
|||
@Excel(name = "测点类型") |
|||
@ApiModelProperty("测点类型") |
|||
private String mpType; |
|||
|
|||
@Excel(name = "测点编号") |
|||
@ApiModelProperty("测点编号") |
|||
private String mpCd; |
|||
|
|||
@Excel(name = "测点名称") |
|||
@ApiModelProperty("测点名称") |
|||
private String mpNm; |
|||
|
|||
@Excel(name = "经度") |
|||
@ApiModelProperty("经度") |
|||
private String lgtd; |
|||
|
|||
@Excel(name = "纬度") |
|||
@ApiModelProperty("纬度") |
|||
private String lttd; |
|||
|
|||
@Excel(name = "测压管名称") |
|||
@ApiModelProperty("测压管名称") |
|||
private String pressGuage; |
|||
|
|||
@Excel(name = "管底高程") |
|||
@ApiModelProperty("管底高程") |
|||
private String botElev; |
|||
|
|||
@Excel(name = "渗压高程水位") |
|||
@ApiModelProperty("渗压高程水位") |
|||
private String pressLev; |
|||
|
|||
@Excel(name = "埋设位置(X)") |
|||
@ApiModelProperty("埋设位置(X)") |
|||
private String locX; |
|||
|
|||
@Excel(name = "埋设位置(Y)") |
|||
@ApiModelProperty("埋设位置(Y)") |
|||
private String locY; |
|||
|
|||
@Excel(name = "埋设位置(Z)") |
|||
@ApiModelProperty("埋设位置(Z)") |
|||
private String locZ; |
|||
|
|||
@Excel(name = "加速度初始值(X)") |
|||
@ApiModelProperty("加速度初始值(X)") |
|||
private String accX; |
|||
|
|||
@Excel(name = "加速度初始值(Y)") |
|||
@ApiModelProperty("加速度初始值(Y)") |
|||
private String accY; |
|||
|
|||
@Excel(name = "加速度初始值(Z)") |
|||
@ApiModelProperty("加速度初始值(Z)") |
|||
private String accZ; |
|||
|
|||
@Excel(name = "倾角度初始值(X)") |
|||
@ApiModelProperty("倾角度初始值(X)") |
|||
private String angX; |
|||
|
|||
@Excel(name = "倾角度初始值(Y)") |
|||
@ApiModelProperty("倾角度初始值(Y)") |
|||
private String angY; |
|||
|
|||
@Excel(name = "倾角度初始值(Z)") |
|||
@ApiModelProperty("倾角度初始值(Z)") |
|||
private String angZ; |
|||
|
|||
@Excel(name = "备注") |
|||
@ApiModelProperty("备注") |
|||
private String note; |
|||
|
|||
@Excel(name = "记录生效时间") |
|||
@ApiModelProperty("记录生效时间") |
|||
private String effDate; |
|||
|
|||
@Excel(name = "记录更新时间") |
|||
@ApiModelProperty("记录更新时间") |
|||
private String updateDate; |
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.kms.yg.cz.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.cz.domain.AttStBase; |
|||
import com.kms.yg.sk.domain.AttResBase; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
|
|||
/** |
|||
* 【请填写功能名称】Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@Repository |
|||
public interface AttStBaseMapper extends BaseMapper<AttStBase> { |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.yg.cz.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.cz.domain.AttStMp; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
|
|||
/** |
|||
* 【请填写功能名称】Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@Repository |
|||
public interface AttStMpMapper extends BaseMapper<AttStMp> { |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.yg.cz.service; |
|||
|
|||
import com.kms.yg.cz.domain.AttStBase; |
|||
import com.kms.yg.cz.mapper.AttStBaseMapper; |
|||
import com.shuili.common.core.service.BaseService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 【请填写功能名称】Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@Service |
|||
public class AttStBaseService extends BaseService<AttStBaseMapper, AttStBase> { |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.yg.cz.service; |
|||
|
|||
import com.kms.yg.cz.domain.AttStMp; |
|||
import com.kms.yg.cz.mapper.AttStMpMapper; |
|||
import com.shuili.common.core.service.BaseService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 【请填写功能名称】Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@Service |
|||
public class AttStMpService extends BaseService<AttStMpMapper, AttStMp> { |
|||
|
|||
} |
Loading…
Reference in new issue