| | |
| | | <select id="getChildren" resultType="com.zt.life.modules.mainPart.taskReliability.dto.ProductStatusDto"> |
| | | select * |
| | | from ( |
| | | SELECT f.id, f.name, 0 as sort, 1 as sameSbNum |
| | | SELECT f.id, f.name, 0 as sort, 1 as sameSbNum,f.product_type |
| | | FROM product_model f |
| | | WHERE f.id = ${productId} |
| | | AND f.is_delete = 0 |
| | | union |
| | | SELECT f.id, f.name, f.sort, g.basic_unit_num as sameSbNum |
| | | SELECT f.id, f.name, f.sort, g.basic_unit_num as sameSbNum,f.product_type |
| | | FROM `task_phase` a, |
| | | task_phase_model b, |
| | | operat_condit c, |
| | |
| | | and vote_num is not null |
| | | limit 1 |
| | | </select> |
| | | |
| | | <select id="getProcessList" resultType="com.zt.life.modules.mainPart.taskReliability.model.SimulatAssess"> |
| | | select * |
| | | from simulat_assess |
| | | where IS_DELETE = 0 |
| | | and pid is not null |
| | | <if test="isAlive"> |
| | | and process_is_alive=1 |
| | | </if> |
| | | order by process_start_time desc |
| | | </select> |
| | | </mapper> |