水闸信息

This commit is contained in:
zhumeixiao 2024-11-01 08:43:13 +08:00
parent 318cee69c1
commit 76cf0fa32e
8 changed files with 798 additions and 2 deletions

View File

@ -0,0 +1,110 @@
package com.fastbee.data.controller.gis;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
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.fastbee.common.annotation.Log;
import com.fastbee.common.core.controller.BaseController;
import com.fastbee.common.core.domain.AjaxResult;
import com.fastbee.common.enums.BusinessType;
import com.fastbee.ggroup.domain.GSiteSluiceInfo;
import com.fastbee.ggroup.service.IGSiteSluiceInfoService;
import com.fastbee.common.utils.poi.ExcelUtil;
import com.fastbee.common.core.page.TableDataInfo;
/**
* 水闸基本信息Controller
*
* @author kerwincui
* @date 2024-10-31
*/
@RestController
@RequestMapping("/ggroup/info")
@Api(tags = "水闸基本信息")
public class GSiteSluiceInfoController extends BaseController
{
@Autowired
private IGSiteSluiceInfoService gSiteSluiceInfoService;
/**
* 查询水闸基本信息列表
*/
@PreAuthorize("@ss.hasPermi('ggroup:info:list')")
@GetMapping("/list")
@ApiOperation("查询水闸基本信息列表")
public TableDataInfo list(GSiteSluiceInfo gSiteSluiceInfo)
{
startPage();
List<GSiteSluiceInfo> list = gSiteSluiceInfoService.selectGSiteSluiceInfoList(gSiteSluiceInfo);
return getDataTable(list);
}
/**
* 导出水闸基本信息列表
*/
@ApiOperation("导出水闸基本信息列表")
@PreAuthorize("@ss.hasPermi('ggroup:info:export')")
@PostMapping("/export")
public void export(HttpServletResponse response, GSiteSluiceInfo gSiteSluiceInfo)
{
List<GSiteSluiceInfo> list = gSiteSluiceInfoService.selectGSiteSluiceInfoList(gSiteSluiceInfo);
ExcelUtil<GSiteSluiceInfo> util = new ExcelUtil<GSiteSluiceInfo>(GSiteSluiceInfo.class);
util.exportExcel(response, list, "水闸基本信息数据");
}
/**
* 获取水闸基本信息详细信息
*/
@PreAuthorize("@ss.hasPermi('ggroup:info:query')")
@GetMapping(value = "/{id}")
@ApiOperation("获取水闸基本信息详细信息")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(gSiteSluiceInfoService.selectGSiteSluiceInfoById(id));
}
/**
* 新增水闸基本信息
*/
@PreAuthorize("@ss.hasPermi('ggroup:info:add')")
@PostMapping
@ApiOperation("新增水闸基本信息")
public AjaxResult add(@RequestBody GSiteSluiceInfo gSiteSluiceInfo)
{
return toAjax(gSiteSluiceInfoService.insertGSiteSluiceInfo(gSiteSluiceInfo));
}
/**
* 修改水闸基本信息
*/
@PreAuthorize("@ss.hasPermi('ggroup:info:edit')")
@PutMapping
@ApiOperation("修改水闸基本信息")
public AjaxResult edit(@RequestBody GSiteSluiceInfo gSiteSluiceInfo)
{
return toAjax(gSiteSluiceInfoService.updateGSiteSluiceInfo(gSiteSluiceInfo));
}
/**
* 删除水闸基本信息
*/
@PreAuthorize("@ss.hasPermi('ggroup:info:remove')")
@DeleteMapping("/{ids}")
@ApiOperation("删除水闸基本信息")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(gSiteSluiceInfoService.deleteGSiteSluiceInfoByIds(ids));
}
}

View File

@ -23,8 +23,12 @@
<groupId>com.fastbee</groupId> <groupId>com.fastbee</groupId>
<artifactId>fastbee-common</artifactId> <artifactId>fastbee-common</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.github.yulichang</groupId>
<artifactId>mybatis-plus-join-core</artifactId>
<version>1.5.0</version>
<scope>compile</scope>
</dependency>
</dependencies> </dependencies>

View File

