123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- <?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.zhyc.xps.goaf.mapper.GoafBaseInfoMapper">
- <resultMap id="GoafBaseInfoMapper" type="com.zhyc.xps.goaf.entity.GoafBaseInfo">
- <id column="goaf_id" property="goafId" jdbcType="BIGINT"/>
- <result column="oc_id" property="ocId" jdbcType="BIGINT"/>
- <result column="goaf_orebelt" property="goafOrebelt" jdbcType="BIGINT"/>
- <result column="goaf_orebody" property="goafOrebody" jdbcType="BIGINT"/>
- <result column="goaf_oreheight" property="goafOreheight" jdbcType="BIGINT"/>
- <result column="goaf_name" property="goafName" jdbcType="VARCHAR"/>
- <result column="goaf_avex_area" property="goafAvexArea" jdbcType="BIGINT"/>
- <result column="goaf_avin_width" property="goafAvinWidth" jdbcType="DECIMAL"/>
- <result column="goaf_avex_height" property="goafAvexHeight" jdbcType="DECIMAL"/>
- <result column="goaf_void_volume" property="goafVoidVolume" jdbcType="BIGINT"/>
- <result column="goaf_key_trend" property="goafKeyTrend" jdbcType="BIGINT"/>
- <result column="goaf_key_dipangle" property="goafKeyDipangle" jdbcType="BIGINT"/>
- <result column="goaf_roofpillar_thickness" property="goafRoofpillarThickness" jdbcType="DECIMAL"/>
- <result column="goaf_incoav_thickness" property="goafIncoavThickness" jdbcType="DECIMAL"/>
- <result column="goaf_exp_location" property="goafExpLocation" jdbcType="VARCHAR"/>
- <result column="goaf_rock_lithology" property="goafRockLithology" jdbcType="VARCHAR"/>
- <result column="goaf_rock_stability" property="goafRockStability" jdbcType="VARCHAR"/>
- <result column="goaf_formation_time" property="goafFormationTime" jdbcType="TIMESTAMP"/>
- <result column="goaf_canfill_volume" property="goafCanfillVolume" jdbcType="DECIMAL"/>
- <result column="goaf_remain_volume" property="goafRemainVolume" jdbcType="DECIMAL"/>
- <result column="goaf_fill_method" property="goafFillMethod" jdbcType="BIGINT"/>
- <result column="goaf_is_fill" property="goafIsFill" jdbcType="BIGINT"/>
- <result column="goaf_info_remak" property="goafInfoRemak" jdbcType="VARCHAR"/>
- <result column="goaf_qr_code" property="goafQrCode" jdbcType="VARCHAR"/>
- <result column="goaf_checklist_id" property="goafChecklistId" jdbcType="BIGINT"/>
- <result column="goaf_checklist_title" property="goafChecklistTitle" jdbcType="VARCHAR"/>
- <result column="goaf_checklist_isbind" property="goafChecklistIsbind" jdbcType="BIGINT"/>
- </resultMap>
- <select id="getByList" parameterType="java.util.Map" resultMap="GoafBaseInfoMapper">
- SELECT *
- FROM goaf_baseinfo
- WHERE oc_id = #{ocId ,jdbcType=BIGINT}
- <if test="goafOrebelt !=null">
- AND goaf_orebelt = #{goafOrebelt ,jdbcType=BIGINT}
- </if>
- <if test="goafOrebody !=null">
- AND goaf_orebody = #{goafOrebody ,jdbcType=BIGINT}
- </if>
- <if test="goafOreheight !=null">
- AND goaf_oreheight = #{goafOreheight ,jdbcType=BIGINT}
- </if>
- <if test="goafName !=null and goafName != ''">
- AND goaf_name = #{goafName ,jdbcType=VARCHAR}
- </if>
- <if test="goafQrCode !=null and goafQrCode != ''">
- AND goaf_qr_code = #{goafQrCode ,jdbcType=VARCHAR}
- </if>
- </select>
- <!--分页查询-->
- <select id="getByPage" parameterType="java.util.Map" resultMap="GoafBaseInfoMapper">
- SELECT *
- FROM goaf_baseinfo
- WHERE oc_id = #{ocId ,jdbcType=BIGINT}
- <if test="goafOrebelt !=null">
- AND goaf_orebelt = #{goafOrebelt ,jdbcType=BIGINT}
- </if>
- <if test="goafOrebody !=null">
- AND goaf_orebody = #{goafOrebody ,jdbcType=BIGINT}
- </if>
- <if test="goafOreheight !=null">
- AND goaf_oreheight = #{goafOreheight ,jdbcType=BIGINT}
- </if>
- <if test="goafName !=null and goafName != ''">
- AND goaf_name = #{goafName ,jdbcType=VARCHAR}
- </if>
- <if test="goafQrCode !=null and goafQrCode != ''">
- AND goaf_qr_code = #{goafQrCode ,jdbcType=VARCHAR}
- </if>
- </select>
- <select id="getBygoafId" resultMap="GoafBaseInfoMapper">
- SELECT *
- FROM goaf_baseinfo
- WHERE goaf_id = #{goafId, jdbcType=BIGINT}
- </select>
- <select id="getBygoafQr" resultMap="GoafBaseInfoMapper">
- SELECT *
- FROM goaf_baseinfo
- WHERE goaf_qr_code = #{goafQrCode ,jdbcType=VARCHAR}
- </select>
- <insert id="create" parameterType="com.zhyc.xps.goaf.entity.GoafBaseInfo">
- insert into goaf_baseinfo
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="goafId != null">
- goaf_id,
- </if>
- <if test="ocId != null">
- oc_id,
- </if>
- <if test="goafOrebelt != null">
- goaf_orebelt,
- </if>
- <if test="goafOrebody != null">
- goaf_orebody,
- </if>
- <if test="goafOreheight != null">
- goaf_oreheight,
- </if>
- <if test="goafName != null and goafName != ''">
- goaf_name,
- </if>
- <if test="goafAvexArea != null">
- goaf_avex_area,
- </if>
- <if test="goafAvinWidth != null">
- goaf_avin_width,
- </if>
- <if test="goafAvexHeight != null">
- goaf_avex_height,
- </if>
- <if test="goafVoidVolume != null">
- goaf_void_volume,
- </if>
- <if test="goafKeyTrend != null">
- goaf_key_trend,
- </if>
- <if test="goafKeyDipangle != null">
- goaf_key_dipangle,
- </if>
- <if test="goafRoofpillarThickness != null">
- goaf_roofpillar_thickness,
- </if>
- <if test="goafIncoavThickness != null">
- goaf_incoav_thickness,
- </if>
- <if test="goafExpLocation != null and goafExpLocation != ''">
- goaf_exp_location,
- </if>
- <if test="goafRockLithology != null and goafRockLithology != ''">
- goaf_rock_lithology,
- </if>
- <if test="goafRockStability != null and goafRockStability != ''">
- goaf_rock_stability,
- </if>
- <if test="goafFormationTime != null">
- goaf_formation_time,
- </if>
- <if test="goafCanfillVolume != null">
- goaf_canfill_volume,
- </if>
- <if test="goafRemainVolume != null">
- goaf_remain_volume,
- </if>
- <if test="goafFillMethod != null">
- goaf_fill_method,
- </if>
- <if test="goafIsFill != null">
- goaf_is_fill,
- </if>
- <if test="goafInfoRemak != null and goafInfoRemak != ''">
- goaf_info_remak,
- </if>
- <if test="goafQrCode != null and goafQrCode != ''">
- goaf_qr_code,
- </if>
- <if test="goafChecklistId != null">
- goaf_checklist_id,
- </if>
- <if test="goafChecklistTitle != null and goafChecklistTitle != ''">
- goaf_checklist_title,
- </if>
- <if test="goafChecklistIsbind != null">
- goaf_checklist_isbind,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="goafId != null">
- #{goafId, jdbcType=BIGINT},
- </if>
- <if test="ocId != null">
- #{ocId, jdbcType=BIGINT},
- </if>
- <if test="goafOrebelt != null">
- #{goafOrebelt, jdbcType=BIGINT},
- </if>
- <if test="goafOrebody != null">
- #{goafOrebody, jdbcType=BIGINT},
- </if>
- <if test="goafOreheight != null">
- #{goafOreheight, jdbcType=BIGINT},
- </if>
- <if test="goafName != null and goafName != ''">
- #{goafName, jdbcType=VARCHAR},
- </if>
- <if test="goafAvexArea != null">
- #{goafAvexArea, jdbcType=BIGINT},
- </if>
- <if test="goafAvinWidth != null">
- #{goafAvinWidth, jdbcType=DECIMAL},
- </if>
- <if test="goafAvexHeight != null">
- #{goafAvexHeight, jdbcType=DECIMAL},
- </if>
- <if test="goafVoidVolume != null">
- #{goafVoidVolume, jdbcType=BIGINT},
- </if>
- <if test="goafKeyTrend != null">
- #{goafKeyTrend, jdbcType=BIGINT},
- </if>
- <if test="goafKeyDipangle != null">
- #{goafKeyDipangle, jdbcType=BIGINT},
- </if>
- <if test="goafRoofpillarThickness != null">
- #{goafRoofpillarThickness, jdbcType=DECIMAL},
- </if>
- <if test="goafIncoavThickness != null">
- #{goafIncoavThickness, jdbcType=DECIMAL},
- </if>
- <if test="goafExpLocation != null and goafExpLocation != ''">
- #{goafExpLocation, jdbcType=VARCHAR},
- </if>
- <if test="goafRockLithology != null and goafRockLithology != ''">
- #{goafRockLithology, jdbcType=VARCHAR},
- </if>
- <if test="goafRockStability != null and goafRockStability != ''">
- #{goafRockStability, jdbcType=VARCHAR},
- </if>
- <if test="goafFormationTime != null">
- #{goafFormationTime, jdbcType=TIMESTAMP},
- </if>
- <if test="goafCanfillVolume != null">
- #{goafCanfillVolume, jdbcType=DECIMAL},
- </if>
- <if test="goafRemainVolume != null">
- #{goafRemainVolume, jdbcType=DECIMAL},
- </if>
- <if test="goafFillMethod != null">
- #{goafFillMethod, jdbcType=BIGINT},
- </if>
- <if test="goafIsFill != null">
- #{goafIsFill, jdbcType=BIGINT},
- </if>
- <if test="goafInfoRemak != null and goafInfoRemak != ''">
- #{goafInfoRemak, jdbcType=VARCHAR},
- </if>
- <if test="goafQrCode != null and goafQrCode != ''">
- #{goafQrCode, jdbcType=VARCHAR},
- </if>
- <if test="goafChecklistId != null">
- #{goafChecklistId, jdbcType=BIGINT},
- </if>
- <if test="goafChecklistTitle != null and goafChecklistTitle != ''">
- #{goafChecklistTitle, jdbcType=VARCHAR},
- </if>
- <if test="goafChecklistIsbind != null">
- #{goafChecklistIsbind, jdbcType=BIGINT},
- </if>
- </trim>
- </insert>
- <!--Update更新-->
- <update id="update" parameterType="com.zhyc.xps.goaf.entity.GoafBaseInfo">
- UPDATE goaf_baseinfo
- <trim suffixOverrides=",">
- <set>
- <if test="goafOrebelt != null">
- goaf_orebelt = #{goafOrebelt, jdbcType=BIGINT},
- </if>
- <if test="goafOrebody != null">
- goaf_orebody = #{goafOrebody, jdbcType=BIGINT},
- </if>
- <if test="goafOreheight != null">
- goaf_oreheight = #{goafOreheight, jdbcType=BIGINT},
- </if>
- <if test="goafName != null and goafName != ''">
- goaf_name = #{goafName, jdbcType=VARCHAR},
- </if>
- <if test="goafAvexArea != null">
- goaf_avex_area = #{goafAvexArea, jdbcType=BIGINT},
- </if>
- <if test="goafAvinWidth != null">
- goaf_avin_width = #{goafAvinWidth, jdbcType=BIGINT},
- </if>
- <if test="goafAvexHeight != null">
- goaf_avex_height = #{goafAvexHeight, jdbcType=BIGINT},
- </if>
- <if test="goafVoidVolume != null">
- goaf_void_volume = #{goafVoidVolume, jdbcType=BIGINT},
- </if>
- <if test="goafKeyTrend != null">
- goaf_key_trend = #{goafKeyTrend, jdbcType=BIGINT},
- </if>
- <if test="goafKeyDipangle != null">
- goaf_key_dipangle = #{goafKeyDipangle, jdbcType=BIGINT},
- </if>
- <if test="goafRoofpillarThickness != null">
- goaf_roofpillar_thickness = #{goafRoofpillarThickness, jdbcType=BIGINT},
- </if>
- <if test="goafIncoavThickness != null">
- goaf_incoav_thickness = #{goafIncoavThickness, jdbcType=BIGINT},
- </if>
- <if test="goafExpLocation != null and goafExpLocation != ''">
- goaf_exp_location = #{goafExpLocation, jdbcType=VARCHAR},
- </if>
- <if test="goafRockLithology != null and goafRockLithology != ''">
- goaf_rock_lithology = #{goafRockLithology, jdbcType=VARCHAR},
- </if>
- <if test="goafRockStability != null and goafRockStability != ''">
- goaf_rock_stability = #{goafRockStability, jdbcType=VARCHAR},
- </if>
- <if test="goafFormationTime != null">
- goaf_formation_time = #{goafFormationTime, jdbcType=TIMESTAMP},
- </if>
- <if test="goafCanfillVolume != null">
- goaf_canfill_volume = #{goafCanfillVolume, jdbcType=BIGINT},
- </if>
- <if test="goafRemainVolume != null">
- goaf_remain_volume = #{goafRemainVolume, jdbcType=BIGINT},
- </if>
- <if test="goafFillMethod != null">
- goaf_fill_method = #{goafFillMethod, jdbcType=BIGINT},
- </if>
- <if test="goafIsFill != null">
- goaf_is_fill = #{goafIsFill, jdbcType=BIGINT},
- </if>
- <if test="goafInfoRemak != null and goafInfoRemak != ''">
- goaf_info_remak = #{goafInfoRemak, jdbcType=VARCHAR},
- </if>
- <if test="goafChecklistId != null">
- goaf_checklist_id = #{goafChecklistId, jdbcType=BIGINT},
- </if>
- <if test="goafChecklistTitle != null and goafChecklistTitle != ''">
- goaf_checklist_title = #{goafChecklistTitle, jdbcType=VARCHAR},
- </if>
- <if test="goafChecklistIsbind != null">
- goaf_checklist_isbind = #{goafChecklistIsbind, jdbcType=BIGINT},
- </if>
- </set>
- </trim>
- WHERE goaf_id = #{goafId, jdbcType=BIGINT}
- </update>
- <delete id="delete" >
- DELETE FROM goaf_baseinfo
- WHERE goaf_id = #{goafId, jdbcType=BIGINT}
- </delete>
- </mapper>
|