|  |  | 
 |  |  |         ORDER BY count DESC | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  |     <select id="selectPrepareGroup" resultType="java.lang.String"> | 
 |  |  |         SELECT | 
 |  |  |         group_id | 
 |  |  |     <select id="selectGroupNo" resultType="java.lang.String"> | 
 |  |  |         SELECT group_id | 
 |  |  |         FROM man_action | 
 |  |  |         WHERE 1=1 | 
 |  |  |         AND action_sts = (SELECT id FROM man_action_sts WHERE UUID = 'PREPARE') | 
 |  |  |         AND action_sts = #{actionSts} | 
 |  |  |         AND group_id IS NOT NULL | 
 |  |  |         GROUP BY group_id | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  |     <select id="selectPrepareGroup" resultType="java.lang.String"> | 
 |  |  |         SELECT ma.group_id | 
 |  |  |         FROM man_action ma | 
 |  |  |         JOIN man_action_sts mas ON ma.action_sts = mas.id | 
 |  |  |         WHERE mas.UUID = 'PREPARE' | 
 |  |  |         AND ma.group_id IS NOT NULL | 
 |  |  |         GROUP BY ma.group_id | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  |     <select id="selectTaskIdsByGroupId" resultType="java.lang.Long"> | 
 |  |  |         SELECT | 
 |  |  |         DISTINCT task_id |