| | |
| | | AND ((a.PID = ${productId}) |
| | | or (a.PID in (select pid from product_model where id = ${productId} and product_type = 10) and |
| | | a.product_type <> 10)) |
| | | and a.id not in ( |
| | | select node_id |
| | | from model_rbd_node |
| | | where product_id in ( |
| | | select pid |
| | | from product_model |
| | | where id = ${productId} |
| | | and is_delete = 0 |
| | | union |
| | | select id |
| | | from product_model |
| | | where is_delete = 0 |
| | | and pid = ${parentId} |
| | | and id <> ${productId} |
| | | ) |
| | | union |
| | | select node_id |
| | | from model_rbd_node |
| | | where product_id in ( |
| | | select id |
| | | from product_model |
| | | where is_delete = 0 and pid = ${productId} |
| | | ) |
| | | ) |
| | | |
| | | |
| | | |
| | | </select> |
| | | <select id="getTaskProductList" resultType="com.zt.life.modules.mainPart.basicInfo.model.XhProductModel"> |