地质所 沉降监测网建设项目
zmk
2024-06-25 7fe5fb39e00749e4e412ced5703a61036752c874
javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/HoleMapper.xml
@@ -99,6 +99,20 @@
        <include refid="selectHoleVo"/> WHERE project_id = #{projectId}
    </select>
    <select id="selectHoleTotalProcess" resultMap="HoleResult">
        select sum(footage_cpl) as footage_cpl, sum(footage) as footage  from js_hole
    </select>
    <select id="selectHoleProjectProcess" resultMap="HoleResult">
        select project_id as project_id,  sum(footage_cpl) as footage_cpl, sum(footage) as footage
        from js_hole  GROUP BY project_id
    </select>
    <select id="selectProjectProcess" resultMap="HoleResult" >
       select project_id as project_id,  sum(footage_cpl) as footage_cpl, sum(footage) as footage
        from js_hole where project_id = #{projectId}
    </select>
    <insert id="insertHole" parameterType="Hole">
        insert into js_hole
        <trim prefix="(" suffix=")" suffixOverrides=",">