49 lines
1.5 KiB
Java
49 lines
1.5 KiB
Java
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<Accident> 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<Accident> accidentList(@Param("enterpriseId") String enterpriseId,@Param("title")String title);
|
|
|
|
List<Accident>accidentDetailByCompanyId(@Param("enterpriseId") String enterpriseId);
|
|
|
|
int updateState(@Param("list") List<String>id);
|
|
|
|
List<GetAccident> getAccident();
|
|
|
|
/*事故趋势分析*/
|
|
List<AccidentNum> accidentNum(@Param("yearStr") String yearStr,
|
|
@Param("areaCode") String areaCode);
|
|
}
|