lidongdong
2024-07-03 e342a25085d52cd460f6c794061c95182146b661
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/mapper/NeedProblemUnitTaskMapper.xml
@@ -158,5 +158,21 @@
        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 id=#{taskId}
            </if>
            <if test=" unitId != null and unitId != '' ">
                and unit_id=#{unitId}
            </if>
    </select>
</mapper>