<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.roadm.admin.mapper.PreLoadOptionsMapper">
    <select id="getNullCheckSupplierOptions" resultType="cn.roadm.admin.controller.vo.PageSelectOptionsStringVO">
        select name as label, service_name as `value`
        from sms_null_mobile_check_service
        <where>
            type = 0
            <if test="otype != null">
                and otype = #{otype}
            </if>
        </where>
    </select>

    <select id="getPhoneRouteSupplierOptions" resultType="cn.roadm.admin.controller.vo.PageSelectOptionsStringVO">
        select name as label, service_name as `value`
        from sms_null_mobile_check_service
        where type = 1
    </select>

    <select id="getCompanyOptions" resultType="cn.roadm.admin.controller.vo.PageSelectOptionsStringVO">
        select id as value, full_name as label from sms_enterprise where state = 0
    </select>

    <select id="getSpInfoOptions" resultType="cn.roadm.admin.controller.vo.PageSelectOptionsStringVO">
        select id as value, sp_name as label from sms_sp_info where status = 1
    </select>
</mapper>