|
@@ -2,6 +2,8 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.ORg//DTD Mapper 3.0//EN" "http://mybatis.ORg/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
|
<mapper namespace="com.tofly.feesapi.yhgl.mapper.YhKhjbxxMapper">
|
|
|
+
|
|
|
+
|
|
|
|
|
|
<select id="selectMaxYhbh" resultType="int">
|
|
|
SELECT nvl(max(yhbh),0) from yh_khjbxx
|
|
@@ -37,6 +39,46 @@
|
|
|
LEFT JOIN bm_cbb f on a.sscbb=f.cbbbm
|
|
|
WHERE a.yhbh=#{yhbh}
|
|
|
</select>
|
|
|
+
|
|
|
+ <sql id="querySql_cbbwfp">
|
|
|
+ select *from yh_khjbxx where 1=1 and sscbb is null
|
|
|
+
|
|
|
+ <if test="filter.searchText!=null">
|
|
|
+ AND ( yhbh like '%${filter.searchText}%'
|
|
|
+ OR yhxm like '%${filter.searchText}%'
|
|
|
+ OR yhdz like '%${filter.searchText}%'
|
|
|
+ OR lxdh like '%${filter.searchText}%')
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="filter.ssgs!=null">
|
|
|
+ AND ssgs=#{filter.ssgs}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="filter.sscbpq!=null">
|
|
|
+ AND sscbpq=#{filter.sscbpq}
|
|
|
+ </if>
|
|
|
+ </sql>
|
|
|
+
|
|
|
+
|
|
|
+ <sql id="querySql_cbbyfp">
|
|
|
+ select *from yh_khjbxx where 1=1 and sscbb is not null
|
|
|
+
|
|
|
+ <if test="filter.searchText!=null">
|
|
|
+ AND ( yhbh like '%${filter.searchText}%'
|
|
|
+ OR yhxm like '%${filter.searchText}%'
|
|
|
+ OR yhdz like '%${filter.searchText}%'
|
|
|
+ OR lxdh like '%${filter.searchText}%')
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="filter.ssgs!=null">
|
|
|
+ AND ssgs=#{filter.ssgs}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="filter.sscbpq!=null">
|
|
|
+ AND sscbpq=#{filter.sscbpq}
|
|
|
+ </if>
|
|
|
+ </sql>
|
|
|
+
|
|
|
<sql id="querySql">
|
|
|
SELECT a.yhbh,a.ykhbh, a.yhxm,a.yhdz,a.lxdh, a.ssgs,a.sscbpq,a.sscbb,a.xb,a.sj,a.zzdh,a.gzdw,a.bgdh,
|
|
|
a.dzyx,a.zjlb,a.zjhm,a.sqrq,
|
|
@@ -123,6 +165,12 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
</sql>
|
|
|
+ <select id="getPage_cbbwfp" resultType="com.tofly.feesapi.yhgl.entity.vo.YhkhjbxxSelect">
|
|
|
+ <include refid="querySql_cbbwfp"></include>
|
|
|
+ </select>
|
|
|
+ <select id="getPage_cbbyfp" resultType="com.tofly.feesapi.yhgl.entity.vo.YhkhjbxxSelect">
|
|
|
+ <include refid="querySql_cbbyfp"></include>
|
|
|
+ </select>
|
|
|
|
|
|
<select id="getPage" resultType="com.tofly.feesapi.yhgl.entity.vo.YhkhjbxxSelect">
|
|
|
<include refid="querySql"></include>
|