|
@@ -17,8 +17,8 @@
|
|
|
<result property="ycje" column="ycje"/>
|
|
|
<result property="btlx" column="btlx"/>
|
|
|
<result property="btje" column="btje"/>
|
|
|
- <result property="yhlx" column="btlx"/>
|
|
|
- <result property="yhje" column="btje"/>
|
|
|
+ <result property="yhlx" column="yhlx"/>
|
|
|
+ <result property="yhje" column="yhje"/>
|
|
|
<result property="zpurl" column="zpurl"/>
|
|
|
<result property="jssj" column="jssj"/>
|
|
|
<result property="sbip" column="sbip"/>
|
|
@@ -38,23 +38,23 @@
|
|
|
|
|
|
<select id="listAndLrInfo" parameterType="LnstYcxx" resultMap="LnstYcxxResult">
|
|
|
SELECT
|
|
|
- getxzqhmcbycode ( CONCAT( a.ssqh )) AS ssqhMc,
|
|
|
- a.*,b.bzms
|
|
|
+ getxzqhmcbycode ( CONCAT( ssqh )) AS ssqhMc,
|
|
|
+ ycsj, stmc, xm, sfzh, ycje, yhje, issc,
|
|
|
+ (select bzms from lnst_btbz where lnst_ycxx.yhlx = lnst_btbz.bzbm limit 1) as bzms
|
|
|
FROM
|
|
|
- lnst_ycxx a
|
|
|
- left join lnst_btbz b on a.yhlx = b.bzbm
|
|
|
+ lnst_ycxx
|
|
|
<where>
|
|
|
- a.zt != '99'
|
|
|
- <if test="stmc != null and stmc != ''">and a.stmc like concat('%', #{stmc}, '%')</if>
|
|
|
- <if test="stbm != null and stbm != ''">and a.stbm = #{stbm}</if>
|
|
|
- <if test="issc != null and issc != ''">and a.issc = #{issc}</if>
|
|
|
- <if test="yclb != null and yclb != ''">and a.yclb = #{yclb}</if>
|
|
|
- <if test="ssqh != null and ssqh != ''">and a.ssqh like concat('%', #{ssqh}, '%')</if>
|
|
|
- <if test="xm != null and xm != ''">and a.xm like concat('%', #{xm}, '%')</if>
|
|
|
- <if test="params.beginSqsj != null and params.beginSqsj != ''"> and a.ycsj >= concat(#{params.beginSqsj},'000000')</if>
|
|
|
- <if test="params.endSqsj != null and params.endSqsj != ''"> and a.ycsj <= concat(#{params.endSqsj},'235959')</if>
|
|
|
+ zt = '0'
|
|
|
+ <if test="stmc != null and stmc != ''">and stmc like concat('%', #{stmc}, '%')</if>
|
|
|
+ <if test="stbm != null and stbm != ''">and stbm = #{stbm}</if>
|
|
|
+ <if test="issc != null and issc != ''">and issc = #{issc}</if>
|
|
|
+ <if test="yclb != null and yclb != ''">and yclb = #{yclb}</if>
|
|
|
+ <if test="ssqh != null and ssqh != ''">and ssqh like concat('%', #{ssqh}, '%')</if>
|
|
|
+ <if test="xm != null and xm != ''">and xm like concat('%', #{xm}, '%')</if>
|
|
|
+ <if test="params.beginSqsj != null and params.beginSqsj != ''"> and ycsj >= concat(#{params.beginSqsj},'000000')</if>
|
|
|
+ <if test="params.endSqsj != null and params.endSqsj != ''"> and ycsj <= concat(#{params.endSqsj},'235959')</if>
|
|
|
</where>
|
|
|
- order by a.ycsj desc
|
|
|
+ order by ycsj desc
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|