package com.jeeplus.modules.sg.managementcenter.projectPlanArrage.mapper;

import com.jeeplus.core.persistence.BaseMapper;
import com.jeeplus.core.persistence.annotation.MyBatisMapper;
import com.jeeplus.modules.sg.managementcenter.materialproject.entity.MaterialProject;
import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.entity.ProjectAssignment;
import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.entity.ProjectDailyPlan;
import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.entity.ProjectPlanArrage;
import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.entity.ProjectQuantity;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@MyBatisMapper
public interface ProjectDailyPlanMapper extends BaseMapper<ProjectDailyPlan> {
    //循环增加项目
    Integer insertList(@Param("list") List<ProjectDailyPlan> projectDailyPlans);

    //查找项目表中状态为安排日计划的项目（arrangePlan = 3,可包含月计划）
    List<MaterialProject> findListMaterialProject(MaterialProject materialProject);

    //获取停电范围
    List<ProjectQuantity> findListQuantity(@Param("list") List<ProjectDailyPlan> list);

    //根据项目名称查找人员表
    List<ProjectAssignment> findListAssignment(@Param("list") List<ProjectDailyPlan> list);

    //删除月计划项目
    Integer deleteMonthPlan(@Param("list")List<ProjectDailyPlan> list);

    //修改项目
    Integer updateMartailDaily(@Param("list")List<ProjectDailyPlan> list);

    //修改项目
    Integer updateNoMartailDaily(@Param("list")List<String> list);


}
