12345678910111213141516171819202122232425 |
- <?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="cn.ubitech.ttc.dao.SystemPictureMapper">
- <!-- 开启二级缓存 -->
- <!--<cache type="org.mybatis.caches.ehcache.LoggingEhcache"/>-->
- <update id="updatePictureByInfoId" parameterType="java.lang.Number">
- update system_picture
- <set>
- <if test="infoid != null">infoid=#{infoid},</if>
- <if test="moduleid != null">moduleid=#{moduleid}</if>
- </set>
- where infoid=#{userId} and moduleid = 30074
- </update>
- <select id = "selectPictureByConnid" resultType="cn.ubitech.ttc.entity.SystemPicture">
- select p.*
- from system_picture p
- inner join company_project_lk c
- on p.infoid = c.id
- where c.connid = #{connId}
- and p.moduleid = #{moduleid}
- </select>
- </mapper>
|