Newer
Older
NotifyInfo / NotifyServer3 / src / main / resources / mapper / RegMapper.xml
bello on 29 Oct 2019 587 bytes notify3
<?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="me.notify.notifyserver3.dao.RegDao" >



    <!--保存regID-->
    <insert id="saveRegID" parameterType="String">
        REPLACE INTO `t_reg`(
              `regID`,`create_time`
          ) VALUES (
                #{regID},
                now()
                )

    </insert>



    <!--查询regID-->
    <select id="selectRegID"  resultType="String">

        select regID from t_reg;

    </select>

</mapper>