From ec8cf4060c7319d884a11dc3a406e43ae2449c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Sat, 6 Apr 2024 22:51:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4diamagnetic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/flowable/FlowBusinessKeyMapper.xml | 41 ++++++++++--------- sql/SQL集合.txt | 6 +++ .../web/controller/FloweController.java | 40 ++++++------------ .../controller/ProjectStandardController.java | 9 ++-- .../web/controller/VideoAiBoxController.java | 32 ++++++--------- .../web/controller/VideoController.java | 8 ++-- .../SurProjectVideoConfigServiceImpl.java | 2 +- .../mapper/base/BasePeriodicalMapper.xml | 2 +- .../project/SurProjectStandardMapper.xml | 10 +++-- .../mapper/video/DevAiProjectDataMapper.xml | 3 +- .../video/SurProjectVideoConfigMapper.xml | 5 ++- 11 files changed, 75 insertions(+), 83 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml b/ruoyi-system/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml index 87bb7455..61503efc 100644 --- a/ruoyi-system/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml @@ -151,7 +151,7 @@ SELECT cat taskName, COUNT(1) assigneeId FROM ( - SELECT *,'总包单位' cat FROM vw_flow_all WHERE finishTime IS NULL AND taskName LIKE '总包%' + SELECT *,'总包单位' cat FROM vw_flow_all WHERE finishTime IS NULL AND taskName LIKE '总包%' and businessVisible=0 and businessDeptId=#{projectDeptId} and businessKey=#{businessKey} and businessType = #{proType} @@ -190,7 +190,7 @@ UNION - SELECT *,'监理单位' cat FROM vw_flow_all WHERE finishTime IS NULL AND taskName LIKE '监理%' + SELECT *,'监理单位' cat FROM vw_flow_all WHERE finishTime IS NULL AND taskName LIKE '监理%' and businessVisible=0 and businessDeptId=#{projectDeptId} and businessKey=#{businessKey} and businessType = #{proType} @@ -201,7 +201,7 @@ UNION - SELECT *,'设计单位' cat FROM vw_flow_all WHERE finishTime IS NULL AND taskName LIKE '设计%' + SELECT *,'设计单位' cat FROM vw_flow_all WHERE finishTime IS NULL AND taskName LIKE '设计%' and businessVisible=0 and businessDeptId=#{projectDeptId} and businessKey=#{businessKey} and businessType = #{proType} @@ -212,7 +212,7 @@ UNION - SELECT *,'甲方代表' cat FROM vw_flow_all WHERE finishTime IS NULL AND taskName LIKE '甲方%' + SELECT *,'甲方代表' cat FROM vw_flow_all WHERE finishTime IS NULL AND taskName LIKE '甲方%' and businessVisible=0 and businessDeptId=#{projectDeptId} and businessKey=#{businessKey} and businessType = #{proType} @@ -223,7 +223,7 @@ UNION - SELECT *,'子公司' cat FROM vw_flow_all WHERE finishTime IS NULL AND taskName LIKE '工程%' + SELECT *,'子公司' cat FROM vw_flow_all WHERE finishTime IS NULL AND taskName LIKE '工程%' and businessVisible=0 and businessDeptId=#{projectDeptId} and businessKey=#{businessKey} and businessType = #{proType} @@ -239,7 +239,7 @@ SELECT cat taskName, COUNT(1) assigneeId FROM ( - SELECT *,'总包单位' cat FROM vw_flow_all WHERE taskName LIKE '总包%' AND taskName!='提交申请' + SELECT *,'总包单位' cat FROM vw_flow_all WHERE taskName LIKE '总包%' AND taskName!='提交申请' and businessVisible=0 and businessDeptId=#{projectDeptId} and businessKey=#{businessKey} and businessType = #{proType} @@ -310,7 +310,7 @@ UNION - SELECT *,'监理单位' cat FROM vw_flow_all WHERE taskName LIKE '监理%' AND taskName!='提交申请' + SELECT *,'监理单位' cat FROM vw_flow_all WHERE taskName LIKE '监理%' AND taskName!='提交申请' and businessVisible=0 and businessDeptId=#{projectDeptId} and businessKey=#{businessKey} and businessType = #{proType} @@ -321,7 +321,7 @@ UNION - SELECT *,'设计单位' cat FROM vw_flow_all WHERE taskName LIKE '设计%' AND taskName!='提交申请' + SELECT *,'设计单位' cat FROM vw_flow_all WHERE taskName LIKE '设计%' AND taskName!='提交申请' and businessVisible=0 and businessDeptId=#{projectDeptId} and businessKey=#{businessKey} and businessType = #{proType} @@ -332,7 +332,7 @@ UNION - SELECT *,'甲方代表' cat FROM vw_flow_all WHERE taskName LIKE '甲方%' AND taskName!='提交申请' + SELECT *,'甲方代表' cat FROM vw_flow_all WHERE taskName LIKE '甲方%' AND taskName!='提交申请' and businessVisible=0 and businessDeptId=#{projectDeptId} and businessKey=#{businessKey} and businessType = #{proType} @@ -343,7 +343,7 @@ UNION - SELECT *,'子公司' cat FROM vw_flow_all WHERE taskName LIKE '工程%' AND taskName!='提交申请' + SELECT *,'子公司' cat FROM vw_flow_all WHERE taskName LIKE '工程%' AND taskName!='提交申请' and businessVisible=0 and businessDeptId=#{projectDeptId} and businessKey=#{businessKey} and businessType = #{proType} @@ -360,6 +360,7 @@ SELECT * FROM vw_flow_all + businessVisible=0 AND taskName!='提交申请' AND finishTime IS NULL AND taskName!='提交申请' @@ -415,7 +417,7 @@ - + and name like concat('%', #{name}, '%') and image_url = #{imageUrl} and file_url = #{fileUrl} diff --git a/yanzhu-jh/src/main/resources/mapper/project/SurProjectStandardMapper.xml b/yanzhu-jh/src/main/resources/mapper/project/SurProjectStandardMapper.xml index 2a3f5c65..18187d15 100644 --- a/yanzhu-jh/src/main/resources/mapper/project/SurProjectStandardMapper.xml +++ b/yanzhu-jh/src/main/resources/mapper/project/SurProjectStandardMapper.xml @@ -34,6 +34,7 @@ and sps.project_id = #{projectId} and sp.projectType = #{proType} + and sp.progressVisible = 0 and sps.dept_id = #{deptId} and sps.standard_desc = #{standardDesc} and sps.ord = #{ord} @@ -128,7 +129,8 @@ and sp.deptId= #{deptId} - and sp.projectType = #{proType} + and sp.projectType = #{proType} + and sp.progressVisible = 0 and a.project_id in @@ -144,9 +146,8 @@ select a.project_id,count(1) cnt from sur_project_standard a where a.is_del=0 group by a.project_id )a, - sur_project b where a.project_id=b.id + sur_project b where a.project_id=b.id and b.progressVisible=0 order by a.cnt desc -