chen.cheng 5 mēneši atpakaļ
vecāks
revīzija
32356c512d

+ 44 - 0
.gitignore

@@ -0,0 +1,44 @@
+# Intellij project files
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# Compiled class file
+*.class
+
+# Log file
+*.log
+
+# Package Files #
+*.jar
+*.war
+*.nar
+*.ear
+*.zip
+*.tar.gz
+*.rar
+
+# Maven
+target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+.mvn/timing.properties
+
+# Eclipse
+.metadata/
+.settings/
+bin/
+tmp/
+*.tmp
+*.bak
+*.swp
+*~.nib
+.project
+.classpath
+.loadpath

+ 105 - 0
bd-park/park-backend/park-application/src/main/java/com/huashe/park/application/web/controller/cons/ConsPileHoleInfoController.java

@@ -0,0 +1,105 @@
+package com.huashe.park.application.web.controller.cons;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.huashe.common.domain.AjaxResult;
+import com.huashe.park.core.service.IConsPileHoleInfoService;
+import com.huashe.park.domain.entity.ConsPileHoleInfo;
+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.enums.BusinessType;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 施工桩点信息Controller
+ * 
+ * @author ruoyi
+ * @date 2025-02-13
+ */
+@RestController
+@RequestMapping("/cons/pileHoleInfo")
+public class ConsPileHoleInfoController extends BaseController
+{
+    @Autowired
+    private IConsPileHoleInfoService consPileHoleInfoService;
+
+    /**
+     * 查询施工桩点信息列表
+     */
+    @PreAuthorize("@ss.hasPermi('cons:pileHoleInfo:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(ConsPileHoleInfo consPileHoleInfo)
+    {
+        startPage();
+        List<ConsPileHoleInfo> list = consPileHoleInfoService.selectConsPileHoleInfoList(consPileHoleInfo);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出施工桩点信息列表
+     */
+    @PreAuthorize("@ss.hasPermi('cons:pileHoleInfo:export')")
+    @Log(title = "施工桩点信息", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, ConsPileHoleInfo consPileHoleInfo)
+    {
+        List<ConsPileHoleInfo> list = consPileHoleInfoService.selectConsPileHoleInfoList(consPileHoleInfo);
+        ExcelUtil<ConsPileHoleInfo> util = new ExcelUtil<ConsPileHoleInfo>(ConsPileHoleInfo.class);
+        util.exportExcel(response, list, "施工桩点信息数据");
+    }
+
+    /**
+     * 获取施工桩点信息详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('cons:pileHoleInfo:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(consPileHoleInfoService.selectConsPileHoleInfoById(id));
+    }
+
+    /**
+     * 新增施工桩点信息
+     */
+    @PreAuthorize("@ss.hasPermi('cons:pileHoleInfo:add')")
+    @Log(title = "施工桩点信息", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody ConsPileHoleInfo consPileHoleInfo)
+    {
+        return toAjax(consPileHoleInfoService.insertConsPileHoleInfo(consPileHoleInfo));
+    }
+
+    /**
+     * 修改施工桩点信息
+     */
+    @PreAuthorize("@ss.hasPermi('cons:pileHoleInfo:edit')")
+    @Log(title = "施工桩点信息", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody ConsPileHoleInfo consPileHoleInfo)
+    {
+        return toAjax(consPileHoleInfoService.updateConsPileHoleInfo(consPileHoleInfo));
+    }
+
+    /**
+     * 删除施工桩点信息
+     */
+    @PreAuthorize("@ss.hasPermi('cons:pileHoleInfo:remove')")
+    @Log(title = "施工桩点信息", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(consPileHoleInfoService.deleteConsPileHoleInfoByIds(ids));
+    }
+}

+ 62 - 0
bd-park/park-backend/park-core/src/main/java/com/huashe/park/core/mapper/ConsPileHoleInfoMapper.java

@@ -0,0 +1,62 @@
+package com.huashe.park.core.mapper;
+
+import com.huashe.park.domain.entity.ConsPileHoleInfo;
+
+import java.util.List;
+
+/**
+ * 施工桩点信息Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-02-13
+ */
+public interface ConsPileHoleInfoMapper 
+{
+    /**
+     * 查询施工桩点信息
+     * 
+     * @param id 施工桩点信息主键
+     * @return 施工桩点信息
+     */
+    public ConsPileHoleInfo selectConsPileHoleInfoById(Long id);
+
+    /**
+     * 查询施工桩点信息列表
+     * 
+     * @param consPileHoleInfo 施工桩点信息
+     * @return 施工桩点信息集合
+     */
+    public List<ConsPileHoleInfo> selectConsPileHoleInfoList(ConsPileHoleInfo consPileHoleInfo);
+
+    /**
+     * 新增施工桩点信息
+     * 
+     * @param consPileHoleInfo 施工桩点信息
+     * @return 结果
+     */
+    public int insertConsPileHoleInfo(ConsPileHoleInfo consPileHoleInfo);
+
+    /**
+     * 修改施工桩点信息
+     * 
+     * @param consPileHoleInfo 施工桩点信息
+     * @return 结果
+     */
+    public int updateConsPileHoleInfo(ConsPileHoleInfo consPileHoleInfo);
+
+    /**
+     * 删除施工桩点信息
+     * 
+     * @param id 施工桩点信息主键
+     * @return 结果
+     */
+    public int deleteConsPileHoleInfoById(Long id);
+
+    /**
+     * 批量删除施工桩点信息
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteConsPileHoleInfoByIds(Long[] ids);
+}

+ 62 - 0
bd-park/park-backend/park-core/src/main/java/com/huashe/park/core/service/IConsPileHoleInfoService.java

@@ -0,0 +1,62 @@
+package com.huashe.park.core.service;
+
+import com.huashe.park.domain.entity.ConsPileHoleInfo;
+
+import java.util.List;
+
+/**
+ * 施工桩点信息Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-02-13
+ */
+public interface IConsPileHoleInfoService 
+{
+    /**
+     * 查询施工桩点信息
+     * 
+     * @param id 施工桩点信息主键
+     * @return 施工桩点信息
+     */
+    public ConsPileHoleInfo selectConsPileHoleInfoById(Long id);
+
+    /**
+     * 查询施工桩点信息列表
+     * 
+     * @param consPileHoleInfo 施工桩点信息
+     * @return 施工桩点信息集合
+     */
+    public List<ConsPileHoleInfo> selectConsPileHoleInfoList(ConsPileHoleInfo consPileHoleInfo);
+
+    /**
+     * 新增施工桩点信息
+     * 
+     * @param consPileHoleInfo 施工桩点信息
+     * @return 结果
+     */
+    public int insertConsPileHoleInfo(ConsPileHoleInfo consPileHoleInfo);
+
+    /**
+     * 修改施工桩点信息
+     * 
+     * @param consPileHoleInfo 施工桩点信息
+     * @return 结果
+     */
+    public int updateConsPileHoleInfo(ConsPileHoleInfo consPileHoleInfo);
+
+    /**
+     * 批量删除施工桩点信息
+     * 
+     * @param ids 需要删除的施工桩点信息主键集合
+     * @return 结果
+     */
+    public int deleteConsPileHoleInfoByIds(Long[] ids);
+
+    /**
+     * 删除施工桩点信息信息
+     * 
+     * @param id 施工桩点信息主键
+     * @return 结果
+     */
+    public int deleteConsPileHoleInfoById(Long id);
+}

+ 94 - 0
bd-park/park-backend/park-core/src/main/java/com/huashe/park/core/service/impl/ConsPileHoleInfoServiceImpl.java

@@ -0,0 +1,94 @@
+package com.huashe.park.core.service.impl;
+
+import java.util.List;
+
+import com.huashe.park.core.mapper.ConsPileHoleInfoMapper;
+import com.huashe.park.core.service.IConsPileHoleInfoService;
+import com.huashe.park.domain.entity.ConsPileHoleInfo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * 施工桩点信息Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2025-02-13
+ */
+@Service
+public class ConsPileHoleInfoServiceImpl implements IConsPileHoleInfoService
+{
+    @Autowired
+    private ConsPileHoleInfoMapper consPileHoleInfoMapper;
+
+    /**
+     * 查询施工桩点信息
+     * 
+     * @param id 施工桩点信息主键
+     * @return 施工桩点信息
+     */
+    @Override
+    public ConsPileHoleInfo selectConsPileHoleInfoById(Long id)
+    {
+        return consPileHoleInfoMapper.selectConsPileHoleInfoById(id);
+    }
+
+    /**
+     * 查询施工桩点信息列表
+     * 
+     * @param consPileHoleInfo 施工桩点信息
+     * @return 施工桩点信息
+     */
+    @Override
+    public List<ConsPileHoleInfo> selectConsPileHoleInfoList(ConsPileHoleInfo consPileHoleInfo)
+    {
+        return consPileHoleInfoMapper.selectConsPileHoleInfoList(consPileHoleInfo);
+    }
+
+    /**
+     * 新增施工桩点信息
+     * 
+     * @param consPileHoleInfo 施工桩点信息
+     * @return 结果
+     */
+    @Override
+    public int insertConsPileHoleInfo(ConsPileHoleInfo consPileHoleInfo)
+    {
+        return consPileHoleInfoMapper.insertConsPileHoleInfo(consPileHoleInfo);
+    }
+
+    /**
+     * 修改施工桩点信息
+     * 
+     * @param consPileHoleInfo 施工桩点信息
+     * @return 结果
+     */
+    @Override
+    public int updateConsPileHoleInfo(ConsPileHoleInfo consPileHoleInfo)
+    {
+        return consPileHoleInfoMapper.updateConsPileHoleInfo(consPileHoleInfo);
+    }
+
+    /**
+     * 批量删除施工桩点信息
+     * 
+     * @param ids 需要删除的施工桩点信息主键
+     * @return 结果
+     */
+    @Override
+    public int deleteConsPileHoleInfoByIds(Long[] ids)
+    {
+        return consPileHoleInfoMapper.deleteConsPileHoleInfoByIds(ids);
+    }
+
+    /**
+     * 删除施工桩点信息信息
+     * 
+     * @param id 施工桩点信息主键
+     * @return 结果
+     */
+    @Override
+    public int deleteConsPileHoleInfoById(Long id)
+    {
+        return consPileHoleInfoMapper.deleteConsPileHoleInfoById(id);
+    }
+}

+ 109 - 0
bd-park/park-backend/park-core/src/main/resources/mapper/cons/ConsPileHoleInfoMapper.xml

@@ -0,0 +1,109 @@
+<?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.huashe.park.core.mapper.ConsPileHoleInfoMapper">
+    
+    <resultMap type="ConsPileHoleInfo" id="ConsPileHoleInfoResult">
+        <result property="id"    column="id"    />
+        <result property="holeNum"    column="hole_num"    />
+        <result property="deltaX"    column="delta_x"    />
+        <result property="deltaY"    column="delta_y"    />
+        <result property="lng"    column="lng"    />
+        <result property="lat"    column="lat"    />
+        <result property="consStatus"    column="cons_status"    />
+        <result property="startTime"    column="start_time"    />
+        <result property="endTime"    column="end_time"    />
+        <result property="desDept"    column="des_dept"    />
+        <result property="diameter"    column="diameter"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="updateBy"    column="update_by"    />
+    </resultMap>
+
+    <sql id="selectConsPileHoleInfoVo">
+        select id, hole_num, delta_x, delta_y, lng, lat, cons_status, start_time, end_time, des_dept, diameter, update_time, create_time, create_by, update_by from cons_pile_hole_info
+    </sql>
+
+    <select id="selectConsPileHoleInfoList" parameterType="ConsPileHoleInfo" resultMap="ConsPileHoleInfoResult">
+        <include refid="selectConsPileHoleInfoVo"/>
+        <where>  
+            <if test="holeNum != null  and holeNum != ''"> and hole_num = #{holeNum}</if>
+            <if test="consStatus != null  and consStatus != ''"> and cons_status = #{consStatus}</if>
+        </where>
+    </select>
+    
+    <select id="selectConsPileHoleInfoById" parameterType="Long" resultMap="ConsPileHoleInfoResult">
+        <include refid="selectConsPileHoleInfoVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertConsPileHoleInfo" parameterType="ConsPileHoleInfo" useGeneratedKeys="true" keyProperty="id">
+        insert into cons_pile_hole_info
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="holeNum != null and holeNum != ''">hole_num,</if>
+            <if test="deltaX != null">delta_x,</if>
+            <if test="deltaY != null">delta_y,</if>
+            <if test="lng != null">lng,</if>
+            <if test="lat != null">lat,</if>
+            <if test="consStatus != null">cons_status,</if>
+            <if test="startTime != null">start_time,</if>
+            <if test="endTime != null">end_time,</if>
+            <if test="desDept != null">des_dept,</if>
+            <if test="diameter != null">diameter,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="updateBy != null">update_by,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="holeNum != null and holeNum != ''">#{holeNum},</if>
+            <if test="deltaX != null">#{deltaX},</if>
+            <if test="deltaY != null">#{deltaY},</if>
+            <if test="lng != null">#{lng},</if>
+            <if test="lat != null">#{lat},</if>
+            <if test="consStatus != null">#{consStatus},</if>
+            <if test="startTime != null">#{startTime},</if>
+            <if test="endTime != null">#{endTime},</if>
+            <if test="desDept != null">#{desDept},</if>
+            <if test="diameter != null">#{diameter},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+         </trim>
+    </insert>
+
+    <update id="updateConsPileHoleInfo" parameterType="ConsPileHoleInfo">
+        update cons_pile_hole_info
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="holeNum != null and holeNum != ''">hole_num = #{holeNum},</if>
+            <if test="deltaX != null">delta_x = #{deltaX},</if>
+            <if test="deltaY != null">delta_y = #{deltaY},</if>
+            <if test="lng != null">lng = #{lng},</if>
+            <if test="lat != null">lat = #{lat},</if>
+            <if test="consStatus != null">cons_status = #{consStatus},</if>
+            <if test="startTime != null">start_time = #{startTime},</if>
+            <if test="endTime != null">end_time = #{endTime},</if>
+            <if test="desDept != null">des_dept = #{desDept},</if>
+            <if test="diameter != null">diameter = #{diameter},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteConsPileHoleInfoById" parameterType="Long">
+        delete from cons_pile_hole_info where id = #{id}
+    </delete>
+
+    <delete id="deleteConsPileHoleInfoByIds" parameterType="String">
+        delete from cons_pile_hole_info where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 185 - 0
bd-park/park-backend/park-domain/src/main/java/com/huashe/park/domain/entity/ConsPileHoleInfo.java

@@ -0,0 +1,185 @@
+package com.huashe.park.domain.entity;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.huashe.common.annotation.Excel;
+import com.huashe.common.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * 施工桩点信息对象 cons_pile_hole_info
+ * 
+ * @author ruoyi
+ * @date 2025-02-13
+ */
+public class ConsPileHoleInfo extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 桩点编号 */
+    @Excel(name = "桩点编号")
+    private String holeNum;
+
+    /** dx */
+    @Excel(name = "dx")
+    private Long deltaX;
+
+    /** dy */
+    @Excel(name = "dy")
+    private Long deltaY;
+
+    /** 经度 */
+    @Excel(name = "经度")
+    private Long lng;
+
+    /** 纬度 */
+    @Excel(name = "纬度")
+    private Long lat;
+
+    /** 施工状态 */
+    @Excel(name = "施工状态")
+    private String consStatus;
+
+    /** 开始时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date startTime;
+
+    /** 结束时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date endTime;
+
+    /** 设计深度 */
+    @Excel(name = "设计深度")
+    private Long desDept;
+
+    /** 桩径 */
+    @Excel(name = "桩径")
+    private Long diameter;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setHoleNum(String holeNum) 
+    {
+        this.holeNum = holeNum;
+    }
+
+    public String getHoleNum() 
+    {
+        return holeNum;
+    }
+    public void setDeltaX(Long deltaX) 
+    {
+        this.deltaX = deltaX;
+    }
+
+    public Long getDeltaX() 
+    {
+        return deltaX;
+    }
+    public void setDeltaY(Long deltaY) 
+    {
+        this.deltaY = deltaY;
+    }
+
+    public Long getDeltaY() 
+    {
+        return deltaY;
+    }
+    public void setLng(Long lng) 
+    {
+        this.lng = lng;
+    }
+
+    public Long getLng() 
+    {
+        return lng;
+    }
+    public void setLat(Long lat) 
+    {
+        this.lat = lat;
+    }
+
+    public Long getLat() 
+    {
+        return lat;
+    }
+    public void setConsStatus(String consStatus) 
+    {
+        this.consStatus = consStatus;
+    }
+
+    public String getConsStatus() 
+    {
+        return consStatus;
+    }
+    public void setStartTime(Date startTime) 
+    {
+        this.startTime = startTime;
+    }
+
+    public Date getStartTime() 
+    {
+        return startTime;
+    }
+    public void setEndTime(Date endTime) 
+    {
+        this.endTime = endTime;
+    }
+
+    public Date getEndTime() 
+    {
+        return endTime;
+    }
+    public void setDesDept(Long desDept) 
+    {
+        this.desDept = desDept;
+    }
+
+    public Long getDesDept() 
+    {
+        return desDept;
+    }
+    public void setDiameter(Long diameter) 
+    {
+        this.diameter = diameter;
+    }
+
+    public Long getDiameter() 
+    {
+        return diameter;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("holeNum", getHoleNum())
+            .append("deltaX", getDeltaX())
+            .append("deltaY", getDeltaY())
+            .append("lng", getLng())
+            .append("lat", getLat())
+            .append("consStatus", getConsStatus())
+            .append("startTime", getStartTime())
+            .append("endTime", getEndTime())
+            .append("desDept", getDesDept())
+            .append("diameter", getDiameter())
+            .append("updateTime", getUpdateTime())
+            .append("createTime", getCreateTime())
+            .append("createBy", getCreateBy())
+            .append("updateBy", getUpdateBy())
+            .toString();
+    }
+}