12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226 |
- <?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.ruoyi.system.mapper.projectV2.ZsyzSbbzbMapper">
- <resultMap type="ZsyzSbbzb" id="ZsyzSbbzbResult">
- <result property="id" column="id"/>
- <result property="sbdw" column="sbdw"/>
- <result property="tbrq" column="tbrq"/>
- <result property="zszxfzr" column="zszxfzr"/>
- <result property="xmbh" column="xmbh"/>
- <result property="xmxsmc" column="xmxsmc"/>
- <result property="sfwlhxxxm" column="sfwlhxxxm"/>
- <result property="yzdqId" column="yzdq_id"/>
- <result property="yzdqName" column="yzdq_name"/>
- <result property="yzssName" column="yzss_name"/>
- <result property="ntze" column="ntze"/>
- <result property="cylxId" column="cylx_id"/>
- <result property="cylxName" column="cylx_name"/>
- <result property="xmlb" column="xmlb"/>
- <result property="tzlb" column="tzlb"/>
- <result property="nlhd" column="nlhd"/>
- <result property="czpt" column="czpt"/>
- <result property="tzzt" column="tzzt"/>
- <result property="xmjz" column="xmjz"/>
- <result property="gtzzrsfzhm" column="gtzzrsfzhm"/>
- <result property="qytzrxyzdm" column="qytzrxyzdm"/>
- <result property="qybj" column="qybj"/>
- <result property="tzfjj" column="tzfjj"/>
- <result property="sndxse" column="sndxse"/>
- <result property="sndnse" column="sndnse"/>
- <result property="tzrxm" column="tzrxm"/>
- <result property="tzrzw" column="tzrzw"/>
- <result property="tzrdh" column="tzrdh"/>
- <result property="xmjj" column="xmjj"/>
- <result property="name" column="name"/>
- <result property="strq" column="strq"/>
- <result property="phone" column="phone"/>
- <result property="zw" column="zw"/>
- <result property="userId" column="user_id"/>
- <result property="createBy" column="create_by"/>
- <result property="type" column="type"/>
- <result property="progress" column="progress"/>
- <result property="xmStatus" column="xm_status"/>
- <result property="deptId" column="dept_id"/>
- <result property="createTime" column="create_time"/>
- <result property="updateBy" column="update_by"/>
- <result property="isDel" column="is_del"/>
- <result property="updateTime" column="update_time"/>
- <result property="remark" column="remark"/>
- <result property="cjdId" column="cjd_id"/>
- <result property="cjdName" column="cjd_name"/>
- <result property="isMeet" column="is_meet"/>
- <result property="meetRemark" column="meet_remark"/>
- <result property="shjg" column="shjg"/>
- <result property="shsj" column="shsj"/>
- <result property="psnr" column="psnr"/>
- <result property="czwt" column="czwt"/>
- <association property="zsyzQyxx" javaType="ZsyzQyxx" resultMap="ZsyzQyxxResult"/>
- <association property="zsyzKgxx" javaType="ZsyzKgxx" resultMap="ZsyzKgxxResult"/>
- <association property="zsyzTcxx" javaType="ZsyzTcxx" resultMap="ZsyzTcxxResult"/>
- <collection property="shyjList" javaType="java.util.List" resultMap="ZsyzShyjResult"/>
- <collection property="zsyzJzqkList" javaType="java.util.List" resultMap="ZsyzJzqkResult"/>
- </resultMap>
- <!--签约信息-->
- <resultMap type="ZsyzQyxx" id="ZsyzQyxxResult">
- <result property="id" column="id"/>
- <result property="xmId" column="xm_id"/>
- <result property="xmbh" column="xmbh"/>
- <result property="xmmc" column="xmmc"/>
- <result property="dfqyr" column="dfqyr"/>
- <result property="wfqyr" column="wfqyr"/>
- <result property="tbrq" column="tbrq"/>
- <result property="qyrq" column="qyrq"/>
- <result property="xytze" column="xytze"/>
- <result property="swzj" column="swzj"/>
- <result property="gdzctze" column="gdzctze"/>
- <result property="xmgjrxm" column="xmgjrxm"/>
- <result property="xmgjrzw" column="xmgjrzw"/>
- <result property="xmgjrsjh" column="xmgjrsjh"/>
- <result property="xmszd" column="xmszd"/>
- <result property="sshy" column="sshy"/>
- <result property="tzfs" column="tzfs"/>
- <result property="jsfs" column="jsfs"/>
- <result property="sfys" column="sfys"/>
- <result property="jsnr" column="jsnr"/>
- <result property="zlcf" column="zlcf"/>
- <result property="gdmj" column="gdmj"/>
- <result property="zcqymc" column="zcqymc"/>
- <result property="zcrq" column="zcrq"/>
- <result property="zczb" column="zczb"/>
- <result property="frdb" column="frdb"/>
- <result property="lxfs" column="lxfs"/>
- <result property="jyfw" column="jyfw"/>
- <result property="lxrq" column="lxrq"/>
- <result property="nkgrq" column="nkgrq"/>
- <result property="path" column="path"/>
- <result property="createBy" column="create_by"/>
- <result property="createTime" column="create_time"/>
- <result property="updateBy" column="update_by"/>
- <result property="updateTime" column="update_time"/>
- <result property="remark" column="remark"/>
- <result property="czwt" column="czwt"/>
- </resultMap>
- <!--开工信息-->
- <resultMap type="ZsyzKgxx" id="ZsyzKgxxResult">
- <result property="id" column="id"/>
- <result property="xmId" column="xm_id"/>
- <result property="xmbh" column="xmbh"/>
- <result property="xmmc" column="xmmc"/>
- <result property="kgrq" column="kgrq"/>
- <result property="njgrq" column="njgrq"/>
- <result property="sscrq" column="sscrq"/>
- <result property="ntcsj" column="ntcsj"/>
- <result property="rtsj" column="rtsj"/>
- <result property="nrtsj" column="nrtsj"/>
- <result property="kggjrsjh" column="kggjrsjh"/>
- <result property="createBy" column="create_by"/>
- <result property="createTime" column="create_time"/>
- <result property="updateBy" column="update_by"/>
- <result property="updateTime" column="update_time"/>
- <result property="remark" column="remark"/>
- <result property="czwt" column="czwt"/>
- </resultMap>
- <!--投产信息-->
- <resultMap type="ZsyzTcxx" id="ZsyzTcxxResult">
- <result property="id" column="id"/>
- <result property="xmId" column="xm_id"/>
- <result property="xmbh" column="xmbh"/>
- <result property="xmmc" column="xmmc"/>
- <result property="tcrq" column="tcrq"/>
- <result property="rgsj" column="rgsj"/>
- <result property="nrgsj" column="nrgsj"/>
- <result property="tcgjrsjh" column="tcgjrsjh"/>
- <result property="sjdze" column="sjdze"/>
- <result property="ydmj" column="ydmj"/>
- <result property="tdcr" column="tdcr"/>
- <result property="xjcf" column="xjcf"/>
- <result property="cftr" column="cftr"/>
- <result property="sbqd" column="sbqd"/>
- <result property="sbfp" column="sbfp"/>
- <result property="sbht" column="sbht"/>
- <result property="fkpz" column="fkpz"/>
- <result property="zlcf" column="zlcf"/>
- <result property="zlcftr" column="zlcftr"/>
- <result property="zlsbqd" column="zlsbqd"/>
- <result property="zlsbfp" column="zlsbfp"/>
- <result property="zlsbht" column="zlsbht"/>
- <result property="zlfkpz" column="zlfkpz"/>
- <result property="sjss" column="sjss"/>
- <result property="lxy" column="lxy"/>
- <result property="jnsb" column="jnsb"/>
- <result property="zbtr" column="zbtr"/>
- <result property="ndsjss" column="ndsjss"/>
- <result property="qt" column="qt"/>
- <result property="createBy" column="create_by"/>
- <result property="createTime" column="create_time"/>
- <result property="updateBy" column="update_by"/>
- <result property="updateTime" column="update_time"/>
- <result property="remark" column="remark"/>
- <result property="czwt" column="czwt"/>
- </resultMap>
- <resultMap type="ZsyzShyj" id="ZsyzShyjResult">
- <result property="id" column="id"/>
- <result property="xmId" column="xm_id"/>
- <result property="xmbh" column="xmbh"/>
- <result property="deptId" column="dept_id"/>
- <result property="shrxm" column="shrxm"/>
- <result property="xmjd" column="xmjd"/>
- <result property="xmmc" column="xmmc"/>
- <result property="shjg" column="shjg"/>
- <result property="shyj" column="shyj"/>
- <result property="shsj" column="shsj"/>
- <result property="createBy" column="create_by"/>
- <result property="createTime" column="create_time"/>
- <result property="updateBy" column="update_by"/>
- <result property="updateTime" column="update_time"/>
- <result property="remark" column="remark"/>
- </resultMap>
- <resultMap type="ZsyzJzqk" id="ZsyzJzqkResult">
- <result property="id" column="id" />
- <result property="xmId" column="xm_id" />
- <result property="xmbh" column="xmbh" />
- <result property="xmmc" column="xmmc" />
- <result property="deptId" column="dept_id" />
- <result property="deptName" column="dept_name" />
- <result property="qtrName" column="qtr_name" />
- <result property="qtTime" column="qt_time" />
- <result property="qtrxz" column="qtrxz" />
- <result property="qtrdwzw" column="qtrdwzw" />
- <result property="phone" column="phone" />
- <result property="blsx" column="blsx" />
- <result property="dbsx" column="dbsx" />
- <result property="jzqk" column="jzqk" />
- <result property="czwt" column="czwt" />
- <result property="jjjy" column="jjjy" />
- <result property="gzjh" column="gzjh" />
- <result property="createBy" column="create_by" />
- <result property="createTime" column="create_time" />
- <result property="updateBy" column="update_by" />
- <result property="updateTime" column="update_time" />
- <result property="remark" column="remark" />
- </resultMap>
- <sql id="selectZsyzSbbzbVo">
- select id,
- sbdw,
- tbrq,
- zszxfzr,
- xmbh,
- xmxsmc,
- sfwlhxxxm,
- yzdq_id,
- yzdq_name,
- yzss_name,
- ntze,
- cylx_id,
- cylx_name,
- xmlb,
- tzlb,
- nlhd,
- czpt,
- tzzt,
- xmjz,
- gtzzrsfzhm,
- qytzrxyzdm,
- qybj,
- tzfjj,
- sndxse,
- sndnse,
- tzrxm,
- tzrzw,
- tzrdh,
- xmjj,
- name,
- strq,
- phone,
- zw,
- user_id,
- create_by,
- type,
- progress,
- xm_status,
- dept_id,
- create_time,
- update_by,
- is_del,
- update_time,
- remark,
- cjd_id,
- cjd_name,
- is_meet,
- meet_remark,
- shjg,psnr,czwt
- from zsyz_sbbzb
- </sql>
- <select id="selectZsyzSbbzbList" parameterType="ZsyzSbbzb" resultMap="ZsyzSbbzbResult">
- select s.id, s.sbdw, s.tbrq, s.zszxfzr, s.xmbh, s.xmxsmc, s.sfwlhxxxm, s.yzdq_id, s.yzdq_name, s.yzss_name,
- s.ntze, s.cylx_id, s.cylx_name, s.xmlb,
- s.tzlb, s.nlhd, s.czpt, s.tzzt, s.xmjz, s.gtzzrsfzhm, s.qytzrxyzdm, s.qybj, s.tzfjj, s.sndxse, s.sndnse,
- s.tzrxm, s.tzrzw, s.tzrdh, s.xmjj, s.name,
- s.strq, s.phone, s.zw, s.user_id, s.create_by, s.type, s.progress,s.xm_status, s.dept_id, s.create_time, s.update_by,
- s.is_del, s.update_time, s.remark, s.cjd_id,
- s.cjd_name, s.is_meet, s.meet_remark,s.shjg,s.psnr,s.czwt,
- q.id, q.xm_id, q.xmbh, q.xmmc, q.dfqyr, q.wfqyr, q.tbrq, q.qyrq,q.xytzely, q.xytze, q.swzj, q.gdzctze,
- q.xmgjrxm,q.xmgjrzw,q.xmgjrsjh,
- q.xmszd, q.sshy, q.tzfs, q.jsfs, q.sfys, q.jsnr,
- q.zlcf,q.gdmj, q.zcqymc, q.zcrq, q.zczb, q.frdb, q.lxfs, q.jyfw, q.lxrq, q.nkgrq,q. path, q.create_by,
- q.create_time,
- q.update_by, q.update_time, q.remark,
- k.id, k.xm_id, k.xmbh, k.xmmc, k.kgrq, k.njgrq, k.sscrq, k.ntcsj, k.rtsj, k.nrtsj, k.kggjrsjh, k.create_by,
- k.create_time, k.update_by,
- k.update_time, k.remark,
- t.id, t.xm_id, t.xmbh, t.xmmc, t.tcrq, t.rgsj, t.nrgsj, t.tcgjrsjh, t.sjdze, t.ydmj, t.tdcr, t.xjcf, t.cftr,
- t.sbqd, t.sbfp, t.sbht, t.fkpz, t.zlcf,
- t.zlcftr, t.zlsbqd, t.zlsbfp, t.zlsbht, t.zlfkpz, t.sjss, t.lxy, t.jnsb, t.zbtr, t.ndsjss, t.qt, t.create_by,
- t.create_time, t.update_by,
- t.update_time, t.remark
- from zsyz_sbbzb s
- left join zsyz_qyxx q on s.id = q.xm_id
- left join zsyz_kgxx k on s.id = k.xm_id
- left join zsyz_tcxx t on s.id = t.xm_id
- <where>
- s.is_del = 'N'
- <if test="sbdw != null and sbdw != ''">and s.sbdw = #{sbdw}</if>
- <if test="tbrq != null ">and s.tbrq = #{tbrq}</if>
- <if test="zszxfzr != null and zszxfzr != ''">and s.zszxfzr = #{zszxfzr}</if>
- <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
- <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
- <if test="sfwlhxxxm != null and sfwlhxxxm != ''">and s.sfwlhxxxm = #{sfwlhxxxm}</if>
- <if test="yzdqId != null and yzdqId != ''">and s.yzdq_id = #{yzdqId}</if>
- <if test="yzdqName != null and yzdqName != ''">and s.yzdq_name like concat('%', #{yzdqName}, '%')</if>
- <if test="yzssName != null and yzssName != ''">and s.yzss_name like concat('%', #{yzssName}, '%')</if>
- <if test="ntze != null and ntze != ''">and s.ntze = #{ntze}</if>
- <if test="cylxId != null and cylxId != ''">and s.cylx_id = #{cylxId}</if>
- <if test="cylxName != null and cylxName != ''">and s.cylx_name like concat('%', #{cylxName}, '%')</if>
- <if test="xmlb != null and xmlb != ''">and s.xmlb = #{xmlb}</if>
- <if test="tzlb != null and tzlb != ''">and s.tzlb = #{tzlb}</if>
- <if test="nlhd != null and nlhd != ''">and s.nlhd = #{nlhd}</if>
- <if test="czpt != null and czpt != ''">and s.czpt = #{czpt}</if>
- <if test="tzzt != null and tzzt != ''">and s.tzzt = #{tzzt}</if>
- <if test="xmjz != null and xmjz != ''">and s.xmjz = #{xmjz}</if>
- <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''">and s.gtzzrsfzhm = #{gtzzrsfzhm}</if>
- <if test="qytzrxyzdm != null and qytzrxyzdm != ''">and s.qytzrxyzdm = #{qytzrxyzdm}</if>
- <if test="qybj != null and qybj != ''">and s.qybj = #{qybj}</if>
- <if test="tzfjj != null and tzfjj != ''">and s.tzfjj = #{tzfjj}</if>
- <if test="sndxse != null and sndxse != ''">and s.sndxse = #{sndxse}</if>
- <if test="sndnse != null and sndnse != ''">and s.sndnse = #{sndnse}</if>
- <if test="tzrxm != null and tzrxm != ''">and s.tzrxm = #{tzrxm}</if>
- <if test="tzrzw != null and tzrzw != ''">and s.tzrzw = #{tzrzw}</if>
- <if test="tzrdh != null and tzrdh != ''">and s.tzrdh = #{tzrdh}</if>
- <if test="xmjj != null and xmjj != ''">and s.xmjj = #{xmjj}</if>
- <if test="name != null and name != ''">and s.name like concat('%', #{name}, '%')</if>
- <if test="strq != null ">and s.strq = #{strq}</if>
- <if test="phone != null and phone != ''">and s.phone = #{phone}</if>
- <if test="zw != null and zw != ''">and s.zw = #{zw}</if>
- <if test="userId != null ">and s.user_id = #{userId}</if>
- <if test="type != null and type != ''">and s.type = #{type}</if>
- <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
- <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
- <if test="isDel != null and isDel != ''">and s.is_del = #{isDel}</if>
- <if test="cjdId != null ">and s.cjd_id = #{cjdId}</if>
- <if test="cjdName != null and cjdName != ''">and s.cjd_name like concat('%', #{cjdName}, '%')</if>
- <if test="isMeet != null and isMeet != ''">and s.is_meet = #{isMeet}</if>
- <if test="meetRemark != null and meetRemark != ''">and s.meet_remark = #{meetRemark}</if>
- <if test="shjg != null and shjg != ''">and s.shjg = #{shjg}</if>
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
- AND date_format(s.create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
- </if>
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
- AND date_format(s.create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d')
- </if>
- </where>
- <!-- 数据范围过滤 -->
- ${params.dataScope}
- order by s.update_time desc
- </select>
- <select id="selectZsyzSbbzbListPs" parameterType="ZsyzSbbzb" resultMap="ZsyzSbbzbResult">
- select s.id, s.sbdw, s.tbrq, s.zszxfzr, s.xmbh, s.xmxsmc, s.sfwlhxxxm, s.yzdq_id, s.yzdq_name, s.yzss_name,
- s.ntze, s.cylx_id, s.cylx_name, s.xmlb,
- s.tzlb, s.nlhd, s.czpt, s.tzzt, s.xmjz, s.gtzzrsfzhm, s.qytzrxyzdm, s.qybj, s.tzfjj, s.sndxse, s.sndnse,
- s.tzrxm, s.tzrzw, s.tzrdh, s.xmjj, s.name,
- s.strq, s.phone, s.zw, s.user_id, s.create_by, s.type, s.progress,s.xm_status, s.dept_id, s.create_time, s.update_by,
- s.is_del, s.update_time, s.remark, s.cjd_id,
- s.cjd_name, s.is_meet, s.meet_remark,s.shjg,s.psnr,s.czwt,
- q.id, q.xm_id, q.xmbh, q.xmmc, q.dfqyr, q.wfqyr, q.tbrq, q.qyrq,q.xytzely, q.xytze, q.swzj, q.gdzctze,
- q.xmgjrxm,q.xmgjrzw,q.xmgjrsjh,
- q.xmszd, q.sshy, q.tzfs, q.jsfs, q.sfys, q.jsnr,
- q.zlcf,q.gdmj, q.zcqymc, q.zcrq, q.zczb, q.frdb, q.lxfs, q.jyfw, q.lxrq, q.nkgrq,q. path, q.create_by,
- q.create_time,
- q.update_by, q.update_time, q.remark,
- k.id, k.xm_id, k.xmbh, k.xmmc, k.kgrq, k.njgrq, k.sscrq, k.ntcsj, k.rtsj, k.nrtsj, k.kggjrsjh, k.create_by,
- k.create_time, k.update_by,
- k.update_time, k.remark,
- t.id, t.xm_id, t.xmbh, t.xmmc, t.tcrq, t.rgsj, t.nrgsj, t.tcgjrsjh, t.sjdze, t.ydmj, t.tdcr, t.xjcf, t.cftr,
- t.sbqd, t.sbfp, t.sbht, t.fkpz, t.zlcf,
- t.zlcftr, t.zlsbqd, t.zlsbfp, t.zlsbht, t.zlfkpz, t.sjss, t.lxy, t.jnsb, t.zbtr, t.ndsjss, t.qt, t.create_by,
- t.create_time, t.update_by,
- t.update_time, t.remark
- from zsyz_sbbzb s
- left join zsyz_qyxx q on s.id = q.xm_id
- left join zsyz_kgxx k on s.id = k.xm_id
- left join zsyz_tcxx t on s.id = t.xm_id
- <where>
- s.is_del = 'N' and s.psnr is not null
- <if test="sbdw != null and sbdw != ''">and s.sbdw = #{sbdw}</if>
- <if test="tbrq != null ">and s.tbrq = #{tbrq}</if>
- <if test="zszxfzr != null and zszxfzr != ''">and s.zszxfzr = #{zszxfzr}</if>
- <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
- <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
- <if test="sfwlhxxxm != null and sfwlhxxxm != ''">and s.sfwlhxxxm = #{sfwlhxxxm}</if>
- <if test="yzdqId != null and yzdqId != ''">and s.yzdq_id = #{yzdqId}</if>
- <if test="yzdqName != null and yzdqName != ''">and s.yzdq_name like concat('%', #{yzdqName}, '%')</if>
- <if test="yzssName != null and yzssName != ''">and s.yzss_name like concat('%', #{yzssName}, '%')</if>
- <if test="ntze != null and ntze != ''">and s.ntze = #{ntze}</if>
- <if test="cylxId != null and cylxId != ''">and s.cylx_id = #{cylxId}</if>
- <if test="cylxName != null and cylxName != ''">and s.cylx_name like concat('%', #{cylxName}, '%')</if>
- <if test="xmlb != null and xmlb != ''">and s.xmlb = #{xmlb}</if>
- <if test="tzlb != null and tzlb != ''">and s.tzlb = #{tzlb}</if>
- <if test="nlhd != null and nlhd != ''">and s.nlhd = #{nlhd}</if>
- <if test="czpt != null and czpt != ''">and s.czpt = #{czpt}</if>
- <if test="tzzt != null and tzzt != ''">and s.tzzt = #{tzzt}</if>
- <if test="xmjz != null and xmjz != ''">and s.xmjz = #{xmjz}</if>
- <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''">and s.gtzzrsfzhm = #{gtzzrsfzhm}</if>
- <if test="qytzrxyzdm != null and qytzrxyzdm != ''">and s.qytzrxyzdm = #{qytzrxyzdm}</if>
- <if test="qybj != null and qybj != ''">and s.qybj = #{qybj}</if>
- <if test="tzfjj != null and tzfjj != ''">and s.tzfjj = #{tzfjj}</if>
- <if test="sndxse != null and sndxse != ''">and s.sndxse = #{sndxse}</if>
- <if test="sndnse != null and sndnse != ''">and s.sndnse = #{sndnse}</if>
- <if test="tzrxm != null and tzrxm != ''">and s.tzrxm = #{tzrxm}</if>
- <if test="tzrzw != null and tzrzw != ''">and s.tzrzw = #{tzrzw}</if>
- <if test="tzrdh != null and tzrdh != ''">and s.tzrdh = #{tzrdh}</if>
- <if test="xmjj != null and xmjj != ''">and s.xmjj = #{xmjj}</if>
- <if test="name != null and name != ''">and s.name like concat('%', #{name}, '%')</if>
- <if test="strq != null ">and s.strq = #{strq}</if>
- <if test="phone != null and phone != ''">and s.phone = #{phone}</if>
- <if test="zw != null and zw != ''">and s.zw = #{zw}</if>
- <if test="userId != null ">and s.user_id = #{userId}</if>
- <if test="type != null and type != ''">and s.type = #{type}</if>
- <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
- <if test="xmStatus != null and xmStatus != ''">and xm_status = #{xmStatus})</if>
- <if test="isDel != null and isDel != ''">and s.is_del = #{isDel}</if>
- <if test="cjdId != null ">and s.cjd_id = #{cjdId}</if>
- <if test="cjdName != null and cjdName != ''">and s.cjd_name like concat('%', #{cjdName}, '%')</if>
- <if test="isMeet != null and isMeet != ''">and s.is_meet = #{isMeet}</if>
- <if test="meetRemark != null and meetRemark != ''">and s.meet_remark = #{meetRemark}</if>
- <if test="shjg != null and shjg != ''">and s.shjg = #{shjg}</if>
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
- AND date_format(s.create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
- </if>
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
- AND date_format(s.create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d')
- </if>
- </where>
- <!-- 数据范围过滤 -->
- ${params.dataScope}
- order by s.update_time desc
- </select>
- <select id="selectZsyzSbbzbById" parameterType="Long" resultMap="ZsyzSbbzbResult">
- select s.id, s.sbdw, s.tbrq, s.zszxfzr, s.xmbh, s.xmxsmc, s.sfwlhxxxm, s.yzdq_id, s.yzdq_name, s.yzss_name,
- s.ntze, s.cylx_id, s.cylx_name, s.xmlb,
- s.tzlb, s.nlhd, s.czpt, s.tzzt, s.xmjz, s.gtzzrsfzhm, s.qytzrxyzdm, s.qybj, s.tzfjj, s.sndxse, s.sndnse,
- s.tzrxm, s.tzrzw, s.tzrdh, s.xmjj, s.name,
- s.strq, s.phone, s.zw, s.user_id, s.create_by, s.type, s.progress,s.xm_status, s.dept_id, s.create_time, s.update_by,
- s.is_del, s.update_time, s.remark, s.cjd_id,
- s.cjd_name, s.is_meet, s.meet_remark,s.shjg,s.psnr,s.czwt
- from zsyz_sbbzb s
- where s.id = #{id} and s.is_del = 'N'
- </select>
- <select id="selectZsyzSbbzbListDc" parameterType="ZsyzSbbzb" resultMap="ZsyzSbbzbResult">
- select s.id, s.sbdw, s.tbrq, s.zszxfzr, s.xmbh, s.xmxsmc, s.sfwlhxxxm, s.yzdq_id, s.yzdq_name, s.yzss_name,
- s.ntze, s.cylx_id, s.cylx_name, s.xmlb,
- s.tzlb, s.nlhd, s.czpt, s.tzzt, s.xmjz, s.gtzzrsfzhm, s.qytzrxyzdm, s.qybj, s.tzfjj, s.sndxse, s.sndnse,
- s.tzrxm, s.tzrzw, s.tzrdh, s.xmjj, s.name,
- s.strq, s.phone, s.zw, s.user_id, s.create_by, s.type, s.progress,s.xm_status, s.dept_id, s.create_time, s.update_by,
- s.is_del, s.update_time, s.remark, s.cjd_id,
- s.cjd_name, s.is_meet, s.meet_remark,s.psnr,s.czwt,
- q.id, q.xm_id, q.xmbh, q.xmmc, q.dfqyr, q.wfqyr, q.tbrq, q.qyrq,q.xytzely, q.xytze, q.swzj, q.gdzctze,
- q.xmgjrxm,q.xmgjrzw,q.xmgjrsjh,
- q.xmszd, q.sshy, q.tzfs, q.jsfs, q.sfys, q.jsnr,
- q.zlcf,q.gdmj, q.zcqymc, q.zcrq, q.zczb, q.frdb, q.lxfs, q.jyfw, q.lxrq, q.nkgrq,q. path, q.create_by,
- q.create_time,
- q.update_by, q.update_time, q.remark,
- k.id, k.xm_id, k.xmbh, k.xmmc, k.kgrq, k.njgrq, k.sscrq, k.ntcsj, k.rtsj, k.nrtsj, k.kggjrsjh, k.create_by,
- k.create_time, k.update_by,
- k.update_time, k.remark,
- t.id, t.xm_id, t.xmbh, t.xmmc, t.tcrq, t.rgsj, t.nrgsj, t.tcgjrsjh, t.sjdze, t.ydmj, t.tdcr, t.xjcf, t.cftr,
- t.sbqd, t.sbfp, t.sbht, t.fkpz, t.zlcf,
- t.zlcftr, t.zlsbqd, t.zlsbfp, t.zlsbht, t.zlfkpz, t.sjss, t.lxy, t.jnsb, t.zbtr, t.ndsjss, t.qt, t.create_by,
- t.create_time, t.update_by,
- t.update_time, t.remark,
- j.id, j.xm_id, j.xmbh, j.xmmc, j.dept_id, j.dept_name, j.qtr_name, j.qt_time, j.qtrxz, j.qtrdwzw, j.phone, j.blsx,
- j.dbsx, j.jzqk, j.czwt, j.jjjy, j.gzjh
- from zsyz_sbbzb s
- left join zsyz_qyxx q on s.id = q.xm_id
- left join zsyz_kgxx k on s.id = k.xm_id
- left join zsyz_tcxx t on s.id = t.xm_id
- left join zsyz_jzqk j on s.id = j.xm_id
- <where>
- s.is_del = 'N'
- <if test="sbdw != null and sbdw != ''">and s.sbdw = #{sbdw}</if>
- <if test="tbrq != null ">and s.tbrq = #{tbrq}</if>
- <if test="zszxfzr != null and zszxfzr != ''">and s.zszxfzr = #{zszxfzr}</if>
- <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
- <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
- <if test="sfwlhxxxm != null and sfwlhxxxm != ''">and s.sfwlhxxxm = #{sfwlhxxxm}</if>
- <if test="yzdqId != null and yzdqId != ''">and s.yzdq_id = #{yzdqId}</if>
- <if test="yzdqName != null and yzdqName != ''">and s.yzdq_name like concat('%', #{yzdqName}, '%')</if>
- <if test="yzssName != null and yzssName != ''">and s.yzss_name like concat('%', #{yzssName}, '%')</if>
- <if test="ntze != null and ntze != ''">and s.ntze = #{ntze}</if>
- <if test="cylxId != null and cylxId != ''">and s.cylx_id = #{cylxId}</if>
- <if test="cylxName != null and cylxName != ''">and s.cylx_name like concat('%', #{cylxName}, '%')</if>
- <if test="xmlb != null and xmlb != ''">and s.xmlb = #{xmlb}</if>
- <if test="tzlb != null and tzlb != ''">and s.tzlb = #{tzlb}</if>
- <if test="nlhd != null and nlhd != ''">and s.nlhd = #{nlhd}</if>
- <if test="czpt != null and czpt != ''">and s.czpt = #{czpt}</if>
- <if test="tzzt != null and tzzt != ''">and s.tzzt = #{tzzt}</if>
- <if test="xmjz != null and xmjz != ''">and s.xmjz = #{xmjz}</if>
- <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''">and s.gtzzrsfzhm = #{gtzzrsfzhm}</if>
- <if test="qytzrxyzdm != null and qytzrxyzdm != ''">and s.qytzrxyzdm = #{qytzrxyzdm}</if>
- <if test="qybj != null and qybj != ''">and s.qybj = #{qybj}</if>
- <if test="tzfjj != null and tzfjj != ''">and s.tzfjj = #{tzfjj}</if>
- <if test="sndxse != null and sndxse != ''">and s.sndxse = #{sndxse}</if>
- <if test="sndnse != null and sndnse != ''">and s.sndnse = #{sndnse}</if>
- <if test="tzrxm != null and tzrxm != ''">and s.tzrxm = #{tzrxm}</if>
- <if test="tzrzw != null and tzrzw != ''">and s.tzrzw = #{tzrzw}</if>
- <if test="tzrdh != null and tzrdh != ''">and s.tzrdh = #{tzrdh}</if>
- <if test="xmjj != null and xmjj != ''">and s.xmjj = #{xmjj}</if>
- <if test="name != null and name != ''">and s.name like concat('%', #{name}, '%')</if>
- <if test="strq != null ">and s.strq = #{strq}</if>
- <if test="phone != null and phone != ''">and s.phone = #{phone}</if>
- <if test="zw != null and zw != ''">and s.zw = #{zw}</if>
- <if test="userId != null ">and s.user_id = #{userId}</if>
- <if test="type != null and type != ''">and s.type = #{type}</if>
- <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
- <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
- <if test="deptId != null ">and s.dept_id = #{deptId}</if>
- <if test="isDel != null and isDel != ''">and s.is_del = #{isDel}</if>
- <if test="cjdId != null ">and s.cjd_id = #{cjdId}</if>
- <if test="cjdName != null and cjdName != ''">and s.cjd_name like concat('%', #{cjdName}, '%')</if>
- <if test="isMeet != null and isMeet != ''">and s.is_meet = #{isMeet}</if>
- <if test="meetRemark != null and meetRemark != ''">and s.meet_remark = #{meetRemark}</if>
- <if test="shjg != null and shjg != ''">and s.shjg = #{shjg}</if>
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
- AND date_format(s.create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
- </if>
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
- AND date_format(s.create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d')
- </if>
- </where>
- <!-- 数据范围过滤 -->
- ${params.dataScope}
- order by s.update_time desc
- </select>
- <select id="selectZsyzSbbzbListByZp" resultMap="ZsyzSbbzbResult">
- SELECT * from ( select s.id,
- s.sbdw,
- s.tbrq,
- s.zszxfzr,
- s.xmbh,
- s.xmxsmc,
- s.sfwlhxxxm,
- s.yzdq_id,
- s.yzdq_name,
- s.yzss_name,
- s.ntze,
- s.cylx_id,
- s.cylx_name,
- s.xmlb,
- s.tzlb,
- s.nlhd,
- s.czpt,
- s.tzzt,
- s.xmjz,
- s.gtzzrsfzhm,
- s.qytzrxyzdm,
- s.qybj,
- s.tzfjj,
- s.sndxse,
- s.sndnse,
- s.tzrxm,
- s.tzrzw,
- s.tzrdh,
- s.xmjj,
- s.name,
- s.strq,
- s.phone,
- s.zw,
- s.user_id,
- s.create_by,
- s.type,
- s.progress,
- s.xm_status,
- s.dept_id,
- s.create_time,
- s.update_by,
- s.is_del,
- s.update_time,
- s.remark,
- s.cjd_id,
- s.cjd_name,
- s.is_meet,
- s.meet_remark,s.psnr,s.czwt
- from zsyz_project_dept d
- left join zsyz_sbbzb s on s.id = d.xm_id
- where s.is_del = 'N'
- and d.dept_id = #{deptId} and d.is_del = 'N' and d.dept_type = '2'
- <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
- <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
- <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
- <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
- <if test="cjdId != null ">and cjd_id = #{cjdId}</if>
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
- AND date_format(s.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
- </if>
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
- AND date_format(s.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
- </if>
- UNION
- select s.id,
- s.sbdw,
- s.tbrq,
- s.zszxfzr,
- s.xmbh,
- s.xmxsmc,
- s.sfwlhxxxm,
- s.yzdq_id,
- s.yzdq_name,
- s.yzss_name,
- s.ntze,
- s.cylx_id,
- s.cylx_name,
- s.xmlb,
- s.tzlb,
- s.nlhd,
- s.czpt,
- s.tzzt,
- s.xmjz,
- s.gtzzrsfzhm,
- s.qytzrxyzdm,
- s.qybj,
- s.tzfjj,
- s.sndxse,
- s.sndnse,
- s.tzrxm,
- s.tzrzw,
- s.tzrdh,
- s.xmjj,
- s.name,
- s.strq,
- s.phone,
- s.zw,
- s.user_id,
- s.create_by,
- s.type,
- s.progress,
- s.xm_status,
- s.dept_id,
- s.create_time,
- s.update_by,
- s.is_del,
- s.update_time,
- s.remark,
- s.cjd_id,
- s.cjd_name,
- s.is_meet,
- s.meet_remark,s.psnr,s.czwt
- from zsyz_sbbzb s
- where s.is_del = 'N'
- <if test="deptId != null and deptId != ''">and s.dept_id = #{deptId}</if>
- <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
- <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
- <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
- <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
- <if test="cjdId != null ">and cjd_id = #{cjdId}</if>
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
- AND date_format(s.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
- </if>
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
- AND date_format(s.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
- </if>
- )d
- order by d.update_time desc
- </select>
- <select id="selectZsyzSbbzbListByZpPs" resultMap="ZsyzSbbzbResult">
- SELECT * from ( select s.id,
- s.sbdw,
- s.tbrq,
- s.zszxfzr,
- s.xmbh,
- s.xmxsmc,
- s.sfwlhxxxm,
- s.yzdq_id,
- s.yzdq_name,
- s.yzss_name,
- s.ntze,
- s.cylx_id,
- s.cylx_name,
- s.xmlb,
- s.tzlb,
- s.nlhd,
- s.czpt,
- s.tzzt,
- s.xmjz,
- s.gtzzrsfzhm,
- s.qytzrxyzdm,
- s.qybj,
- s.tzfjj,
- s.sndxse,
- s.sndnse,
- s.tzrxm,
- s.tzrzw,
- s.tzrdh,
- s.xmjj,
- s.name,
- s.strq,
- s.phone,
- s.zw,
- s.user_id,
- s.create_by,
- s.type,
- s.progress,
- s.xm_status,
- s.dept_id,
- s.create_time,
- s.update_by,
- s.is_del,
- s.update_time,
- s.remark,
- s.cjd_id,
- s.cjd_name,
- s.is_meet,
- s.meet_remark,s.psnr,s.czwt
- from zsyz_project_dept d
- left join zsyz_sbbzb s on s.id = d.xm_id
- where s.is_del = 'N'
- and d.dept_id = #{deptId} and d.is_del = 'N' and d.dept_type = '2'
- <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
- <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
- <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
- <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
- <if test="cjdId != null ">and cjd_id = #{cjdId}</if>
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
- AND date_format(s.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
- </if>
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
- AND date_format(s.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
- </if>
- UNION
- select s.id,
- s.sbdw,
- s.tbrq,
- s.zszxfzr,
- s.xmbh,
- s.xmxsmc,
- s.sfwlhxxxm,
- s.yzdq_id,
- s.yzdq_name,
- s.yzss_name,
- s.ntze,
- s.cylx_id,
- s.cylx_name,
- s.xmlb,
- s.tzlb,
- s.nlhd,
- s.czpt,
- s.tzzt,
- s.xmjz,
- s.gtzzrsfzhm,
- s.qytzrxyzdm,
- s.qybj,
- s.tzfjj,
- s.sndxse,
- s.sndnse,
- s.tzrxm,
- s.tzrzw,
- s.tzrdh,
- s.xmjj,
- s.name,
- s.strq,
- s.phone,
- s.zw,
- s.user_id,
- s.create_by,
- s.type,
- s.progress,
- s.xm_status,
- s.dept_id,
- s.create_time,
- s.update_by,
- s.is_del,
- s.update_time,
- s.remark,
- s.cjd_id,
- s.cjd_name,
- s.is_meet,
- s.meet_remark,s.psnr,s.czwt
- from zsyz_sbbzb s
- where s.is_del = 'N'
- <if test="deptId != null and deptId != ''">and s.dept_id = #{deptId}</if>
- <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
- <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
- <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
- <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
- <if test="cjdId != null ">and cjd_id = #{cjdId}</if>
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
- AND date_format(s.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
- </if>
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
- AND date_format(s.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
- </if>
- )d
- ${params.dataScope}
- order by d.update_time desc
- </select>
- <select id="selectZsyzSbbzbListCount" resultType="java.lang.Long">
- select count(1)
- from (
- select s.id
- from zsyz_sbbzb s
- left join zsyz_shyj j on s.id = j.xm_id
- <where>
- s.is_del = 'N'
- <if test="sbdw != null and sbdw != ''">and s.sbdw = #{sbdw}</if>
- <if test="tbrq != null ">and s.tbrq = #{tbrq}</if>
- <if test="zszxfzr != null and zszxfzr != ''">and s.zszxfzr = #{zszxfzr}</if>
- <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
- <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
- <if test="sfwlhxxxm != null and sfwlhxxxm != ''">and s.sfwlhxxxm = #{sfwlhxxxm}</if>
- <if test="yzdqId != null and yzdqId != ''">and s.yzdq_id = #{yzdqId}</if>
- <if test="yzdqName != null and yzdqName != ''">and s.yzdq_name like concat('%', #{yzdqName}, '%')</if>
- <if test="yzssName != null and yzssName != ''">and s.yzss_name like concat('%', #{yzssName}, '%')</if>
- <if test="ntze != null and ntze != ''">and s.ntze = #{ntze}</if>
- <if test="cylxId != null and cylxId != ''">and s.cylx_id = #{cylxId}</if>
- <if test="cylxName != null and cylxName != ''">and s.cylx_name like concat('%', #{cylxName}, '%')</if>
- <if test="xmlb != null and xmlb != ''">and s.xmlb = #{xmlb}</if>
- <if test="tzlb != null and tzlb != ''">and s.tzlb = #{tzlb}</if>
- <if test="nlhd != null and nlhd != ''">and s.nlhd = #{nlhd}</if>
- <if test="czpt != null and czpt != ''">and s.czpt = #{czpt}</if>
- <if test="tzzt != null and tzzt != ''">and s.tzzt = #{tzzt}</if>
- <if test="xmjz != null and xmjz != ''">and s.xmjz = #{xmjz}</if>
- <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''">and s.gtzzrsfzhm = #{gtzzrsfzhm}</if>
- <if test="qytzrxyzdm != null and qytzrxyzdm != ''">and s.qytzrxyzdm = #{qytzrxyzdm}</if>
- <if test="qybj != null and qybj != ''">and s.qybj = #{qybj}</if>
- <if test="tzfjj != null and tzfjj != ''">and s.tzfjj = #{tzfjj}</if>
- <if test="sndxse != null and sndxse != ''">and s.sndxse = #{sndxse}</if>
- <if test="sndnse != null and sndnse != ''">and s.sndnse = #{sndnse}</if>
- <if test="tzrxm != null and tzrxm != ''">and s.tzrxm = #{tzrxm}</if>
- <if test="tzrzw != null and tzrzw != ''">and s.tzrzw = #{tzrzw}</if>
- <if test="tzrdh != null and tzrdh != ''">and s.tzrdh = #{tzrdh}</if>
- <if test="xmjj != null and xmjj != ''">and s.xmjj = #{xmjj}</if>
- <if test="name != null and name != ''">and s.name like concat('%', #{name}, '%')</if>
- <if test="strq != null ">and s.strq = #{strq}</if>
- <if test="phone != null and phone != ''">and s.phone = #{phone}</if>
- <if test="zw != null and zw != ''">and s.zw = #{zw}</if>
- <if test="userId != null ">and s.user_id = #{userId}</if>
- <if test="type != null and type != ''">and s.type = #{type}</if>
- <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
- <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
- <if test="cjdId != null ">and s.cjd_id = #{cjdId}</if>
- <if test="cjdName != null and cjdName != ''">and s.cjd_name like concat('%', #{cjdName}, '%')</if>
- <if test="isMeet != null and isMeet != ''">and s.is_meet = #{isMeet}</if>
- <if test="meetRemark != null and meetRemark != ''">and s.meet_remark = #{meetRemark}</if>
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
- AND date_format(s.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
- </if>
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
- AND date_format(s.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
- </if>
- </where>
- group by s.id ) a
- </select>
- <select id="selectZsyzSbbzbCjdList" parameterType="ZsyzSbbzb" resultMap="ZsyzSbbzbResult">
- <include refid="selectZsyzSbbzbVo"/>
- <where>
- is_del = 'N'
- <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
- <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
- <if test="cjdId != null ">and (cjd_id = #{cjdId} or dept_id = #{cjdId})</if>
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
- AND date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
- </if>
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
- AND date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
- </if>
- </where>
- order by update_time desc
- </select>
- <select id="selectZsyzSbbzbListYz" resultMap="ZsyzSbbzbResult">
- select s.id,
- s.sbdw,
- s.tbrq,
- s.zszxfzr,
- s.xmbh,
- s.xmxsmc,
- s.sfwlhxxxm,
- s.yzdq_id,
- s.yzdq_name,
- s.yzss_name,
- s.ntze,
- s.cylx_id,
- s.cylx_name,
- s.xmlb,
- s.tzlb,
- s.nlhd,
- s.czpt,
- s.tzzt,
- s.xmjz,
- s.gtzzrsfzhm,
- s.qytzrxyzdm,
- s.qybj,
- s.tzfjj,
- s.sndxse,
- s.sndnse,
- s.tzrxm,
- s.tzrzw,
- s.tzrdh,
- s.xmjj,
- s.name,
- s.strq,
- s.phone,
- s.zw,
- s.user_id,
- s.create_by,
- s.type,
- s.progress,
- s.xm_status,
- s.dept_id,
- s.create_time,
- s.update_by,
- s.is_del,
- s.update_time,
- s.remark,
- s.cjd_id,
- s.cjd_name,
- s.is_meet,
- s.meet_remark,s.psnr,s.czwt
- from zsyz_project_dept d
- left join zsyz_sbbzb s on s.id = d.xm_id
- where s.is_del = 'N'
- and d.dept_id = #{deptId} and d.is_del = 'N' and d.dept_type = '3'
- <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
- <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
- <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
- <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
- <if test="cjdId != null ">and cjd_id = #{cjdId}</if>
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
- AND date_format(s.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
- </if>
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
- AND date_format(s.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
- </if>
- order by d.update_time desc
- </select>
- <select id="selectZsyzSbbzbListTz" resultMap="ZsyzSbbzbResult">
- SELECT
- ANY_VALUE(a.id) AS id,
- ANY_VALUE(a.xmbh) AS xmbh,
- ANY_VALUE(a.xmxsmc) AS xmxsmc,
- ANY_VALUE(a.user_id) AS user_id,
- ANY_VALUE(a.progress) AS progress,
- ANY_VALUE(a.xm_status) AS xm_status,
- ANY_VALUE(a.dept_id) AS dept_id,
- ANY_VALUE(MAX(a.shsj)) AS shsj
- FROM
- (
- SELECT
- s.id as id,
- s.xmbh as xmbh,
- s.xmxsmc as xmxsmc,
- s.user_id as user_id,
- s.progress as progress,
- s.xm_status as xm_status,
- s.dept_id as dept_id,
- j.shsj as shsj
- FROM
- zsyz_sbbzb s
- LEFT JOIN zsyz_shyj j ON s.xmbh = j.xmbh
- WHERE
- s.is_del = 'N'
- AND j.xmjd = '项目首谈'
- AND j.shjg = 2
- <if test="year != null and year != ''">and j.shsj like concat( #{year}, '%')</if>
- <if test="deptId != null ">and s.dept_id = #{deptId}</if>
- ) a
- GROUP BY
- a.xmbh
- </select>
- <!--<select id="selectZsyzSbbzbListTz" resultMap="ZsyzSbbzbResult">
- SELECT
- a.id,
- a.xmbh,
- a.xmxsmc,
- a.user_id,
- a.progress,
- a.xm_status,
- a.dept_id,
- MAX(a.shsj) AS shsj
- FROM
- (
- SELECT
- s.id as id,
- s.xmbh as xmbh,
- s.xmxsmc as xmxsmc,
- s.user_id as user_id,
- s.progress as progress,
- s.xm_status as xm_status,
- s.dept_id as dept_id,
- j.shsj as shsj
- FROM
- zsyz_sbbzb s
- LEFT JOIN zsyz_shyj j ON s.xmbh = j.xmbh
- WHERE
- s.is_del = 'N'
- AND j.xmjd = '项目首谈'
- AND j.shjg = 2
- <if test="year != null and year != ''">and s.cjd_name like concat( #{year}, '%')</if>
- ) a
- GROUP BY
- a.xmbh
- </select>-->
- <insert id="insertZsyzSbbzb" parameterType="ZsyzSbbzb" useGeneratedKeys="true" keyProperty="id">
- insert into zsyz_sbbzb
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="sbdw != null and sbdw != ''">sbdw,</if>
- <if test="tbrq != null">tbrq,</if>
- <if test="zszxfzr != null and zszxfzr != ''">zszxfzr,</if>
- <if test="xmbh != null">xmbh,</if>
- <if test="xmxsmc != null and xmxsmc != ''">xmxsmc,</if>
- <if test="sfwlhxxxm != null and sfwlhxxxm != ''">sfwlhxxxm,</if>
- <if test="yzdqId != null and yzdqId != ''">yzdq_id,</if>
- <if test="yzdqName != null and yzdqName != ''">yzdq_name,</if>
- <if test="yzssName != null and yzssName != ''">yzss_name,</if>
- <if test="ntze != null and ntze != ''">ntze,</if>
- <if test="cylxId != null and cylxId != ''">cylx_id,</if>
- <if test="cylxName != null and cylxName != ''">cylx_name,</if>
- <if test="xmlb != null and xmlb != ''">xmlb,</if>
- <if test="tzlb != null and tzlb != ''">tzlb,</if>
- <if test="nlhd != null and nlhd != ''">nlhd,</if>
- <if test="czpt != null and czpt != ''">czpt,</if>
- <if test="tzzt != null and tzzt != ''">tzzt,</if>
- <if test="xmjz != null and xmjz != ''">xmjz,</if>
- <if test="gtzzrsfzhm != null">gtzzrsfzhm,</if>
- <if test="qytzrxyzdm != null">qytzrxyzdm,</if>
- <if test="qybj != null and qybj != ''">qybj,</if>
- <if test="tzfjj != null">tzfjj,</if>
- <if test="sndxse != null">sndxse,</if>
- <if test="sndnse != null">sndnse,</if>
- <if test="tzrxm != null">tzrxm,</if>
- <if test="tzrzw != null">tzrzw,</if>
- <if test="tzrdh != null">tzrdh,</if>
- <if test="xmjj != null">xmjj,</if>
- <if test="name != null and name != ''">name,</if>
- <if test="strq != null">strq,</if>
- <if test="phone != null and phone != ''">phone,</if>
- <if test="zw != null and zw != ''">zw,</if>
- <if test="userId != null">user_id,</if>
- <if test="createBy != null">create_by,</if>
- <if test="type != null">type,</if>
- <if test="progress != null">progress,</if>
- <if test="xmStatus != null">xm_status,</if>
- <if test="deptId != null">dept_id,</if>
- <if test="createTime != null">create_time,</if>
- <if test="updateBy != null">update_by,</if>
- <if test="isDel != null">is_del,</if>
- <if test="updateTime != null">update_time,</if>
- <if test="remark != null">remark,</if>
- <if test="cjdId != null">cjd_id,</if>
- <if test="cjdName != null">cjd_name,</if>
- <if test="isMeet != null">is_meet,</if>
- <if test="meetRemark != null">meet_remark,</if>
- <if test="shjg != null">shjg,</if>
- <if test="psnr != null">psnr,</if>
- <if test="czwt != null">czwt,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="sbdw != null and sbdw != ''">#{sbdw},</if>
- <if test="tbrq != null">#{tbrq},</if>
- <if test="zszxfzr != null and zszxfzr != ''">#{zszxfzr},</if>
- <if test="xmbh != null">#{xmbh},</if>
- <if test="xmxsmc != null and xmxsmc != ''">#{xmxsmc},</if>
- <if test="sfwlhxxxm != null and sfwlhxxxm != ''">#{sfwlhxxxm},</if>
- <if test="yzdqId != null and yzdqId != ''">#{yzdqId},</if>
- <if test="yzdqName != null and yzdqName != ''">#{yzdqName},</if>
- <if test="yzssName != null and yzssName != ''">#{yzssName},</if>
- <if test="ntze != null and ntze != ''">#{ntze},</if>
- <if test="cylxId != null and cylxId != ''">#{cylxId},</if>
- <if test="cylxName != null and cylxName != ''">#{cylxName},</if>
- <if test="xmlb != null and xmlb != ''">#{xmlb},</if>
- <if test="tzlb != null and tzlb != ''">#{tzlb},</if>
- <if test="nlhd != null and nlhd != ''">#{nlhd},</if>
- <if test="czpt != null and czpt != ''">#{czpt},</if>
- <if test="tzzt != null and tzzt != ''">#{tzzt},</if>
- <if test="xmjz != null and xmjz != ''">#{xmjz},</if>
- <if test="gtzzrsfzhm != null">#{gtzzrsfzhm},</if>
- <if test="qytzrxyzdm != null">#{qytzrxyzdm},</if>
- <if test="qybj != null and qybj != ''">#{qybj},</if>
- <if test="tzfjj != null">#{tzfjj},</if>
- <if test="sndxse != null">#{sndxse},</if>
- <if test="sndnse != null">#{sndnse},</if>
- <if test="tzrxm != null">#{tzrxm},</if>
- <if test="tzrzw != null">#{tzrzw},</if>
- <if test="tzrdh != null">#{tzrdh},</if>
- <if test="xmjj != null">#{xmjj},</if>
- <if test="name != null and name != ''">#{name},</if>
- <if test="strq != null">#{strq},</if>
- <if test="phone != null and phone != ''">#{phone},</if>
- <if test="zw != null and zw != ''">#{zw},</if>
- <if test="userId != null">#{userId},</if>
- <if test="createBy != null">#{createBy},</if>
- <if test="type != null">#{type},</if>
- <if test="progress != null">#{progress},</if>
- <if test="xmStatus != null">#{xmStatus},</if>
- <if test="deptId != null">#{deptId},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="updateBy != null">#{updateBy},</if>
- <if test="isDel != null">#{isDel},</if>
- <if test="updateTime != null">#{updateTime},</if>
- <if test="remark != null">#{remark},</if>
- <if test="cjdId != null">#{cjdId},</if>
- <if test="cjdName != null">#{cjdName},</if>
- <if test="isMeet != null">#{isMeet},</if>
- <if test="meetRemark != null">#{meetRemark},</if>
- <if test="shjg != null">#{shjg},</if>
- <if test="psnr != null">#{psnr},</if>
- <if test="czwt != null">#{czwt},</if>
- </trim>
- </insert>
- <update id="updateZsyzSbbzb" parameterType="ZsyzSbbzb">
- update zsyz_sbbzb
- <trim prefix="SET" suffixOverrides=",">
- <if test="sbdw != null and sbdw != ''">sbdw = #{sbdw},</if>
- <if test="tbrq != null">tbrq = #{tbrq},</if>
- <if test="zszxfzr != null and zszxfzr != ''">zszxfzr = #{zszxfzr},</if>
- <if test="xmbh != null">xmbh = #{xmbh},</if>
- <if test="xmxsmc != null and xmxsmc != ''">xmxsmc = #{xmxsmc},</if>
- <if test="sfwlhxxxm != null and sfwlhxxxm != ''">sfwlhxxxm = #{sfwlhxxxm},</if>
- <if test="yzdqId != null and yzdqId != ''">yzdq_id = #{yzdqId},</if>
- <if test="yzdqName != null and yzdqName != ''">yzdq_name = #{yzdqName},</if>
- <if test="yzssName != null and yzssName != ''">yzss_name = #{yzssName},</if>
- <if test="ntze != null and ntze != ''">ntze = #{ntze},</if>
- <if test="cylxId != null and cylxId != ''">cylx_id = #{cylxId},</if>
- <if test="cylxName != null and cylxName != ''">cylx_name = #{cylxName},</if>
- <if test="xmlb != null and xmlb != ''">xmlb = #{xmlb},</if>
- <if test="tzlb != null and tzlb != ''">tzlb = #{tzlb},</if>
- <if test="nlhd != null and nlhd != ''">nlhd = #{nlhd},</if>
- <if test="czpt != null and czpt != ''">czpt = #{czpt},</if>
- <if test="tzzt != null and tzzt != ''">tzzt = #{tzzt},</if>
- <if test="xmjz != null and xmjz != ''">xmjz = #{xmjz},</if>
- <if test="gtzzrsfzhm != null">gtzzrsfzhm = #{gtzzrsfzhm},</if>
- <if test="qytzrxyzdm != null">qytzrxyzdm = #{qytzrxyzdm},</if>
- <if test="qybj != null and qybj != ''">qybj = #{qybj},</if>
- <if test="tzfjj != null">tzfjj = #{tzfjj},</if>
- <if test="sndxse != null">sndxse = #{sndxse},</if>
- <if test="sndnse != null">sndnse = #{sndnse},</if>
- <if test="tzrxm != null">tzrxm = #{tzrxm},</if>
- <if test="tzrzw != null">tzrzw = #{tzrzw},</if>
- <if test="tzrdh != null">tzrdh = #{tzrdh},</if>
- <if test="xmjj != null">xmjj = #{xmjj},</if>
- <if test="name != null and name != ''">name = #{name},</if>
- <if test="strq != null">strq = #{strq},</if>
- <if test="phone != null and phone != ''">phone = #{phone},</if>
- <if test="zw != null and zw != ''">zw = #{zw},</if>
- <if test="userId != null">user_id = #{userId},</if>
- <if test="createBy != null">create_by = #{createBy},</if>
- <if test="type != null">type = #{type},</if>
- <if test="progress != null">progress = #{progress},</if>
- <if test="xmStatus != null">xm_status = #{xmStatus},</if>
- <if test="deptId != null">dept_id = #{deptId},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
- <if test="updateBy != null">update_by = #{updateBy},</if>
- <if test="isDel != null">is_del = #{isDel},</if>
- <if test="updateTime != null">update_time = #{updateTime},</if>
- <if test="remark != null">remark = #{remark},</if>
- <if test="cjdId != null">cjd_id = #{cjdId},</if>
- <if test="cjdName != null">cjd_name = #{cjdName},</if>
- <if test="isMeet != null">is_meet = #{isMeet},</if>
- <if test="meetRemark != null">meet_remark = #{meetRemark},</if>
- <if test="shjg != null">shjg = #{shjg},</if>
- <if test="psnr != null">psnr = #{psnr},</if>
- <if test="czwt != null">czwt = #{czwt},</if>
- </trim>
- where id = #{id}
- </update>
- <update id="updateZsyzSbbzbCjd" parameterType="ZsyzSbbzb">
- update zsyz_sbbzb
- <trim prefix="SET" suffixOverrides=",">
- <if test="progress != null">progress = #{progress},</if>
- <if test="xmStatus != null">xm_status = #{xmStatus},</if>
- <if test="cjdId != null">cjd_id = #{cjdId},</if>
- <if test="cjdName != null">cjd_name = #{cjdName},</if>
- </trim>
- where id = #{id}
- </update>
- <update id="updateZsyzSbbzbForZc" parameterType="ZsyzSbbzb">
- update zsyz_sbbzb
- <trim prefix="SET" suffixOverrides=",">
- <if test="type != null and type != ''">type = #{type},</if>
- <if test="isDel != null and isDel != ''">is_del = #{isDel},</if>
- </trim>
- where id = #{id}
- </update>
- <update id="updateZsyzSbbzbProgress" parameterType="ZsyzSbbzb">
- update zsyz_sbbzb
- <trim prefix="SET" suffixOverrides=",">
- <if test="progress != null and progress != ''">progress = #{progress},</if>
- <if test="xmStatus != null and xmStatus != ''">xm_status = #{xmStatus},</if>
- <if test="shjg != null and shjg != ''">shjg = #{shjg},</if>
- <if test=" progress == 1">cjd_id = null,</if>
- <if test=" progress == 1">cjd_name = null,</if>
- <if test=" sfwlhxxxm != null">sfwlhxxxm = #{sfwlhxxxm},</if>
- <if test="updateTime != null">update_time = #{updateTime},</if>
- </trim>
- where id = #{id}
- </update>
- <update id="updateZsyzSbbzbMeet" parameterType="ZsyzSbbzb">
- update zsyz_sbbzb
- set is_meet = #{isMeet}
- where id = #{id}
- </update>
- <delete id="deleteZsyzSbbzbById" parameterType="Long">
- delete
- from zsyz_sbbzb
- where id = #{id}
- </delete>
- <delete id="deleteZsyzSbbzbByIds" parameterType="String">
- delete from zsyz_sbbzb where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- </mapper>
|