<?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="com.xinelu.applet.mapper.newapp.NewAppLoginMapper">

    <select id="login" resultType="com.xinelu.applet.vo.newapp.LoginStatusVo">
        select
        count(1) count, status,id
        from hospital_person_info
        <where>
            <if test="personAccount != null">
                person_account = #{personAccount}
            </if>
            <if test="personPassword != null">
                and person_password = #{personPassword}
            </if>
        </where>
    </select>

</mapper>
