|
@@ -65,7 +65,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<include refid="selectZsyzDbdVo"/>
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
-
|
|
|
+ <select id="number" resultType="java.lang.Long">
|
|
|
+ select count(1) from zsyz_dbd
|
|
|
+ <where>
|
|
|
+ is_hf = 'N'
|
|
|
+ <if test="dh != null and dh != ''"> and dh = #{dh}</if>
|
|
|
+ <if test="xmId != null "> and xm_id = #{xmId}</if>
|
|
|
+ <if test="xmbh != null and xmbh != ''"> and xmbh = #{xmbh}</if>
|
|
|
+ <if test="xmmc != null and xmmc != ''"> and xmmc = #{xmmc}</if>
|
|
|
+ <if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
+ <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
|
|
+ <if test="isHf != null and isHf != ''"> and is_hf = #{isHf}</if>
|
|
|
+ <if test="dbTime != null "> and db_time = #{dbTime}</if>
|
|
|
+ <if test="blsx != null and blsx != ''"> and blsx = #{blsx}</if>
|
|
|
+ <if test="dbsx != null and dbsx != ''"> and dbsx = #{dbsx}</if>
|
|
|
+ <if test="jzqk != null and jzqk != ''"> and jzqk = #{jzqk}</if>
|
|
|
+ <if test="czwt != null and czwt != ''"> and czwt = #{czwt}</if>
|
|
|
+ <if test="jjjy != null and jjjy != ''"> and jjjy = #{jjjy}</if>
|
|
|
+ <if test="gzjh != null and gzjh != ''"> and gzjh = #{gzjh}</if>
|
|
|
+ <if test="tbr != null and tbr != ''"> and tbr = #{tbr}</if>
|
|
|
+ <if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
|
|
+ <if test="tbTime != null "> and tb_time = #{tbTime}</if>
|
|
|
+ <if test="dbType != null "> and db_type = #{dbType}</if>
|
|
|
+ <if test="progress != null "> and progress = #{progress}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
<insert id="insertZsyzDbd" parameterType="ZsyzDbd" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into zsyz_dbd
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|