1626 lines
52 KiB
XML
1626 lines
52 KiB
XML
<?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="sgis.app.mapper.AppSandMapper">
|
|
|
|
<!-- 토사 입도분석 시험정보 -->
|
|
<select id="selectClasInfo" parameterType="map" resultType="egovMap">
|
|
<![CDATA[
|
|
SELECT
|
|
A.BUSINESS_CODE
|
|
, A.HOLE_CODE
|
|
, A.SAMPLE_CODE
|
|
, COALESCE(round(A.CLASSI_DEPTH :: numeric, 2)::text, '') as CLASSI_DEPTH
|
|
, COALESCE(round(A.CLASSI_D10 :: numeric, 2)::text, '') as CLASSI_D10
|
|
, COALESCE(round(A.CLASSI_D30 :: numeric, 2)::text, '') as CLASSI_D30
|
|
, COALESCE(round(A.CLASSI_D60 :: numeric, 2)::text, '') as CLASSI_D60
|
|
, COALESCE(round(A.CLASSI_CU :: numeric, 2)::text, '') as CLASSI_CU
|
|
, COALESCE(round(A.CLASSI_CG :: numeric, 2)::text, '') as CLASSI_CG
|
|
, COALESCE(round(A.CLASSI_NO4 :: numeric, 2)::text, '') as CLASSI_NO4
|
|
, COALESCE(round(A.CLASSI_NO6 :: numeric, 2)::text, '') as CLASSI_NO6
|
|
, COALESCE(round(A.CLASSI_NO8 :: numeric, 2)::text, '') as CLASSI_NO8
|
|
, COALESCE(round(A.CLASSI_NO10 :: numeric, 2)::text, '') as CLASSI_NO10
|
|
, COALESCE(round(A.CLASSI_NO16 :: numeric, 2)::text, '') as CLASSI_NO16
|
|
, COALESCE(round(A.CLASSI_NO20 :: numeric, 2)::text, '') as CLASSI_NO20
|
|
, COALESCE(round(A.CLASSI_NO30 :: numeric, 2)::text, '') as CLASSI_NO30
|
|
, COALESCE(round(A.CLASSI_NO40 :: numeric, 2)::text, '') as CLASSI_NO40
|
|
, COALESCE(round(A.CLASSI_NO50 :: numeric, 2)::text, '') as CLASSI_NO50
|
|
, COALESCE(round(A.CLASSI_NO60 :: numeric, 2)::text, '') as CLASSI_NO60
|
|
, COALESCE(round(A.CLASSI_NO70 :: numeric, 2)::text, '') as CLASSI_NO70
|
|
, COALESCE(round(A.CLASSI_NO100 :: numeric, 2)::text, '') as CLASSI_NO100
|
|
, COALESCE(round(A.CLASSI_NO140 :: numeric, 2)::text, '') as CLASSI_NO140
|
|
, COALESCE(round(A.CLASSI_NO200 :: numeric, 2)::text, '') as CLASSI_NO200
|
|
, COALESCE(round(A.CLASSI_NO0005 :: numeric, 2)::text, '') as CLASSI_NO0005
|
|
, COALESCE(round(A.CLASSI_NO0002 :: numeric, 2)::text, '') as CLASSI_NO0002
|
|
, COALESCE(A.CLASSI_REMARK, '') as CLASSI_REMARK
|
|
, COALESCE(A.SET_UNIT, '') as SET_UNIT
|
|
FROM APPTB_CLAS01 A
|
|
WHERE 1=1
|
|
]]>
|
|
<if test='businessCode != null and businessCode != ""'>
|
|
<![CDATA[
|
|
AND A.BUSINESS_CODE = #{businessCode}
|
|
]]>
|
|
</if>
|
|
<if test='holeCode != null and holeCode != ""'>
|
|
<![CDATA[
|
|
AND A.HOLE_CODE = #{holeCode}
|
|
]]>
|
|
</if>
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND A.SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
<![CDATA[
|
|
ORDER BY A.CLASSI_DEPTH
|
|
]]>
|
|
</select>
|
|
|
|
<insert id="insertClasInfo" parameterType="map">
|
|
INSERT INTO APPTB_CLAS01(
|
|
BUSINESS_CODE
|
|
, HOLE_CODE
|
|
, SAMPLE_CODE
|
|
, CLASSI_DEPTH
|
|
, CLASSI_D10
|
|
, CLASSI_D30
|
|
, CLASSI_D60
|
|
, CLASSI_CU
|
|
, CLASSI_CG
|
|
, CLASSI_NO4
|
|
, CLASSI_NO6
|
|
, CLASSI_NO8
|
|
, CLASSI_NO10
|
|
, CLASSI_NO16
|
|
, CLASSI_NO20
|
|
, CLASSI_NO30
|
|
, CLASSI_NO40
|
|
, CLASSI_NO50
|
|
, CLASSI_NO60
|
|
, CLASSI_NO70
|
|
, CLASSI_NO100
|
|
, CLASSI_NO140
|
|
, CLASSI_NO200
|
|
, CLASSI_NO0005
|
|
, CLASSI_NO0002
|
|
, CLASSI_REMARK
|
|
, SYS_REG_ID
|
|
, SYS_REG_DT
|
|
, SET_UNIT
|
|
) VALUES (
|
|
#{businessCode}
|
|
, #{holeCode}
|
|
, #{sampleCode}
|
|
, coalesce(#{classiDepth} :: numeric, null)
|
|
, coalesce(#{classiD10} :: numeric, null)
|
|
, coalesce(#{classiD30} :: numeric, null)
|
|
, coalesce(#{classiD60} :: numeric, null)
|
|
, coalesce(#{classiCu} :: numeric, null)
|
|
, coalesce(#{classiCg} :: numeric, null)
|
|
, coalesce(#{classiNo4} :: numeric, null)
|
|
, coalesce(#{classiNo6} :: numeric, null)
|
|
, coalesce(#{classiNo8} :: numeric, null)
|
|
, coalesce(#{classiNo10} :: numeric, null)
|
|
, coalesce(#{classiNo16} :: numeric, null)
|
|
, coalesce(#{classiNo20} :: numeric, null)
|
|
, coalesce(#{classiNo30} :: numeric, null)
|
|
, coalesce(#{classiNo40} :: numeric, null)
|
|
, coalesce(#{classiNo50} :: numeric, null)
|
|
, coalesce(#{classiNo60} :: numeric, null)
|
|
, coalesce(#{classiNo70} :: numeric, null)
|
|
, coalesce(#{classiNo100} :: numeric, null)
|
|
, coalesce(#{classiNo140} :: numeric, null)
|
|
, coalesce(#{classiNo200} :: numeric, null)
|
|
, coalesce(#{classiNo0005} :: numeric, null)
|
|
, coalesce(#{classiNo0002} :: numeric, null)
|
|
, #{classiRemark}
|
|
, #{sysRegId}
|
|
, NOW()
|
|
, #{mUnit}
|
|
)
|
|
</insert>
|
|
|
|
|
|
<update id="updateClasInfo">
|
|
<![CDATA[
|
|
UPDATE APPTB_CLAS01 SET
|
|
CLASSI_DEPTH = coalesce(#{classiDepth} :: numeric, null),
|
|
CLASSI_D10 = coalesce(#{classiD10} :: numeric, null),
|
|
CLASSI_D30 = coalesce(#{classiD30} :: numeric, null),
|
|
CLASSI_D60 = coalesce(#{classiD60} :: numeric, null),
|
|
CLASSI_CU = coalesce(#{classiCu} :: numeric, null),
|
|
CLASSI_CG = coalesce(#{classiCg} :: numeric, null),
|
|
CLASSI_NO4 = coalesce(#{classiNo4} :: numeric, null),
|
|
CLASSI_NO6 = coalesce(#{classiNo6} :: numeric, null),
|
|
CLASSI_NO8 = coalesce(#{classiNo8} :: numeric, null),
|
|
CLASSI_NO10 = coalesce(#{classiNo10} :: numeric, null),
|
|
CLASSI_NO16 = coalesce(#{classiNo16} :: numeric, null),
|
|
CLASSI_NO20 = coalesce(#{classiNo20} :: numeric, null),
|
|
CLASSI_NO30 = coalesce(#{classiNo30} :: numeric, null),
|
|
CLASSI_NO40 = coalesce(#{classiNo40} :: numeric, null),
|
|
CLASSI_NO50 = coalesce(#{classiNo50} :: numeric, null),
|
|
CLASSI_NO60 = coalesce(#{classiNo60} :: numeric, null),
|
|
CLASSI_NO70 = coalesce(#{classiNo70} :: numeric, null),
|
|
CLASSI_NO100 = coalesce(#{classiNo100} :: numeric, null),
|
|
CLASSI_NO140 = coalesce(#{classiNo140} :: numeric, null),
|
|
CLASSI_NO200 = coalesce(#{classiNo200} :: numeric, null),
|
|
CLASSI_NO0005 = coalesce(#{classiNo0005} :: numeric, null),
|
|
CLASSI_NO0002 = coalesce(#{classiNo0002} :: numeric, null),
|
|
CLASSI_REMARK = #{classiRemark},
|
|
SET_UNIT = #{mUnit}
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</update>
|
|
|
|
<delete id="deleteClasInfo" parameterType="map">
|
|
DELETE FROM APPTB_CLAS01
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
</delete>
|
|
|
|
<!-- 토사 CBR 시험정보 -->
|
|
<select id="selectCbrInfo" parameterType="map" resultType="egovMap">
|
|
<![CDATA[
|
|
SELECT
|
|
A.BUSINESS_CODE
|
|
, A.HOLE_CODE
|
|
, A.SAMPLE_CODE
|
|
, coalesce(A.CBR_DEPTH :: text, '') as CBR_DEPTH
|
|
, COALESCE(round(A.CBR_D_RD :: numeric, 2)::text, '') as CBR_D_RD
|
|
, COALESCE(round(A.CBR_D_GS :: numeric, 2)::text, '') as CBR_D_GS
|
|
, COALESCE(round(A.CBR_D_COMPACTION :: numeric, 2)::text, '') as CBR_D_COMPACTION
|
|
, COALESCE(round(A.CBR_D_CMC :: numeric, 2)::text, '') as CBR_D_CMC
|
|
, COALESCE(round(A.CBR_A_RD :: numeric, 2)::text, '') as CBR_A_RD
|
|
, COALESCE(round(A.CBR_A_GS :: numeric, 2)::text, '') as CBR_A_GS
|
|
, COALESCE(round(A.CBR_A_COMPACTION :: numeric, 2)::text, '') as CBR_A_COMPACTION
|
|
, COALESCE(round(A.CBR_A_CMC :: numeric, 2)::text, '') as CBR_A_CMC
|
|
, COALESCE(round(A.CBR_55_SWELLING :: numeric, 2)::text, '') as CBR_55_SWELLING
|
|
, COALESCE(round(A.CBR_55_SOAKING :: numeric, 2)::text, '') as CBR_55_SOAKING
|
|
, COALESCE(round(A.CBR_55_MOULDING :: numeric, 2)::text, '') as CBR_55_MOULDING
|
|
, COALESCE(round(A.CBR_25_SWELLING :: numeric, 2)::text, '') as CBR_25_SWELLING
|
|
, COALESCE(round(A.CBR_25_SOAKING :: numeric, 2)::text, '') as CBR_25_SOAKING
|
|
, COALESCE(round(A.CBR_25_MOULDING :: numeric, 2)::text, '') as CBR_25_MOULDING
|
|
, COALESCE(round(A.CBR_10_SWELLING :: numeric, 2)::text, '') as CBR_10_SWELLING
|
|
, COALESCE(round(A.CBR_10_SOAKING :: numeric, 2)::text, '') as CBR_10_SOAKING
|
|
, COALESCE(round(A.CBR_10_MOULDING :: numeric, 2)::text, '') as CBR_10_MOULDING
|
|
, COALESCE(A.CBR_REMARK, '') as CBR_REMARK
|
|
, COALESCE(A.SET_UNIT, '') as SET_UNIT
|
|
, COALESCE(A.SET_UNIT2, '') as SET_UNIT2
|
|
, COALESCE(A.SET_UNIT3, '') as SET_UNIT3
|
|
, COALESCE(A.SET_UNIT4, '') as SET_UNIT4
|
|
, COALESCE(A.SET_UNIT5, '') as SET_UNIT5
|
|
FROM APPTB_CBR01 A
|
|
WHERE 1=1
|
|
]]>
|
|
<if test='businessCode != null and businessCode != ""'>
|
|
<![CDATA[
|
|
AND A.BUSINESS_CODE = #{businessCode}
|
|
]]>
|
|
</if>
|
|
<if test='holeCode != null and holeCode != ""'>
|
|
<![CDATA[
|
|
AND A.HOLE_CODE = #{holeCode}
|
|
]]>
|
|
</if>
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND A.SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
<![CDATA[
|
|
ORDER BY A.SAMPLE_CODE
|
|
]]>
|
|
</select>
|
|
|
|
<insert id="insertCbrInfo" parameterType="map">
|
|
INSERT INTO APPTB_CBR01(
|
|
BUSINESS_CODE
|
|
, HOLE_CODE
|
|
, SAMPLE_CODE
|
|
, CBR_DEPTH
|
|
, CBR_D_RD
|
|
, CBR_D_GS
|
|
, CBR_D_COMPACTION
|
|
, CBR_D_CMC
|
|
, CBR_A_RD
|
|
, CBR_A_GS
|
|
, CBR_A_COMPACTION
|
|
, CBR_A_CMC
|
|
, CBR_55_SWELLING
|
|
, CBR_55_SOAKING
|
|
, CBR_55_MOULDING
|
|
, CBR_25_SWELLING
|
|
, CBR_25_SOAKING
|
|
, CBR_25_MOULDING
|
|
, CBR_10_SWELLING
|
|
, CBR_10_SOAKING
|
|
, CBR_10_MOULDING
|
|
, CBR_REMARK
|
|
, SYS_REG_ID
|
|
, SYS_REG_DT
|
|
, SET_UNIT
|
|
, SET_UNIT2
|
|
, SET_UNIT3
|
|
, SET_UNIT4
|
|
, SET_UNIT5
|
|
) VALUES (
|
|
#{businessCode}
|
|
, #{holeCode}
|
|
, #{sampleCode}
|
|
, coalesce(#{cbrDepth}::numeric, null)
|
|
, coalesce(#{cbrDRd}::numeric, null)
|
|
, coalesce(#{cbrDGs}::numeric, null)
|
|
, coalesce(#{cbrDCompaction}::numeric, null)
|
|
, coalesce(#{cbrDCmc}::numeric, null)
|
|
, coalesce(#{cbrARd}::numeric, null)
|
|
, coalesce(#{cbrAGs}::numeric, null)
|
|
, coalesce(#{cbrACompaction}::numeric, null)
|
|
, coalesce(#{cbrACmc}::numeric, null)
|
|
, coalesce(#{cbr55Swelling}::numeric, null)
|
|
, coalesce(#{cbr55Soaking}::numeric, null)
|
|
, coalesce(#{cbr55Moulding}::numeric, null)
|
|
, coalesce(#{cbr25Swelling}::numeric, null)
|
|
, coalesce(#{cbr25Soaking}::numeric, null)
|
|
, coalesce(#{cbr25Moulding}::numeric, null)
|
|
, coalesce(#{cbr10Swelling}::numeric, null)
|
|
, coalesce(#{cbr10Soaking}::numeric, null)
|
|
, coalesce(#{cbr10Moulding}::numeric, null)
|
|
, #{cbrRemark}
|
|
, #{sysRegId}
|
|
, NOW()
|
|
, #{mUnit}
|
|
, #{setUnit2}
|
|
, #{mUnit3}
|
|
, #{setUnit4}
|
|
, #{mUnit5}
|
|
)
|
|
</insert>
|
|
|
|
<update id="updateCbrInfo">
|
|
<![CDATA[
|
|
UPDATE APPTB_CBR01 SET
|
|
CBR_DEPTH = coalesce(#{cbrDepth}::numeric, null),
|
|
CBR_D_RD = coalesce(#{cbrDRd}::numeric, null),
|
|
CBR_D_GS = coalesce(#{cbrDGs}::numeric, null),
|
|
CBR_D_COMPACTION = coalesce(#{cbrDCompaction}::numeric, null),
|
|
CBR_D_CMC = coalesce(#{cbrDCmc}::numeric, null),
|
|
CBR_A_RD = coalesce(#{cbrARd}::numeric, null),
|
|
CBR_A_GS = coalesce(#{cbrAGs}::numeric, null),
|
|
CBR_A_COMPACTION = coalesce(#{cbrACompaction}::numeric, null),
|
|
CBR_A_CMC = coalesce(#{cbrACmc}::numeric, null),
|
|
CBR_55_SWELLING = coalesce(#{cbr55Swelling}::numeric, null),
|
|
CBR_55_SOAKING = coalesce(#{cbr55Soaking}::numeric, null),
|
|
CBR_55_MOULDING = coalesce(#{cbr55Moulding}::numeric, null),
|
|
CBR_25_SWELLING = coalesce(#{cbr25Swelling}::numeric, null),
|
|
CBR_25_SOAKING = coalesce(#{cbr25Soaking}::numeric, null),
|
|
CBR_25_MOULDING = coalesce(#{cbr25Moulding}::numeric, null),
|
|
CBR_10_SWELLING = coalesce(#{cbr10Swelling}::numeric, null),
|
|
CBR_10_SOAKING = coalesce(#{cbr10Soaking}::numeric, null),
|
|
CBR_10_MOULDING = coalesce(#{cbr10Moulding}::numeric, null),
|
|
CBR_REMARK = #{cbrRemark},
|
|
SET_UNIT = #{mUnit},
|
|
SET_UNIT2 = #{setUnit2},
|
|
SET_UNIT3 = #{mUnit3},
|
|
SET_UNIT4 = #{setUnit4},
|
|
SET_UNIT5 = #{mUnit5}
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</update>
|
|
|
|
<delete id="deleteCbrInfo" parameterType="map">
|
|
DELETE FROM APPTB_CBR01
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
</delete>
|
|
|
|
<!-- 토사 압밀시험 시험정보 -->
|
|
<select id="selectConsolidationInfo" parameterType="map" resultType="egovMap">
|
|
<![CDATA[
|
|
SELECT
|
|
A.BUSINESS_CODE
|
|
, A.HOLE_CODE
|
|
, A.SAMPLE_CODE
|
|
, COALESCE(round(A.CONSOL_SAMPLE_DIA :: numeric, 2)::text, '') as CONSOL_SAMPLE_DIA
|
|
, COALESCE(round(A.CONSOL_SAMPLE_HEIGHT :: numeric, 2)::text, '') as CONSOL_SAMPLE_HEIGHT
|
|
, COALESCE(round(A.CONSOL_W0 :: numeric, 2)::text, '') as CONSOL_W0
|
|
, COALESCE(round(A.CONSOL_WF :: numeric, 2)::text, '') as CONSOL_WF
|
|
, COALESCE(round(A.CONSOL_RF :: numeric, 2)::text, '') as CONSOL_RF
|
|
, COALESCE(round(A.CONSOL_RD :: numeric, 2)::text, '') as CONSOL_RD
|
|
, COALESCE(round(A.CONSOL_S0 :: numeric, 2)::text, '') as CONSOL_S0
|
|
, COALESCE(round(A.CONSOL_SF :: numeric, 2)::text, '') as CONSOL_SF
|
|
, COALESCE(round(A.CONSOL_PC :: numeric, 2)::text, '') as CONSOL_PC
|
|
, COALESCE(round(A.CONSOL_CC :: numeric, 2)::text, '') as CONSOL_CC
|
|
, COALESCE(A.CONSOL_REMARK, '') as CONSOL_REMARK
|
|
, COALESCE(A.CONSOL_DEPTH :: text, '') as CONSOL_DEPTH
|
|
, COALESCE(A.SET_UNIT, '') as SET_UNIT
|
|
, COALESCE(A.SET_UNIT2, '') as SET_UNIT2
|
|
, COALESCE(A.SET_UNIT3, '') as SET_UNIT3
|
|
, COALESCE(A.SET_UNIT4, '') as SET_UNIT4
|
|
, COALESCE(A.SET_UNIT5, '') as SET_UNIT5
|
|
, COALESCE(A.SET_UNIT6, '') as SET_UNIT6
|
|
, COALESCE(A.SET_UNIT7, '') as SET_UNIT7
|
|
, COALESCE(A.SET_UNIT8, '') as SET_UNIT8
|
|
, COALESCE(A.SET_UNIT9, '') as SET_UNIT9
|
|
FROM APPTB_CONS01 A
|
|
WHERE 1=1
|
|
]]>
|
|
<if test='businessCode != null and businessCode != ""'>
|
|
<![CDATA[
|
|
AND A.BUSINESS_CODE = #{businessCode}
|
|
]]>
|
|
</if>
|
|
<if test='holeCode != null and holeCode != ""'>
|
|
<![CDATA[
|
|
AND A.HOLE_CODE = #{holeCode}
|
|
]]>
|
|
</if>
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND A.SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
<![CDATA[
|
|
ORDER BY A.CONSOL_DEPTH
|
|
]]>
|
|
</select>
|
|
|
|
<insert id="insertConsolidationInfo" parameterType="map">
|
|
INSERT INTO APPTB_CONS01(
|
|
BUSINESS_CODE
|
|
, HOLE_CODE
|
|
, SAMPLE_CODE
|
|
, CONSOL_SAMPLE_DIA
|
|
, CONSOL_SAMPLE_HEIGHT
|
|
, CONSOL_W0
|
|
, CONSOL_WF
|
|
, CONSOL_RF
|
|
, CONSOL_RD
|
|
, CONSOL_S0
|
|
, CONSOL_SF
|
|
, CONSOL_PC
|
|
, CONSOL_CC
|
|
, CONSOL_REMARK
|
|
, SYS_REG_ID
|
|
, SYS_REG_DT
|
|
, CONSOL_DEPTH
|
|
, SET_UNIT
|
|
, SET_UNIT2
|
|
, SET_UNIT3
|
|
, SET_UNIT4
|
|
, SET_UNIT5
|
|
, SET_UNIT6
|
|
, SET_UNIT7
|
|
, SET_UNIT8
|
|
, SET_UNIT9
|
|
) VALUES (
|
|
#{businessCode}
|
|
, #{holeCode}
|
|
, #{sampleCode}
|
|
, COALESCE(#{consolSampleDia}::numeric, null)
|
|
, COALESCE(#{consolSampleHeight}::numeric, null)
|
|
, COALESCE(#{consolW0}::numeric, null)
|
|
, COALESCE(#{consolWf}::numeric, null)
|
|
, COALESCE(#{consolRf}::numeric, null)
|
|
, COALESCE(#{consolRd}::numeric, null)
|
|
, COALESCE(#{consolS0}::numeric, null)
|
|
, COALESCE(#{consolSf}::numeric, null)
|
|
, COALESCE(#{consolPc}::numeric, null)
|
|
, COALESCE(#{consolCc}::numeric, null)
|
|
, #{consolRemark}
|
|
, #{sysRegId}
|
|
, NOW()
|
|
, COALESCE(#{consolDepth}::numeric, null)
|
|
, #{mUnit}
|
|
, #{mUnit2}
|
|
, #{mUnit3}
|
|
, #{setUnit4}
|
|
, #{mUnit5}
|
|
, #{setUnit6}
|
|
, #{mUnit7}
|
|
, #{setUnit8}
|
|
, #{mUnit9}
|
|
)
|
|
</insert>
|
|
|
|
<update id="updateConsolidationInfo">
|
|
<![CDATA[
|
|
UPDATE APPTB_CONS01 SET
|
|
CONSOL_DEPTH = COALESCE(#{consolDepth}::numeric, null),
|
|
CONSOL_SAMPLE_DIA = COALESCE(#{consolSampleDia}::numeric, null),
|
|
CONSOL_SAMPLE_HEIGHT = COALESCE(#{consolSampleHeight}::numeric, null),
|
|
CONSOL_W0 = COALESCE(#{consolW0}::numeric, null),
|
|
CONSOL_WF = COALESCE(#{consolWf}::numeric, null),
|
|
CONSOL_RF = COALESCE(#{consolRf}::numeric, null),
|
|
CONSOL_RD = COALESCE(#{consolRd}::numeric, null),
|
|
CONSOL_S0 = COALESCE(#{consolS0}::numeric, null),
|
|
CONSOL_SF = COALESCE(#{consolSf}::numeric, null),
|
|
CONSOL_PC = COALESCE(#{consolPc}::numeric, null),
|
|
CONSOL_CC = COALESCE(#{consolCc}::numeric, null),
|
|
CONSOL_REMARK = #{consolRemark},
|
|
SET_UNIT = #{mUnit},
|
|
SET_UNIT2 = #{mUnit2},
|
|
SET_UNIT3 = #{mUnit3},
|
|
SET_UNIT4 = #{setUnit4},
|
|
SET_UNIT5 = #{mUnit5},
|
|
SET_UNIT6 = #{setUnit6},
|
|
SET_UNIT7 = #{mUnit7},
|
|
SET_UNIT8 = #{setUnit8},
|
|
SET_UNIT9 = #{mUnit9}
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</update>
|
|
|
|
<delete id="deleteConsolidationInfo" parameterType="map">
|
|
DELETE FROM APPTB_CONS01
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
</delete>
|
|
|
|
<!-- 토사 압밀시험 시험 전체 부정보 -->
|
|
<select id="selectConsolidationSubTotalInfo" parameterType="map" resultType="egovMap">
|
|
<![CDATA[
|
|
SELECT
|
|
A.BUSINESS_CODE
|
|
, A.HOLE_CODE
|
|
, A.SAMPLE_CODE
|
|
, A.CONSOL_DEPTH
|
|
, COALESCE(A.CONSOL_P::text, '') as CONSOL_P
|
|
, COALESCE(A.CONSOL_SETTLEMENT::text, '') as CONSOL_SETTLEMENT
|
|
, COALESCE(A.CONSOL_T90::text, '') as CONSOL_T90
|
|
, COALESCE(A.CONSOL_E::text, '') as CONSOL_E
|
|
, COALESCE(A.CONSOL_TWOHA::text, '') as CONSOL_TWOHA
|
|
, COALESCE(A.CONSOL_AV::text, '') as CONSOL_AV
|
|
, COALESCE(A.CONSOL_CV::text, '') as CONSOL_CV
|
|
, COALESCE(A.CONSOL_MV::text, '') as CONSOL_MV
|
|
, COALESCE(A.CONSOL_K::text, '') as CONSOL_K
|
|
, COALESCE(A.CONSOL_RP::text, '') as CONSOL_RP
|
|
, COALESCE(A.SET_UNIT, '') as SET_UNIT
|
|
, COALESCE(A.SET_UNIT2, '') as SET_UNIT2
|
|
, COALESCE(A.SET_UNIT3, '') as SET_UNIT3
|
|
, COALESCE(A.SET_UNIT4, '') as SET_UNIT4
|
|
, COALESCE(A.SET_UNIT5, '') as SET_UNIT5
|
|
, COALESCE(A.SET_UNIT6, '') as SET_UNIT6
|
|
, COALESCE(A.SET_UNIT7, '') as SET_UNIT7
|
|
, COALESCE(A.REMARK::text , '') as REMARK
|
|
FROM APPTB_CONS02 A
|
|
WHERE 1=1
|
|
]]>
|
|
<if test='businessCode != null and businessCode != ""'>
|
|
<![CDATA[
|
|
AND A.BUSINESS_CODE = #{businessCode}
|
|
]]>
|
|
</if>
|
|
<if test='holeCode != null and holeCode != ""'>
|
|
<![CDATA[
|
|
AND A.HOLE_CODE = #{holeCode}
|
|
]]>
|
|
</if>
|
|
<![CDATA[
|
|
ORDER BY A.CONSOL_DEPTH
|
|
]]>
|
|
</select>
|
|
|
|
<!-- 토사 압밀시험 시험 부정보 -->
|
|
<select id="selectConsolidationSubInfo" parameterType="map" resultType="egovMap">
|
|
<![CDATA[
|
|
SELECT
|
|
A.BUSINESS_CODE
|
|
, A.HOLE_CODE
|
|
, A.SAMPLE_CODE
|
|
, A.CONSOL_DEPTH
|
|
, COALESCE(round(A.CONSOL_P :: numeric, 2)::text, '') as CONSOL_P
|
|
, COALESCE(round(A.CONSOL_SETTLEMENT :: numeric, 2)::text, '') as CONSOL_SETTLEMENT
|
|
, COALESCE(round(A.CONSOL_T90 :: numeric, 2)::text, '') as CONSOL_T90
|
|
, COALESCE(round(A.CONSOL_E :: numeric, 2)::text, '') as CONSOL_E
|
|
, COALESCE(round(A.CONSOL_TWOHA :: numeric, 2)::text, '') as CONSOL_TWOHA
|
|
, COALESCE(round(A.CONSOL_AV :: numeric, 6)::text, '') as CONSOL_AV
|
|
, COALESCE(round(A.CONSOL_CV :: numeric, 6)::text, '') as CONSOL_CV
|
|
, COALESCE(round(A.CONSOL_MV :: numeric, 6)::text, '') as CONSOL_MV
|
|
, COALESCE(round(A.CONSOL_K :: numeric, 6)::text, '') as CONSOL_K
|
|
, COALESCE(round(A.CONSOL_RP :: numeric, 6)::text, '') as CONSOL_RP
|
|
, COALESCE(A.SET_UNIT, '') as SET_UNIT
|
|
, COALESCE(A.REMARK::text , '') as REMARK
|
|
, COALESCE(A.SET_UNIT2, '') as SET_UNIT2
|
|
, COALESCE(A.SET_UNIT3, '') as SET_UNIT3
|
|
, COALESCE(A.SET_UNIT4, '') as SET_UNIT4
|
|
, COALESCE(A.SET_UNIT5, '') as SET_UNIT5
|
|
, COALESCE(A.SET_UNIT6, '') as SET_UNIT6
|
|
, COALESCE(A.SET_UNIT7, '') as SET_UNIT7
|
|
FROM APPTB_CONS02 A
|
|
WHERE 1=1
|
|
]]>
|
|
<if test='businessCode != null and businessCode != ""'>
|
|
<![CDATA[
|
|
AND A.BUSINESS_CODE = #{businessCode}
|
|
]]>
|
|
</if>
|
|
<if test='holeCode != null and holeCode != ""'>
|
|
<![CDATA[
|
|
AND A.HOLE_CODE = #{holeCode}
|
|
]]>
|
|
</if>
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND A.SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
<![CDATA[
|
|
ORDER BY A.CONSOL_DEPTH
|
|
]]>
|
|
</select>
|
|
|
|
<delete id="deleteConsolidationSubInfo" parameterType="map">
|
|
DELETE FROM APPTB_CONS02
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
</delete>
|
|
|
|
<insert id="insertConsolidationSubInfo" parameterType="map">
|
|
INSERT INTO APPTB_CONS02(
|
|
BUSINESS_CODE
|
|
, HOLE_CODE
|
|
, SAMPLE_CODE
|
|
, CONSOL_DEPTH
|
|
, CONSOL_P
|
|
, CONSOL_SETTLEMENT
|
|
, CONSOL_T90
|
|
, CONSOL_E
|
|
, CONSOL_TWOHA
|
|
, CONSOL_AV
|
|
, CONSOL_CV
|
|
, CONSOL_MV
|
|
, CONSOL_K
|
|
, CONSOL_RP
|
|
, SYS_REG_ID
|
|
, SYS_REG_DT
|
|
, SET_UNIT
|
|
, SET_UNIT2
|
|
, SET_UNIT3
|
|
, SET_UNIT4
|
|
, SET_UNIT5
|
|
, SET_UNIT6
|
|
, SET_UNIT7
|
|
, REMARK
|
|
) VALUES (
|
|
#{businessCode}
|
|
, #{holeCode}
|
|
, #{sampleCode}
|
|
, coalesce(#{consolDepth}::numeric, null)
|
|
, coalesce(#{consolP}::numeric, null)
|
|
, coalesce(#{consolSettlement}::numeric, null)
|
|
, coalesce(#{consolT90}::numeric, null)
|
|
, coalesce(#{consolE}::numeric, null)
|
|
, coalesce(#{consolTwoha}::numeric, null)
|
|
, coalesce(#{consolAv}::numeric, null)
|
|
, coalesce(#{consolCv}::numeric, null)
|
|
, coalesce(#{consolMv}::numeric, null)
|
|
, coalesce(#{consolK}::numeric, null)
|
|
, coalesce(#{consolRp}::numeric, null)
|
|
, #{sysRegId}
|
|
, NOW()
|
|
, #{mUnit}
|
|
, #{setUnit2}
|
|
, #{mUnit3}
|
|
, #{setUnit4}
|
|
, #{mUnit5}
|
|
, #{setUnit6}
|
|
, #{mUnit7}
|
|
, #{remark}
|
|
)
|
|
</insert>
|
|
|
|
<!-- 토사 일축압축 시험정보 -->
|
|
<select id="selectUnconfinedUsualInfo" parameterType="map" resultType="egovMap">
|
|
<![CDATA[
|
|
SELECT
|
|
A.BUSINESS_CODE
|
|
, A.HOLE_CODE
|
|
, A.SAMPLE_CODE
|
|
, COALESCE(ROUND(A.UNCONF_RINGFACTOR :: NUMERIC, 2)::text, '') AS UNCONF_RINGFACTOR
|
|
, COALESCE(ROUND(A.UNCONF_LOAD_SCALE :: NUMERIC, 2)::text, '') AS UNCONF_LOAD_SCALE
|
|
, COALESCE(ROUND(A.UNCONF_UNDISTURB_HEIGHT :: NUMERIC, 2)::text, '') AS UNCONF_UNDISTURB_HEIGHT
|
|
, COALESCE(ROUND(A.UNCONF_UNDISTURB_DIA :: NUMERIC, 2)::text, '') AS UNCONF_UNDISTURB_DIA
|
|
, COALESCE(ROUND(A.UNCONF_UNDISTURB_W :: NUMERIC, 2)::text, '') AS UNCONF_UNDISTURB_W
|
|
, COALESCE(ROUND(A.UNCONF_UNDISTURB_RT :: NUMERIC, 2)::text, '') AS UNCONF_UNDISTURB_RT
|
|
, COALESCE(ROUND(A.UNCONF_UNDISTURB_E :: NUMERIC, 2)::text, '') AS UNCONF_UNDISTURB_E
|
|
, COALESCE(ROUND(A.UNCONF_UNDISTURB_S :: NUMERIC, 2)::text, '') AS UNCONF_UNDISTURB_S
|
|
, COALESCE(ROUND(A.UNCONF_UNDISTURB_COMPSTRENGTH :: NUMERIC, 2)::text, '') AS UNCONF_UNDISTURB_COMPSTRENGTH
|
|
, COALESCE(ROUND(A.UNCONF_REMOULD_HEIGHT :: NUMERIC, 2)::text, '') AS UNCONF_REMOULD_HEIGHT
|
|
, COALESCE(ROUND(A.UNCONF_REMOULD_DIA :: NUMERIC, 2)::text, '') AS UNCONF_REMOULD_DIA
|
|
, COALESCE(ROUND(A.UNCONF_REMOULD_W :: NUMERIC, 2)::text, '') AS UNCONF_REMOULD_W
|
|
, COALESCE(ROUND(A.UNCONF_REMOULD_RT :: NUMERIC, 2)::text, '') AS UNCONF_REMOULD_RT
|
|
, COALESCE(ROUND(A.UNCONF_REMOULD_E :: NUMERIC, 2)::text, '') AS UNCONF_REMOULD_E
|
|
, COALESCE(ROUND(A.UNCONF_REMOULD_S :: NUMERIC, 2)::text, '') AS UNCONF_REMOULD_S
|
|
, COALESCE(ROUND(A.UNCONF_REMOULD_COMPSTRENGTH :: NUMERIC, 2)::text, '') AS UNCONF_REMOULD_COMPSTRENGTH
|
|
, COALESCE(A.UNCONF_REMARK, '') AS UNCONF_REMARK
|
|
, COALESCE(A.UNCONF_DEPTH::text, '') AS UNCONF_DEPTH
|
|
, COALESCE(A.SET_UNIT, '') as SET_UNIT
|
|
, COALESCE(A.SET_UNIT2, '') as SET_UNIT2
|
|
, COALESCE(A.SET_UNIT3, '') as SET_UNIT3
|
|
, COALESCE(A.SET_UNIT4, '') as SET_UNIT4
|
|
, COALESCE(A.SET_UNIT5, '') as SET_UNIT5
|
|
, COALESCE(A.SET_UNIT6, '') as SET_UNIT6
|
|
, COALESCE(A.SET_UNIT7, '') as SET_UNIT7
|
|
, COALESCE(A.SET_UNIT8, '') as SET_UNIT8
|
|
, COALESCE(A.SET_UNIT9, '') as SET_UNIT9
|
|
, COALESCE(A.SET_UNIT10, '') as SET_UNIT10
|
|
, COALESCE(A.SET_UNIT11, '') as SET_UNIT11
|
|
, COALESCE(A.SET_UNIT12, '') as SET_UNIT12
|
|
, COALESCE(A.SET_UNIT13, '') as SET_UNIT13
|
|
FROM APPTB_SUNI01 A
|
|
WHERE 1=1
|
|
]]>
|
|
<if test='businessCode != null and businessCode != ""'>
|
|
<![CDATA[
|
|
AND A.BUSINESS_CODE = #{businessCode}
|
|
]]>
|
|
</if>
|
|
<if test='holeCode != null and holeCode != ""'>
|
|
<![CDATA[
|
|
AND A.HOLE_CODE = #{holeCode}
|
|
]]>
|
|
</if>
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND A.SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
<![CDATA[
|
|
ORDER BY A.UNCONF_DEPTH
|
|
]]>
|
|
</select>
|
|
|
|
<insert id="insertUnconfinedUsualInfo" parameterType="map">
|
|
INSERT INTO APPTB_SUNI01(
|
|
BUSINESS_CODE
|
|
, HOLE_CODE
|
|
, SAMPLE_CODE
|
|
, UNCONF_RINGFACTOR
|
|
, UNCONF_LOAD_SCALE
|
|
, UNCONF_UNDISTURB_HEIGHT
|
|
, UNCONF_UNDISTURB_DIA
|
|
, UNCONF_UNDISTURB_W
|
|
, UNCONF_UNDISTURB_RT
|
|
, UNCONF_UNDISTURB_E
|
|
, UNCONF_UNDISTURB_S
|
|
, UNCONF_UNDISTURB_COMPSTRENGTH
|
|
, UNCONF_REMOULD_HEIGHT
|
|
, UNCONF_REMOULD_DIA
|
|
, UNCONF_REMOULD_W
|
|
, UNCONF_REMOULD_RT
|
|
, UNCONF_REMOULD_E
|
|
, UNCONF_REMOULD_S
|
|
, UNCONF_REMOULD_COMPSTRENGTH
|
|
, UNCONF_REMARK
|
|
, SYS_REG_ID
|
|
, SYS_REG_DT
|
|
, UNCONF_DEPTH
|
|
, SET_UNIT
|
|
, SET_UNIT2
|
|
, SET_UNIT3
|
|
, SET_UNIT4
|
|
, SET_UNIT5
|
|
, SET_UNIT6
|
|
, SET_UNIT7
|
|
, SET_UNIT8
|
|
, SET_UNIT9
|
|
, SET_UNIT10
|
|
, SET_UNIT11
|
|
, SET_UNIT12
|
|
, SET_UNIT13
|
|
) VALUES (
|
|
#{businessCode}
|
|
, #{holeCode}
|
|
, #{sampleCode}
|
|
, COALESCE(#{unconfRingfactor}::numeric, null)
|
|
, COALESCE(#{unconfLoadScale}::numeric, null)
|
|
, COALESCE(#{unconfUndisturbHeight}::numeric, null)
|
|
, COALESCE(#{unconfUndisturbDia}::numeric, null)
|
|
, COALESCE(#{unconfUndisturbW}::numeric, null)
|
|
, COALESCE(#{unconfUndisturbRt}::numeric, null)
|
|
, COALESCE(#{unconfUndisturbE}::numeric, null)
|
|
, COALESCE(#{unconfUndisturbS}::numeric, null)
|
|
, COALESCE(#{unconfUndisturbCompstrength}::numeric, null)
|
|
, COALESCE(#{unconfRemouldHeight}::numeric, null)
|
|
, COALESCE(#{unconfRemouldDia}::numeric, null)
|
|
, COALESCE(#{unconfRemouldW}::numeric, null)
|
|
, COALESCE(#{unconfRemouldRt}::numeric, null)
|
|
, COALESCE(#{unconfRemouldE}::numeric, null)
|
|
, COALESCE(#{unconfRemouldS}::numeric, null)
|
|
, COALESCE(#{unconfRemouldCompstrength}::numeric, null)
|
|
, #{unconfRemark}
|
|
, #{sysRegId}
|
|
, NOW()
|
|
, COALESCE(#{unconfDepth}::numeric, null)
|
|
, #{mUnit}
|
|
, #{mUnit2}
|
|
, #{mUnit3}
|
|
, #{setUnit4}
|
|
, #{mUnit5}
|
|
, #{setUnit6}
|
|
, #{mUnit7}
|
|
, #{mUnit8}
|
|
, #{mUnit9}
|
|
, #{setUnit10}
|
|
, #{mUnit11}
|
|
, #{setUnit12}
|
|
, #{mUnit13}
|
|
)
|
|
</insert>
|
|
|
|
<update id="updateUnconfinedUsualInfo">
|
|
<![CDATA[
|
|
UPDATE APPTB_SUNI01 SET
|
|
UNCONF_RINGFACTOR = COALESCE(#{unconfRingfactor}::numeric, null),
|
|
UNCONF_LOAD_SCALE = COALESCE(#{unconfLoadScale}::numeric, null),
|
|
UNCONF_UNDISTURB_HEIGHT = COALESCE(#{unconfUndisturbHeight}::numeric, null),
|
|
UNCONF_UNDISTURB_DIA = COALESCE(#{unconfUndisturbDia}::numeric, null),
|
|
UNCONF_UNDISTURB_W = COALESCE(#{unconfUndisturbW}::numeric, null),
|
|
UNCONF_UNDISTURB_RT = COALESCE(#{unconfUndisturbRt}::numeric, null),
|
|
UNCONF_UNDISTURB_E = COALESCE(#{unconfUndisturbE}::numeric, null),
|
|
UNCONF_UNDISTURB_S = COALESCE(#{unconfUndisturbS}::numeric, null),
|
|
UNCONF_UNDISTURB_COMPSTRENGTH = COALESCE(#{unconfUndisturbCompstrength}::numeric, null),
|
|
UNCONF_REMOULD_HEIGHT = COALESCE(#{unconfRemouldHeight}::numeric, null),
|
|
UNCONF_REMOULD_DIA = COALESCE(#{unconfRemouldDia}::numeric, null),
|
|
UNCONF_REMOULD_W = COALESCE(#{unconfRemouldW}::numeric, null),
|
|
UNCONF_REMOULD_RT = COALESCE(#{unconfRemouldRt}::numeric, null),
|
|
UNCONF_REMOULD_E = COALESCE(#{unconfRemouldE}::numeric, null),
|
|
UNCONF_REMOULD_S = COALESCE(#{unconfRemouldS}::numeric, null),
|
|
UNCONF_REMOULD_COMPSTRENGTH = COALESCE(#{unconfRemouldCompstrength}::numeric, null),
|
|
UNCONF_REMARK = #{unconfRemark},
|
|
UNCONF_DEPTH = COALESCE(#{unconfDepth}::numeric, null),
|
|
set_unit = #{mUnit},
|
|
set_unit2 = #{mUnit2},
|
|
set_unit3 = #{mUnit3},
|
|
set_unit4 = #{setUnit4},
|
|
set_unit5 = #{mUnit5},
|
|
set_unit6 = #{setUnit6},
|
|
set_unit7 = #{mUnit7},
|
|
set_unit8 = #{mUnit8},
|
|
set_unit9 = #{mUnit9},
|
|
set_unit10 = #{setUnit10},
|
|
set_unit11 = #{mUnit11},
|
|
set_unit12 = #{setUnit12},
|
|
set_unit13 = #{mUnit13}
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</update>
|
|
|
|
<delete id="deleteUnconfinedUsualInfo" parameterType="map">
|
|
DELETE FROM APPTB_SUNI01
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
</delete>
|
|
|
|
<!-- 토사 삼축압축 시험정보 -->
|
|
<select id="selectTriaxialUsualInfo" parameterType="map" resultType="egovMap">
|
|
<![CDATA[
|
|
SELECT
|
|
A.BUSINESS_CODE
|
|
, A.HOLE_CODE
|
|
, A.SAMPLE_CODE
|
|
, COALESCE(A.DEPTH::TEXT, '') AS DEPTH
|
|
, COALESCE(A.TRI_TYPEOFTEST, '') AS TRI_TYPEOFTEST
|
|
, COALESCE(A.TRI_TYPEOFCONTROLLEDTEST, '') AS TRI_TYPEOFCONTROLLEDTEST
|
|
, COALESCE(ROUND(A.TRI_NOSTRAIN :: NUMERIC, 2)::TEXT, '') AS TRI_NOSTRAIN
|
|
, COALESCE(ROUND(A.TRI_PHI_U :: NUMERIC, 2)::TEXT, '') AS TRI_PHI_U
|
|
, COALESCE(ROUND(A.TRI_CU :: NUMERIC, 2)::TEXT, '') AS TRI_CU
|
|
, COALESCE(A.TRI_REMARK, '') AS TRI_REMARK
|
|
, COALESCE(A.SET_UNIT, '') AS SET_UNIT
|
|
, COALESCE(A.SET_UNIT2, '') AS SET_UNIT2
|
|
, COALESCE(A.SET_UNIT3, '') AS SET_UNIT3
|
|
, COALESCE(A.SET_UNIT4, '') AS SET_UNIT4
|
|
FROM APPTB_STRI01 A
|
|
WHERE 1=1
|
|
]]>
|
|
<if test='businessCode != null and businessCode != ""'>
|
|
<![CDATA[
|
|
AND A.BUSINESS_CODE = #{businessCode}
|
|
]]>
|
|
</if>
|
|
<if test='holeCode != null and holeCode != ""'>
|
|
<![CDATA[
|
|
AND A.HOLE_CODE = #{holeCode}
|
|
]]>
|
|
</if>
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND A.SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
<![CDATA[
|
|
ORDER BY A.DEPTH
|
|
]]>
|
|
</select>
|
|
|
|
<insert id="insertTriaxialUsualInfo" parameterType="map">
|
|
INSERT INTO APPTB_STRI01(
|
|
BUSINESS_CODE
|
|
, HOLE_CODE
|
|
, DEPTH
|
|
, SAMPLE_CODE
|
|
, TRI_TYPEOFTEST
|
|
, TRI_TYPEOFCONTROLLEDTEST
|
|
, TRI_NOSTRAIN
|
|
, TRI_PHI_U
|
|
, TRI_CU
|
|
, TRI_REMARK
|
|
, SYS_REG_ID
|
|
, SYS_REG_DT
|
|
, SET_UNIT
|
|
, SET_UNIT2
|
|
, SET_UNIT3
|
|
, SET_UNIT4
|
|
) VALUES (
|
|
#{businessCode}
|
|
, #{holeCode}
|
|
, coalesce(#{depth}::numeric, null)
|
|
, #{sampleCode}
|
|
, #{triTypeoftest}
|
|
, #{triTypeofcontrolledtest}
|
|
, coalesce(#{triNostrain}::numeric, null)
|
|
, coalesce(#{triPhiU}::numeric, null)
|
|
, coalesce(#{triCu}::numeric, null)
|
|
, #{triRemark}
|
|
, #{sysRegId}
|
|
, NOW()
|
|
, #{mUnit}
|
|
, #{mUnit2}
|
|
, #{setUnit3}
|
|
, #{mUnit4}
|
|
)
|
|
</insert>
|
|
|
|
<update id="updateTriaxialUsualInfo">
|
|
<![CDATA[
|
|
UPDATE APPTB_STRI01 SET
|
|
TRI_TYPEOFTEST = #{triTypeoftest},
|
|
TRI_TYPEOFCONTROLLEDTEST = #{triTypeofcontrolledtest},
|
|
TRI_NOSTRAIN = coalesce(#{triNostrain}::numeric, null),
|
|
TRI_PHI_U = coalesce(#{triPhiU}::numeric, null),
|
|
TRI_CU = coalesce(#{triCu}::numeric, null),
|
|
TRI_REMARK = #{triRemark},
|
|
DEPTH = coalesce(#{depth}::numeric, null),
|
|
SET_UNIT = #{mUnit},
|
|
SET_UNIT2 = #{mUnit2},
|
|
SET_UNIT3 = #{setUnit3},
|
|
SET_UNIT4 = #{mUnit4}
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</update>
|
|
|
|
<delete id="deleteTriaxialUsualInfo" parameterType="map">
|
|
DELETE FROM APPTB_STRI01
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
</delete>
|
|
|
|
<!-- 토사 삼축압축 시험 부정보 -->
|
|
<select id="selectTriaxialUsualSubTotalInfo" parameterType="map" resultType="egovMap">
|
|
<![CDATA[
|
|
SELECT
|
|
A.BUSINESS_CODE
|
|
, A.HOLE_CODE
|
|
, A.SAMPLE_CODE
|
|
, A.TRI_DEPTH
|
|
, COALESCE(round(A.TEST_ORDER :: numeric, 2)::TEXT, '') as TEST_ORDER
|
|
, COALESCE(round(A.TRI_W0 :: numeric, 2)::TEXT, '') as TRI_W0
|
|
, COALESCE(round(A.TRI_RD0 :: numeric, 2)::TEXT, '') as TRI_RD0
|
|
, COALESCE(round(A.TRI_S0 :: numeric, 2)::TEXT, '') as TRI_S0
|
|
, COALESCE(round(A.TRI_E0 :: numeric, 2)::TEXT, '') as TRI_E0
|
|
, COALESCE(round(A.TRI_WF :: numeric, 2)::TEXT, '') as TRI_WF
|
|
, COALESCE(round(A.TRI_RDF :: numeric, 2)::TEXT, '') as TRI_RDF
|
|
, COALESCE(round(A.TRI_SF :: numeric, 2)::TEXT, '') as TRI_SF
|
|
, COALESCE(round(A.TRI_EF :: numeric, 2)::TEXT, '') as TRI_EF
|
|
, COALESCE(round(A.TRI_U0 :: numeric, 2)::TEXT, '') as TRI_U0
|
|
, COALESCE(round(A.TRI_SIGMA :: numeric, 2)::TEXT, '') as TRI_SIGMA
|
|
, COALESCE(round(A.TRI_MAXSIGMA :: numeric, 2)::TEXT, '') as TRI_MAXSIGMA
|
|
, COALESCE(round(A.TRI_ULTSIGMA :: numeric, 2)::TEXT, '') as TRI_ULTSIGMA
|
|
, COALESCE(round(A.TRI_D0 :: numeric, 2)::TEXT, '') as TRI_D0
|
|
, COALESCE(round(A.TRI_H0 :: numeric, 2)::TEXT, '') as TRI_H0
|
|
, COALESCE(round(A.TRI_UF :: numeric, 2)::TEXT, '') as TRI_UF
|
|
, COALESCE(A.SET_UNIT, '') AS SET_UNIT
|
|
, COALESCE(A.SET_UNIT2, '') AS SET_UNIT2
|
|
, COALESCE(A.SET_UNIT3, '') AS SET_UNIT3
|
|
, COALESCE(A.SET_UNIT4, '') AS SET_UNIT4
|
|
, COALESCE(A.SET_UNIT5, '') AS SET_UNIT5
|
|
, COALESCE(A.SET_UNIT6, '') AS SET_UNIT6
|
|
, COALESCE(A.SET_UNIT7, '') AS SET_UNIT7
|
|
, COALESCE(A.SET_UNIT8, '') AS SET_UNIT8
|
|
, COALESCE(A.SET_UNIT9, '') AS SET_UNIT9
|
|
, COALESCE(A.SET_UNIT10, '') AS SET_UNIT10
|
|
, COALESCE(A.SET_UNIT11, '') AS SET_UNIT11
|
|
, COALESCE(A.SET_UNIT12, '') AS SET_UNIT12
|
|
, COALESCE(A.SET_UNIT13, '') AS SET_UNIT13
|
|
, COALESCE(A.SET_UNIT14, '') AS SET_UNIT14
|
|
, COALESCE(A.SET_UNIT15, '') AS SET_UNIT15
|
|
, COALESCE(A.SET_UNIT16, '') AS SET_UNIT16
|
|
, COALESCE(A.SET_UNIT17, '') AS SET_UNIT17
|
|
FROM APPTB_STRI02 A
|
|
WHERE 1=1
|
|
]]>
|
|
<if test='businessCode != null and businessCode != ""'>
|
|
<![CDATA[
|
|
AND A.BUSINESS_CODE = #{businessCode}
|
|
]]>
|
|
</if>
|
|
<if test='holeCode != null and holeCode != ""'>
|
|
<![CDATA[
|
|
AND A.HOLE_CODE = #{holeCode}
|
|
]]>
|
|
</if>
|
|
<if test='triTypeoftest != null and triTypeoftest != ""'>
|
|
<![CDATA[
|
|
AND TRI_DEPTH IN (SELECT DEPTH FROM APPTB_STRI01 B
|
|
WHERE tri_typeoftest like #{triTypeoftest} || '%' and business_code = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode})
|
|
]]>
|
|
</if>
|
|
<![CDATA[
|
|
ORDER BY A.SAMPLE_CODE, A.TEST_ORDER
|
|
]]>
|
|
</select>
|
|
|
|
<!-- 토사 삼축압축 시험 부정보 -->
|
|
<select id="selectTriaxialUsualSubInfo" parameterType="map" resultType="egovMap">
|
|
<![CDATA[
|
|
SELECT
|
|
A.BUSINESS_CODE
|
|
, A.HOLE_CODE
|
|
, A.SAMPLE_CODE
|
|
, A.TRI_DEPTH
|
|
, COALESCE(round(A.TEST_ORDER :: numeric, 2)::TEXT, '') as TEST_ORDER
|
|
, COALESCE(round(A.TRI_W0 :: numeric, 2)::TEXT, '') as TRI_W0
|
|
, COALESCE(round(A.TRI_RD0 :: numeric, 2)::TEXT, '') as TRI_RD0
|
|
, COALESCE(round(A.TRI_S0 :: numeric, 2)::TEXT, '') as TRI_S0
|
|
, COALESCE(round(A.TRI_E0 :: numeric, 2)::TEXT, '') as TRI_E0
|
|
, COALESCE(round(A.TRI_WF :: numeric, 2)::TEXT, '') as TRI_WF
|
|
, COALESCE(round(A.TRI_RDF :: numeric, 2)::TEXT, '') as TRI_RDF
|
|
, COALESCE(round(A.TRI_SF :: numeric, 2)::TEXT, '') as TRI_SF
|
|
, COALESCE(round(A.TRI_EF :: numeric, 2)::TEXT, '') as TRI_EF
|
|
, COALESCE(round(A.TRI_U0 :: numeric, 2)::TEXT, '') as TRI_U0
|
|
, COALESCE(round(A.TRI_SIGMA :: numeric, 2)::TEXT, '') as TRI_SIGMA
|
|
, COALESCE(round(A.TRI_MAXSIGMA :: numeric, 2)::TEXT, '') as TRI_MAXSIGMA
|
|
, COALESCE(round(A.TRI_ULTSIGMA :: numeric, 2)::TEXT, '') as TRI_ULTSIGMA
|
|
, COALESCE(round(A.TRI_D0 :: numeric, 2)::TEXT, '') as TRI_D0
|
|
, COALESCE(round(A.TRI_H0 :: numeric, 2)::TEXT, '') as TRI_H0
|
|
, COALESCE(round(A.TRI_UF :: numeric, 2)::text, '') as TRI_UF
|
|
, COALESCE(A.SET_UNIT, '') AS SET_UNIT
|
|
, COALESCE(A.SET_UNIT2, '') AS SET_UNIT2
|
|
, COALESCE(A.SET_UNIT3, '') AS SET_UNIT3
|
|
, COALESCE(A.SET_UNIT4, '') AS SET_UNIT4
|
|
, COALESCE(A.SET_UNIT5, '') AS SET_UNIT5
|
|
, COALESCE(A.SET_UNIT6, '') AS SET_UNIT6
|
|
, COALESCE(A.SET_UNIT7, '') AS SET_UNIT7
|
|
, COALESCE(A.SET_UNIT8, '') AS SET_UNIT8
|
|
, COALESCE(A.SET_UNIT9, '') AS SET_UNIT9
|
|
, COALESCE(A.SET_UNIT10, '') AS SET_UNIT10
|
|
, COALESCE(A.SET_UNIT11, '') AS SET_UNIT11
|
|
, COALESCE(A.SET_UNIT12, '') AS SET_UNIT12
|
|
, COALESCE(A.SET_UNIT13, '') AS SET_UNIT13
|
|
, COALESCE(A.SET_UNIT14, '') AS SET_UNIT14
|
|
, COALESCE(A.SET_UNIT15, '') AS SET_UNIT15
|
|
, COALESCE(A.SET_UNIT16, '') AS SET_UNIT16
|
|
, COALESCE(A.SET_UNIT17, '') AS SET_UNIT17
|
|
FROM APPTB_STRI02 A
|
|
JOIN APPTB_STRI01 B ON B.DEPTH = A.TRI_DEPTH
|
|
WHERE 1=1
|
|
]]>
|
|
<if test='businessCode != null and businessCode != ""'>
|
|
<![CDATA[
|
|
AND A.BUSINESS_CODE = #{businessCode}
|
|
]]>
|
|
</if>
|
|
|
|
<if test='holeCode != null and holeCode != ""'>
|
|
<![CDATA[
|
|
AND A.HOLE_CODE = #{holeCode}
|
|
]]>
|
|
</if>
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND A.SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
<![CDATA[
|
|
ORDER BY A.SAMPLE_CODE, A.TEST_ORDER
|
|
]]>
|
|
</select>
|
|
|
|
<delete id="deleteTriaxialUsualSubInfo" parameterType="map">
|
|
DELETE FROM APPTB_STRI02
|
|
WHERE
|
|
APPTB_STRI02.BUSINESS_CODE = #{businessCode}
|
|
AND APPTB_STRI02.HOLE_CODE = #{holeCode}
|
|
<if test='triTypeoftest != null and triTypeoftest != ""'>
|
|
<![CDATA[
|
|
AND TRI_DEPTH IN (SELECT DEPTH FROM APPTB_STRI01 B
|
|
WHERE tri_typeoftest like #{triTypeoftest} || '%' and business_code = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode})
|
|
]]>
|
|
</if>
|
|
</delete>
|
|
|
|
|
|
<insert id="insertTriaxialUsualSubInfo" parameterType="map">
|
|
INSERT INTO APPTB_STRI02(
|
|
BUSINESS_CODE
|
|
, HOLE_CODE
|
|
, SAMPLE_CODE
|
|
, TEST_ORDER
|
|
, TRI_DEPTH
|
|
, TRI_W0
|
|
, TRI_RD0
|
|
, TRI_S0
|
|
, TRI_E0
|
|
, TRI_WF
|
|
, TRI_RDF
|
|
, TRI_SF
|
|
, TRI_EF
|
|
, TRI_U0
|
|
, TRI_SIGMA
|
|
, TRI_MAXSIGMA
|
|
, TRI_ULTSIGMA
|
|
, TRI_D0
|
|
, TRI_H0
|
|
, TRI_UF
|
|
, sys_reg_id
|
|
, sys_reg_dt
|
|
, SET_UNIT
|
|
, SET_UNIT2
|
|
, SET_UNIT3
|
|
, SET_UNIT4
|
|
, SET_UNIT5
|
|
, SET_UNIT6
|
|
, SET_UNIT7
|
|
, SET_UNIT8
|
|
, SET_UNIT9
|
|
, SET_UNIT10
|
|
, SET_UNIT11
|
|
, SET_UNIT12
|
|
, SET_UNIT13
|
|
, SET_UNIT14
|
|
, SET_UNIT15
|
|
, SET_UNIT16
|
|
, SET_UNIT17
|
|
) VALUES (
|
|
#{businessCode}
|
|
, #{holeCode}
|
|
, #{sampleCode}
|
|
, #{testOrder}
|
|
, coalesce(#{triDepth}::numeric, null)
|
|
, coalesce(#{triW0}::numeric, null)
|
|
, coalesce(#{triRd0}::numeric, null)
|
|
, coalesce(#{triS0}::numeric, null)
|
|
, coalesce(#{triE0}::numeric, null)
|
|
, coalesce(#{triWf}::numeric, null)
|
|
, coalesce(#{triRdf}::numeric, null)
|
|
, coalesce(#{triSf}::numeric, null)
|
|
, coalesce(#{triEf}::numeric, null)
|
|
, coalesce(#{triU0}::numeric, null)
|
|
, coalesce(#{triSigma}::numeric, null)
|
|
, coalesce(#{triMaxsigma}::numeric, null)
|
|
, coalesce(#{triUltsigma}::numeric, null)
|
|
, coalesce(#{triD0}::numeric, null)
|
|
, coalesce(#{triH0}::numeric, null)
|
|
, coalesce(#{triUf}::numeric, null)
|
|
, #{sysRegId}
|
|
, NOW()
|
|
, #{mUnit}
|
|
, #{setUnit2}
|
|
, #{mUnit3}
|
|
, #{setUnit4}
|
|
, #{mUnit5}
|
|
, #{setUnit6}
|
|
, #{mUnit7}
|
|
, #{setUnit8}
|
|
, #{mUnit9}
|
|
, #{setUnit10}
|
|
, #{mUnit11}
|
|
, #{setUnit12}
|
|
, #{mUnit13}
|
|
, #{mUnit14}
|
|
, #{mUnit15}
|
|
, #{setUnit16}
|
|
, #{mUnit17}
|
|
)
|
|
</insert>
|
|
|
|
<!-- 토사 공진주 시험정보 -->
|
|
<select id="selectResonantUsualInfo" parameterType="map" resultType="egovMap">
|
|
<![CDATA[
|
|
SELECT
|
|
A.BUSINESS_CODE
|
|
, A.HOLE_CODE
|
|
, A.SAMPLE_CODE
|
|
, COALESCE(ROUND(A.SUB_ORDER :: numeric, 2), 0) as SUB_ORDER
|
|
, COALESCE(ROUND(A.RC_DEPTH_FROM :: NUMERIC, 2)::TEXT, '') AS RC_DEPTH_FROM
|
|
, COALESCE(ROUND(A.RC_DEPTH_TO :: NUMERIC, 2)::text, '') AS RC_DEPTH_TO
|
|
, COALESCE(ROUND(A.RC_DENSITY_IN_SITU :: NUMERIC, 2)::text, '') AS RC_DENSITY_IN_SITU
|
|
, COALESCE(ROUND(A.RC_DRY_UNIT_WEIGHT :: NUMERIC, 2)::text, '') AS RC_DRY_UNIT_WEIGHT
|
|
, COALESCE(ROUND(A.RC_MOISTURE_CONTENT :: NUMERIC, 2)::text, '') AS RC_MOISTURE_CONTENT
|
|
, COALESCE(ROUND(A.RC_RESTRAINED_PRESSURE :: NUMERIC, 2)::text, '') AS RC_RESTRAINED_PRESSURE
|
|
, COALESCE(A.RC_REMARK, '') AS RC_REMARK
|
|
, COALESCE(A.SET_UNIT, '') AS SET_UNIT
|
|
, COALESCE(A.SET_UNIT2, '') AS SET_UNIT2
|
|
, COALESCE(A.SET_UNIT3, '') AS SET_UNIT3
|
|
, COALESCE(A.SET_UNIT4, '') AS SET_UNIT4
|
|
, COALESCE(A.SET_UNIT5, '') AS SET_UNIT5
|
|
, COALESCE(A.SET_UNIT6, '') AS SET_UNIT6
|
|
, COALESCE(A.SET_UNIT7, '') AS SET_UNIT7
|
|
, COALESCE(A.SET_UNIT8, '') AS SET_UNIT8
|
|
FROM APPTB_RESO01 A
|
|
WHERE 1=1
|
|
]]>
|
|
<if test='businessCode != null and businessCode != ""'>
|
|
<![CDATA[
|
|
AND A.BUSINESS_CODE = #{businessCode}
|
|
]]>
|
|
</if>
|
|
<if test='holeCode != null and holeCode != ""'>
|
|
<![CDATA[
|
|
AND A.HOLE_CODE = #{holeCode}
|
|
]]>
|
|
</if>
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND A.SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
<if test='subOrder != null and subOrder != ""'>
|
|
<![CDATA[
|
|
AND A.SUB_ORDER = #{subOrder}
|
|
]]>
|
|
</if>
|
|
<![CDATA[
|
|
ORDER BY A.SAMPLE_CODE
|
|
]]>
|
|
</select>
|
|
|
|
<insert id="insertResonantUsualInfo" parameterType="map">
|
|
INSERT INTO APPTB_RESO01(
|
|
BUSINESS_CODE
|
|
, HOLE_CODE
|
|
, SAMPLE_CODE
|
|
, SUB_ORDER
|
|
, RC_DEPTH_FROM
|
|
, RC_DEPTH_TO
|
|
, RC_DENSITY_IN_SITU
|
|
, RC_DRY_UNIT_WEIGHT
|
|
, RC_MOISTURE_CONTENT
|
|
, RC_RESTRAINED_PRESSURE
|
|
, RC_REMARK
|
|
, SYS_REG_ID
|
|
, SYS_REG_DT
|
|
, SET_UNIT
|
|
, SET_UNIT2
|
|
, SET_UNIT3
|
|
, SET_UNIT4
|
|
, SET_UNIT5
|
|
, SET_UNIT6
|
|
, SET_UNIT7
|
|
, SET_UNIT8
|
|
) VALUES (
|
|
#{businessCode}
|
|
, #{holeCode}
|
|
, #{sampleCode}
|
|
, #{subOrder}
|
|
, coalesce(#{rcDepthFrom}::numeric, null)
|
|
, coalesce(#{rcDepthTo}::numeric, null)
|
|
, coalesce(#{rcDensityInSitu}::numeric, null)
|
|
, coalesce(#{rcDryUnitWeight}::numeric, null)
|
|
, coalesce(#{rcMoistureContent}::numeric, null)
|
|
, coalesce(#{rcRestrainedPressure}::numeric, null)
|
|
, #{rcRemark}
|
|
, #{sysRegId}
|
|
, NOW()
|
|
, #{mUnit}
|
|
, #{mUnit2}
|
|
, #{setUnit3}
|
|
, #{mUnit4}
|
|
, #{setUnit5}
|
|
, #{mUnit6}
|
|
, #{setUnit7}
|
|
, #{mUnit8}
|
|
)
|
|
</insert>
|
|
|
|
<update id="updateResonantUsualInfo">
|
|
<![CDATA[
|
|
UPDATE APPTB_RESO01 SET
|
|
RC_DEPTH_FROM = #{rcDepthFrom},
|
|
RC_DEPTH_TO = coalesce(#{rcDepthTo}::numeric, null),
|
|
RC_DENSITY_IN_SITU = coalesce(#{rcDensityInSitu}::numeric, null),
|
|
RC_DRY_UNIT_WEIGHT = coalesce(#{rcDryUnitWeight}::numeric, null),
|
|
RC_MOISTURE_CONTENT = coalesce(#{rcMoistureContent}::numeric, null),
|
|
RC_RESTRAINED_PRESSURE = coalesce(#{rcRestrainedPressure}::numeric, null),
|
|
RC_REMARK = #{rcRemark},
|
|
SET_UNIT = #{mUnit},
|
|
SET_UNIT2 = #{mUnit2},
|
|
SET_UNIT3 = #{setUnit3},
|
|
SET_UNIT4 = #{mUnit4},
|
|
SET_UNIT5 = #{setUnit5},
|
|
SET_UNIT6 = #{mUnit6},
|
|
SET_UNIT7 = #{setUnit7},
|
|
SET_UNIT8 = #{mUnit8}
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</update>
|
|
|
|
<delete id="deleteResonantUsualInfo" parameterType="map">
|
|
DELETE FROM APPTB_RESO01
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
</delete>
|
|
|
|
<!-- 토사 공진주 시험 부정보 -->
|
|
<select id="selectResonantUsualSubInfo" parameterType="map" resultType="egovMap">
|
|
<![CDATA[
|
|
SELECT
|
|
A.BUSINESS_CODE
|
|
, A.HOLE_CODE
|
|
, A.SAMPLE_CODE
|
|
, COALESCE(round(A.SUB_ORDER :: numeric, 2)::TEXT, '') as SUB_ORDER
|
|
, COALESCE(round(A.RC_SHEAR_STRAIN :: numeric, 6)::TEXT, '') as RC_SHEAR_STRAIN
|
|
, COALESCE(round(A.RC_SHEAR_FACTOR :: numeric, 2)::TEXT, '') as RC_SHEAR_FACTOR
|
|
, COALESCE(round(A.RC_SHEAR_VELOCITY :: numeric, 2)::TEXT, '') as RC_SHEAR_VELOCITY
|
|
, COALESCE(round(A.RC_REGULAR_SHEAR_MODULUS :: numeric, 2)::TEXT, '') as RC_REGULAR_SHEAR_MODULUS
|
|
, COALESCE(round(A.RC_DAMPED_RATIO :: numeric, 2)::TEXT, '') as RC_DAMPED_RATIO
|
|
, COALESCE(A.DEPTH::TEXT, '') as DEPTH
|
|
, COALESCE(A.SET_UNIT, '') as SET_UNIT
|
|
, COALESCE(A.SET_UNIT2, '') as SET_UNIT2
|
|
, COALESCE(A.SET_UNIT3, '') as SET_UNIT3
|
|
, COALESCE(A.REMARK, '') as REMARK
|
|
FROM APPTB_RESO02 A
|
|
WHERE 1=1
|
|
]]>
|
|
<if test='businessCode != null and businessCode != ""'>
|
|
<![CDATA[
|
|
AND A.BUSINESS_CODE = #{businessCode}
|
|
]]>
|
|
</if>
|
|
<if test='holeCode != null and holeCode != ""'>
|
|
<![CDATA[
|
|
AND A.HOLE_CODE = #{holeCode}
|
|
]]>
|
|
</if>
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND A.SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
<if test='subOrder != null and subOrder != ""'>
|
|
<![CDATA[
|
|
AND A.SUB_ORDER = #{subOrder}::numeric
|
|
]]>
|
|
</if>
|
|
<![CDATA[
|
|
ORDER BY A.SAMPLE_CODE
|
|
]]>
|
|
</select>
|
|
|
|
<!-- 토사 공진주 시험 전체 부정보 -->
|
|
<select id="selectResonantUsualSubTotalInfo" parameterType="map" resultType="egovMap">
|
|
<![CDATA[
|
|
SELECT
|
|
A.BUSINESS_CODE
|
|
, A.HOLE_CODE
|
|
, A.SAMPLE_CODE
|
|
, COALESCE(round(A.SUB_ORDER :: numeric, 2)::TEXT, '') as SUB_ORDER
|
|
, COALESCE(round(A.RC_SHEAR_STRAIN :: numeric, 2)::TEXT, '') as RC_SHEAR_STRAIN
|
|
, COALESCE(round(A.RC_SHEAR_FACTOR :: numeric, 2)::TEXT, '') as RC_SHEAR_FACTOR
|
|
, COALESCE(round(A.RC_SHEAR_VELOCITY :: numeric, 2)::TEXT, '') as RC_SHEAR_VELOCITY
|
|
, COALESCE(round(A.RC_REGULAR_SHEAR_MODULUS :: numeric, 2)::TEXT, '') as RC_REGULAR_SHEAR_MODULUS
|
|
, COALESCE(round(A.RC_DAMPED_RATIO :: numeric, 2)::TEXT, '') as RC_DAMPED_RATIO
|
|
, COALESCE(A.DEPTH::TEXT, '') as DEPTH
|
|
, COALESCE(A.SET_UNIT, '') as SET_UNIT
|
|
, COALESCE(A.SET_UNIT2, '') as SET_UNIT2
|
|
, COALESCE(A.SET_UNIT3, '') as SET_UNIT3
|
|
, COALESCE(A.REMARK, '') as REMARK
|
|
FROM APPTB_RESO02 A
|
|
WHERE 1=1
|
|
]]>
|
|
<if test='businessCode != null and businessCode != ""'>
|
|
<![CDATA[
|
|
AND A.BUSINESS_CODE::VARCHAR = #{businessCode}
|
|
]]>
|
|
</if>
|
|
<if test='holeCode != null and holeCode != ""'>
|
|
<![CDATA[
|
|
AND A.HOLE_CODE::VARCHAR = #{holeCode}
|
|
]]>
|
|
</if>
|
|
</select>
|
|
|
|
<delete id="deleteResonantUsualSubInfo" parameterType="map">
|
|
DELETE FROM APPTB_RESO02
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
AND SUB_ORDER = #{subOrder}::INT
|
|
</delete>
|
|
|
|
<insert id="insertResonantUsualSubInfo" parameterType="map">
|
|
INSERT INTO APPTB_RESO02(
|
|
BUSINESS_CODE
|
|
, HOLE_CODE
|
|
, SAMPLE_CODE
|
|
, RC_SHEAR_STRAIN
|
|
, RC_SHEAR_FACTOR
|
|
, RC_SHEAR_VELOCITY
|
|
, RC_REGULAR_SHEAR_MODULUS
|
|
, RC_DAMPED_RATIO
|
|
, sys_reg_id
|
|
, sys_reg_dt
|
|
, sub_order
|
|
, DEPTH
|
|
, SET_UNIT
|
|
, SET_UNIT2
|
|
, SET_UNIT3
|
|
, REMARK
|
|
) VALUES (
|
|
#{businessCode}
|
|
, #{holeCode}
|
|
, #{sampleCode}
|
|
, COALESCE(#{rcShearStrain}::numeric, null)
|
|
, COALESCE(#{rcShearFactor}::numeric, null)
|
|
, COALESCE(#{rcShearVelocity}::numeric, null)
|
|
, COALESCE(#{rcRegularShearModulus}::numeric, null)
|
|
, COALESCE(#{rcDampedRatio}::numeric, null)
|
|
, #{sysRegId}
|
|
, NOW()
|
|
, #{subOrder}
|
|
, COALESCE(#{depth}::numeric, null)
|
|
, #{mUnit}
|
|
, #{setUnit2}
|
|
, #{mUnit3}
|
|
, COALESCE(#{remark}, '')
|
|
)
|
|
</insert>
|
|
|
|
<!-- 토사 반복삼축 시험정보 -->
|
|
<select id="selectRepeatedTriaxialUsualInfo" parameterType="map" resultType="egovMap">
|
|
<![CDATA[
|
|
SELECT
|
|
A.BUSINESS_CODE
|
|
, A.HOLE_CODE
|
|
, A.SAMPLE_CODE
|
|
, COALESCE(round(A.SUB_ORDER :: numeric, 2)::TEXT, '') as SUB_ORDER
|
|
, COALESCE(ROUND(A.RT_DEPTH_FROM :: NUMERIC, 2)::TEXT, '') AS RT_DEPTH_FROM
|
|
, COALESCE(ROUND(A.RT_DEPTH_TO :: NUMERIC, 2)::TEXT, '') AS RT_DEPTH_TO
|
|
, COALESCE(ROUND(A.RT_RELATIVE_DENSITY :: NUMERIC, 2)::TEXT, '') AS RT_RELATIVE_DENSITY
|
|
, COALESCE(ROUND(A.RT_DRYUNIT_WEIGHT :: NUMERIC, 2)::TEXT, '') AS RT_DRYUNIT_WEIGHT
|
|
, COALESCE(ROUND(A.RT_EFFECTIVE_PRESSURE :: NUMERIC, 2)::TEXT, '') AS RT_EFFECTIVE_PRESSURE
|
|
, COALESCE(ROUND(A.RT_CORRECTION_FACTOR :: NUMERIC, 2)::TEXT, '') AS RT_CORRECTION_FACTOR
|
|
, COALESCE(ROUND(A.RT_ARSPRT :: NUMERIC, 2)::TEXT, '') AS RT_ARSPRT
|
|
, COALESCE(A.SET_UNIT, '') AS SET_UNIT
|
|
, COALESCE(A.SET_UNIT2, '') AS SET_UNIT2
|
|
, COALESCE(A.SET_UNIT3, '') AS SET_UNIT3
|
|
, COALESCE(A.SET_UNIT4, '') AS SET_UNIT4
|
|
, COALESCE(A.SET_UNIT5, '') AS SET_UNIT5
|
|
, COALESCE(A.SET_UNIT6, '') AS SET_UNIT6
|
|
FROM APPTB_RSTRI01 A
|
|
WHERE 1=1
|
|
]]>
|
|
<if test='businessCode != null and businessCode != ""'>
|
|
<![CDATA[
|
|
AND A.BUSINESS_CODE = #{businessCode}
|
|
]]>
|
|
</if>
|
|
<if test='holeCode != null and holeCode != ""'>
|
|
<![CDATA[
|
|
AND A.HOLE_CODE = #{holeCode}
|
|
]]>
|
|
</if>
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND A.SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
<if test='subOrder != null and subOrder != ""'>
|
|
<![CDATA[
|
|
AND A.SUB_ORDER = #{subOrder}
|
|
]]>
|
|
</if>
|
|
<![CDATA[
|
|
ORDER BY A.SAMPLE_CODE
|
|
]]>
|
|
</select>
|
|
|
|
<insert id="insertRepeatedTriaxialUsualInfo" parameterType="map">
|
|
INSERT INTO APPTB_RSTRI01(
|
|
BUSINESS_CODE
|
|
, HOLE_CODE
|
|
, SAMPLE_CODE
|
|
, SUB_ORDER
|
|
, RT_DEPTH_FROM
|
|
, RT_DEPTH_TO
|
|
, RT_RELATIVE_DENSITY
|
|
, RT_DRYUNIT_WEIGHT
|
|
, RT_EFFECTIVE_PRESSURE
|
|
, RT_CORRECTION_FACTOR
|
|
, RT_ARSPRT
|
|
, SYS_REG_ID
|
|
, SYS_REG_DT
|
|
, SET_UNIT
|
|
, SET_UNIT2
|
|
, SET_UNIT3
|
|
, SET_UNIT4
|
|
, SET_UNIT5
|
|
, SET_UNIT6
|
|
) VALUES (
|
|
#{businessCode}
|
|
, #{holeCode}
|
|
, #{sampleCode}
|
|
, COALESCE(#{subOrder}::numeric, null)
|
|
, COALESCE(#{rtDepthFrom}::numeric, null)
|
|
, COALESCE(#{rtDepthTo}::numeric, null)
|
|
, COALESCE(#{rtRelativeDensity}::numeric, null)
|
|
, COALESCE(#{rtDryunitWeight}::numeric, null)
|
|
, COALESCE(#{rtEffectivePressure}::numeric, null)
|
|
, COALESCE(#{rtCorrectionFactor}::numeric, null)
|
|
, COALESCE(#{rtArsprt}::numeric, null)
|
|
, #{sysRegId}
|
|
, NOW()
|
|
, #{mUnit}
|
|
, #{mUnit2}
|
|
, #{setUnit3}
|
|
, #{mUnit4}
|
|
, #{setUnit5}
|
|
, #{mUnit6}
|
|
)
|
|
</insert>
|
|
|
|
<update id="updateRepeatedTriaxialUsualInfo">
|
|
<![CDATA[
|
|
UPDATE APPTB_RSTRI01 SET
|
|
RT_DEPTH_FROM = COALESCE(#{rtDepthFrom}::numeric, null),
|
|
RT_DEPTH_TO = COALESCE(#{rtDepthTo}::numeric, null),
|
|
RT_RELATIVE_DENSITY = COALESCE(#{rtRelativeDensity}::numeric, null),
|
|
RT_DRYUNIT_WEIGHT = COALESCE(#{rtDryunitWeight}::numeric, null),
|
|
RT_EFFECTIVE_PRESSURE = COALESCE(#{rtEffectivePressure}::numeric, null),
|
|
RT_CORRECTION_FACTOR = COALESCE(#{rtCorrectionFactor}::numeric, null),
|
|
RT_ARSPRT = COALESCE(#{rtArsprt},
|
|
SET_UNIT = #{mUnit},
|
|
SET_UNIT2 = #{mUnit2},
|
|
SET_UNIT3 = #{setUnit3},
|
|
SET_UNIT4 = #{mUnit4},
|
|
SET_UNIT5 = #{setUnit5},
|
|
SET_UNIT6 = #{mUnit6}
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</update>
|
|
|
|
<delete id="deleteRepeatedTriaxialUsualInfo" parameterType="map">
|
|
DELETE FROM APPTB_RSTRI01
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
AND SUB_ORDER = #{subOrder}::INT
|
|
</delete>
|
|
|
|
<!-- 토사 반복삼축 시험 부정보 -->
|
|
<select id="selectRepeatedTriaxialUsualSubInfo" parameterType="map" resultType="egovMap">
|
|
<![CDATA[
|
|
SELECT
|
|
A.BUSINESS_CODE
|
|
, A.HOLE_CODE
|
|
, A.SAMPLE_CODE
|
|
, COALESCE(round(A.SUB_ORDER :: numeric, 2)::TEXT, '') as SUB_ORDER
|
|
, COALESCE(round(A.TEST_ORDER :: numeric, 2)::TEXT, '') as TEST_ORDER
|
|
, COALESCE(round(A.RT_RSPR :: numeric, 2)::TEXT, '') as RT_RSPR
|
|
, COALESCE(round(A.RT_ARSPR :: numeric, 2)::TEXT, '') as RT_ARSPR
|
|
, COALESCE(round(A.RT_LNUM :: numeric, 2)::TEXT, '') as RT_LNUM
|
|
FROM APPTB_RSTRI02 A
|
|
WHERE 1=1
|
|
]]>
|
|
<if test='businessCode != null and businessCode != ""'>
|
|
<![CDATA[
|
|
AND A.BUSINESS_CODE = #{businessCode}
|
|
]]>
|
|
</if>
|
|
<if test='holeCode != null and holeCode != ""'>
|
|
<![CDATA[
|
|
AND A.HOLE_CODE = #{holeCode}
|
|
]]>
|
|
</if>
|
|
<if test='sampleCode != null and sampleCode != ""'>
|
|
<![CDATA[
|
|
AND A.SAMPLE_CODE = #{sampleCode}
|
|
]]>
|
|
</if>
|
|
<if test='subOrder != null and subOrder != ""'>
|
|
<![CDATA[
|
|
AND A.SUB_ORDER = #{subOrder}::numeric
|
|
]]>
|
|
</if>
|
|
<![CDATA[
|
|
ORDER BY A.SAMPLE_CODE, A.TEST_ORDER
|
|
]]>
|
|
</select>
|
|
|
|
<delete id="deleteRepeatedTriaxialUsualSubInfo" parameterType="map">
|
|
DELETE FROM APPTB_RSTRI02
|
|
WHERE BUSINESS_CODE = #{businessCode}
|
|
AND HOLE_CODE = #{holeCode}
|
|
AND SAMPLE_CODE = #{sampleCode}
|
|
AND SUB_ORDER = #{subOrder}::INT
|
|
</delete>
|
|
|
|
<insert id="insertRepeatedTriaxialUsualSubInfo" parameterType="map">
|
|
INSERT INTO APPTB_RSTRI02(
|
|
BUSINESS_CODE
|
|
, HOLE_CODE
|
|
, SAMPLE_CODE
|
|
, SUB_ORDER
|
|
, TEST_ORDER
|
|
, RT_RSPR
|
|
, RT_ARSPR
|
|
, RT_LNUM
|
|
, sys_reg_id
|
|
, sys_reg_dt
|
|
) VALUES (
|
|
#{businessCode}
|
|
, #{holeCode}
|
|
, #{sampleCode}
|
|
, coalesce(#{subOrder}::numeric, null)
|
|
, coalesce(#{testOrder}::numeric, null)
|
|
, coalesce(#{rtRspr}::numeric, null)
|
|
, coalesce(#{rtArspr}::numeric, null)
|
|
, coalesce(#{rtLnum}::numeric, null)
|
|
, #{sysRegId}
|
|
, NOW()
|
|
)
|
|
</insert>
|
|
|
|
</mapper>
|