| | |
| | | <if test="unitId !=null and unitId != '' "> |
| | | and nput.unit_id =#{unitId} |
| | | </if> |
| | | <if test="kind !=null and kind != '' "> |
| | | and npi.kind =#{kind} |
| | | </if> |
| | | <if test="status !=null and status != '' "> |
| | | and npi.status =#{status} |
| | | </if> |
| | | </where> |
| | | GROUP BY nput.id |
| | | order by nput.creation_time desc |
| | | </select> |
| | | |
| | | <select id="getDetails" resultType="com.panzhihua.common.model.dtos.partybuilding.NeedProblemUnitTaskDTO"> |
| | |
| | | delete from new_fight_need_problem_unit_task where id=#{id} |
| | | </delete> |
| | | |
| | | |
| | | <select id="isGet" resultType="Integer" > |
| | | select count(id) from new_fight_need_problem_unit_task |
| | | where |
| | | 1=1 |
| | | <if test="taskId != null and taskId != '' "> |
| | | and task_id=#{taskId} |
| | | </if> |
| | | <if test=" unitId != null and unitId != '' "> |
| | | and unit_id=#{unitId} |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | </mapper> |
| | | |