DitchMapper.xml 698 B

12345678910111213141516171819
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.ytpm.lemonios.dao.DitchMapper">
  4. <select id="ditchList" resultType="com.ytpm.agent.view.AgentDitchView">
  5. select
  6. ditch_id, ditch_name, create_time
  7. from yt_ditch
  8. <where>
  9. user_id = #{userId}
  10. and is_delete=0
  11. </where>
  12. </select>
  13. <select id="selectById" resultType="com.ytpm.agent.model.YtDitch">
  14. select
  15. ditch_id, ditch_name, user_id, is_delete, create_time
  16. from yt_ditch
  17. where ditch_id = #{ditchId}
  18. </select>
  19. </mapper>