GuideScreenDao.java 3.56 KB
package com.zteits.park.dao;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.zteits.clouds.api.dto.park.param.GuideScreenListByAreaCodesRequest;
import com.zteits.clouds.api.dto.park.param.GuideScreenListGeoRequest;
import com.zteits.park.domain.GuideScreenGeo;
import com.zteits.park.domain.GuideScreenLevelStatistics;
import com.zteits.park.domain.TdGGuideParkRel;
import com.zteits.park.domain.TdGGuideScreen;

/**
 * Copyright: Copyright (c) 2017  zteits
 *
 * @ClassName: com.zteits.park.dao
 * @Description: 诱导屏查询dao层接口
 * @version: v1.0.0
 * @author: atao
 * @date: 2017/7/3   下午4:12
 * Modification History:
 * Date         Author          Version      Description
 * ---------------------------------------------------------*
 * 2017/7/3      atao          v1.0.0          创建
 */
public interface GuideScreenDao {

    /**
     * 根据行政区域编码 以及 诱导屏幕等级 查询诱导屏信息
     *
     * @param areaCodes 区域编码列表 非必填 如果为null,区域不进行限制
     * @param pageNum   当前页面  非必填,默认为1
     * @param pageSize  页面条数 非必填,默认为10
     * @param levels    诱导等级 非必填 如果为null,诱导屏幕等级不进行限制
     * @param queryStr  输入框查询参数 ,模糊查询诱导屏名称 及诱导屏地址  非必填
     * @param dataState 数据状态 非必填
     * @return
     */
    PageInfo<TdGGuideScreen> listGuideScreenByAreaCodes(GuideScreenListByAreaCodesRequest request);

    /**
     * 根据行政区编码 统计各个诱导屏数量
     *
     * @param areaCodes 区域编码列表 非必填 如果为null,区域不进行限制
     * @param dataState 数据状态 非必填
     * @return
     */
    List<GuideScreenLevelStatistics> statisticsGuideScreenLevelByAreaCodes(List<Long> areaCodes, String cityId,Integer dataState,Long orgId);

    /**
     * 根据区域编码 与级别 查询 诱导屏的经纬度坐标
     *
     * @param areaCodes 区域编码列表 非必填 如果为null,区域不进行限制
     * @param levels    诱导等级 非必填 如果为null,诱导屏幕等级不进行限制
     * @param dataState 数据状态 非必填
     * @return
     */
    List<GuideScreenGeo> listGuideScreenGeo(GuideScreenListGeoRequest request);

    /**
     * 根据诱导牌编号 查询诱导屏信息
     *
     * @param guideNo   诱导屏编号 必填
     * @param dataState 数据状态 非必填
     * @return
     */
    List<TdGGuideParkRel> getGuideScreenInfo(String guideNo, Integer dataState);

    /**
     * 根据诱导牌编号 查询诱导屏信息
     *
     * @param guideNo   诱导屏编号 必填
     * @param dataState 数据状态 非必填
     * @return
     */
    TdGGuideScreen getBaseGuideScreenInfo(String guideNo,Integer dataState);

    /**
     * 根据组织ID 和 诱导屏编码 获取所有诱导屏信息
     * @param orgId
     * @param guideNos
     * @return
     */
    List<TdGGuideScreen> getAllGuideScreenInfo(Long orgId, List<String> guideNos);

    /**
     * 删除所有诱导屏信息
     * @param guideNo
     * @return
     * 2018年12月18日 wangfei
     */
    void deleteALLGuideScreenInfo(List<String> guideNo,Long orgId);

    /**
	 * 批量新增
	 * @param tdGGuideParkRels
	 * @return
	 * 2018年12月18日 wangfei
	 */
	Boolean bathInsertGuideScreens(List<TdGGuideScreen> tdGGuideScreens);

	/**
	 * 修改诱导屏信息
	 * @param tdGGuideScreen
	 * @return
	 * 2018年12月18日 wangfei
	 */
	Boolean updateByExampleSelective(TdGGuideScreen tdGGuideScreen);

}