@ -0,0 +1,210 @@
package com.fastbee.ggroup.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fastbee.common.annotation.Excel;
import com.fastbee.common.core.domain.BaseEntity;
/**
* 水闸基本信息对象 g_site_sluice_info
*
* @author kerwincui
* @date 2024-10-31
*/
@ApiModel(value = "GSiteSluiceInfo",description = "水闸基本信息 g_site_sluice_info")
@Data
@EqualsAndHashCode(callSuper = true)
public class GSiteSluiceInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 工程名称 */
@Excel(name = "工程名称")
@ApiModelProperty("工程名称")
private String projectName;
/** 工程编码 */
@Excel(name = "工程编码")
@ApiModelProperty("工程编码")
private String projectCode;
/** 地理坐标经度 */
@Excel(name = "地理坐标经度")
@ApiModelProperty("地理坐标经度")
private BigDecimal geographicalCoordinatesLongitude;
/** 地理坐标维度 */
@Excel(name = "地理坐标维度")
@ApiModelProperty("地理坐标维度")
private BigDecimal geographicalCoordinatesLatitude;
/** 所在河流 */
@Excel(name = "所在河流")
@ApiModelProperty("所在河流")
private String riverName;
/** 所在灌区 */
@Excel(name = "所在灌区")
@ApiModelProperty("所在灌区")
private String agriculturalIrrigationArea;
/** 工程建设情况 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "工程建设情况", width = 30, dateFormat = "yyyy-MM-dd")
@ApiModelProperty("工程建设情况")
private Date constructionDate;
/** 是否为枢纽工程 */
@Excel(name = "是否为枢纽工程")
@ApiModelProperty("是否为枢纽工程")
private Integer isHubProject;
/** 是否为闸站工程 */
@Excel(name = "是否为闸站工程")
@ApiModelProperty("是否为闸站工程")
private Integer isSluiceStationProject;
/** 是否为套闸工程 */
@Excel(name = "是否为套闸工程")
@ApiModelProperty("是否为套闸工程")
private Integer isNestedSluiceProject;
/** 工程等级 */
@Excel(name = "工程等级")
@ApiModelProperty("工程等级")
private Long projectGrade;
/** 主要建筑物等级 */
@Excel(name = "主要建筑物等级")
@ApiModelProperty("主要建筑物等级")
private Long mainBuildingGrade;
/** 闸孔数量 */
@Excel(name = "闸孔数量")
@ApiModelProperty("闸孔数量")
private Long waterSluiceInfoGatesNumber;
/** 闸孔总净宽 */
@Excel(name = "闸孔总净宽")
@ApiModelProperty("闸孔总净宽")
private BigDecimal waterSluiceInfoGatesWide;
/** 工程位置 */
@Excel(name = " 工程位置")
@ApiModelProperty(" 工程位置")
private String projectLocation;
/** 设计洪水标准 */
@Excel(name = "设计洪水标准")
@ApiModelProperty("设计洪水标准")
private Long designStandard;
/** 校核洪水标准 */
@Excel(name = "校核洪水标准")
@ApiModelProperty("校核洪水标准")
private Long checkCriteria;
/** 单位名称 */
@Excel(name = "单位名称")
@ApiModelProperty("单位名称")
private String organizationName;
/** 权属 */
@Excel(name = "权属")
@ApiModelProperty("权属")
private String ownership;
/** 负责人 */
@Excel(name = "负责人")
@ApiModelProperty("负责人")
private String responsiblePerson;
/** 职位 */
@Excel(name = "职位")
@ApiModelProperty("职位")
private String position;
/** 电话 */
@Excel(name = "电话")
@ApiModelProperty("电话")
private String phoneNumber;
/** 防汛管理单位负责人 */
@Excel(name = "防汛管理单位负责人")
@ApiModelProperty("防汛管理单位负责人")
private String manageResponsiblePerson;
/** 防汛管理单位职位 */
@Excel(name = "防汛管理单位职位")
@ApiModelProperty("防汛管理单位职位")
private String managePhonePosts;
/** 防汛管理单位手机号 */
@Excel(name = "防汛管理单位手机号")
@ApiModelProperty("防汛管理单位手机号")
private String managePhoneNumber;
/** 防汛行政单位负责人 */
@Excel(name = "防汛行政单位负责人")
@ApiModelProperty("防汛行政单位负责人")
private String administrativeResponsiblePerson;
/** 防汛行政单位电话 */
@Excel(name = "防汛行政单位电话")
@ApiModelProperty("防汛行政单位电话")
private String administrativePhoneNumber;
/** 防汛技术单位负责人 */
@Excel(name = "防汛技术单位负责人")
@ApiModelProperty("防汛技术单位负责人")
private String technologyResponsiblePerson;
/** 防汛技术单位电话 */
@Excel(name = "防汛技术单位电话")
@ApiModelProperty("防汛技术单位电话")
private String technologyPhoneNumber;
/** 防汛巡查单位负责人 */
@Excel(name = "防汛巡查单位负责人")
@ApiModelProperty("防汛巡查单位负责人")
private String inspectionResponsiblePerson;
/** 防汛巡查单位电话 */
@Excel(name = "防汛巡查单位电话")
@ApiModelProperty("防汛巡查单位电话")
private String inspectionPhoneNumber;
/** 是否完成划界 */
@Excel(name = "是否完成划界")
@ApiModelProperty("是否完成划界")
private Integer isBoundaryDelineationCompleted;
/** 是否完成确权 */
@Excel(name = "是否完成确权")
@ApiModelProperty("是否完成确权")
private Integer isPropertyRightsConfirmationCompleted;
/** 防汛物资 */
@Excel(name = "防汛物资")
@ApiModelProperty("防汛物资")
private String floodControlMaterials;
/** 删除标志0代表存在2代表删除 */
private Integer delFlag;
/** 所属站点id */
@Excel(name = "所属站点id")
@ApiModelProperty("所属站点id")
private Long siteId;
}

