|
|
@@ -1,69 +0,0 @@
|
|
|
-<?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.com.yusys.yusp.detail.dao.DetailFillTaskInsMapper">
|
|
|
- <select id="selectAuthOrgList" parameterType="string" resultType="cn.com.yusys.yusp.client.domain.vo.BioneIssuedOrgInfoVo">
|
|
|
- select
|
|
|
- T0.busi_no,T0.org_NO,
|
|
|
- T0.org_name,
|
|
|
- g.org_name as up_org_name,
|
|
|
- T0.up_org_no,
|
|
|
- T0.org_level,
|
|
|
- T0.org_sts,
|
|
|
- T0.namespace,
|
|
|
- T0.finance_org_no
|
|
|
- from admin_sm_user_issued_org_rel r left join bione_issued_org_info T0 on r.org_no = T0.org_no and r.busi_no = T0.busi_no
|
|
|
- LEFT JOIN bione_issued_org_info g ON g.org_no = T0.up_org_no and g.busi_no = T0.busi_no
|
|
|
- where T0.ORG_STS =#{orgSts,jdbcType=VARCHAR}
|
|
|
- and T0.busi_no =#{busiNo,jdbcType=VARCHAR}
|
|
|
- </select>
|
|
|
-
|
|
|
- <update id="updateInitTaskInsCount">
|
|
|
- update ${busiNo}_fill_task_ins fill
|
|
|
- set fill.init_task_ins_count =
|
|
|
- (
|
|
|
- select count(1) from ${busiNo}_fill_task_child_ins ins
|
|
|
- where ins.task_ins_id = fill.task_ins_id
|
|
|
- and ins.task_sts = '1'
|
|
|
- )
|
|
|
- <where>
|
|
|
- fill.task_ins_id in (
|
|
|
- <foreach collection="list" separator="," item="id">
|
|
|
- #{id}
|
|
|
- </foreach>
|
|
|
- )
|
|
|
- </where>
|
|
|
- </update>
|
|
|
- <update id="updateUnFillTaskInsCount">
|
|
|
- update ${busiNo}_fill_task_ins fill
|
|
|
- set fill.un_fill_task_ins_count =
|
|
|
- (
|
|
|
- select count(1) from ${busiNo}_fill_task_child_ins ins
|
|
|
- where ins.task_ins_id = fill.task_ins_id
|
|
|
- and ins.task_sts in ('2','3', '6')
|
|
|
- )
|
|
|
- <where>
|
|
|
- fill.task_ins_id in (
|
|
|
- <foreach collection="list" separator="," item="id">
|
|
|
- #{id}
|
|
|
- </foreach>
|
|
|
- )
|
|
|
- </where>
|
|
|
- </update>
|
|
|
-
|
|
|
- <update id="updateSubmitInsCount">
|
|
|
- update ${busiNo}_fill_task_ins fill
|
|
|
- set fill.submit_task_ins_count =
|
|
|
- (
|
|
|
- select count(1) from ${busiNo}_fill_task_child_ins ins
|
|
|
- where ins.task_ins_id = fill.task_ins_id
|
|
|
- and ins.task_sts = '9'
|
|
|
- )
|
|
|
- <where>
|
|
|
- fill.task_ins_id in (
|
|
|
- <foreach collection="list" separator="," item="id">
|
|
|
- #{id}
|
|
|
- </foreach>
|
|
|
- )
|
|
|
- </where>
|
|
|
- </update>
|
|
|
-</mapper>
|