You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
4.7 KiB
86 lines
4.7 KiB
<?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.jyjz.xiaoyao.ocr.dataDao.OcrPictureNotesMybatisDao">
|
|
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.ocr.dataobject.OcrPictureNotes">
|
|
<id column="ID" property="id" jdbcType="BIGINT"/>
|
|
<result column="pictureid" property="pictureid" jdbcType="BIGINT"/>
|
|
<result column="create_time" property="createTime" jdbcType="BIGINT"/>
|
|
<result column="update_time" property="updateTime" jdbcType="BIGINT"/>
|
|
<result column="notes" property="notes" jdbcType="LONGVARCHAR"/>
|
|
<result column="imgName" property="imgname" jdbcType="VARCHAR"/>
|
|
<result column="imgUrl" property="imgurl" jdbcType="VARCHAR"/>
|
|
<result column="upTime" property="uptime" jdbcType="BIGINT"/>
|
|
<result column="genTime" property="gentime" jdbcType="BIGINT"/>
|
|
<result column="space" property="space" jdbcType="VARCHAR"/>
|
|
<result column="source" property="source" jdbcType="VARCHAR"/>
|
|
<result column="upHead" property="uphead" jdbcType="VARCHAR"/>
|
|
<result column="upName" property="upname" jdbcType="VARCHAR"/>
|
|
<result column="releaseArea" property="releasearea" jdbcType="VARCHAR"/>
|
|
<result column="classificationid" property="classificationid" jdbcType="BIGINT"/>
|
|
<result column="pictureclassid" property="pictureclassid" jdbcType="BIGINT"/>
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
ID AS id,
|
|
pictureid AS pictureid,
|
|
create_time AS createTime,
|
|
update_time AS updateTime,
|
|
notes AS notes,
|
|
imgName AS imgname,
|
|
imgUrl AS imgurl,
|
|
upTime AS uptime,
|
|
genTime AS gentime,
|
|
space AS space,
|
|
source AS source,
|
|
upHead AS uphead,
|
|
upName AS upname,
|
|
releaseArea AS releasearea,
|
|
classificationid AS classificationid,
|
|
pictureclassid AS pictureclassid
|
|
</sql>
|
|
|
|
<sql id="Base_Where">
|
|
<where>
|
|
<trim prefixOverrides="and|or">
|
|
<if test="id != null"> and ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}</if>
|
|
<if test="pictureid != null"> and pictureid ${pictureid.dataOp} ${pictureid.likestar}#{pictureid.value}${pictureid.likeend}</if>
|
|
<if test="createTime != null"> and create_time ${createTime.dataOp} ${createTime.likestar}#{createTime.value}${createTime.likeend}</if>
|
|
<if test="updateTime != null"> and update_time ${updateTime.dataOp} ${updateTime.likestar}#{updateTime.value}${updateTime.likeend}</if>
|
|
<if test="notes != null"> and notes ${notes.dataOp} ${notes.likestar}#{notes.value}${notes.likeend}</if>
|
|
<if test="imgname != null"> and imgName ${imgname.dataOp} ${imgname.likestar}#{imgname.value}${imgname.likeend}</if>
|
|
<if test="imgurl != null"> and imgUrl ${imgurl.dataOp} ${imgurl.likestar}#{imgurl.value}${imgurl.likeend}</if>
|
|
<if test="uptime != null"> and upTime ${uptime.dataOp} ${uptime.likestar}#{uptime.value}${uptime.likeend}</if>
|
|
<if test="gentime != null"> and genTime ${gentime.dataOp} ${gentime.likestar}#{gentime.value}${gentime.likeend}</if>
|
|
<if test="space != null"> and space ${space.dataOp} ${space.likestar}#{space.value}${space.likeend}</if>
|
|
<if test="source != null"> and source ${source.dataOp} ${source.likestar}#{source.value}${source.likeend}</if>
|
|
<if test="uphead != null"> and upHead ${uphead.dataOp} ${uphead.likestar}#{uphead.value}${uphead.likeend}</if>
|
|
<if test="upname != null"> and upName ${upname.dataOp} ${upname.likestar}#{upname.value}${upname.likeend}</if>
|
|
<if test="releasearea != null"> and releaseArea ${releasearea.dataOp} ${releasearea.likestar}#{releasearea.value}${releasearea.likeend}</if>
|
|
<if test="classificationid != null"> and classificationid ${classificationid.dataOp} ${classificationid.likestar}#{classificationid.value}${classificationid.likeend}</if>
|
|
<if test="pictureclassid != null"> and pictureclassid ${pictureclassid.dataOp} ${pictureclassid.likestar}#{pictureclassid.value}${pictureclassid.likeend}</if>
|
|
<if test="userid != null"> and USERID ${userid.dataOp} ${userid.likestar}#{userid.value}${userid.likeend}</if>
|
|
<if test="listdept != null">
|
|
and DEPARTID in
|
|
<foreach collection="listdept.value" item="item" index="index" open="(" separator="," close=")" >
|
|
#{item}
|
|
</foreach>
|
|
</if>
|
|
</trim>
|
|
</where>
|
|
<if test="page != null">
|
|
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
|
|
limit ${page.start}, ${page.Pagesize}
|
|
</if>
|
|
</sql>
|
|
<delete id="deleteByMainId" parameterType="java.lang.String">
|
|
DELETE
|
|
FROM ocr_picture_notes
|
|
WHERE
|
|
pictureid = #{mainId} </delete>
|
|
|
|
<select id="selectByMainId" parameterType="java.lang.String" resultType="cn.jyjz.xiaoyao.ocr.dataobject.OcrPictureNotes">
|
|
SELECT *
|
|
FROM ocr_picture_notes
|
|
WHERE
|
|
pictureid = #{mainId} </select>
|
|
</mapper>
|