HgxfxScxRwMapper.xml 808 B

1234567891011121314151617181920212223
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.onemap.apply.mapper.fzss.HgxfxScxRwMapper">
  6. <select id="selectScxRwInfo" resultType="com.onemap.apply.domain.config.fzss.HgxfxScxRwDTO">
  7. select t.*,t1.bsmmc scxname
  8. from t_fzss_hgxfx_scx_rw t
  9. left join t_fzss_hgxfx_scx t1 on t1.bsm = t.scxbsm
  10. where t.rwbsm = #{rwbsm} and t1.bsm is not null
  11. <choose>
  12. <when test="scxPBsm != null and scxPBsm != ''">
  13. and t1.pbsm = #{scxPBsm}
  14. </when>
  15. <otherwise>
  16. and t1.pbsm = '0'
  17. </otherwise>
  18. </choose>
  19. order by t1.xssx asc
  20. </select>
  21. </mapper>