package com.yeejoin.amos.boot.module.hygf.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.module.hygf.api.config.UserEmpower;
import com.yeejoin.amos.boot.module.hygf.api.dto.PowerStationDto;
import com.yeejoin.amos.boot.module.hygf.api.entity.PowerStation;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Mapper 接口
 *
 * @author system_generator
 * @date 2023-07-15
 */
public interface PowerStationMapper extends BaseMapper<PowerStation> {
	@UserEmpower(field = { "regional_companies_code" }, dealerField = { "developer_code", "regional_companies_code",
			"developer_user_id" }, fieldConditions = { "in", "in", "in" }, relationship = "and")
	List<PowerStationDto> queryPage(@Param("powerStationCode") String powerStationCode,
			@Param("ownersName") String ownersName, @Param("serviceAgent") String serviceAgent,
			@Param("regionalCompaniesName") String regionalCompaniesName, @Param("processStatus") String processStatus,
			@Param("province") String province,
			@Param("projectAddress") String projectAddress,
			@Param("status") String status,
			@Param("startTime") String startTime,
			@Param("endTime") String endTime,
			@Param("routhPathId")String routhPathId);
	String getInstanceIdByhouseId(String peasantHouseholdId);

	List<Map<String, Object>> getKcCreateTime();

	List<Map<String, Object>> getKcEndTime();

	List<Map<String, Object>> getSjCreateTime();

	List<Map<String, Object>> getSjEndTime();
}
