|
|
@ -39,6 +39,59 @@
|
|
|
|
<result column="HAVEPOINTS" property="havepoints" jdbcType="INTEGER"/>
|
|
|
|
<result column="HAVEPOINTS" property="havepoints" jdbcType="INTEGER"/>
|
|
|
|
<result column="TASKNAME" property="taskname" jdbcType="VARCHAR"/>
|
|
|
|
<result column="TASKNAME" property="taskname" jdbcType="VARCHAR"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<resultMap id="PictureResultMap" type="cn.jyjz.xiaoyao.ocr.vo.PictureDetailVo">
|
|
|
|
|
|
|
|
<result column="picture_id" property="pictureId"/>
|
|
|
|
|
|
|
|
<result column="taskChildId" property="taskChildId"/>
|
|
|
|
|
|
|
|
<result column="taskname" property="taskName"/>
|
|
|
|
|
|
|
|
<result column="STATES" property="states"/>
|
|
|
|
|
|
|
|
<result column="similarity_score" property="similarityScore"/>
|
|
|
|
|
|
|
|
<result column="location" property="location"/>
|
|
|
|
|
|
|
|
<result column="work_status" property="workStatus"/>
|
|
|
|
|
|
|
|
<result column="finishtime" property="finishTime"/>
|
|
|
|
|
|
|
|
<result column="field1" property="field1"/>
|
|
|
|
|
|
|
|
<result column="field2" property="field2"/>
|
|
|
|
|
|
|
|
<result column="field3" property="field3"/>
|
|
|
|
|
|
|
|
<result column="field4" property="field4"/>
|
|
|
|
|
|
|
|
<result column="field5" property="field5"/>
|
|
|
|
|
|
|
|
<result column="field6" property="field6"/>
|
|
|
|
|
|
|
|
<result column="field7" property="field7"/>
|
|
|
|
|
|
|
|
<result column="field8" property="field8"/>
|
|
|
|
|
|
|
|
<result column="field9" property="field9"/>
|
|
|
|
|
|
|
|
<result column="field10" property="field10"/>
|
|
|
|
|
|
|
|
<result column="field11" property="field11"/>
|
|
|
|
|
|
|
|
<result column="field12" property="field12"/>
|
|
|
|
|
|
|
|
<result column="field13" property="field13"/>
|
|
|
|
|
|
|
|
<result column="field14" property="field14"/>
|
|
|
|
|
|
|
|
<result column="field15" property="field15"/>
|
|
|
|
|
|
|
|
<result column="field16" property="field16"/>
|
|
|
|
|
|
|
|
<result column="field17" property="field17"/>
|
|
|
|
|
|
|
|
<result column="imgUrl" property="imgUrl"/>
|
|
|
|
|
|
|
|
<association property="pictureInfo" javaType="cn.jyjz.xiaoyao.ocr.dataobject.OcrPictureInfo">
|
|
|
|
|
|
|
|
<id column="id" property="id"/>
|
|
|
|
|
|
|
|
<result column="picture_id" property="pictureId"/>
|
|
|
|
|
|
|
|
<result column="img_size" property="imgSize"/>
|
|
|
|
|
|
|
|
<result column="img_format" property="imgFormat"/>
|
|
|
|
|
|
|
|
<result column="img_measure" property="imgMeasure"/>
|
|
|
|
|
|
|
|
<result column="upload_time" property="uploadTime"/>
|
|
|
|
|
|
|
|
<result column="create_time" property="createTime"/>
|
|
|
|
|
|
|
|
<result column="img_space" property="imgSpace"/>
|
|
|
|
|
|
|
|
<result column="tag_time" property="tagTime"/>
|
|
|
|
|
|
|
|
<result column="source" property="source"/>
|
|
|
|
|
|
|
|
</association>
|
|
|
|
|
|
|
|
<collection property="userapproveList" ofType="cn.jyjz.xiaoyao.oa.from.dataobject.Userapprove">
|
|
|
|
|
|
|
|
<id column="id" property="id"/>
|
|
|
|
|
|
|
|
<result column="userid" property="userid"/>
|
|
|
|
|
|
|
|
<result column="formid" property="formid"/>
|
|
|
|
|
|
|
|
<result column="taskname" property="taskname"/>
|
|
|
|
|
|
|
|
<result column="statshis" property="statshis"/>
|
|
|
|
|
|
|
|
<result column="commenthis" property="commenthis"/>
|
|
|
|
|
|
|
|
<result column="taskindex" property="taskindex"/>
|
|
|
|
|
|
|
|
<result column="taskno" property="taskno"/>
|
|
|
|
|
|
|
|
<result column="username" property="username"/>
|
|
|
|
|
|
|
|
<result column="createdate" property="createdate"/>
|
|
|
|
|
|
|
|
<result column="taskcomment" property="taskcomment"/>
|
|
|
|
|
|
|
|
</collection>
|
|
|
|
|
|
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
ID AS id,
|
|
|
|
ID AS id,
|
|
|
|
OCPICTUREID AS ocpictureid,
|
|
|
|
OCPICTUREID AS ocpictureid,
|
|
|
@ -81,88 +134,225 @@
|
|
|
|
<sql id="Base_Where">
|
|
|
|
<sql id="Base_Where">
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<trim prefixOverrides="and|or">
|
|
|
|
<trim prefixOverrides="and|or">
|
|
|
|
<if test="id != null"> and ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}</if>
|
|
|
|
<if test="id != null">
|
|
|
|
<if test="ocpictureid != null"> and OCPICTUREID ${ocpictureid.dataOp} ${ocpictureid.likestar}#{ocpictureid.value}${ocpictureid.likeend}</if>
|
|
|
|
and ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}
|
|
|
|
<if test="pictureresult != null"> and PICTURERESULT ${pictureresult.dataOp} ${pictureresult.likestar}#{pictureresult.value}${pictureresult.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="picturecompare != null"> and PICTURECOMPARE ${picturecompare.dataOp} ${picturecompare.likestar}#{picturecompare.value}${picturecompare.likeend}</if>
|
|
|
|
<if test="ocpictureid != null">
|
|
|
|
<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>
|
|
|
|
and OCPICTUREID ${ocpictureid.dataOp} ${ocpictureid.likestar}#{ocpictureid.value}${ocpictureid.likeend}
|
|
|
|
<if test="packageid != null"> and PACKAGEID ${packageid.dataOp} ${packageid.likestar}#{packageid.value}${packageid.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="pictureid != null"> and PICTUREID ${pictureid.dataOp} ${pictureid.likestar}#{pictureid.value}${pictureid.likeend}</if>
|
|
|
|
<if test="pictureresult != null">
|
|
|
|
<if test="category != null"> and CATEGORY ${category.dataOp} ${category.likestar}#{category.value}${category.likeend}</if>
|
|
|
|
and PICTURERESULT ${pictureresult.dataOp} ${pictureresult.likestar}#{pictureresult.value}${pictureresult.likeend}
|
|
|
|
<if test="categoryid != null"> and CATEGORYID ${categoryid.dataOp} ${categoryid.likestar}#{categoryid.value}${categoryid.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="specification != null"> and SPECIFICATION ${specification.dataOp} ${specification.likestar}#{specification.value}${specification.likeend}</if>
|
|
|
|
<if test="picturecompare != null">
|
|
|
|
<if test="buessinessno != null"> and BUESSINESSNO ${buessinessno.dataOp} ${buessinessno.likestar}#{buessinessno.value}${buessinessno.likeend}</if>
|
|
|
|
and PICTURECOMPARE ${picturecompare.dataOp} ${picturecompare.likestar}#{picturecompare.value}${picturecompare.likeend}
|
|
|
|
<if test="states != null"> and STATES ${states.dataOp} ${states.likestar}#{states.value}${states.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="processinstanceid != null"> and PROCESSINSTANCEID ${processinstanceid.dataOp} ${processinstanceid.likestar}#{processinstanceid.value}${processinstanceid.likeend}</if>
|
|
|
|
<if test="deptid != null">
|
|
|
|
<if test="processdefinitionid != null"> and PROCESSDEFINITIONID ${processdefinitionid.dataOp} ${processdefinitionid.likestar}#{processdefinitionid.value}${processdefinitionid.likeend}</if>
|
|
|
|
and DEPTID ${deptid.dataOp} ${deptid.likestar}#{deptid.value}${deptid.likeend}
|
|
|
|
<if test="deploymentid != null"> and DEPLOYMENTID ${deploymentid.dataOp} ${deploymentid.likestar}#{deploymentid.value}${deploymentid.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="assigneename != null"> and ASSIGNEENAME ${assigneename.dataOp} ${assigneename.likestar}#{assigneename.value}${assigneename.likeend}</if>
|
|
|
|
<if test="tenantid != null">
|
|
|
|
<if test="assignee != null"> and ASSIGNEE ${assignee.dataOp} ${assignee.likestar}#{assignee.value}${assignee.likeend}</if>
|
|
|
|
and TENANTID ${tenantid.dataOp} ${tenantid.likestar}#{tenantid.value}${tenantid.likeend}
|
|
|
|
<if test="updateuser != null"> and UPDATEUSER ${updateuser.dataOp} ${updateuser.likestar}#{updateuser.value}${updateuser.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="updatetime != null"> and UPDATETIME ${updatetime.dataOp} ${updatetime.likestar}#{updatetime.value}${updatetime.likeend}</if>
|
|
|
|
<if test="packageid != null">
|
|
|
|
<if test="fileannex != null"> and FILEANNEX ${fileannex.dataOp} ${fileannex.likestar}#{fileannex.value}${fileannex.likeend}</if>
|
|
|
|
and PACKAGEID ${packageid.dataOp} ${packageid.likestar}#{packageid.value}${packageid.likeend}
|
|
|
|
<if test="guidang != null"> and GUIDANG ${guidang.dataOp} ${guidang.likestar}#{guidang.value}${guidang.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="createuser != null"> and CREATEUSER ${createuser.dataOp} ${createuser.likestar}#{createuser.value}${createuser.likeend}</if>
|
|
|
|
<if test="pictureid != null">
|
|
|
|
<if test="createusername != null"> and CREATEUSERNAME ${createusername.dataOp} ${createusername.likestar}#{createusername.value}${createusername.likeend}</if>
|
|
|
|
and PICTUREID ${pictureid.dataOp} ${pictureid.likestar}#{pictureid.value}${pictureid.likeend}
|
|
|
|
<if test="createdate != null"> and CREATEDATE ${createdate.dataOp} ${createdate.likestar}#{createdate.value}${createdate.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="username != null"> and USERNAME ${username.dataOp} ${username.likestar}#{username.value}${username.likeend}</if>
|
|
|
|
<if test="category != null">
|
|
|
|
<if test="fromtaskid != null"> and FROMTASKID ${fromtaskid.dataOp} ${fromtaskid.likestar}#{fromtaskid.value}${fromtaskid.likeend}</if>
|
|
|
|
and CATEGORY ${category.dataOp} ${category.likestar}#{category.value}${category.likeend}
|
|
|
|
<if test="fromtaskname != null"> and FROMTASKNAME ${fromtaskname.dataOp} ${fromtaskname.likestar}#{fromtaskname.value}${fromtaskname.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="fromuserid != null"> and FROMUSERID ${fromuserid.dataOp} ${fromuserid.likestar}#{fromuserid.value}${fromuserid.likeend}</if>
|
|
|
|
<if test="categoryid != null">
|
|
|
|
<if test="fromprojectid != null"> and FROMPROJECTID ${fromprojectid.dataOp} ${fromprojectid.likestar}#{fromprojectid.value}${fromprojectid.likeend}</if>
|
|
|
|
and CATEGORYID ${categoryid.dataOp} ${categoryid.likestar}#{categoryid.value}${categoryid.likeend}
|
|
|
|
<if test="fromplanid != null"> and FROMPLANID ${fromplanid.dataOp} ${fromplanid.likestar}#{fromplanid.value}${fromplanid.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="fromuptime != null"> and FROMUPTIME ${fromuptime.dataOp} ${fromuptime.likestar}#{fromuptime.value}${fromuptime.likeend}</if>
|
|
|
|
<if test="specification != null">
|
|
|
|
<if test="fromsourceid != null"> and FROMSOURCEID ${fromsourceid.dataOp} ${fromsourceid.likestar}#{fromsourceid.value}${fromsourceid.likeend}</if>
|
|
|
|
and SPECIFICATION ${specification.dataOp} ${specification.likestar}#{specification.value}${specification.likeend}
|
|
|
|
<if test="havepoints != null"> and HAVEPOINTS ${havepoints.dataOp} ${havepoints.likestar}#{havepoints.value}${havepoints.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="taskname != null"> and TASKNAME ${taskname.dataOp} ${taskname.likestar}#{taskname.value}${taskname.likeend}</if>
|
|
|
|
<if test="buessinessno != null">
|
|
|
|
<if test="userid != null"> and USERID ${userid.dataOp} ${userid.likestar}#{userid.value}${userid.likeend}</if>
|
|
|
|
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>
|
|
|
|
</trim>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
<if test="page != null">
|
|
|
|
<if test="page != null">
|
|
|
|
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
|
|
|
|
<if test="page.sortname != null">
|
|
|
|
|
|
|
|
order by ${page.sortname} ${page.sortorder}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
limit ${page.start}, ${page.Pagesize}
|
|
|
|
limit ${page.start}, ${page.Pagesize}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<sql id="Base_Where_union">
|
|
|
|
<sql id="Base_Where_union">
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<trim prefixOverrides="and|or">
|
|
|
|
<trim prefixOverrides="and|or">
|
|
|
|
<if test="id != null"> and tcp.ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}</if>
|
|
|
|
<if test="id != null">
|
|
|
|
<if test="ocpictureid != null"> and tcp.OCPICTUREID ${ocpictureid.dataOp} ${ocpictureid.likestar}#{ocpictureid.value}${ocpictureid.likeend}</if>
|
|
|
|
and tcp.ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}
|
|
|
|
<if test="pictureresult != null"> and tcp.PICTURERESULT ${pictureresult.dataOp} ${pictureresult.likestar}#{pictureresult.value}${pictureresult.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="picturecompare != null"> and tcp.PICTURECOMPARE ${picturecompare.dataOp} ${picturecompare.likestar}#{picturecompare.value}${picturecompare.likeend}</if>
|
|
|
|
<if test="ocpictureid != null">
|
|
|
|
<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>
|
|
|
|
and tcp.OCPICTUREID ${ocpictureid.dataOp} ${ocpictureid.likestar}#{ocpictureid.value}${ocpictureid.likeend}
|
|
|
|
<if test="packageid != null"> and tcp.PACKAGEID ${packageid.dataOp} ${packageid.likestar}#{packageid.value}${packageid.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="pictureid != null"> and tcp.PICTUREID ${pictureid.dataOp} ${pictureid.likestar}#{pictureid.value}${pictureid.likeend}</if>
|
|
|
|
<if test="pictureresult != null">
|
|
|
|
<if test="category != null"> and tcp.CATEGORY ${category.dataOp} ${category.likestar}#{category.value}${category.likeend}</if>
|
|
|
|
and tcp.PICTURERESULT ${pictureresult.dataOp} ${pictureresult.likestar}#{pictureresult.value}${pictureresult.likeend}
|
|
|
|
<if test="categoryid != null"> and tcp.CATEGORYID ${categoryid.dataOp} ${categoryid.likestar}#{categoryid.value}${categoryid.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="specification != null"> and tcp.SPECIFICATION ${specification.dataOp} ${specification.likestar}#{specification.value}${specification.likeend}</if>
|
|
|
|
<if test="picturecompare != null">
|
|
|
|
<if test="buessinessno != null"> and tcp.BUESSINESSNO ${buessinessno.dataOp} ${buessinessno.likestar}#{buessinessno.value}${buessinessno.likeend}</if>
|
|
|
|
and tcp.PICTURECOMPARE ${picturecompare.dataOp} ${picturecompare.likestar}#{picturecompare.value}${picturecompare.likeend}
|
|
|
|
<!-- <if test="states != null"> and tcp.STATES ${states.dataOp} ${states.likestar}#{states.value}${states.likeend}</if>-->
|
|
|
|
</if>
|
|
|
|
<if test="processinstanceid != null"> and tcp.PROCESSINSTANCEID ${processinstanceid.dataOp} ${processinstanceid.likestar}#{processinstanceid.value}${processinstanceid.likeend}</if>
|
|
|
|
<if test="deptid != null">
|
|
|
|
<if test="processdefinitionid != null"> and tcp.PROCESSDEFINITIONID ${processdefinitionid.dataOp} ${processdefinitionid.likestar}#{processdefinitionid.value}${processdefinitionid.likeend}</if>
|
|
|
|
and tcp.DEPTID ${deptid.dataOp} ${deptid.likestar}#{deptid.value}${deptid.likeend}
|
|
|
|
<if test="deploymentid != null"> and tcp.DEPLOYMENTID ${deploymentid.dataOp} ${deploymentid.likestar}#{deploymentid.value}${deploymentid.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="assigneename != null"> and tcp.ASSIGNEENAME ${assigneename.dataOp} ${assigneename.likestar}#{assigneename.value}${assigneename.likeend}</if>
|
|
|
|
<if test="tenantid != null">
|
|
|
|
<if test="assignee != null"> and tcp.ASSIGNEE ${assignee.dataOp} ${assignee.likestar}#{assignee.value}${assignee.likeend}</if>
|
|
|
|
and tcp.TENANTID ${tenantid.dataOp} ${tenantid.likestar}#{tenantid.value}${tenantid.likeend}
|
|
|
|
<if test="updateuser != null"> and tcp.UPDATEUSER ${updateuser.dataOp} ${updateuser.likestar}#{updateuser.value}${updateuser.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="updatetime != null"> and tcp.UPDATETIME ${updatetime.dataOp} ${updatetime.likestar}#{updatetime.value}${updatetime.likeend}</if>
|
|
|
|
<if test="packageid != null">
|
|
|
|
<if test="fileannex != null"> and tcp.FILEANNEX ${fileannex.dataOp} ${fileannex.likestar}#{fileannex.value}${fileannex.likeend}</if>
|
|
|
|
and tcp.PACKAGEID ${packageid.dataOp} ${packageid.likestar}#{packageid.value}${packageid.likeend}
|
|
|
|
<if test="guidang != null"> and tcp.GUIDANG ${guidang.dataOp} ${guidang.likestar}#{guidang.value}${guidang.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="createuser != null"> and tcp.CREATEUSER ${createuser.dataOp} ${createuser.likestar}#{createuser.value}${createuser.likeend}</if>
|
|
|
|
<if test="pictureid != null">
|
|
|
|
<if test="createusername != null"> and tcp.CREATEUSERNAME ${createusername.dataOp} ${createusername.likestar}#{createusername.value}${createusername.likeend}</if>
|
|
|
|
and tcp.PICTUREID ${pictureid.dataOp} ${pictureid.likestar}#{pictureid.value}${pictureid.likeend}
|
|
|
|
<if test="createdate != null"> and tcp.CREATEDATE ${createdate.dataOp} ${createdate.likestar}#{createdate.value}${createdate.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="createdateStart != null"> and tcp.CREATEDATE ${createdateStart.dataOp} ${createdateStart.likestar}#{createdateStart.value}${createdateStart.likeend}</if>
|
|
|
|
<if test="category != null">
|
|
|
|
<if test="createdateEnd != null"> and tcp.CREATEDATE ${createdateEnd.dataOp} ${createdateEnd.likestar}#{createdateEnd.value}${createdateEnd.likeend}</if>
|
|
|
|
and tcp.CATEGORY ${category.dataOp} ${category.likestar}#{category.value}${category.likeend}
|
|
|
|
<if test="username != null"> and tcp.USERNAME ${username.dataOp} ${username.likestar}#{username.value}${username.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="fromtaskid != null"> and tcp.FROMTASKID ${fromtaskid.dataOp} ${fromtaskid.likestar}#{fromtaskid.value}${fromtaskid.likeend}</if>
|
|
|
|
<if test="categoryid != null">
|
|
|
|
<if test="fromtaskname != null"> and tcp.FROMTASKNAME ${fromtaskname.dataOp} ${fromtaskname.likestar}#{fromtaskname.value}${fromtaskname.likeend}</if>
|
|
|
|
and tcp.CATEGORYID ${categoryid.dataOp} ${categoryid.likestar}#{categoryid.value}${categoryid.likeend}
|
|
|
|
<!-- <if test="fromuserid != null"> and tcp.FROMUSERID ${fromuserid.dataOp} ${fromuserid.likestar}#{fromuserid.value}${fromuserid.likeend}</if>-->
|
|
|
|
</if>
|
|
|
|
<!-- <if test="fromprojectid != null"> and tcp.FROMPROJECTID ${fromprojectid.dataOp} ${fromprojectid.likestar}#{fromprojectid.value}${fromprojectid.likeend}</if>-->
|
|
|
|
<if test="specification != null">
|
|
|
|
<!-- <if test="fromplanid != null"> and tcp.FROMPLANID ${fromplanid.dataOp} ${fromplanid.likestar}#{fromplanid.value}${fromplanid.likeend}</if>-->
|
|
|
|
and tcp.SPECIFICATION ${specification.dataOp} ${specification.likestar}#{specification.value}${specification.likeend}
|
|
|
|
<if test="fromuptime != null"> and tcp.FROMUPTIME ${fromuptime.dataOp} ${fromuptime.likestar}#{fromuptime.value}${fromuptime.likeend}</if>
|
|
|
|
</if>
|
|
|
|
<if test="fromuserid != null"> and tcp.FROMUSERID ${fromuserid.dataOp} ${fromuserid.likestar}
|
|
|
|
<if test="buessinessno != null">
|
|
|
|
<!-- #{fromuserid.value}-->
|
|
|
|
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="createdateStart != null">
|
|
|
|
|
|
|
|
and tcp.CREATEDATE ${createdateStart.dataOp} ${createdateStart.likestar}#{createdateStart.value}${createdateStart.likeend}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createdateEnd != null">
|
|
|
|
|
|
|
|
and tcp.CREATEDATE ${createdateEnd.dataOp} ${createdateEnd.likestar}#{createdateEnd.value}${createdateEnd.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="fromuserid != null">
|
|
|
|
|
|
|
|
and tcp.FROMUSERID ${fromuserid.dataOp} ${fromuserid.likestar}
|
|
|
|
|
|
|
|
<!-- #{fromuserid.value}-->
|
|
|
|
<if test="fromuserid.value instanceof java.util.List">
|
|
|
|
<if test="fromuserid.value instanceof java.util.List">
|
|
|
|
<foreach item="item" collection="fromuserid.value" open="" separator="," close="">
|
|
|
|
<foreach item="item" collection="fromuserid.value" open="" separator="," close="">
|
|
|
|
#{item}
|
|
|
|
#{item}
|
|
|
@ -173,7 +363,8 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
${fromuserid.likeend}
|
|
|
|
${fromuserid.likeend}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="fromprojectid != null"> and tcp.FROMPROJECTID ${fromprojectid.dataOp} ${fromprojectid.likestar}
|
|
|
|
<if test="fromprojectid != null">
|
|
|
|
|
|
|
|
and tcp.FROMPROJECTID ${fromprojectid.dataOp} ${fromprojectid.likestar}
|
|
|
|
<!-- #{fromuserid.value}-->
|
|
|
|
<!-- #{fromuserid.value}-->
|
|
|
|
<if test="fromprojectid.value instanceof java.util.List">
|
|
|
|
<if test="fromprojectid.value instanceof java.util.List">
|
|
|
|
<foreach item="item" collection="fromprojectid.value" open="" separator="," close="">
|
|
|
|
<foreach item="item" collection="fromprojectid.value" open="" separator="," close="">
|
|
|
@ -185,7 +376,8 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
${fromprojectid.likeend}
|
|
|
|
${fromprojectid.likeend}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="fromplanid != null"> and tcp.FROMPLANID ${fromplanid.dataOp} ${fromplanid.likestar}
|
|
|
|
<if test="fromplanid != null">
|
|
|
|
|
|
|
|
and tcp.FROMPLANID ${fromplanid.dataOp} ${fromplanid.likestar}
|
|
|
|
<!-- #{fromuserid.value}-->
|
|
|
|
<!-- #{fromuserid.value}-->
|
|
|
|
<if test="fromplanid.value instanceof java.util.List">
|
|
|
|
<if test="fromplanid.value instanceof java.util.List">
|
|
|
|
<foreach item="item" collection="fromplanid.value" open="" separator="," close="">
|
|
|
|
<foreach item="item" collection="fromplanid.value" open="" separator="," close="">
|
|
|
@ -197,7 +389,8 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
${fromplanid.likeend}
|
|
|
|
${fromplanid.likeend}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="states != null"> and tcp.STATES ${states.dataOp} ${states.likestar}
|
|
|
|
<if test="states != null">
|
|
|
|
|
|
|
|
and tcp.STATES ${states.dataOp} ${states.likestar}
|
|
|
|
<!-- #{fromuserid.value}-->
|
|
|
|
<!-- #{fromuserid.value}-->
|
|
|
|
<if test="states.value instanceof java.util.List">
|
|
|
|
<if test="states.value instanceof java.util.List">
|
|
|
|
<foreach item="item" collection="states.value" open="" separator="," close="">
|
|
|
|
<foreach item="item" collection="states.value" open="" separator="," close="">
|
|
|
@ -209,7 +402,8 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
${states.likeend}
|
|
|
|
${states.likeend}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="fromsourceid != null"> and tcp.FROMSOURCEID ${fromsourceid.dataOp} ${fromsourceid.likestar}
|
|
|
|
<if test="fromsourceid != null">
|
|
|
|
|
|
|
|
and tcp.FROMSOURCEID ${fromsourceid.dataOp} ${fromsourceid.likestar}
|
|
|
|
<!-- #{fromuserid.value}-->
|
|
|
|
<!-- #{fromuserid.value}-->
|
|
|
|
<if test="fromsourceid.value instanceof java.util.List">
|
|
|
|
<if test="fromsourceid.value instanceof java.util.List">
|
|
|
|
<foreach item="item" collection="fromsourceid.value" open="" separator="," close="">
|
|
|
|
<foreach item="item" collection="fromsourceid.value" open="" separator="," close="">
|
|
|
@ -221,34 +415,41 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
${fromsourceid.likeend}
|
|
|
|
${fromsourceid.likeend}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<!-- <if test="fromuserid.value instanceof java.util.List"> and tcp.FROMUSERID-->
|
|
|
|
<!-- <if test="fromuserid.value instanceof java.util.List"> and tcp.FROMUSERID-->
|
|
|
|
<!-- in-->
|
|
|
|
<!-- in-->
|
|
|
|
<!-- <foreach item="item" collection="fromuserid.value" open="(" separator="," close=")">-->
|
|
|
|
<!-- <foreach item="item" collection="fromuserid.value" open="(" separator="," close=")">-->
|
|
|
|
<!-- #{item}-->
|
|
|
|
<!-- #{item}-->
|
|
|
|
<!-- </foreach>-->
|
|
|
|
<!-- </foreach>-->
|
|
|
|
<!-- </if>-->
|
|
|
|
<!-- </if>-->
|
|
|
|
<if test="havepoints != null"> and tcp.HAVEPOINTS ${havepoints.dataOp} ${havepoints.likestar}#{havepoints.value}${havepoints.likeend}</if>
|
|
|
|
<if test="havepoints != null">
|
|
|
|
<if test="taskname != null"> and tcp.TASKNAME ${taskname.dataOp} ${taskname.likestar}#{taskname.value}${taskname.likeend}</if>
|
|
|
|
and tcp.HAVEPOINTS ${havepoints.dataOp} ${havepoints.likestar}#{havepoints.value}${havepoints.likeend}
|
|
|
|
<if test="userid != null"> and tcp.USERID ${userid.dataOp} ${userid.likestar}#{userid.value}${userid.likeend}</if>
|
|
|
|
</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>
|
|
|
|
</trim>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<select id="listFinal" resultType="cn.jyjz.xiaoyao.ocr.dataobject.OcrTaskchildPicture" parameterType="java.util.Map">
|
|
|
|
<select id="listFinal" resultType="cn.jyjz.xiaoyao.ocr.dataobject.OcrTaskchildPicture"
|
|
|
|
select tcp.*,pic.field11 reporttime,pic.similarity_score similarityscore from (
|
|
|
|
parameterType="java.util.Map">
|
|
|
|
select
|
|
|
|
select tcp.*, pic.field11 reporttime, pic.similarity_score similarityscore from (
|
|
|
|
tc.*
|
|
|
|
select tc.*
|
|
|
|
from ocr_taskchild_picture tc,OA_USERFINAL_T uf
|
|
|
|
from ocr_taskchild_picture tc,
|
|
|
|
|
|
|
|
OA_USERFINAL_T uf
|
|
|
|
where tc.ID = uf.FORMID
|
|
|
|
where tc.ID = uf.FORMID
|
|
|
|
<if test="thisLoginUserid != null">
|
|
|
|
<if test="thisLoginUserid != null">
|
|
|
|
and uf.USERID ${thisLoginUserid.dataOp}
|
|
|
|
and uf.USERID ${thisLoginUserid.dataOp} ${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend}
|
|
|
|
${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
UNION
|
|
|
|
UNION
|
|
|
|
select
|
|
|
|
select
|
|
|
|
tc.*
|
|
|
|
tc.*
|
|
|
|
from ocr_taskchild_picture tc
|
|
|
|
from ocr_taskchild_picture tc
|
|
|
|
where tc.STATES = 5
|
|
|
|
where tc.STATES = 5
|
|
|
|
) as tcp left join ocr_picture pic
|
|
|
|
) as tcp
|
|
|
|
|
|
|
|
left join ocr_picture pic
|
|
|
|
on tcp.PICTUREID = pic.ID
|
|
|
|
on tcp.PICTUREID = pic.ID
|
|
|
|
<include refid="Base_Where_union">
|
|
|
|
<include refid="Base_Where_union">
|
|
|
|
</include>
|
|
|
|
</include>
|
|
|
@ -267,33 +468,48 @@
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="listFinalCount" resultType="java.lang.Long" parameterType="java.util.Map">
|
|
|
|
<select id="listFinalCount" resultType="java.lang.Long" parameterType="java.util.Map">
|
|
|
|
select count(tcp.ID) from (
|
|
|
|
select count(tcp.ID) from (
|
|
|
|
select
|
|
|
|
select tc.*
|
|
|
|
tc.*
|
|
|
|
from ocr_taskchild_picture tc,
|
|
|
|
from ocr_taskchild_picture tc,OA_USERFINAL_T uf
|
|
|
|
OA_USERFINAL_T uf
|
|
|
|
where tc.ID = uf.FORMID
|
|
|
|
where tc.ID = uf.FORMID
|
|
|
|
<if test="thisLoginUserid != null"> and uf.USERID ${thisLoginUserid.dataOp} ${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend}</if>
|
|
|
|
<if test="thisLoginUserid != null">
|
|
|
|
|
|
|
|
and uf.USERID ${thisLoginUserid.dataOp} ${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
UNION
|
|
|
|
UNION
|
|
|
|
select
|
|
|
|
select
|
|
|
|
tc.*
|
|
|
|
tc.*
|
|
|
|
from ocr_taskchild_picture tc
|
|
|
|
from ocr_taskchild_picture tc
|
|
|
|
where tc.STATES = 5
|
|
|
|
where tc.STATES = 5
|
|
|
|
) as tcp
|
|
|
|
) as tcp
|
|
|
|
<include refid="Base_Where_union"></include>
|
|
|
|
<include refid="Base_Where_union">
|
|
|
|
|
|
|
|
</include>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="listmytask" resultType="cn.jyjz.xiaoyao.ocr.dataobject.OcrTaskchildPictureAppro" parameterType="java.util.Map">
|
|
|
|
<select id="listmytask" resultType="cn.jyjz.xiaoyao.ocr.dataobject.OcrTaskchildPictureAppro"
|
|
|
|
|
|
|
|
parameterType="java.util.Map">
|
|
|
|
select tcp.* from (
|
|
|
|
select tcp.* from (
|
|
|
|
select
|
|
|
|
select tc.*,
|
|
|
|
tc.*,uf.COMMENTHIS,uf.TASKNAME as TASKNAMEHIS,uf.STATSHIS,uf.TASKINDEX,uf.TASKNO
|
|
|
|
uf.COMMENTHIS,
|
|
|
|
|
|
|
|
uf.TASKNAME as TASKNAMEHIS,
|
|
|
|
|
|
|
|
uf.STATSHIS,
|
|
|
|
|
|
|
|
uf.TASKINDEX,
|
|
|
|
|
|
|
|
uf.TASKNO
|
|
|
|
from ocr_taskchild_picture tc
|
|
|
|
from ocr_taskchild_picture tc
|
|
|
|
LEFT JOIN OA_USERAPPROVE_T uf ON tc.ID = uf.ID
|
|
|
|
LEFT JOIN OA_USERAPPROVE_T uf ON tc.ID = uf.ID
|
|
|
|
where tc.ASSIGNEE = #{searchassignee} and tc.TENANTID=#{searchtenantid}
|
|
|
|
where tc.ASSIGNEE = #{searchassignee}
|
|
|
|
and tc.STATES=2
|
|
|
|
and tc.TENANTID = #{searchtenantid}
|
|
|
|
|
|
|
|
and tc.STATES = 2
|
|
|
|
UNION
|
|
|
|
UNION
|
|
|
|
select
|
|
|
|
select tc.*,
|
|
|
|
tc.*,uf.COMMENTHIS,uf.TASKNAME as TASKNAMEHIS,uf.STATSHIS,uf.TASKINDEX,uf.TASKNO
|
|
|
|
uf.COMMENTHIS,
|
|
|
|
from ocr_taskchild_picture tc,OA_USERAPPROVE_T uf
|
|
|
|
uf.TASKNAME as TASKNAMEHIS,
|
|
|
|
where tc.ID = uf.FORMID and tc.TENANTID=#{searchtenantid}
|
|
|
|
uf.STATSHIS,
|
|
|
|
|
|
|
|
uf.TASKINDEX,
|
|
|
|
|
|
|
|
uf.TASKNO
|
|
|
|
|
|
|
|
from ocr_taskchild_picture tc,
|
|
|
|
|
|
|
|
OA_USERAPPROVE_T uf
|
|
|
|
|
|
|
|
where tc.ID = uf.FORMID
|
|
|
|
|
|
|
|
and tc.TENANTID = #{searchtenantid}
|
|
|
|
<if test="thisLoginUserid != null">
|
|
|
|
<if test="thisLoginUserid != null">
|
|
|
|
and uf.USERID = #{thisLoginUserid}
|
|
|
|
and uf.USERID = #{thisLoginUserid}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -310,16 +526,17 @@
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="listmytaskCount" resultType="java.lang.Long" parameterType="java.util.Map">
|
|
|
|
<select id="listmytaskCount" resultType="java.lang.Long" parameterType="java.util.Map">
|
|
|
|
select count(tcp.ID) from (
|
|
|
|
select count(tcp.ID) from (
|
|
|
|
select
|
|
|
|
select tc.*
|
|
|
|
tc.*
|
|
|
|
|
|
|
|
from ocr_taskchild_picture tc
|
|
|
|
from ocr_taskchild_picture tc
|
|
|
|
where tc.ASSIGNEE = #{searchassignee} and tc.TENANTID=#{searchtenantid}
|
|
|
|
where tc.ASSIGNEE = #{searchassignee}
|
|
|
|
and tc.STATES=2
|
|
|
|
and tc.TENANTID = #{searchtenantid}
|
|
|
|
|
|
|
|
and tc.STATES = 2
|
|
|
|
UNION
|
|
|
|
UNION
|
|
|
|
select
|
|
|
|
select tc.*
|
|
|
|
tc.*
|
|
|
|
from ocr_taskchild_picture tc,
|
|
|
|
from ocr_taskchild_picture tc,OA_USERAPPROVE_T uf
|
|
|
|
OA_USERAPPROVE_T uf
|
|
|
|
where tc.ID = uf.FORMID and tc.TENANTID=#{searchtenantid}
|
|
|
|
where tc.ID = uf.FORMID
|
|
|
|
|
|
|
|
and tc.TENANTID = #{searchtenantid}
|
|
|
|
<if test="thisLoginUserid != null">
|
|
|
|
<if test="thisLoginUserid != null">
|
|
|
|
and uf.USERID = #{thisLoginUserid}
|
|
|
|
and uf.USERID = #{thisLoginUserid}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -329,17 +546,105 @@
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectocpicture" resultType="String">
|
|
|
|
<select id="selectocpicture" resultType="String">
|
|
|
|
SELECT
|
|
|
|
SELECT OCPICTUREID
|
|
|
|
OCPICTUREID
|
|
|
|
FROM ocr_taskchild_picture
|
|
|
|
FROM
|
|
|
|
WHERE TENANTID = #{tenantid}
|
|
|
|
ocr_taskchild_picture
|
|
|
|
|
|
|
|
WHERE
|
|
|
|
|
|
|
|
TENANTID = #{tenantid}
|
|
|
|
|
|
|
|
AND PACKAGEID = #{packageid}
|
|
|
|
AND PACKAGEID = #{packageid}
|
|
|
|
AND ID = #{id}
|
|
|
|
AND ID = #{id}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getPictureHistoryList" resultType="cn.jyjz.xiaoyao.ocr.dataobject.OcrTaskchildPicture">
|
|
|
|
|
|
|
|
SELECT t2.*,t1.imgUrl,
|
|
|
|
|
|
|
|
ifnull(t3.STATSHIS, 1) historyStates
|
|
|
|
|
|
|
|
FROM ocr_picture t1
|
|
|
|
|
|
|
|
LEFT JOIN ocr_taskchild_picture t2
|
|
|
|
|
|
|
|
on t1.ID = t2.PICTUREID
|
|
|
|
|
|
|
|
LEFT JOIN oa_userapprove_t t3 on t2.ID = t3.FORMID and t3.TASKNAME = '${taskname}'
|
|
|
|
|
|
|
|
where t1.ID in
|
|
|
|
|
|
|
|
<foreach collection="pictureIds" open="(" close=")" item="item" separator="," index="index">
|
|
|
|
|
|
|
|
#{item}
|
|
|
|
|
|
|
|
</foreach>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getPictureDetail" resultMap="PictureResultMap">
|
|
|
|
|
|
|
|
SELECT t1.ID,
|
|
|
|
|
|
|
|
t1.imgUrl,
|
|
|
|
|
|
|
|
t1.taskName,
|
|
|
|
|
|
|
|
t1.work_status,
|
|
|
|
|
|
|
|
t1.field1,
|
|
|
|
|
|
|
|
t1.field2,
|
|
|
|
|
|
|
|
t1.field3,
|
|
|
|
|
|
|
|
t1.field4,
|
|
|
|
|
|
|
|
t1.field5,
|
|
|
|
|
|
|
|
t1.field6,
|
|
|
|
|
|
|
|
t1.field7,
|
|
|
|
|
|
|
|
t1.field8,
|
|
|
|
|
|
|
|
t1.field9,
|
|
|
|
|
|
|
|
t1.field10,
|
|
|
|
|
|
|
|
t1.field11,
|
|
|
|
|
|
|
|
t1.field12,
|
|
|
|
|
|
|
|
t1.field13,
|
|
|
|
|
|
|
|
t1.field14,
|
|
|
|
|
|
|
|
t1.field15,
|
|
|
|
|
|
|
|
t1.field16,
|
|
|
|
|
|
|
|
t1.field17,
|
|
|
|
|
|
|
|
t1.similarity_score,
|
|
|
|
|
|
|
|
t1.location,
|
|
|
|
|
|
|
|
t2.id,
|
|
|
|
|
|
|
|
t2.picture_id,
|
|
|
|
|
|
|
|
t2.img_size,
|
|
|
|
|
|
|
|
t2.img_format,
|
|
|
|
|
|
|
|
t2.img_measure,
|
|
|
|
|
|
|
|
t2.upload_time,
|
|
|
|
|
|
|
|
t2.create_time,
|
|
|
|
|
|
|
|
t2.img_space,
|
|
|
|
|
|
|
|
t2.tag_time,
|
|
|
|
|
|
|
|
t2.source,
|
|
|
|
|
|
|
|
t3.STATES,
|
|
|
|
|
|
|
|
t3.PROCESSINSTANCEID as processInstanceId,
|
|
|
|
|
|
|
|
t3.PROCESSDEFINITIONID as processDefinitionId,
|
|
|
|
|
|
|
|
t3.CREATEDATE,
|
|
|
|
|
|
|
|
t3.USERID,
|
|
|
|
|
|
|
|
t3.USERNAME,
|
|
|
|
|
|
|
|
t3.TASKNAME,
|
|
|
|
|
|
|
|
t3.FINISHTIME,
|
|
|
|
|
|
|
|
t3.ID as taskChildId,
|
|
|
|
|
|
|
|
t4.ID,
|
|
|
|
|
|
|
|
t4.USERID,
|
|
|
|
|
|
|
|
t4.FORMID,
|
|
|
|
|
|
|
|
t4.TASKNAME,
|
|
|
|
|
|
|
|
t4.STATSHIS,
|
|
|
|
|
|
|
|
t4.COMMENTHIS,
|
|
|
|
|
|
|
|
t4.TASKINDEX,
|
|
|
|
|
|
|
|
t4.TASKNO,
|
|
|
|
|
|
|
|
t4.USERNAME,
|
|
|
|
|
|
|
|
t4.CREATEDATE,
|
|
|
|
|
|
|
|
t4.TASKCOMMENT
|
|
|
|
|
|
|
|
FROM ocr_picture t1
|
|
|
|
|
|
|
|
LEFT JOIN ocr_picture_info t2 on t1.ID = t2.picture_id
|
|
|
|
|
|
|
|
LEFT JOIN ocr_taskchild_picture t3 on t1.ID = t3.PICTUREID
|
|
|
|
|
|
|
|
LEFT JOIN oa_userapprove_t t4 on t4.FORMID = t3.ID
|
|
|
|
|
|
|
|
where t1.ID = #{pictureId}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getPackageSimilarityList" resultType="cn.jyjz.xiaoyao.ocr.dataobject.OcrTaskchildPicture">
|
|
|
|
|
|
|
|
SELECT t3.*,t2.imgUrl,
|
|
|
|
|
|
|
|
t1.max_similarity similarityscore,
|
|
|
|
|
|
|
|
ifnull(t4.STATSHIS, 1) historyStates
|
|
|
|
|
|
|
|
FROM ocr_check_duplicate_result t1
|
|
|
|
|
|
|
|
LEFT JOIN ocr_picture t2 ON t1.picture_id = t2.ID
|
|
|
|
|
|
|
|
LEFT JOIN ocr_taskchild_picture t3 ON t2.ID = t3.PICTUREID
|
|
|
|
|
|
|
|
LEFT JOIN oa_userapprove_t t4 ON t3.ID = t4.FORMID
|
|
|
|
|
|
|
|
WHERE t1.check_duplicate_id = #{checkDuplicateId}
|
|
|
|
|
|
|
|
<if test="pictureId != null and pictureId != ''">
|
|
|
|
|
|
|
|
and t1.picture_id != #{pictureId}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="oderName == 'similarityScore'">
|
|
|
|
|
|
|
|
order by t1.max_similarity ${oderType}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="oderName == 'createdate'">
|
|
|
|
|
|
|
|
order by t2.createdate ${oderType}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|