DeGroupDao.xml 615 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="platform.modules.sys.dao.DeGroupDao">
  6. <select id="findList" resultType="platform.modules.sys.entity.DeGroup">
  7. SELECT * FROM sys_de_group
  8. WHERE del_flag = false
  9. <if test="keyword != null and keyword != ''">
  10. and name LIKE CONCAT(CONCAT('%',#{keyword}), '%')
  11. </if>
  12. </select>
  13. <select id="isExist" resultType="platform.modules.sys.entity.DeGroup">
  14. SELECT * from sys_de_group where name=#{name}
  15. </select>
  16. </mapper>