|
@@ -1008,6 +1008,61 @@
|
|
|
GROUP BY
|
|
|
a.xmbh
|
|
|
</select>-->
|
|
|
+ <select id="selectZsyzSbbzbCcList" resultType="java.lang.Integer" parameterType="ZsyzSbbzb">
|
|
|
+ select count(0)
|
|
|
+ from zsyz_sbbzb s
|
|
|
+ <where>
|
|
|
+ s.is_del = 'N'
|
|
|
+ <if test="sbdw != null and sbdw != ''">and sbdw = #{sbdw}</if>
|
|
|
+ <if test="tbrq != null ">and tbrq = #{tbrq}</if>
|
|
|
+ <if test="zszxfzr != null and zszxfzr != ''">and zszxfzr = #{zszxfzr}</if>
|
|
|
+ <if test="xmxsmc != null and xmxsmc != ''">and xmxsmc = #{xmxsmc}</if>
|
|
|
+ <if test="sfwlhxxxm != null and sfwlhxxxm != ''">and sfwlhxxxm = #{sfwlhxxxm}</if>
|
|
|
+ <if test="yzdqId != null and yzdqId != ''">and yzdq_id = #{yzdqId}</if>
|
|
|
+ <if test="yzdqName != null and yzdqName != ''">and yzdq_name = #{yzdqName}</if>
|
|
|
+ <if test="yzssName != null and yzssName != ''">and yzss_name = #{yzssName}</if>
|
|
|
+ <if test="ntze != null and ntze != ''">and ntze = #{ntze}</if>
|
|
|
+ <if test="cylxId != null and cylxId != ''">and cylx_id = #{cylxId}</if>
|
|
|
+ <if test="cylxName != null and cylxName != ''">and cylx_name = #{cylxName}</if>
|
|
|
+ <if test="xmlb != null and xmlb != ''">and xmlb = #{xmlb}</if>
|
|
|
+ <if test="tzlb != null and tzlb != ''">and tzlb = #{tzlb}</if>
|
|
|
+ <if test="nlhd != null and nlhd != ''">and nlhd = #{nlhd}</if>
|
|
|
+ <if test="czpt != null and czpt != ''">and czpt = #{czpt}</if>
|
|
|
+ <if test="tzzt != null and tzzt != ''">and tzzt = #{tzzt}</if>
|
|
|
+ <if test="xmjz != null and xmjz != ''">and xmjz = #{xmjz}</if>
|
|
|
+ <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''">and gtzzrsfzhm = #{gtzzrsfzhm}</if>
|
|
|
+ <if test="qytzrxyzdm != null and qytzrxyzdm != ''">and qytzrxyzdm = #{qytzrxyzdm}</if>
|
|
|
+ <if test="qybj != null and qybj != ''">and qybj = #{qybj}</if>
|
|
|
+ <if test="tzfjj != null and tzfjj != ''">and tzfjj = #{tzfjj}</if>
|
|
|
+ <if test="sndxse != null and sndxse != ''">and sndxse = #{sndxse}</if>
|
|
|
+ <if test="sndnse != null and sndnse != ''">and sndnse = #{sndnse}</if>
|
|
|
+ <if test="tzrxm != null and tzrxm != ''">and tzrxm = #{tzrxm}</if>
|
|
|
+ <if test="tzrzw != null and tzrzw != ''">and tzrzw = #{tzrzw}</if>
|
|
|
+ <if test="tzrdh != null and tzrdh != ''">and tzrdh = #{tzrdh}</if>
|
|
|
+ <if test="xmjj != null and xmjj != ''">and xmjj = #{xmjj}</if>
|
|
|
+ <if test="name != null and name != ''">and name = #{name}</if>
|
|
|
+ <if test="strq != null ">and strq = #{strq}</if>
|
|
|
+ <if test="phone != null and phone != ''">and phone = #{phone}</if>
|
|
|
+ <if test="zw != null and zw != ''">and zw = #{zw}</if>
|
|
|
+ <if test="userId != null ">and user_id = #{userId}</if>
|
|
|
+ <if test="type != null and type != ''">and type = #{type}</if>
|
|
|
+ <if test="progress != null and progress != ''">and find_in_set(progress , #{progress})</if>
|
|
|
+ <if test="xmStatus != null and xmStatus != ''">and xm_status = #{xmStatus}</if>
|
|
|
+ <if test="isDel != null and isDel != ''">and is_del = #{isDel}</if>
|
|
|
+ <if test="cjdId != null ">and cjd_id = #{cjdId}</if>
|
|
|
+ <if test="cjdName != null and cjdName != ''">and cjd_name like concat('%', #{cjdName}, '%')</if>
|
|
|
+ <if test="isMeet != null and isMeet != ''">and is_meet = #{isMeet}</if>
|
|
|
+ <if test="meetRemark != null and meetRemark != ''">and meet_remark = #{meetRemark}</if>
|
|
|
+ <if test="shjg != null and shjg != ''">and shjg = #{shjg}</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>
|
|
|
+ </select>
|
|
|
+
|
|
|
|
|
|
|
|
|
<insert id="insertZsyzSbbzb" parameterType="ZsyzSbbzb" useGeneratedKeys="true" keyProperty="id">
|