View File

@ -0,0 +1,63 @@
package com.fastbee.ggroup.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fastbee.ggroup.domain.GSiteSluiceInfo;
/**
* 水闸基本信息Mapper接口
*
* @author kerwincui
* @date 2024-10-31
*/
public interface GSiteSluiceInfoMapper extends BaseMapper<GSiteSluiceInfo>
{
/**
* 查询水闸基本信息
*
* @param id 水闸基本信息主键
* @return 水闸基本信息
*/
public GSiteSluiceInfo selectGSiteSluiceInfoById(Long id);
/**
* 查询水闸基本信息列表
*
* @param gSiteSluiceInfo 水闸基本信息
* @return 水闸基本信息集合
*/
public List<GSiteSluiceInfo> selectGSiteSluiceInfoList(GSiteSluiceInfo gSiteSluiceInfo);
/**
* 新增水闸基本信息
*
* @param gSiteSluiceInfo 水闸基本信息
* @return 结果
*/
public int insertGSiteSluiceInfo(GSiteSluiceInfo gSiteSluiceInfo);
/**
* 修改水闸基本信息
*
* @param gSiteSluiceInfo 水闸基本信息
* @return 结果
*/
public int updateGSiteSluiceInfo(GSiteSluiceInfo gSiteSluiceInfo);
/**
* 删除水闸基本信息
*
* @param id 水闸基本信息主键
* @return 结果
*/
public int deleteGSiteSluiceInfoById(Long id);
/**
* 批量删除水闸基本信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteGSiteSluiceInfoByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.fastbee.ggroup.service;
import java.util.List;
import com.fastbee.ggroup.domain.GSiteSluiceInfo;
/**
* 水闸基本信息Service接口
*
* @author kerwincui
* @date 2024-10-31
*/
public interface IGSiteSluiceInfoService
{
/**
* 查询水闸基本信息
*
* @param id 水闸基本信息主键
* @return 水闸基本信息
*/
public GSiteSluiceInfo selectGSiteSluiceInfoById(Long id);
/**
* 查询水闸基本信息列表
*
* @param gSiteSluiceInfo 水闸基本信息
* @return 水闸基本信息集合
*/
public List<GSiteSluiceInfo> selectGSiteSluiceInfoList(GSiteSluiceInfo gSiteSluiceInfo);
/**
* 新增水闸基本信息
*
* @param gSiteSluiceInfo 水闸基本信息
* @return 结果
*/
public int insertGSiteSluiceInfo(GSiteSluiceInfo gSiteSluiceInfo);
/**
* 修改水闸基本信息
*
* @param gSiteSluiceInfo 水闸基本信息
* @return 结果
*/
public int updateGSiteSluiceInfo(GSiteSluiceInfo gSiteSluiceInfo);
/**
* 批量删除水闸基本信息
*
* @param ids 需要删除的水闸基本信息主键集合
* @return 结果
*/
public int deleteGSiteSluiceInfoByIds(Long[] ids);
/**
* 删除水闸基本信息信息
*
* @param id 水闸基本信息主键
* @return 结果
*/
public int deleteGSiteSluiceInfoById(Long id);
}

View File

@ -0,0 +1,96 @@
package com.fastbee.ggroup.service.impl;
import java.util.List;
import com.fastbee.common.utils.DateUtils;
import com.fastbee.ggroup.mapper.GSiteSluiceInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fastbee.ggroup.domain.GSiteSluiceInfo;
import com.fastbee.ggroup.service.IGSiteSluiceInfoService;
/**
* 水闸基本信息Service业务层处理
*
* @author kerwincui
* @date 2024-10-31
*/
@Service
public class GSiteSluiceInfoServiceImpl implements IGSiteSluiceInfoService
{
@Autowired
private GSiteSluiceInfoMapper gSiteSluiceInfoMapper;
/**
* 查询水闸基本信息
*
* @param id 水闸基本信息主键
* @return 水闸基本信息
*/
@Override
public GSiteSluiceInfo selectGSiteSluiceInfoById(Long id)
{
return gSiteSluiceInfoMapper.selectGSiteSluiceInfoById(id);
}
/**
* 查询水闸基本信息列表
*
* @param gSiteSluiceInfo 水闸基本信息
* @return 水闸基本信息
*/
@Override
public List<GSiteSluiceInfo> selectGSiteSluiceInfoList(GSiteSluiceInfo gSiteSluiceInfo)
{
return gSiteSluiceInfoMapper.selectGSiteSluiceInfoList(gSiteSluiceInfo);
}
/**
* 新增水闸基本信息
*
* @param gSiteSluiceInfo 水闸基本信息
* @return 结果
*/
@Override
public int insertGSiteSluiceInfo(GSiteSluiceInfo gSiteSluiceInfo)
{
gSiteSluiceInfo.setCreateTime(DateUtils.getNowDate());
return gSiteSluiceInfoMapper.insertGSiteSluiceInfo(gSiteSluiceInfo);
}
/**
* 修改水闸基本信息
*
* @param gSiteSluiceInfo 水闸基本信息
* @return 结果
*/
@Override
public int updateGSiteSluiceInfo(GSiteSluiceInfo gSiteSluiceInfo)
{
gSiteSluiceInfo.setUpdateTime(DateUtils.getNowDate());
return gSiteSluiceInfoMapper.updateGSiteSluiceInfo(gSiteSluiceInfo);
}
/**
* 批量删除水闸基本信息
*
* @param ids 需要删除的水闸基本信息主键
* @return 结果
*/
@Override
public int deleteGSiteSluiceInfoByIds(Long[] ids)
{
return gSiteSluiceInfoMapper.deleteGSiteSluiceInfoByIds(ids);
}
/**
* 删除水闸基本信息信息
*
* @param id 水闸基本信息主键
* @return 结果
*/
@Override
public int deleteGSiteSluiceInfoById(Long id)
{
return gSiteSluiceInfoMapper.deleteGSiteSluiceInfoById(id);
}
}

View File

@ -0,0 +1,246 @@
<?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.fastbee.ggroup.mapper.GSiteReservoirInfoMapper">
<resultMap type="GSiteSluiceInfo" id="GSiteSluiceInfoResult">
<result property="id" column="id" />
<result property="projectName" column="project_name" />
<result property="projectCode" column="project_code" />
<result property="geographicalCoordinatesLongitude" column="geographical_coordinates_longitude" />
<result property="geographicalCoordinatesLatitude" column="geographical_coordinates_latitude" />
<result property="riverName" column="river_name" />
<result property="agriculturalIrrigationArea" column="agricultural_irrigation_area" />
<result property="constructionDate" column="construction_date" />
<result property="isHubProject" column="is_hub_project" />
<result property="isSluiceStationProject" column="is_sluice_station_project" />
<result property="isNestedSluiceProject" column="is_nested_sluice_project" />
<result property="projectGrade" column="project_grade" />
<result property="mainBuildingGrade" column="main_building_grade" />
<result property="waterSluiceInfoGatesNumber" column="water_sluice_info_gates_number" />
<result property="waterSluiceInfoGatesWide" column="water_sluice_info_gates_wide" />
<result property="projectLocation" column="project_location" />
<result property="designStandard" column="design_standard" />
<result property="checkCriteria" column="check_criteria" />
<result property="organizationName" column="organization_name" />
<result property="ownership" column="ownership" />
<result property="responsiblePerson" column="responsible_person" />
<result property="position" column="position" />
<result property="phoneNumber" column="phone_number" />
<result property="manageResponsiblePerson" column="manage_responsible_person" />
<result property="managePhonePosts" column="manage_phone_posts" />
<result property="managePhoneNumber" column="manage_phone_number" />
<result property="administrativeResponsiblePerson" column="administrative_responsible_person" />
<result property="administrativePhoneNumber" column="administrative_phone_number" />
<result property="technologyResponsiblePerson" column="technology_responsible_person" />
<result property="technologyPhoneNumber" column="technology_phone_number" />
<result property="inspectionResponsiblePerson" column="inspection_responsible_person" />
<result property="inspectionPhoneNumber" column="inspection_phone_number" />
<result property="isBoundaryDelineationCompleted" column="is_boundary_delineation_completed" />
<result property="isPropertyRightsConfirmationCompleted" column="is_property_rights_confirmation_completed" />
<result property="floodControlMaterials" column="flood_control_materials" />
<result property="delFlag" column="del_flag" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
<result property="siteId" column="site_id" />
</resultMap>
<sql id="selectGSiteSluiceInfoVo">
select id, project_name, project_code, geographical_coordinates_longitude, geographical_coordinates_latitude, river_name, agricultural_irrigation_area, construction_date, is_hub_project, is_sluice_station_project, is_nested_sluice_project, project_grade, main_building_grade, water_sluice_info_gates_number, water_sluice_info_gates_wide, project_location, design_standard, check_criteria, organization_name, ownership, responsible_person, position, phone_number, manage_responsible_person, manage_phone_posts, manage_phone_number, administrative_responsible_person, administrative_phone_number, technology_responsible_person, technology_phone_number, inspection_responsible_person, inspection_phone_number, is_boundary_delineation_completed, is_property_rights_confirmation_completed, flood_control_materials, del_flag, create_time, create_by, update_time, update_by, site_id from g_site_sluice_info
</sql>
<select id="selectGSiteSluiceInfoList" parameterType="GSiteSluiceInfo" resultMap="GSiteSluiceInfoResult">
<include refid="selectGSiteSluiceInfoVo"/>
<where>
<if test="projectName != null and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if>
<if test="projectCode != null and projectCode != ''"> and project_code = #{projectCode}</if>
<if test="geographicalCoordinatesLongitude != null "> and geographical_coordinates_longitude = #{geographicalCoordinatesLongitude}</if>
<if test="geographicalCoordinatesLatitude != null "> and geographical_coordinates_latitude = #{geographicalCoordinatesLatitude}</if>
<if test="riverName != null and riverName != ''"> and river_name like concat('%', #{riverName}, '%')</if>
<if test="agriculturalIrrigationArea != null and agriculturalIrrigationArea != ''"> and agricultural_irrigation_area = #{agriculturalIrrigationArea}</if>
<if test="constructionDate != null "> and construction_date = #{constructionDate}</if>
<if test="isHubProject != null "> and is_hub_project = #{isHubProject}</if>
<if test="isSluiceStationProject != null "> and is_sluice_station_project = #{isSluiceStationProject}</if>
<if test="isNestedSluiceProject != null "> and is_nested_sluice_project = #{isNestedSluiceProject}</if>
<if test="projectGrade != null "> and project_grade = #{projectGrade}</if>
<if test="mainBuildingGrade != null "> and main_building_grade = #{mainBuildingGrade}</if>
<if test="waterSluiceInfoGatesNumber != null "> and water_sluice_info_gates_number = #{waterSluiceInfoGatesNumber}</if>
<if test="waterSluiceInfoGatesWide != null "> and water_sluice_info_gates_wide = #{waterSluiceInfoGatesWide}</if>
<if test="projectLocation != null and projectLocation != ''"> and project_location = #{projectLocation}</if>
<if test="designStandard != null "> and design_standard = #{designStandard}</if>
<if test="checkCriteria != null "> and check_criteria = #{checkCriteria}</if>
<if test="organizationName != null and organizationName != ''"> and organization_name like concat('%', #{organizationName}, '%')</if>
<if test="ownership != null and ownership != ''"> and ownership = #{ownership}</if>
<if test="responsiblePerson != null and responsiblePerson != ''"> and responsible_person = #{responsiblePerson}</if>
<if test="position != null and position != ''"> and position = #{position}</if>
<if test="phoneNumber != null and phoneNumber != ''"> and phone_number = #{phoneNumber}</if>
<if test="manageResponsiblePerson != null and manageResponsiblePerson != ''"> and manage_responsible_person = #{manageResponsiblePerson}</if>
<if test="managePhonePosts != null and managePhonePosts != ''"> and manage_phone_posts = #{managePhonePosts}</if>
<if test="managePhoneNumber != null and managePhoneNumber != ''"> and manage_phone_number = #{managePhoneNumber}</if>
<if test="administrativeResponsiblePerson != null and administrativeResponsiblePerson != ''"> and administrative_responsible_person = #{administrativeResponsiblePerson}</if>
<if test="administrativePhoneNumber != null and administrativePhoneNumber != ''"> and administrative_phone_number = #{administrativePhoneNumber}</if>
<if test="technologyResponsiblePerson != null and technologyResponsiblePerson != ''"> and technology_responsible_person = #{technologyResponsiblePerson}</if>
<if test="technologyPhoneNumber != null and technologyPhoneNumber != ''"> and technology_phone_number = #{technologyPhoneNumber}</if>
<if test="inspectionResponsiblePerson != null and inspectionResponsiblePerson != ''"> and inspection_responsible_person = #{inspectionResponsiblePerson}</if>
<if test="inspectionPhoneNumber != null and inspectionPhoneNumber != ''"> and inspection_phone_number = #{inspectionPhoneNumber}</if>
<if test="isBoundaryDelineationCompleted != null "> and is_boundary_delineation_completed = #{isBoundaryDelineationCompleted}</if>
<if test="isPropertyRightsConfirmationCompleted != null "> and is_property_rights_confirmation_completed = #{isPropertyRightsConfirmationCompleted}</if>
<if test="floodControlMaterials != null and floodControlMaterials != ''"> and flood_control_materials = #{floodControlMaterials}</if>
<if test="siteId != null "> and site_id = #{siteId}</if>
</where>
</select>
<select id="selectGSiteSluiceInfoById" parameterType="Long" resultMap="GSiteSluiceInfoResult">
<include refid="selectGSiteSluiceInfoVo"/>
where id = #{id}
</select>
<insert id="insertGSiteSluiceInfo" parameterType="GSiteSluiceInfo" useGeneratedKeys="true" keyProperty="id">
insert into g_site_sluice_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="projectName != null">project_name,</if>
<if test="projectCode != null">project_code,</if>
<if test="geographicalCoordinatesLongitude != null">geographical_coordinates_longitude,</if>
<if test="geographicalCoordinatesLatitude != null">geographical_coordinates_latitude,</if>
<if test="riverName != null">river_name,</if>
<if test="agriculturalIrrigationArea != null">agricultural_irrigation_area,</if>
<if test="constructionDate != null">construction_date,</if>
<if test="isHubProject != null">is_hub_project,</if>
<if test="isSluiceStationProject != null">is_sluice_station_project,</if>
<if test="isNestedSluiceProject != null">is_nested_sluice_project,</if>
<if test="projectGrade != null">project_grade,</if>
<if test="mainBuildingGrade != null">main_building_grade,</if>
<if test="waterSluiceInfoGatesNumber != null">water_sluice_info_gates_number,</if>
<if test="waterSluiceInfoGatesWide != null">water_sluice_info_gates_wide,</if>
<if test="projectLocation != null">project_location,</if>
<if test="designStandard != null">design_standard,</if>
<if test="checkCriteria != null">check_criteria,</if>
<if test="organizationName != null">organization_name,</if>
<if test="ownership != null">ownership,</if>
<if test="responsiblePerson != null">responsible_person,</if>
<if test="position != null">position,</if>
<if test="phoneNumber != null">phone_number,</if>
<if test="manageResponsiblePerson != null">manage_responsible_person,</if>
<if test="managePhonePosts != null">manage_phone_posts,</if>
<if test="managePhoneNumber != null">manage_phone_number,</if>
<if test="administrativeResponsiblePerson != null">administrative_responsible_person,</if>
<if test="administrativePhoneNumber != null">administrative_phone_number,</if>
<if test="technologyResponsiblePerson != null">technology_responsible_person,</if>
<if test="technologyPhoneNumber != null">technology_phone_number,</if>
<if test="inspectionResponsiblePerson != null">inspection_responsible_person,</if>
<if test="inspectionPhoneNumber != null">inspection_phone_number,</if>
<if test="isBoundaryDelineationCompleted != null">is_boundary_delineation_completed,</if>
<if test="isPropertyRightsConfirmationCompleted != null">is_property_rights_confirmation_completed,</if>
<if test="floodControlMaterials != null">flood_control_materials,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="siteId != null">site_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="projectName != null">#{projectName},</if>
<if test="projectCode != null">#{projectCode},</if>
<if test="geographicalCoordinatesLongitude != null">#{geographicalCoordinatesLongitude},</if>
<if test="geographicalCoordinatesLatitude != null">#{geographicalCoordinatesLatitude},</if>
<if test="riverName != null">#{riverName},</if>
<if test="agriculturalIrrigationArea != null">#{agriculturalIrrigationArea},</if>
<if test="constructionDate != null">#{constructionDate},</if>
<if test="isHubProject != null">#{isHubProject},</if>
<if test="isSluiceStationProject != null">#{isSluiceStationProject},</if>
<if test="isNestedSluiceProject != null">#{isNestedSluiceProject},</if>
<if test="projectGrade != null">#{projectGrade},</if>
<if test="mainBuildingGrade != null">#{mainBuildingGrade},</if>
<if test="waterSluiceInfoGatesNumber != null">#{waterSluiceInfoGatesNumber},</if>
<if test="waterSluiceInfoGatesWide != null">#{waterSluiceInfoGatesWide},</if>
<if test="projectLocation != null">#{projectLocation},</if>
<if test="designStandard != null">#{designStandard},</if>
<if test="checkCriteria != null">#{checkCriteria},</if>
<if test="organizationName != null">#{organizationName},</if>
<if test="ownership != null">#{ownership},</if>
<if test="responsiblePerson != null">#{responsiblePerson},</if>
<if test="position != null">#{position},</if>
<if test="phoneNumber != null">#{phoneNumber},</if>
<if test="manageResponsiblePerson != null">#{manageResponsiblePerson},</if>
<if test="managePhonePosts != null">#{managePhonePosts},</if>
<if test="managePhoneNumber != null">#{managePhoneNumber},</if>
<if test="administrativeResponsiblePerson != null">#{administrativeResponsiblePerson},</if>
<if test="administrativePhoneNumber != null">#{administrativePhoneNumber},</if>
<if test="technologyResponsiblePerson != null">#{technologyResponsiblePerson},</if>
<if test="technologyPhoneNumber != null">#{technologyPhoneNumber},</if>
<if test="inspectionResponsiblePerson != null">#{inspectionResponsiblePerson},</if>
<if test="inspectionPhoneNumber != null">#{inspectionPhoneNumber},</if>
<if test="isBoundaryDelineationCompleted != null">#{isBoundaryDelineationCompleted},</if>
<if test="isPropertyRightsConfirmationCompleted != null">#{isPropertyRightsConfirmationCompleted},</if>
<if test="floodControlMaterials != null">#{floodControlMaterials},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="siteId != null">#{siteId},</if>
</trim>
</insert>
<update id="updateGSiteSluiceInfo" parameterType="GSiteSluiceInfo">
update g_site_sluice_info
<trim prefix="SET" suffixOverrides=",">
<if test="projectName != null">project_name = #{projectName},</if>
<if test="projectCode != null">project_code = #{projectCode},</if>
<if test="geographicalCoordinatesLongitude != null">geographical_coordinates_longitude = #{geographicalCoordinatesLongitude},</if>
<if test="geographicalCoordinatesLatitude != null">geographical_coordinates_latitude = #{geographicalCoordinatesLatitude},</if>
<if test="riverName != null">river_name = #{riverName},</if>
<if test="agriculturalIrrigationArea != null">agricultural_irrigation_area = #{agriculturalIrrigationArea},</if>
<if test="constructionDate != null">construction_date = #{constructionDate},</if>
<if test="isHubProject != null">is_hub_project = #{isHubProject},</if>
<if test="isSluiceStationProject != null">is_sluice_station_project = #{isSluiceStationProject},</if>
<if test="isNestedSluiceProject != null">is_nested_sluice_project = #{isNestedSluiceProject},</if>
<if test="projectGrade != null">project_grade = #{projectGrade},</if>
<if test="mainBuildingGrade != null">main_building_grade = #{mainBuildingGrade},</if>
<if test="waterSluiceInfoGatesNumber != null">water_sluice_info_gates_number = #{waterSluiceInfoGatesNumber},</if>
<if test="waterSluiceInfoGatesWide != null">water_sluice_info_gates_wide = #{waterSluiceInfoGatesWide},</if>
<if test="projectLocation != null">project_location = #{projectLocation},</if>
<if test="designStandard != null">design_standard = #{designStandard},</if>
<if test="checkCriteria != null">check_criteria = #{checkCriteria},</if>
<if test="organizationName != null">organization_name = #{organizationName},</if>
<if test="ownership != null">ownership = #{ownership},</if>
<if test="responsiblePerson != null">responsible_person = #{responsiblePerson},</if>
<if test="position != null">position = #{position},</if>
<if test="phoneNumber != null">phone_number = #{phoneNumber},</if>
<if test="manageResponsiblePerson != null">manage_responsible_person = #{manageResponsiblePerson},</if>
<if test="managePhonePosts != null">manage_phone_posts = #{managePhonePosts},</if>
<if test="managePhoneNumber != null">manage_phone_number = #{managePhoneNumber},</if>
<if test="administrativeResponsiblePerson != null">administrative_responsible_person = #{administrativeResponsiblePerson},</if>
<if test="administrativePhoneNumber != null">administrative_phone_number = #{administrativePhoneNumber},</if>
<if test="technologyResponsiblePerson != null">technology_responsible_person = #{technologyResponsiblePerson},</if>
<if test="technologyPhoneNumber != null">technology_phone_number = #{technologyPhoneNumber},</if>
<if test="inspectionResponsiblePerson != null">inspection_responsible_person = #{inspectionResponsiblePerson},</if>
<if test="inspectionPhoneNumber != null">inspection_phone_number = #{inspectionPhoneNumber},</if>
<if test="isBoundaryDelineationCompleted != null">is_boundary_delineation_completed = #{isBoundaryDelineationCompleted},</if>
<if test="isPropertyRightsConfirmationCompleted != null">is_property_rights_confirmation_completed = #{isPropertyRightsConfirmationCompleted},</if>
<if test="floodControlMaterials != null">flood_control_materials = #{floodControlMaterials},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="siteId != null">site_id = #{siteId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteGSiteSluiceInfoById" parameterType="Long">
delete from g_site_sluice_info where id = #{id}
</delete>
<delete id="deleteGSiteSluiceInfoByIds" parameterType="String">
delete from g_site_sluice_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -22,6 +22,12 @@
<groupId>com.fastbee</groupId> <groupId>com.fastbee</groupId>
<artifactId>fastbee-common</artifactId> <artifactId>fastbee-common</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.github.yulichang</groupId>
<artifactId>mybatis-plus-join-core</artifactId>
<version>1.5.0</version>
<scope>compile</scope>
</dependency>
</dependencies> </dependencies>