From 769ba15e9071b01cb53a65e8fdf4c8f37ac005b9 Mon Sep 17 00:00:00 2001 From: xyc <jc_xiong@hotmail.com> Date: 星期四, 07 十一月 2024 17:15:30 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- modules/mainPart/src/main/resources/mapper/baseReliability/ParamDataBasicDao.xml | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/modules/mainPart/src/main/resources/mapper/baseReliability/ParamDataBasicDao.xml b/modules/mainPart/src/main/resources/mapper/baseReliability/ParamDataBasicDao.xml index 12b4d14..07807e5 100644 --- a/modules/mainPart/src/main/resources/mapper/baseReliability/ParamDataBasicDao.xml +++ b/modules/mainPart/src/main/resources/mapper/baseReliability/ParamDataBasicDao.xml @@ -113,6 +113,33 @@ where b.ship_id = ${shipId} and a.product_id = b.id and a.basic_join_compute = 1 + and b.product_type = 5 + group by b.pid + ) b + set a.basic_join_compute = b.basic_join_compute + where a.product_id = b.pid; + + UPDATE param_data a,( + select pid, case when count(1) > 0 then 1 else 0 end as basic_join_compute + from param_data a, + product_model b + where b.ship_id = ${shipId} + and a.product_id = b.id + and a.basic_join_compute = 1 + and b.product_type = 4 + group by b.pid + ) b + set a.basic_join_compute = b.basic_join_compute + where a.product_id = b.pid; + + UPDATE param_data a,( + select pid, case when count(1) > 0 then 1 else 0 end as basic_join_compute + from param_data a, + product_model b + where b.ship_id = ${shipId} + and a.product_id = b.id + and a.basic_join_compute = 1 + and b.product_type = 3 group by b.pid ) b set a.basic_join_compute = b.basic_join_compute -- Gitblit v1.9.1