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.
209 lines
16 KiB
209 lines
16 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.OcrTaskchildPictureMybatisDao">
|
|
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.ocr.dataobject.OcrTaskchildPicture">
|
|
<id column="ID" property="id" jdbcType="BIGINT"/>
|
|
<result column="OCPICTUREID" property="ocpictureid" jdbcType="LONGVARCHAR"/>
|
|
<result column="PICTURERESULT" property="pictureresult" jdbcType="LONGVARCHAR"/>
|
|
<result column="PICTURECOMPARE" property="picturecompare" jdbcType="LONGVARCHAR"/>
|
|
<result column="DEPTID" property="deptid" jdbcType="VARCHAR"/>
|
|
<result column="TENANTID" property="tenantid" jdbcType="BIGINT"/>
|
|
<result column="PACKAGEID" property="packageid" jdbcType="BIGINT"/>
|
|
<result column="PICTUREID" property="pictureid" jdbcType="BIGINT"/>
|
|
<result column="CATEGORY" property="category" jdbcType="VARCHAR"/>
|
|
<result column="CATEGORYID" property="categoryid" jdbcType="BIGINT"/>
|
|
<result column="SPECIFICATION" property="specification" jdbcType="VARCHAR"/>
|
|
<result column="BUESSINESSNO" property="buessinessno" jdbcType="VARCHAR"/>
|
|
<result column="STATES" property="states" jdbcType="INTEGER"/>
|
|
<result column="PROCESSINSTANCEID" property="processinstanceid" jdbcType="VARCHAR"/>
|
|
<result column="PROCESSDEFINITIONID" property="processdefinitionid" jdbcType="VARCHAR"/>
|
|
<result column="DEPLOYMENTID" property="deploymentid" jdbcType="VARCHAR"/>
|
|
<result column="ASSIGNEENAME" property="assigneename" jdbcType="VARCHAR"/>
|
|
<result column="ASSIGNEE" property="assignee" jdbcType="VARCHAR"/>
|
|
<result column="UPDATEUSER" property="updateuser" jdbcType="VARCHAR"/>
|
|
<result column="UPDATETIME" property="updatetime" jdbcType="BIGINT"/>
|
|
<result column="FILEANNEX" property="fileannex" jdbcType="VARCHAR"/>
|
|
<result column="GUIDANG" property="guidang" jdbcType="INTEGER"/>
|
|
<result column="CREATEUSER" property="createuser" jdbcType="VARCHAR"/>
|
|
<result column="CREATEUSERNAME" property="createusername" jdbcType="VARCHAR"/>
|
|
<result column="CREATEDATE" property="createdate" jdbcType="BIGINT"/>
|
|
<result column="USERID" property="userid" jdbcType="BIGINT"/>
|
|
<result column="USERNAME" property="username" jdbcType="VARCHAR"/>
|
|
<result column="FROMTASKID" property="fromtaskid" jdbcType="VARCHAR"/>
|
|
<result column="FROMTASKNAME" property="fromtaskname" jdbcType="VARCHAR"/>
|
|
<result column="FROMUSERID" property="fromuserid" jdbcType="VARCHAR"/>
|
|
<result column="FROMPROJECTID" property="fromprojectid" jdbcType="VARCHAR"/>
|
|
<result column="FROMPLANID" property="fromplanid" jdbcType="VARCHAR"/>
|
|
<result column="FROMUPTIME" property="fromuptime" jdbcType="BIGINT"/>
|
|
<result column="FROMSOURCEID" property="fromsourceid" jdbcType="VARCHAR"/>
|
|
<result column="HAVEPOINTS" property="havepoints" jdbcType="INTEGER"/>
|
|
<result column="TASKNAME" property="taskname" jdbcType="VARCHAR"/>
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
ID AS id,
|
|
OCPICTUREID AS ocpictureid,
|
|
PICTURERESULT AS pictureresult,
|
|
PICTURECOMPARE AS picturecompare,
|
|
DEPTID AS deptid,
|
|
TENANTID AS tenantid,
|
|
PACKAGEID AS packageid,
|
|
PICTUREID AS pictureid,
|
|
CATEGORY AS category,
|
|
CATEGORYID AS categoryid,
|
|
SPECIFICATION AS specification,
|
|
BUESSINESSNO AS buessinessno,
|
|
STATES AS states,
|
|
PROCESSINSTANCEID AS processinstanceid,
|
|
PROCESSDEFINITIONID AS processdefinitionid,
|
|
DEPLOYMENTID AS deploymentid,
|
|
ASSIGNEENAME AS assigneename,
|
|
ASSIGNEE AS assignee,
|
|
UPDATEUSER AS updateuser,
|
|
UPDATETIME AS updatetime,
|
|
FILEANNEX AS fileannex,
|
|
GUIDANG AS guidang,
|
|
CREATEUSER AS createuser,
|
|
CREATEUSERNAME AS createusername,
|
|
CREATEDATE AS createdate,
|
|
USERID AS userid,
|
|
USERNAME AS username,
|
|
FROMTASKID AS fromtaskid,
|
|
FROMTASKNAME AS fromtaskname,
|
|
FROMUSERID AS fromuserid,
|
|
FROMPROJECTID AS fromprojectid,
|
|
FROMPLANID AS fromplanid,
|
|
FROMUPTIME AS fromuptime,
|
|
FROMSOURCEID AS fromsourceid,
|
|
HAVEPOINTS AS havepoints,
|
|
TASKNAME AS taskname
|
|
</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="ocpictureid != null"> and OCPICTUREID ${ocpictureid.dataOp} ${ocpictureid.likestar}#{ocpictureid.value}${ocpictureid.likeend}</if>
|
|
<if test="pictureresult != null"> and PICTURERESULT ${pictureresult.dataOp} ${pictureresult.likestar}#{pictureresult.value}${pictureresult.likeend}</if>
|
|
<if test="picturecompare != null"> and PICTURECOMPARE ${picturecompare.dataOp} ${picturecompare.likestar}#{picturecompare.value}${picturecompare.likeend}</if>
|
|
<if test="deptid != null"> and DEPTID ${deptid.dataOp} ${deptid.likestar}#{deptid.value}${deptid.likeend}</if>
|
|
<if test="tenantid != null"> and TENANTID ${tenantid.dataOp} ${tenantid.likestar}#{tenantid.value}${tenantid.likeend}</if>
|
|
<if test="packageid != null"> and PACKAGEID ${packageid.dataOp} ${packageid.likestar}#{packageid.value}${packageid.likeend}</if>
|
|
<if test="pictureid != null"> and PICTUREID ${pictureid.dataOp} ${pictureid.likestar}#{pictureid.value}${pictureid.likeend}</if>
|
|
<if test="category != null"> and CATEGORY ${category.dataOp} ${category.likestar}#{category.value}${category.likeend}</if>
|
|
<if test="categoryid != null"> and CATEGORYID ${categoryid.dataOp} ${categoryid.likestar}#{categoryid.value}${categoryid.likeend}</if>
|
|
<if test="specification != null"> and SPECIFICATION ${specification.dataOp} ${specification.likestar}#{specification.value}${specification.likeend}</if>
|
|
<if test="buessinessno != null"> and BUESSINESSNO ${buessinessno.dataOp} ${buessinessno.likestar}#{buessinessno.value}${buessinessno.likeend}</if>
|
|
<if test="states != null"> and STATES ${states.dataOp} ${states.likestar}#{states.value}${states.likeend}</if>
|
|
<if test="processinstanceid != null"> and PROCESSINSTANCEID ${processinstanceid.dataOp} ${processinstanceid.likestar}#{processinstanceid.value}${processinstanceid.likeend}</if>
|
|
<if test="processdefinitionid != null"> and PROCESSDEFINITIONID ${processdefinitionid.dataOp} ${processdefinitionid.likestar}#{processdefinitionid.value}${processdefinitionid.likeend}</if>
|
|
<if test="deploymentid != null"> and DEPLOYMENTID ${deploymentid.dataOp} ${deploymentid.likestar}#{deploymentid.value}${deploymentid.likeend}</if>
|
|
<if test="assigneename != null"> and ASSIGNEENAME ${assigneename.dataOp} ${assigneename.likestar}#{assigneename.value}${assigneename.likeend}</if>
|
|
<if test="assignee != null"> and ASSIGNEE ${assignee.dataOp} ${assignee.likestar}#{assignee.value}${assignee.likeend}</if>
|
|
<if test="updateuser != null"> and UPDATEUSER ${updateuser.dataOp} ${updateuser.likestar}#{updateuser.value}${updateuser.likeend}</if>
|
|
<if test="updatetime != null"> and UPDATETIME ${updatetime.dataOp} ${updatetime.likestar}#{updatetime.value}${updatetime.likeend}</if>
|
|
<if test="fileannex != null"> and FILEANNEX ${fileannex.dataOp} ${fileannex.likestar}#{fileannex.value}${fileannex.likeend}</if>
|
|
<if test="guidang != null"> and GUIDANG ${guidang.dataOp} ${guidang.likestar}#{guidang.value}${guidang.likeend}</if>
|
|
<if test="createuser != null"> and CREATEUSER ${createuser.dataOp} ${createuser.likestar}#{createuser.value}${createuser.likeend}</if>
|
|
<if test="createusername != null"> and CREATEUSERNAME ${createusername.dataOp} ${createusername.likestar}#{createusername.value}${createusername.likeend}</if>
|
|
<if test="createdate != null"> and CREATEDATE ${createdate.dataOp} ${createdate.likestar}#{createdate.value}${createdate.likeend}</if>
|
|
<if test="username != null"> and USERNAME ${username.dataOp} ${username.likestar}#{username.value}${username.likeend}</if>
|
|
<if test="fromtaskid != null"> and FROMTASKID ${fromtaskid.dataOp} ${fromtaskid.likestar}#{fromtaskid.value}${fromtaskid.likeend}</if>
|
|
<if test="fromtaskname != null"> and FROMTASKNAME ${fromtaskname.dataOp} ${fromtaskname.likestar}#{fromtaskname.value}${fromtaskname.likeend}</if>
|
|
<if test="fromuserid != null"> and FROMUSERID ${fromuserid.dataOp} ${fromuserid.likestar}#{fromuserid.value}${fromuserid.likeend}</if>
|
|
<if test="fromprojectid != null"> and FROMPROJECTID ${fromprojectid.dataOp} ${fromprojectid.likestar}#{fromprojectid.value}${fromprojectid.likeend}</if>
|
|
<if test="fromplanid != null"> and FROMPLANID ${fromplanid.dataOp} ${fromplanid.likestar}#{fromplanid.value}${fromplanid.likeend}</if>
|
|
<if test="fromuptime != null"> and FROMUPTIME ${fromuptime.dataOp} ${fromuptime.likestar}#{fromuptime.value}${fromuptime.likeend}</if>
|
|
<if test="fromsourceid != null"> and FROMSOURCEID ${fromsourceid.dataOp} ${fromsourceid.likestar}#{fromsourceid.value}${fromsourceid.likeend}</if>
|
|
<if test="havepoints != null"> and HAVEPOINTS ${havepoints.dataOp} ${havepoints.likestar}#{havepoints.value}${havepoints.likeend}</if>
|
|
<if test="taskname != null"> and TASKNAME ${taskname.dataOp} ${taskname.likestar}#{taskname.value}${taskname.likeend}</if>
|
|
<if test="userid != null"> and USERID ${userid.dataOp} ${userid.likestar}#{userid.value}${userid.likeend}</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>
|
|
<sql id="Base_Where_union">
|
|
<where>
|
|
<trim prefixOverrides="and|or">
|
|
<if test="id != null"> and tcp.ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}</if>
|
|
<if test="ocpictureid != null"> and tcp.OCPICTUREID ${ocpictureid.dataOp} ${ocpictureid.likestar}#{ocpictureid.value}${ocpictureid.likeend}</if>
|
|
<if test="pictureresult != null"> and tcp.PICTURERESULT ${pictureresult.dataOp} ${pictureresult.likestar}#{pictureresult.value}${pictureresult.likeend}</if>
|
|
<if test="picturecompare != null"> and tcp.PICTURECOMPARE ${picturecompare.dataOp} ${picturecompare.likestar}#{picturecompare.value}${picturecompare.likeend}</if>
|
|
<if test="deptid != null"> and tcp.DEPTID ${deptid.dataOp} ${deptid.likestar}#{deptid.value}${deptid.likeend}</if>
|
|
<if test="tenantid != null"> and tcp.TENANTID ${tenantid.dataOp} ${tenantid.likestar}#{tenantid.value}${tenantid.likeend}</if>
|
|
<if test="packageid != null"> and tcp.PACKAGEID ${packageid.dataOp} ${packageid.likestar}#{packageid.value}${packageid.likeend}</if>
|
|
<if test="pictureid != null"> and tcp.PICTUREID ${pictureid.dataOp} ${pictureid.likestar}#{pictureid.value}${pictureid.likeend}</if>
|
|
<if test="category != null"> and tcp.CATEGORY ${category.dataOp} ${category.likestar}#{category.value}${category.likeend}</if>
|
|
<if test="categoryid != null"> and tcp.CATEGORYID ${categoryid.dataOp} ${categoryid.likestar}#{categoryid.value}${categoryid.likeend}</if>
|
|
<if test="specification != null"> and tcp.SPECIFICATION ${specification.dataOp} ${specification.likestar}#{specification.value}${specification.likeend}</if>
|
|
<if test="buessinessno != null"> and tcp.BUESSINESSNO ${buessinessno.dataOp} ${buessinessno.likestar}#{buessinessno.value}${buessinessno.likeend}</if>
|
|
<if test="states != null"> and tcp.STATES ${states.dataOp} ${states.likestar}#{states.value}${states.likeend}</if>
|
|
<if test="processinstanceid != null"> and tcp.PROCESSINSTANCEID ${processinstanceid.dataOp} ${processinstanceid.likestar}#{processinstanceid.value}${processinstanceid.likeend}</if>
|
|
<if test="processdefinitionid != null"> and tcp.PROCESSDEFINITIONID ${processdefinitionid.dataOp} ${processdefinitionid.likestar}#{processdefinitionid.value}${processdefinitionid.likeend}</if>
|
|
<if test="deploymentid != null"> and tcp.DEPLOYMENTID ${deploymentid.dataOp} ${deploymentid.likestar}#{deploymentid.value}${deploymentid.likeend}</if>
|
|
<if test="assigneename != null"> and tcp.ASSIGNEENAME ${assigneename.dataOp} ${assigneename.likestar}#{assigneename.value}${assigneename.likeend}</if>
|
|
<if test="assignee != null"> and tcp.ASSIGNEE ${assignee.dataOp} ${assignee.likestar}#{assignee.value}${assignee.likeend}</if>
|
|
<if test="updateuser != null"> and tcp.UPDATEUSER ${updateuser.dataOp} ${updateuser.likestar}#{updateuser.value}${updateuser.likeend}</if>
|
|
<if test="updatetime != null"> and tcp.UPDATETIME ${updatetime.dataOp} ${updatetime.likestar}#{updatetime.value}${updatetime.likeend}</if>
|
|
<if test="fileannex != null"> and tcp.FILEANNEX ${fileannex.dataOp} ${fileannex.likestar}#{fileannex.value}${fileannex.likeend}</if>
|
|
<if test="guidang != null"> and tcp.GUIDANG ${guidang.dataOp} ${guidang.likestar}#{guidang.value}${guidang.likeend}</if>
|
|
<if test="createuser != null"> and tcp.CREATEUSER ${createuser.dataOp} ${createuser.likestar}#{createuser.value}${createuser.likeend}</if>
|
|
<if test="createusername != null"> and tcp.CREATEUSERNAME ${createusername.dataOp} ${createusername.likestar}#{createusername.value}${createusername.likeend}</if>
|
|
<if test="createdate != null"> and tcp.CREATEDATE ${createdate.dataOp} ${createdate.likestar}#{createdate.value}${createdate.likeend}</if>
|
|
<if test="username != null"> and tcp.USERNAME ${username.dataOp} ${username.likestar}#{username.value}${username.likeend}</if>
|
|
<if test="fromtaskid != null"> and tcp.FROMTASKID ${fromtaskid.dataOp} ${fromtaskid.likestar}#{fromtaskid.value}${fromtaskid.likeend}</if>
|
|
<if test="fromtaskname != null"> and tcp.FROMTASKNAME ${fromtaskname.dataOp} ${fromtaskname.likestar}#{fromtaskname.value}${fromtaskname.likeend}</if>
|
|
<if test="fromuserid != null"> and tcp.FROMUSERID ${fromuserid.dataOp} ${fromuserid.likestar}#{fromuserid.value}${fromuserid.likeend}</if>
|
|
<if test="fromprojectid != null"> and tcp.FROMPROJECTID ${fromprojectid.dataOp} ${fromprojectid.likestar}#{fromprojectid.value}${fromprojectid.likeend}</if>
|
|
<if test="fromplanid != null"> and tcp.FROMPLANID ${fromplanid.dataOp} ${fromplanid.likestar}#{fromplanid.value}${fromplanid.likeend}</if>
|
|
<if test="fromuptime != null"> and tcp.FROMUPTIME ${fromuptime.dataOp} ${fromuptime.likestar}#{fromuptime.value}${fromuptime.likeend}</if>
|
|
<if test="fromsourceid != null"> and tcp.FROMSOURCEID ${fromsourceid.dataOp} ${fromsourceid.likestar}#{fromsourceid.value}${fromsourceid.likeend}</if>
|
|
<if test="havepoints != null"> and tcp.HAVEPOINTS ${havepoints.dataOp} ${havepoints.likestar}#{havepoints.value}${havepoints.likeend}</if>
|
|
<if test="taskname != null"> and tcp.TASKNAME ${taskname.dataOp} ${taskname.likestar}#{taskname.value}${taskname.likeend}</if>
|
|
<if test="userid != null"> and tcp.USERID ${userid.dataOp} ${userid.likestar}#{userid.value}${userid.likeend}</if>
|
|
</trim>
|
|
</where>
|
|
</sql>
|
|
<select id="listFinal" resultType="cn.jyjz.xiaoyao.ocr.dataobject.OcrTaskchildPicture" parameterType="java.util.Map">
|
|
|
|
select tcp.* from (
|
|
select
|
|
tc.*
|
|
from ocr_taskchild_picture tc,OA_USERFINAL_T uf
|
|
where tc.ID = uf.FORMID
|
|
<if test="thisLoginUserid != null"> and uf.USERID ${thisLoginUserid.dataOp} ${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend}</if>
|
|
UNION
|
|
select
|
|
tc.*
|
|
from ocr_taskchild_picture tc
|
|
where tc.STATES = 5
|
|
) as tcp
|
|
|
|
|
|
<include refid="Base_Where_union"></include>
|
|
<if test="fromuptimeStart != null"> and tcp.fromuptime >= ${fromuptimeStart} </if>
|
|
<if test="fromuptimeEnd != null"> and tcp.fromuptime <= ${fromuptimeEnd} </if>
|
|
<if test="page != null">
|
|
<if test="page.sortname != null"> order by tcp.${page.sortname} ${page.sortorder}</if>
|
|
limit ${page.start}, ${page.Pagesize}
|
|
</if>
|
|
</select>
|
|
<select id="listFinalCount" resultType="java.lang.Long" parameterType="java.util.Map">
|
|
select count(tcp.ID) from (
|
|
select
|
|
tc.*
|
|
from ocr_taskchild_picture tc,OA_USERFINAL_T uf
|
|
where tc.ID = uf.FORMID
|
|
<if test="thisLoginUserid != null"> and uf.USERID ${thisLoginUserid.dataOp} ${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend}</if>
|
|
UNION
|
|
select
|
|
tc.*
|
|
from ocr_taskchild_picture tc
|
|
where tc.STATES = 5
|
|
) as tcp
|
|
<include refid="Base_Where_union"></include>
|
|
</select>
|
|
</mapper>
|