地质所 沉降监测网建设项目
chenhuan
2024-06-25 4e6d6105915edcc630d6a8bcc1c56a6177c88686
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=",">