| | |
| | | nfnpc.punch_start_time, |
| | | nfnpc.punch_end_time, |
| | | if(nfnpc.user_id>0,1,0) as isJoin, |
| | | (count(task_id)) as joinNum, |
| | | nfpi.status, |
| | | nfpi.user_id |
| | | FROM new_fight_need_problem_inventory as nfpi |
| | |
| | | and nfpi.user_id =#{userId} |
| | | </if> |
| | | </where> |
| | | GROUP BY nfpi.id |
| | | </select> |
| | | |
| | | |
| | |
| | | nfnpc.punch_start_time, |
| | | nfnpc.punch_end_time, |
| | | if(nfnpc.user_id>0,1,0) as isJoin, |
| | | (count(task_id)) as joinNum, |
| | | nfpi.status, |
| | | nfpi.user_id |
| | | FROM new_fight_need_problem_inventory as nfpi |
| | |
| | | and nfpi.id in(SELECT task_id FROM new_fight_need_problem_claim where user_id=#{userId} ) |
| | | </if> |
| | | </where> |
| | | GROUP BY nfpi.id |
| | | </select> |
| | | |
| | | |
| | |
| | | nfnpc.punch_start_time, |
| | | nfnpc.punch_end_time, |
| | | if(nfnpc.user_id>0,1,0) as isJoin, |
| | | (count(task_id)) as joinNum, |
| | | nfpi.status, |
| | | nfpi.user_id |
| | | FROM new_fight_need_problem_inventory as nfpi |
| | |
| | | and nfpi.id =#{id} |
| | | </if> |
| | | </where> |
| | | GROUP BY nfpi.id |
| | | </select> |
| | | |
| | | |