SystemPictureMapper.xml 927 B

12345678910111213141516171819202122232425
  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="cn.ubitech.ttc.dao.SystemPictureMapper">
  4. <!-- 开启二级缓存 -->
  5. <!--<cache type="org.mybatis.caches.ehcache.LoggingEhcache"/>-->
  6. <update id="updatePictureByInfoId" parameterType="java.lang.Number">
  7. update system_picture
  8. <set>
  9. <if test="infoid != null">infoid=#{infoid},</if>
  10. <if test="moduleid != null">moduleid=#{moduleid}</if>
  11. </set>
  12. where infoid=#{userId} and moduleid = 30074
  13. </update>
  14. <select id = "selectPictureByConnid" resultType="cn.ubitech.ttc.entity.SystemPicture">
  15. select p.*
  16. from system_picture p
  17. inner join company_project_lk c
  18. on p.infoid = c.id
  19. where c.connid = #{connId}
  20. and p.moduleid = #{moduleid}
  21. </select>
  22. </mapper>