package org.gyk.modules.sz.jldxx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.gyk.modules.sssj.entity.YasuojiJcxx;
import org.gyk.modules.sz.jldxx.entity.CxcSssjSzJldxx;

import java.util.List;

@Mapper
public interface JldxxMapper extends BaseMapper<CxcSssjSzJldxx> {

    //    @Cacheable(value = "sqlBj", key = "#root.methodName+#jldlx")
    @Select(" select * from cxc_sssj_sz_jldxx where jldlx = #{jldlx} and sfyc = 'Y' ")
    public List<CxcSssjSzJldxx> getAllJldxx( @Param("jldlx") String jldlx);

    /**
     * 功能描述: <br>
     * 〈〉只查询远传的数据
     * @Param: [jldlx]
     * @Return: java.util.List<org.gyk.modules.sz.jldxx.entity.CxcSssjSzJldxx>
     * @Author: 闵年泽
     * @Date: 2024/6/19 9:25
     */
    @Select(" select * from cxc_sssj_sz_jldxx where jldlx = #{jldlx} and sfyc = 'Y'")
    public List<CxcSssjSzJldxx> getAllYcJldxx(@Param("jldx") String jldlx);

    //    @Cacheable(value = "sqlBj", key = "#root.methodName")
    @Select(" select * from cxc_sssj_sz_jldxx where id = #{jldId}")
    public List<CxcSssjSzJldxx> getJldxxById( @Param("jldId") String jldId);

    @Select(" select jld_name,station_name,station_id,depart_name,ssgx1,ssgx2,gykbz from cxc_sssj_sz_jldxx where jldlx = #{jldlx}")
    public List<YasuojiJcxx> getYsjGykbz(@Param("jldlx") String jldlx);

}
