package com.rzyc.mapper; import com.rzyc.bean.bigdata.GetAccident; import com.rzyc.bean.bigdata.check.AccidentNum; import com.rzyc.model.Accident; import com.rzyc.model.AccidentExample; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface AccidentMapper { long countByExample(AccidentExample example); int deleteByExample(AccidentExample example); int deleteByPrimaryKey(String accidentid); int insert(Accident record); int insertSelective(Accident record); List selectByExample(AccidentExample example); Accident selectByPrimaryKey(String accidentid); int updateByExampleSelective(@Param("record") Accident record, @Param("example") AccidentExample example); int updateByExample(@Param("record") Accident record, @Param("example") AccidentExample example); int updateByPrimaryKeySelective(Accident record); int updateByPrimaryKey(Accident record); /*事故列表*/ List accidentList(@Param("enterpriseId") String enterpriseId,@Param("title")String title); ListaccidentDetailByCompanyId(@Param("enterpriseId") String enterpriseId); int updateState(@Param("list") Listid); List getAccident(); /*事故趋势分析*/ List accidentNum(@Param("yearStr") String yearStr, @Param("areaCode") String areaCode); }