<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mappernamespace="com.brilliance.isc.mda.dao.GimGseMapper"><selectid="selectJoinCount"resultType="int"> select count(1) from GIMGSE where BICCOD = #{bicCod,jdbcType=VARCHAR} and BNKSTA = 'ADDD'</select><selectid="queryAllByLimit"resultType="com.brilliance.isc.vo.manager.GimgVo"> select innera.BICCOD, innera.bnksta, innerb.MSGTYP, innerb.BICCOD biccod8, innerb.bnksta bnksta8, innerb.STSCOD, case when ( innera.bnksta = 'ADDD' and innerb.bnksta = 'ADDD' and innerb.STSCOD = '0' ) then '可发送' else '不可发送' end issend from GIMGSE innera, GIMGSP innerb where 1=1<iftest="entity.biccod != null and entity.biccod != ''"> and innera.biccod like concat(concat('%',#{entity.biccod}),'%')</if><iftest="entity.msgtyp != null and entity.msgtyp != ''"> and innerb.msgtyp = #{entity.msgtyp}</if> and substr(innera.biccod,1,8)=innerb.biccod and (substr(innerb.msgtyp,3,1) in ('4','7') or innerb.msgtyp='MT999')</select><selectid="queryAllByLmt"resultType="com.brilliance.isc.vo.manager.GimgVo"> select innera.BICCOD, innera.bnksta, '' msgtyp, '' biccod8, '' bnksta8, '' stscod, '' issend from GIMGSE innera where innera.biccod like concat(#{entity.biccod},'%')</select></mapper>