|
@@ -60,19 +60,17 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getPage" resultType="com.tofly.feesapi.bjgl.entity.vo.YhCbkxxSelect2">
|
|
|
- <include refid="sql2"></include>
|
|
|
- </select>
|
|
|
- <sql id="sql2">
|
|
|
SELECT a.yhbh, a.cbkh, c.yhxm, c.yhdz, a.ybdjbz, a.wsfbz, a.sjbm, a.sjbm1, a.slbl1, a.sjbm2, a.slbl2, a.sjbm3, a.slbl3,
|
|
|
- a.cbxh, f.cbbmc AS sscbbmc, g.cbpqmc AS sscbpqmc, c.lxdh
|
|
|
+ a.cbxh, a.sbbh, a.fmzt, f.cbbmc AS sscbbmc, g.cbpqmc AS sscbpqmc, c.lxdh, d.name AS sblbmc
|
|
|
FROM yh_cbkxx a
|
|
|
LEFT JOIN yh_khjbxx c ON a.yhbh = c.yhbh
|
|
|
+ LEFT JOIN bm_sblb d ON a.sblb = d.code
|
|
|
LEFT JOIN bm_cbb f ON c.sscbb = f.cbbbm
|
|
|
LEFT JOIN bm_cbpq g ON c.sscbpq = g.cbpqbm
|
|
|
WHERE 1=1
|
|
|
|
|
|
<if test="filter.searchText!=null">
|
|
|
- AND ( c.yhbh like '%${filter.searchText}%'
|
|
|
+ AND (c.yhbh like '%${filter.searchText}%'
|
|
|
OR c.yhxm like '%${filter.searchText}%'
|
|
|
OR c.yhdz like '%${filter.searchText}%'
|
|
|
OR c.lxdh like '%${filter.searchText}%')
|
|
@@ -140,7 +138,13 @@
|
|
|
AND (a.cbxh IS NULL OR a.cbxh = 0)
|
|
|
</if>
|
|
|
</if>
|
|
|
- </sql>
|
|
|
+ <if test="sblbs!=null and sblbs.size()>0">
|
|
|
+ AND a.sblb IN
|
|
|
+ <foreach collection="sblbs" item="sblb" index="index" open="(" close=")" separator=",">
|
|
|
+ #{sblb}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
<select id="getMaxCbxh" resultType="Integer">
|
|
|
SELECT NVL(MAX(cbxh),0) AS cbxh FROM yh_cbkxx WHERE yhbh IN
|
|
|
<foreach collection="yhbhs" item="yhbh" index="index" open="(" close=")" separator=",">
|