<?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">
<mapper namespace="com.brilliance.isc.mda.dao.SrvSwiMapper">

    <select id="selectAdrCountByExtkey" resultType="java.lang.Integer">
        select count(*) from sin,pty,act where sin.FROMFLG ='E' and sin.SINSTA ='0' and sin.PTYEXTKEY =pty.EXTKEY and  pty.inr = act.holptyinr and act.extkey=#{extkey}
    </select>

    <select id="checkECIncoming" resultType="java.util.HashMap">
        select pty.dshflg,act.trmtyp from act,pty where pty.inr=act.holptyinr and trim(act.extkey) = #{extkey}
    </select>


    <select id="selectSlaByPtainr" resultType="java.lang.String">
        select PTY.SLA from PTY, PTA where PTY.INR = PTA.PTYINR and PTA.USG = 'MAA' and PTA.INR =#{ptainr}
    </select>






</mapper>