| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142 |
- <?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.railway.business.catenary.mapper.BusJcbGlkgMapper">
- <resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusJcbGlkg">
- <result column="id" property="id"/>
- <result column="glkg_id" property="glkgId"/>
- <result column="dept_id" property="deptId"/>
- <result column="dept_name" property="deptName"/>
- <result column="station_id" property="stationId"/>
- <result column="station_name" property="stationName"/>
- <result column="dept_station_id" property="deptStationId"/>
- <result column="xingbie" property="xingbie"/>
- <result column="xingbie_text" property="xingbieText"/>
- <result column="pillar_code" property="pillarCode"/>
- <result column="kgbh" property="kgbh"/>
- <result column="temperature" property="temperature"/>
- <result column="check_date" property="checkDate"/>
- <result column="jgx_a" property="jgxA"/>
- <result column="jgx_a_desc" property="jgxADesc"/>
- <result column="jgx_b" property="jgxB"/>
- <result column="jgx_b_desc" property="jgxBDesc"/>
- <result column="jgx_c" property="jgxC"/>
- <result column="jgx_c_desc" property="jgxCDesc"/>
- <result column="qdzz_a" property="qdzzA"/>
- <result column="qdzz_a_desc" property="qdzzADesc"/>
- <result column="cdg_a" property="cdgA"/>
- <result column="cdg_a_desc" property="cdgADesc"/>
- <result column="cdg_b" property="cdgB"/>
- <result column="cdg_b_desc" property="cdgBDesc"/>
- <result column="cdg_c" property="cdgC"/>
- <result column="cdg_c_desc" property="cdgCDesc"/>
- <result column="gb_a" property="gbA"/>
- <result column="gb_a_desc" property="gbADesc"/>
- <result column="ctzt_a" property="ctztA"/>
- <result column="ctzt_a_desc" property="ctztADesc"/>
- <result column="ctmtzt_a" property="ctmtztA"/>
- <result column="ctmtzt_a_desc" property="ctmtztADesc"/>
- <result column="hjkzt_a" property="hjkztA"/>
- <result column="hjkzt_a_desc" property="hjkztADesc"/>
- <result column="zcjyzzt_a" property="zcjyzztA"/>
- <result column="zcjyzzt_a_desc" property="zcjyzztADesc"/>
- <result column="yxzt_a" property="yxztA"/>
- <result column="yxzt_a_desc" property="yxztADesc"/>
- <result column="yxzt_b" property="yxztB"/>
- <result column="yxzt_b_desc" property="yxztBDesc"/>
- <result column="yxzt_c" property="yxztC"/>
- <result column="yxzt_c_desc" property="yxztCDesc"/>
- <result column="swyx_1_lcz" property="swyx1Lcz"/>
- <result column="swyx_1_dg" property="swyx1Dg"/>
- <result column="swyx_2_lcz" property="swyx2Lcz"/>
- <result column="swyx_2_dg" property="swyx2Dg"/>
- <result column="zxjl" property="zxjl"/>
- <result column="xjzt_a" property="xjztA"/>
- <result column="xjzt_a_desc" property="xjztADesc"/>
- <result column="xjzt_b" property="xjztB"/>
- <result column="xjzt_b_desc" property="xjztBDesc"/>
- <result column="sdfhsy_a" property="sdfhsyA"/>
- <result column="sdfhsy_a_desc" property="sdfhsyADesc"/>
- <result column="ddfhsy_a" property="ddfhsyA"/>
- <result column="ddfhsy_a_desc" property="ddfhsyADesc"/>
- <result column="ydfhsy_a" property="ydfhsyA"/>
- <result column="ydfhsy_a_desc" property="ydfhsyADesc"/>
- <result column="kgztjdzt_a" property="kgztjdztA"/>
- <result column="kgztjdzt_a_desc" property="kgztjdztADesc"/>
- <result column="kgztjdzt_dzz" property="kgztjdztDzz"/>
- <result column="kgjgxjdzt_a" property="kgjgxjdztA"/>
- <result column="kgjgxjdzt_a_desc" property="kgjgxjdztADesc"/>
- <result column="kgjgxjdzt_dzz" property="kgjgxjdztDzz"/>
- <result column="fzzt" property="fzzt"/>
- <result column="fzzt_desc" property="fzztDesc"/>
- <result column="hzzt" property="hzzt"/>
- <result column="hzzt_desc" property="hzztDesc"/>
- <result column="sbzt" property="sbzt"/>
- <result column="sbzt_desc" property="sbztDesc"/>
- <result column="check_user" property="checkUser"/>
- <result column="confirm_user" property="confirmUser"/>
- <result column="czwt" property="czwt"/>
- <result column="create_by" property="createBy"/>
- <result column="create_time" property="createTime"/>
- <result column="update_by" property="updateBy"/>
- <result column="update_time" property="updateTime"/>
- <result column="submit_state" property="submitState"/>
- <result column="del_flag" property="delFlag"/>
- <result column="xhcj" property="xhcj"/>
- <result column="xiangbie" property="xiangbie"/>
- </resultMap>
- <sql id="Base_Column_List">
- t.id,
- t.glkg_id,
- v.dept_id,
- v.dept_name,
- v.station_name,
- v.station_id,
- t.dept_station_id,
- t.xingbie,
- t.pillar_code,
- t.kgbh,
- t.temperature,
- t.check_date,
- t.jgx_a,
- t.jgx_a_desc,
- t.jgx_b,
- t.jgx_b_desc,
- t.jgx_c,
- t.jgx_c_desc,
- t.qdzz_a,
- t.qdzz_a_desc,
- t.cdg_a,
- t.cdg_a_desc,
- t.cdg_b,
- t.cdg_b_desc,
- t.cdg_c,
- t.cdg_c_desc,
- t.gb_a,
- t.gb_a_desc,
- t.ctzt_a,
- t.ctzt_a_desc,
- t.ctmtzt_a,
- t.ctmtzt_a_desc,
- t.hjkzt_a,
- t.hjkzt_a_desc,
- t.zcjyzzt_a,
- t.zcjyzzt_a_desc,
- t.yxzt_a,
- t.yxzt_a_desc,
- t.yxzt_b,
- t.yxzt_b_desc,
- t.yxzt_c,
- t.yxzt_c_desc,
- t.swyx_1_lcz,
- t.swyx_1_dg,
- t.swyx_2_lcz,
- t.swyx_2_dg,
- t.zxjl,
- t.xjzt_a,
- t.xjzt_a_desc,
- t.xjzt_b,
- t.xjzt_b_desc,
- t.sdfhsy_a,
- t.sdfhsy_a_desc,
- t.ddfhsy_a,
- t.ddfhsy_a_desc,
- t.ydfhsy_a,
- t.ydfhsy_a_desc,
- t.kgztjdzt_a,
- t.kgztjdzt_a_desc,
- t.kgztjdzt_dzz,
- t.kgjgxjdzt_a,
- t.kgjgxjdzt_a_desc,
- t.kgjgxjdzt_dzz,
- t.fzzt,
- t.fzzt_desc,
- t.hzzt,
- t.hzzt_desc,
- t.sbzt,
- t.sbzt_desc,
- t.check_user,
- t.confirm_user,
- t.czwt,
- t.create_by,
- t.create_time,
- t.update_by,
- t.update_time,
- t.submit_state,
- t.del_flag
- </sql>
- <insert id="insert" parameterType="com.railway.business.catenary.domain.BusJcbGlkg">
- <selectKey keyProperty="id" order="AFTER" resultType="Long">
- select @@IDENTITY as id
- </selectKey>
- INSERT INTO bus_jcb_glkg
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test='null != deptStationId'>
- dept_station_id,
- </if>
- <if test='null != xingbie'>
- xingbie,
- </if>
- <if test='null != pillarCode'>
- pillar_code,
- </if>
- <if test='null != glkgId'>
- glkg_id,
- </if>
- <if test='null != kgbh'>
- kgbh,
- </if>
- <if test='null != temperature'>
- temperature,
- </if>
- <if test='null != checkDate'>
- check_date,
- </if>
- <if test='null != jgxA'>
- jgx_a,
- </if>
- <if test='null != jgxADesc'>
- jgx_a_desc,
- </if>
- <if test='null != jgxB'>
- jgx_b,
- </if>
- <if test='null != jgxBDesc'>
- jgx_b_desc,
- </if>
- <if test='null != jgxC'>
- jgx_c,
- </if>
- <if test='null != jgxCDesc'>
- jgx_c_desc,
- </if>
- <if test='null != qdzzA'>
- qdzz_a,
- </if>
- <if test='null != qdzzADesc'>
- qdzz_a_desc,
- </if>
- <if test='null != cdgA'>
- cdg_a,
- </if>
- <if test='null != cdgADesc'>
- cdg_a_desc,
- </if>
- <if test='null != cdgB'>
- cdg_b,
- </if>
- <if test='null != cdgBDesc'>
- cdg_b_desc,
- </if>
- <if test='null != cdgC'>
- cdg_c,
- </if>
- <if test='null != cdgCDesc'>
- cdg_c_desc,
- </if>
- <if test='null != gbA'>
- gb_a,
- </if>
- <if test='null != gbADesc'>
- gb_a_desc,
- </if>
- <if test='null != ctztA'>
- ctzt_a,
- </if>
- <if test='null != ctztADesc'>
- ctzt_a_desc,
- </if>
- <if test='null != ctmtztA'>
- ctmtzt_a,
- </if>
- <if test='null != ctmtztADesc'>
- ctmtzt_a_desc,
- </if>
- <if test='null != hjkztA'>
- hjkzt_a,
- </if>
- <if test='null != hjkztADesc'>
- hjkzt_a_desc,
- </if>
- <if test='null != zcjyzztA'>
- zcjyzzt_a,
- </if>
- <if test='null != zcjyzztADesc'>
- zcjyzzt_a_desc,
- </if>
- <if test='null != yxztA'>
- yxzt_a,
- </if>
- <if test='null != yxztADesc'>
- yxzt_a_desc,
- </if>
- <if test='null != yxztB'>
- yxzt_b,
- </if>
- <if test='null != yxztBDesc'>
- yxzt_b_desc,
- </if>
- <if test='null != yxztC'>
- yxzt_c,
- </if>
- <if test='null != yxztCDesc'>
- yxzt_c_desc,
- </if>
- <if test='null != swyx1Lcz'>
- swyx_1_lcz,
- </if>
- <if test='null != swyx1Dg'>
- swyx_1_dg,
- </if>
- <if test='null != swyx2Lcz'>
- swyx_2_lcz,
- </if>
- <if test='null != swyx2Dg'>
- swyx_2_dg,
- </if>
- <if test='null != zxjl'>
- zxjl,
- </if>
- <if test='null != xjztA'>
- xjzt_a,
- </if>
- <if test='null != xjztADesc'>
- xjzt_a_desc,
- </if>
- <if test='null != xjztB'>
- xjzt_b,
- </if>
- <if test='null != xjztBDesc'>
- xjzt_b_desc,
- </if>
- <if test='null != sdfhsyA'>
- sdfhsy_a,
- </if>
- <if test='null != sdfhsyADesc'>
- sdfhsy_a_desc,
- </if>
- <if test='null != ddfhsyA'>
- ddfhsy_a,
- </if>
- <if test='null != ddfhsyADesc'>
- ddfhsy_a_desc,
- </if>
- <if test='null != ydfhsyA'>
- ydfhsy_a,
- </if>
- <if test='null != ydfhsyADesc'>
- ydfhsy_a_desc,
- </if>
- <if test='null != kgztjdztA'>
- kgztjdzt_a,
- </if>
- <if test='null != kgztjdztADesc'>
- kgztjdzt_a_desc,
- </if>
- <if test='null != kgztjdztDzz'>
- kgztjdzt_dzz,
- </if>
- <if test='null != kgjgxjdztA'>
- kgjgxjdzt_a,
- </if>
- <if test='null != kgjgxjdztADesc'>
- kgjgxjdzt_a_desc,
- </if>
- <if test='null != kgjgxjdztDzz'>
- kgjgxjdzt_dzz,
- </if>
- <if test ='null != fzzt'>
- fzzt,
- </if>
- <if test ='null != fzztDesc'>
- fzzt_desc,
- </if>
- <if test ='null != hzzt'>
- hzzt,
- </if>
- <if test ='null != hzztDesc'>
- hzzt_desc,
- </if>
- <if test='null != sbzt'>
- sbzt,
- </if>
- <if test='null != sbztDesc'>
- sbzt_desc,
- </if>
- <if test='null != checkUser'>
- check_user,
- </if>
- <if test='null != confirmUser'>
- confirm_user,
- </if>
- <if test='null != czwt'>
- czwt,
- </if>
- <if test='null != createBy'>
- create_by,
- </if>
- <if test='null != createTime'>
- create_time,
- </if>
- <if test='null != updateBy'>
- update_by,
- </if>
- <if test='null != updateTime'>
- update_time,
- </if>
- <if test='null != submitState'>
- submit_state,
- </if>
- <if test='null != delFlag'>
- del_flag
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test='null != deptStationId'>
- #{deptStationId},
- </if>
- <if test='null != xingbie'>
- #{xingbie},
- </if>
- <if test='null != pillarCode'>
- #{pillarCode},
- </if>
- <if test='null != glkgId'>
- #{glkgId},
- </if>
- <if test='null != kgbh'>
- #{kgbh},
- </if>
- <if test='null != temperature'>
- #{temperature},
- </if>
- <if test='null != checkDate'>
- #{checkDate},
- </if>
- <if test='null != jgxA'>
- #{jgxA},
- </if>
- <if test='null != jgxADesc'>
- #{jgxADesc},
- </if>
- <if test='null != jgxB'>
- #{jgxB},
- </if>
- <if test='null != jgxBDesc'>
- #{jgxBDesc},
- </if>
- <if test='null != jgxC'>
- #{jgxC},
- </if>
- <if test='null != jgxCDesc'>
- #{jgxCDesc},
- </if>
- <if test='null != qdzzA'>
- #{qdzzA},
- </if>
- <if test='null != qdzzADesc'>
- #{qdzzADesc},
- </if>
- <if test='null != cdgA'>
- #{cdgA},
- </if>
- <if test='null != cdgADesc'>
- #{cdgADesc},
- </if>
- <if test='null != cdgB'>
- #{cdgB},
- </if>
- <if test='null != cdgBDesc'>
- #{cdgBDesc},
- </if>
- <if test='null != cdgC'>
- #{cdgC},
- </if>
- <if test='null != cdgCDesc'>
- #{cdgCDesc},
- </if>
- <if test='null != gbA'>
- #{gbA},
- </if>
- <if test='null != gbADesc'>
- #{gbADesc},
- </if>
- <if test='null != ctztA'>
- #{ctztA},
- </if>
- <if test='null != ctztADesc'>
- #{ctztADesc},
- </if>
- <if test='null != ctmtztA'>
- #{ctmtztA},
- </if>
- <if test='null != ctmtztADesc'>
- #{ctmtztADesc},
- </if>
- <if test='null != hjkztA'>
- #{hjkztA},
- </if>
- <if test='null != hjkztADesc'>
- #{hjkztADesc},
- </if>
- <if test='null != zcjyzztA'>
- #{zcjyzztA},
- </if>
- <if test='null != zcjyzztADesc'>
- #{zcjyzztADesc},
- </if>
- <if test='null != yxztA'>
- #{yxztA},
- </if>
- <if test='null != yxztADesc'>
- #{yxztADesc},
- </if>
- <if test='null != yxztB'>
- #{yxztB},
- </if>
- <if test='null != yxztBDesc'>
- #{yxztBDesc},
- </if>
- <if test='null != yxztC'>
- #{yxztC},
- </if>
- <if test='null != yxztCDesc'>
- #{yxztCDesc},
- </if>
- <if test='null != swyx1Lcz'>
- #{swyx1Lcz},
- </if>
- <if test='null != swyx1Dg'>
- #{swyx1Dg},
- </if>
- <if test='null != swyx2Lcz'>
- #{swyx2Lcz},
- </if>
- <if test='null != swyx2Dg'>
- #{swyx2Dg},
- </if>
- <if test='null != zxjl'>
- #{zxjl},
- </if>
- <if test='null != xjztA'>
- #{xjztA},
- </if>
- <if test='null != xjztADesc'>
- #{xjztADesc},
- </if>
- <if test='null != xjztB'>
- #{xjztB},
- </if>
- <if test='null != xjztBDesc'>
- #{xjztBDesc},
- </if>
- <if test='null != sdfhsyA'>
- #{sdfhsyA},
- </if>
- <if test='null != sdfhsyADesc'>
- #{sdfhsyADesc},
- </if>
- <if test='null != ddfhsyA'>
- #{ddfhsyA},
- </if>
- <if test='null != ddfhsyADesc'>
- #{ddfhsyADesc},
- </if>
- <if test='null != ydfhsyA'>
- #{ydfhsyA},
- </if>
- <if test='null != ydfhsyADesc'>
- #{ydfhsyADesc},
- </if>
- <if test='null != kgztjdztA'>
- #{kgztjdztA},
- </if>
- <if test='null != kgztjdztADesc'>
- #{kgztjdztADesc},
- </if>
- <if test='null != kgztjdztDzz'>
- #{kgztjdztDzz},
- </if>
- <if test='null != kgjgxjdztA'>
- #{kgjgxjdztA},
- </if>
- <if test='null != kgjgxjdztADesc'>
- #{kgjgxjdztADesc},
- </if>
- <if test='null != kgjgxjdztDzz'>
- #{kgjgxjdztDzz},
- </if>
- <if test ='null != fzzt'>
- #{fzzt},
- </if>
- <if test ='null != fzztDesc'>
- #{fzztDesc},
- </if>
- <if test ='null != hzzt'>
- #{hzzt},
- </if>
- <if test ='null != hzztDesc'>
- #{hzztDesc},
- </if>
- <if test='null != sbzt'>
- #{sbzt},
- </if>
- <if test='null != sbztDesc'>
- #{sbztDesc},
- </if>
- <if test='null != checkUser'>
- #{checkUser},
- </if>
- <if test='null != confirmUser'>
- #{confirmUser},
- </if>
- <if test='null != czwt'>
- #{czwt},
- </if>
- <if test='null != createBy'>
- #{createBy},
- </if>
- <if test='null != createTime'>
- #{createTime},
- </if>
- <if test='null != updateBy'>
- #{updateBy},
- </if>
- <if test='null != updateTime'>
- #{updateTime},
- </if>
- <if test='null != submitState'>
- #{submitState},
- </if>
- <if test='null != delFlag'>
- #{delFlag}
- </if>
- </trim>
- </insert>
- <delete id="delete">
- UPDATE bus_jcb_glkg
- set del_flag='1'
- WHERE id = #{id}
- </delete>
- <update id="update" parameterType="com.railway.business.catenary.domain.BusJcbGlkg">
- UPDATE bus_jcb_glkg
- <set>
- <if test='null != deptStationId'>dept_station_id = #{deptStationId},</if>
- <if test='null != xingbie'>xingbie = #{xingbie},</if>
- <if test='null != pillarCode'>pillar_code = #{pillarCode},</if>
- <if test='null != glkgId'>glkg_id = #{glkgId},</if>
- <if test='null != kgbh'>kgbh = #{kgbh},</if>
- <if test='null != temperature'>temperature = #{temperature},</if>
- <if test='null != checkDate'>check_date = #{checkDate},</if>
- <if test='null != jgxA'>jgx_a = #{jgxA},</if>
- <if test='null != jgxADesc'>jgx_a_desc = #{jgxADesc},</if>
- <if test='null != jgxB'>jgx_b = #{jgxB},</if>
- <if test='null != jgxBDesc'>jgx_b_desc = #{jgxBDesc},</if>
- <if test='null != jgxC'>jgx_c = #{jgxC},</if>
- <if test='null != jgxCDesc'>jgx_c_desc = #{jgxCDesc},</if>
- <if test='null != qdzzA'>qdzz_a = #{qdzzA},</if>
- <if test='null != qdzzADesc'>qdzz_a_desc = #{qdzzADesc},</if>
- <if test='null != cdgA'>cdg_a = #{cdgA},</if>
- <if test='null != cdgADesc'>cdg_a_desc = #{cdgADesc},</if>
- <if test='null != cdgB'>cdg_b = #{cdgB},</if>
- <if test='null != cdgBDesc'>cdg_b_desc = #{cdgBDesc},</if>
- <if test='null != cdgC'>cdg_c = #{cdgC},</if>
- <if test='null != cdgCDesc'>cdg_c_desc = #{cdgCDesc},</if>
- <if test='null != gbA'>gb_a = #{gbA},</if>
- <if test='null != gbADesc'>gb_a_desc = #{gbADesc},</if>
- <if test='null != ctztA'>ctzt_a = #{ctztA},</if>
- <if test='null != ctztADesc'>ctzt_a_desc = #{ctztADesc},</if>
- <if test='null != ctmtztA'>ctmtzt_a = #{ctmtztA},</if>
- <if test='null != ctmtztADesc'>ctmtzt_a_desc = #{ctmtztADesc},</if>
- <if test='null != hjkztA'>hjkzt_a = #{hjkztA},</if>
- <if test='null != hjkztADesc'>hjkzt_a_desc = #{hjkztADesc},</if>
- <if test='null != zcjyzztA'>zcjyzzt_a = #{zcjyzztA},</if>
- <if test='null != zcjyzztADesc'>zcjyzzt_a_desc = #{zcjyzztADesc},</if>
- <if test='null != yxztA'>yxzt_a = #{yxztA},</if>
- <if test='null != yxztADesc'>yxzt_a_desc = #{yxztADesc},</if>
- <if test='null != yxztB'>yxzt_b = #{yxztB},</if>
- <if test='null != yxztBDesc'>yxzt_b_desc = #{yxztBDesc},</if>
- <if test='null != yxztC'>yxzt_c = #{yxztC},</if>
- <if test='null != yxztCDesc'>yxzt_c_desc = #{yxztCDesc},</if>
- <if test='null != swyx1Lcz'>swyx_1_lcz = #{swyx1Lcz},</if>
- <if test='null != swyx1Dg'>swyx_1_dg = #{swyx1Dg},</if>
- <if test='null != swyx2Lcz'>swyx_2_lcz = #{swyx2Lcz},</if>
- <if test='null != swyx2Dg'>swyx_2_dg = #{swyx2Dg},</if>
- <if test='null != zxjl'>zxjl = #{zxjl},</if>
- <if test='null != xjztA'>xjzt_a = #{xjztA},</if>
- <if test='null != xjztADesc'>xjzt_a_desc = #{xjztADesc},</if>
- <if test='null != xjztB'>xjzt_b = #{xjztB},</if>
- <if test='null != xjztBDesc'>xjzt_b_desc = #{xjztBDesc},</if>
- <if test='null != sdfhsyA'>sdfhsy_a = #{sdfhsyA},</if>
- <if test='null != sdfhsyADesc'>sdfhsy_a_desc = #{sdfhsyADesc},</if>
- <if test='null != ddfhsyA'>ddfhsy_a = #{ddfhsyA},</if>
- <if test='null != ddfhsyADesc'>ddfhsy_a_desc = #{ddfhsyADesc},</if>
- <if test='null != ydfhsyA'>ydfhsy_a = #{ydfhsyA},</if>
- <if test='null != ydfhsyADesc'>ydfhsy_a_desc = #{ydfhsyADesc},</if>
- <if test='null != kgztjdztA'>kgztjdzt_a = #{kgztjdztA},</if>
- <if test='null != kgztjdztADesc'>kgztjdzt_a_desc = #{kgztjdztADesc},</if>
- <if test='null != kgztjdztDzz'>kgztjdzt_dzz = #{kgztjdztDzz},</if>
- <if test='null != kgjgxjdztA'>kgjgxjdzt_a = #{kgjgxjdztA},</if>
- <if test='null != kgjgxjdztADesc'>kgjgxjdzt_a_desc = #{kgjgxjdztADesc},</if>
- <if test='null != kgjgxjdztDzz'>kgjgxjdzt_dzz = #{kgjgxjdztDzz},</if>
- <if test='null != fzzt'>fzzt = #{fzzt},</if>
- <if test='null != fzztDesc'>fzzt_desc = #{fzztDesc},</if>
- <if test='null != hzzt'>hzzt = #{hzzt},</if>
- <if test='null != hzztDesc'>hzzt_desc = #{hzztDesc},</if>
- <if test='null != sbzt'>sbzt = #{sbzt},</if>
- <if test='null != sbztDesc'>sbzt_desc = #{sbztDesc},</if>
- <if test='null != checkUser'>check_user = #{checkUser},</if>
- <if test='null != confirmUser'>confirm_user = #{confirmUser},</if>
- <if test='null != czwt'>czwt = #{czwt},</if>
- <if test='null != updateBy'>update_by = #{updateBy},</if>
- <if test='null != updateTime'>update_time = #{updateTime},</if>
- <if test='null != submitState'>submit_state = #{submitState},</if>
- <if test='null != delFlag'>del_flag = #{delFlag}</if>
- </set>
- WHERE id = #{id}
- </update>
- <select id="getInfo" resultMap="BaseResultMap">
- SELECT
- distinct
- <include refid="Base_Column_List"/>
- FROM
- bus_jcb_glkg t
- LEFT JOIN v_station v ON t.dept_station_id = v.dept_station_id
- WHERE
- t.del_flag = '0'
- AND t.id = #{id}
- </select>
- <select id="getList" resultMap="BaseResultMap">
- SELECT
- <include refid="Base_Column_List"/>
- FROM
- bus_jcb_glkg t
- LEFT JOIN v_station v ON t.dept_station_id = v.dept_station_id
- <where>
- t.del_flag = '0'
- <if test="deptId!=null and deptId!=''">
- and v.dept_id=#{deptId}
- </if>
- <if test="deptIds!=null and deptIds.size() > 0">
- and v.dept_id in
- <foreach collection="deptIds" item="deptId" index="i" open="(" separator="," close=")">
- #{deptId}
- </foreach>
- </if>
- <if test="stationId!=null and stationId!=''">
- and v.station_id=#{stationId}
- </if>
- <if test="stationIds!=null and stationIds.size() > 0">
- and v.station_id in
- <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
- #{stationId}
- </foreach>
- </if>
- <if test="xingbie!=null and xingbie!=''">
- and t.xingbie=#{xingbie}
- </if>
- <if test="pillarCode!=null and pillarCode!=''">
- and t.pillar_code=#{pillarCode}
- </if>
- <if test="kgbh!=null and kgbh!=''">
- and t.kgbh=#{kgbh}
- </if>
- <if test="temperature!=null and temperature!=''">
- and t.temperature=#{temperature}
- </if>
- <if test="checkDate!=null">
- and t.check_date=#{checkDate}
- </if>
- <if test="jgxA!=null and jgxA!=''">
- and t.jgx_a=#{jgxA}
- </if>
- <if test="jgxADesc!=null and jgxADesc!=''">
- and t.jgx_a_desc=#{jgxADesc}
- </if>
- <if test="jgxB!=null and jgxB!=''">
- and t.jgx_b=#{jgxB}
- </if>
- <if test="jgxBDesc!=null and jgxBDesc!=''">
- and t.jgx_b_desc=#{jgxBDesc}
- </if>
- <if test="jgxC!=null and jgxC!=''">
- and t.jgx_c=#{jgxC}
- </if>
- <if test="jgxCDesc!=null and jgxCDesc!=''">
- and t.jgx_c_desc=#{jgxCDesc}
- </if>
- <if test="qdzzA!=null and qdzzA!=''">
- and t.qdzz_a=#{qdzzA}
- </if>
- <if test="qdzzADesc!=null and qdzzADesc!=''">
- and t.qdzz_a_desc=#{qdzzADesc}
- </if>
- <if test="cdgA!=null and cdgA!=''">
- and t.cdg_a=#{cdgA}
- </if>
- <if test="cdgADesc!=null and cdgADesc!=''">
- and t.cdg_a_desc=#{cdgADesc}
- </if>
- <if test="cdgB!=null and cdgB!=''">
- and t.cdg_b=#{cdgB}
- </if>
- <if test="cdgBDesc!=null and cdgBDesc!=''">
- and t.cdg_b_desc=#{cdgBDesc}
- </if>
- <if test="cdgC!=null and cdgC!=''">
- and t.cdg_c=#{cdgC}
- </if>
- <if test="cdgCDesc!=null and cdgCDesc!=''">
- and t.cdg_c_desc=#{cdgCDesc}
- </if>
- <if test="gbA!=null and gbA!=''">
- and t.gb_a=#{gbA}
- </if>
- <if test="gbADesc!=null and gbADesc!=''">
- and t.gb_a_desc=#{gbADesc}
- </if>
- <if test="ctztA!=null and ctztA!=''">
- and t.ctzt_a=#{ctztA}
- </if>
- <if test="ctztADesc!=null and ctztADesc!=''">
- and t.ctzt_a_desc=#{ctztADesc}
- </if>
- <if test="ctmtztA!=null and ctmtztA!=''">
- and t.ctmtzt_a=#{ctmtztA}
- </if>
- <if test="ctmtztADesc!=null and ctmtztADesc!=''">
- and t.ctmtzt_a_desc=#{ctmtztADesc}
- </if>
- <if test="hjkztA!=null and hjkztA!=''">
- and t.hjkzt_a=#{hjkztA}
- </if>
- <if test="hjkztADesc!=null and hjkztADesc!=''">
- and t.hjkzt_a_desc=#{hjkztADesc}
- </if>
- <if test="zcjyzztA!=null and zcjyzztA!=''">
- and t.zcjyzzt_a=#{zcjyzztA}
- </if>
- <if test="zcjyzztADesc!=null and zcjyzztADesc!=''">
- and t.zcjyzzt_a_desc=#{zcjyzztADesc}
- </if>
- <if test="yxztA!=null and yxztA!=''">
- and t.yxzt_a=#{yxztA}
- </if>
- <if test="yxztADesc!=null and yxztADesc!=''">
- and t.yxzt_a_desc=#{yxztADesc}
- </if>
- <if test="yxztB!=null and yxztB!=''">
- and t.yxzt_b=#{yxztB}
- </if>
- <if test="yxztBDesc!=null and yxztBDesc!=''">
- and t.yxzt_b_desc=#{yxztBDesc}
- </if>
- <if test="yxztC!=null and yxztC!=''">
- and t.yxzt_c=#{yxztC}
- </if>
- <if test="yxztCDesc!=null and yxztCDesc!=''">
- and t.yxzt_c_desc=#{yxztCDesc}
- </if>
- <if test="swyx1Lcz!=null and swyx1Lcz!=''">
- and t.swyx_1_lcz=#{swyx1Lcz}
- </if>
- <if test="swyx1Dg!=null and swyx1Dg!=''">
- and t.swyx_1_dg=#{swyx1Dg}
- </if>
- <if test="swyx2Lcz!=null and swyx2Lcz!=''">
- and t.swyx_2_lcz=#{swyx2Lcz}
- </if>
- <if test="swyx2Dg!=null and swyx2Dg!=''">
- and t.swyx_2_dg=#{swyx2Dg}
- </if>
- <if test="zxjl!=null and zxjl!=''">
- and zxjl=#{zxjl}
- </if>
- <if test="xjztA!=null and xjztA!=''">
- and t.xjzt_a=#{xjztA}
- </if>
- <if test="xjztADesc!=null and xjztADesc!=''">
- and t.xjzt_a_desc=#{xjztADesc}
- </if>
- <if test="xjztB!=null and xjztB!=''">
- and t.xjzt_b=#{xjztB}
- </if>
- <if test="xjztBDesc!=null and xjztBDesc!=''">
- and t.xjzt_b_desc=#{xjztBDesc}
- </if>
- <if test="sdfhsyA!=null and sdfhsyA!=''">
- and t.sdfhsy_a=#{sdfhsyA}
- </if>
- <if test="sdfhsyADesc!=null and sdfhsyADesc!=''">
- and t.sdfhsy_a_desc=#{sdfhsyADesc}
- </if>
- <if test="ddfhsyA!=null and ddfhsyA!=''">
- and t.ddfhsy_a=#{ddfhsyA}
- </if>
- <if test="ddfhsyADesc!=null and ddfhsyADesc!=''">
- and t.ddfhsy_a_desc=#{ddfhsyADesc}
- </if>
- <if test="ydfhsyA!=null and ydfhsyA!=''">
- and t.ydfhsy_a=#{ydfhsyA}
- </if>
- <if test="ydfhsyADesc!=null and ydfhsyADesc!=''">
- and t.ydfhsy_a_desc=#{ydfhsyADesc}
- </if>
- <if test="kgztjdztA!=null and kgztjdztA!=''">
- and t.kgztjdzt_a=#{kgztjdztA}
- </if>
- <if test="kgztjdztADesc!=null and kgztjdztADesc!=''">
- and t.kgztjdzt_a_desc=#{kgztjdztADesc}
- </if>
- <if test="kgztjdztDzz!=null and kgztjdztDzz!=''">
- and t.kgztjdzt_dzz=#{kgztjdztDzz}
- </if>
- <if test="kgjgxjdztA!=null and kgjgxjdztA!=''">
- and t.kgjgxjdzt_a=#{kgjgxjdztA}
- </if>
- <if test="kgjgxjdztADesc!=null and kgjgxjdztADesc!=''">
- and t.kgjgxjdzt_a_desc=#{kgjgxjdztADesc}
- </if>
- <if test="kgjgxjdztDzz!=null and kgjgxjdztDzz!=''">
- and t.kgjgxjdzt_dzz=#{kgjgxjdztDzz}
- </if>
- <if test="fzzt!=null and fzzt!=''">
- and t.fzzt=#{fzzt}
- </if>
- <if test="fzztDesc!=null and fzztDesc!=''">
- and t.fzzt_desc=#{fzztDesc}
- </if>
- <if test="hzzt!=null and hzzt!=''">
- and t.hzzt=#{hzzt}
- </if>
- <if test="hzztDesc!=null and hzztDesc!=''">
- and t.hzzt_desc=#{hzztDesc}
- </if>
- <if test="sbzt!=null and sbzt!=''">
- and t.sbzt=#{sbzt}
- </if>
- <if test="sbztDesc!=null and sbztDesc!=''">
- and t.sbzt_desc=#{sbztDesc}
- </if>
- <if test="checkUser!=null and checkUser!=''">
- and t.check_user like concat('%', #{checkUser}, '%')
- </if>
- <if test="confirmUser!=null and confirmUser!=''">
- and t.confirm_user=#{confirmUser}
- </if>
- <if test="czwt!=null and czwt!=''">
- and t.czwt=#{czwt}
- </if>
- <if test="createBy!=null and createBy!=''">
- and t.create_by=#{createBy}
- </if>
- <if test="createTime!=null">
- and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
- </if>
- <if test="updateBy!=null and updateBy!=''">
- and t.update_by=#{updateBy}
- </if>
- <if test="updateTime!=null">
- and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
- </if>
- <if test="submitState!=null and submitState!=''">
- and t.submit_state = #{submitState}
- </if>
- <if test="delFlag!=null and delFlag!=''">
- and t.del_flag=#{delFlag}
- </if>
- <if test="submitState==null or submitState==''">
- and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
- </if>
- </where>
- <if test="orderBy!=null and orderBy!=''">
- order by t.${orderBy}
- </if>
- <if test="isAsc!=null and isAsc!=''">
- <if test="isAsc == '1'.toString()">
- asc
- </if>
- <if test="isAsc == '0'.toString()">
- desc
- </if>
- </if>
- </select>
- <select id="getLastOne" resultMap="BaseResultMap">
- SELECT
- <include refid="Base_Column_List"/>
- FROM
- bus_jcb_glkg t
- LEFT JOIN v_station v on t.dept_station_id = v.dept_station_id
- WHERE
- t.del_flag = '0' and t.submit_state in ('1','9')
- <if test="stationId!=null and stationId!=''">
- and v.station_id=#{stationId}
- </if>
- <if test="pillarCode!=null and pillarCode!=''">
- and t.pillar_code=#{pillarCode}
- </if>
- <if test="kgbh!=null and kgbh!=''">
- and t.kgbh=#{kgbh}
- </if>
- ORDER BY
- t.update_time DESC
- LIMIT 1
- </select>
- <select id="getJcebList" resultMap="BaseResultMap">
- SELECT
- <include refid="Base_Column_List"/>,
- '检测' as xiangbie,
- concat(bg.sccj,'/',bg.kgxh) as xhcj
- FROM bus_jcb_glkg t
- LEFT JOIN v_station v ON t.dept_station_id = v.dept_station_id
- LEFT JOIN base_glkg bg ON (t.dept_station_id = bg.dept_station_id and t.kgbh = bg.kgbh)
- <where>
- t.del_flag='0'
- <if test="submitState!=null and submitState!=''">
- and t.submit_state = #{submitState}
- </if>
- <if test="deptId!=null and deptId!=''">
- and v.dept_id=#{deptId}
- </if>
- <if test="stationId!=null and stationId!=''">
- and v.station_id=#{stationId}
- </if>
- <if test="stationIds!=null and stationIds.length > 0">
- and v.station_id in
- <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
- #{stationId}
- </foreach>
- </if>
- <if test="pillarCode!=null and pillarCode!=''">
- and t.pillar_code=#{pillarCode}
- </if>
- <if test="operator!=null and operator!=''">
- and t.check_user like concat('%', #{operator}, '%')
- </if>
- <if test="createBy!=null and createBy!=''">
- and t.create_by=#{createBy}
- </if>
- <if test="operationDate!=null">
- and t.check_date=#{operationDate}
- </if>
- <if test="submitState==null or submitState==''">
- and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
- </if>
- </where>
- </select>
- <resultMap id="JcabResultMap" type="com.railway.business.catenary.domain.vo.JcebRecordVo">
- <result column="id" property="id"/>
- <result column="dept_name" property="deptName"/>
- <result column="station_name" property="stationName"/>
- <result column="check_date" property="operationDate"/>
- <result column="check_user" property="operator"/>
- <result column="jcebType" property="jcebType"/>
- <result column="jcebTypeText" property="jcebTypeText"/>
- </resultMap>
- <select id="getListByType" resultMap="JcabResultMap">
- SELECT t.id, v.dept_name, v.station_name, t.check_date, t.check_user, #{jcebType} as jcebType,
- #{jcebTypeText} as jcebTypeText
- FROM bus_jcb_glkg t
- LEFT JOIN v_station v on t.dept_station_id = v.dept_station_id
- <where>
- t.del_flag='0'
- <if test="submitState!=null and submitState!=''">
- and t.submit_state = #{submitState}
- </if>
- <if test="deptId!=null and deptId!=''">
- and v.dept_id=#{deptId}
- </if>
- <if test="stationId!=null and stationId!=''">
- and v.station_id=#{stationId}
- </if>
- <if test="stationIds!=null and stationIds.length > 0">
- and v.station_id in
- <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
- #{stationId}
- </foreach>
- </if>
- <if test="pillarCode!=null and pillarCode!=''">
- and t.pillar_code=#{pillarCode}
- </if>
- <if test="operator!=null and operator!=''">
- and t.check_user like concat('%', #{operator}, '%')
- </if>
- <if test="createBy!=null and createBy!=''">
- and t.create_by=#{createBy}
- </if>
- <if test="operationDate!=null">
- and t.check_date=#{operationDate}
- </if>
- <if test="submitState==null or submitState==''">
- and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
- </if>
- </where>
- </select>
- <resultMap id="JcabCountResultMap" type="com.railway.business.catenary.domain.vo.JcebCountVo">
- <result column="c" property="count"/>
- <result column="check_date" property="operationDate"/>
- </resultMap>
- <select id="getCountByType" resultMap="JcabCountResultMap">
- SELECT count(*) c, max(t.check_date) as check_date
- FROM bus_jcb_glkg t
- LEFT JOIN v_station v on t.dept_station_id = v.dept_station_id
- <where>
- t.del_flag='0'
- <if test="submitState!=null and submitState!=''">
- and t.submit_state = #{submitState}
- </if>
- <if test="deptId!=null and deptId!=''">
- and v.dept_id=#{deptId}
- </if>
- <if test="stationId!=null and stationId!=''">
- and v.station_id=#{stationId}
- </if>
- <if test="pillarCode!=null and pillarCode!=''">
- and t.pillar_code=#{pillarCode}
- </if>
- <if test="operator!=null and operator!=''">
- and t.check_user like concat('%', #{operator}, '%')
- </if>
- <if test="createBy!=null and createBy!=''">
- and t.create_by=#{createBy}
- </if>
- <if test="operationDate!=null">
- and t.check_date=#{operationDate}
- </if>
- <if test="submitState==null or submitState==''">
- and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
- </if>
- </where>
- </select>
- <resultMap id="JcabStationMap" type="com.railway.business.catenary.domain.vo.JcebStationVo">
- <result column="station_name" property="stationName"/>
- <result column="station_id" property="stationId"/>
- </resultMap>
- <select id="listStation" resultMap="JcabStationMap">
- SELECT distinct v.station_id, v.station_name
- FROM base_glkg t
- LEFT JOIN v_station v on t.dept_station_id = v.dept_station_id
- <where>
- t.del_flag='0'
- <if test="deptId!=null and deptId!=''">
- and v.dept_id=#{deptId}
- </if>
- </where>
- </select>
- </mapper>
|