|
@@ -54,6 +54,11 @@
|
|
|
<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"/>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
<association property="zsyzQyxx" javaType="ZsyzQyxx" resultMap="ZsyzQyxxResult"/>
|
|
@@ -254,7 +259,7 @@
|
|
|
cjd_name,
|
|
|
is_meet,
|
|
|
meet_remark,
|
|
|
- shjg
|
|
|
+ shjg,psnr
|
|
|
from zsyz_sbbzb
|
|
|
</sql>
|
|
|
|
|
@@ -265,7 +270,7 @@
|
|
|
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.cjd_name, s.is_meet, s.meet_remark,s.shjg,s.psnr,
|
|
|
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,
|
|
@@ -340,6 +345,90 @@
|
|
|
order by s.create_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,
|
|
|
+ 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 = #{xmbh}</if>
|
|
|
+ <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc = #{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.create_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,
|
|
@@ -347,7 +436,7 @@
|
|
|
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.cjd_name, s.is_meet, s.meet_remark,s.shjg,s.psnr
|
|
|
from zsyz_sbbzb s
|
|
|
where s.id = #{id} and s.is_del = 'N'
|
|
|
</select>
|
|
@@ -359,7 +448,7 @@
|
|
|
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.cjd_name, s.is_meet, s.meet_remark,s.psnr,
|
|
|
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,
|
|
@@ -485,7 +574,7 @@
|
|
|
s.cjd_id,
|
|
|
s.cjd_name,
|
|
|
s.is_meet,
|
|
|
- s.meet_remark
|
|
|
+ s.meet_remark,s.psnr
|
|
|
from zsyz_project_dept d
|
|
|
left join zsyz_sbbzb s on s.id = d.xm_id
|
|
|
where s.is_del = 'N'
|
|
@@ -550,7 +639,7 @@
|
|
|
s.cjd_id,
|
|
|
s.cjd_name,
|
|
|
s.is_meet,
|
|
|
- s.meet_remark
|
|
|
+ s.meet_remark,s.psnr
|
|
|
from zsyz_sbbzb s
|
|
|
where s.is_del = 'N'
|
|
|
<if test="deptId != null and deptId != ''">and s.dept_id = #{deptId}</if>
|
|
@@ -569,126 +658,140 @@
|
|
|
|
|
|
order by d.create_time desc
|
|
|
</select>
|
|
|
- <select id="ldpsList" 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,
|
|
|
- j.id,j.xm_id,j.xmbh,j.xmmc,j.dept_id,j.shrxm,j.xmjd,j.shjg,j.shyj,j.shsj
|
|
|
- from zsyz_sbbzb s
|
|
|
- left join zsyz_shyj j on s.id = j.xm_id
|
|
|
- left join zsyz_ldps l on l.source_id = j.id
|
|
|
- <where>
|
|
|
- s.is_del = 'N' and l.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 = #{xmbh}</if>
|
|
|
- <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc = #{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>
|
|
|
- <!-- 数据范围过滤 -->
|
|
|
- ${params.dataScope}
|
|
|
- order by cjsj desc
|
|
|
- </select>
|
|
|
- <select id="ldpsListCount" resultType="java.lang.Long">
|
|
|
- select count(1)
|
|
|
- from (select s.id
|
|
|
+
|
|
|
+ <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
|
|
|
+ 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="xmxsmc != null and xmxsmc != ''">and s.xmxsmc = #{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
|
|
|
from zsyz_sbbzb s
|
|
|
- left join zsyz_shyj j on s.id = j.xm_id
|
|
|
- left join zsyz_ldps l on l.source_id = j.id
|
|
|
- where s.is_del = 'N' and l.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 = #{xmbh}</if>
|
|
|
+ where s.is_del = 'N'
|
|
|
+ <if test="deptId != null and deptId != ''">and s.dept_id = #{deptId}</if>
|
|
|
<if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc = #{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 and find_in_set(s.progress , #{progress})</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="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>
|
|
|
- group by s.id ) a
|
|
|
+
|
|
|
+ )d
|
|
|
+
|
|
|
+ order by d.create_time desc
|
|
|
</select>
|
|
|
+
|
|
|
<select id="selectZsyzSbbzbListCount" resultType="java.lang.Long">
|
|
|
select count(1)
|
|
|
from (
|
|
@@ -810,7 +913,7 @@
|
|
|
s.cjd_id,
|
|
|
s.cjd_name,
|
|
|
s.is_meet,
|
|
|
- s.meet_remark
|
|
|
+ s.meet_remark,s.psnr
|
|
|
from zsyz_project_dept d
|
|
|
left join zsyz_sbbzb s on s.id = d.xm_id
|
|
|
where s.is_del = 'N'
|
|
@@ -828,6 +931,75 @@
|
|
|
order by d.create_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
|
|
@@ -880,6 +1052,7 @@
|
|
|
<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>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="sbdw != null and sbdw != ''">#{sbdw},</if>
|
|
@@ -930,6 +1103,7 @@
|
|
|
<if test="isMeet != null">#{isMeet},</if>
|
|
|
<if test="meetRemark != null">#{meetRemark},</if>
|
|
|
<if test="shjg != null">#{shjg},</if>
|
|
|
+ <if test="psnr != null">#{psnr},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -984,6 +1158,7 @@
|
|
|
<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>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|