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.
47 lines
1.8 KiB
47 lines
1.8 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.OcrPicturejobMybatisDao">
|
|
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.ocr.dataobject.OcrPicturejob">
|
|
<id column="ID" property="id" jdbcType="BIGINT"/>
|
|
<result column="pictureid" property="pictureid" jdbcType="BIGINT"/>
|
|
<result column="jobnotes" property="jobnotes" jdbcType="LONGVARCHAR"/>
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
ID AS id,
|
|
pictureid AS pictureid,
|
|
jobnotes AS jobnotes
|
|
</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="jobnotes != null"> and jobnotes ${jobnotes.dataOp} ${jobnotes.likestar}#{jobnotes.value}${jobnotes.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_picturejob
|
|
WHERE
|
|
pictureid = #{mainId} </delete>
|
|
|
|
<select id="selectByMainId" parameterType="java.lang.String" resultType="cn.jyjz.xiaoyao.ocr.dataobject.OcrPicturejob">
|
|
SELECT *
|
|
FROM ocr_picturejob
|
|
WHERE
|
|
pictureid = #{mainId} </select>
|
|
</mapper>
|