1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

[后端] 微服务添加获取&更新微信小程序access_token相关逻辑

This commit is contained in:
2022-11-28 00:11:50 +08:00
parent fcd46cba4f
commit 5f142254f2
12 changed files with 409 additions and 185 deletions

View File

@@ -3,5 +3,14 @@
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cxyxiaomo.epp.access.dao.AccessDao">
<insert id="updateSetting" parameterType="com.cxyxiaomo.epp.common.pojo.Setting">
INSERT INTO setting (`key`, `value`, `time`)
VALUES (#{key}, #{value}, #{time})
ON DUPLICATE KEY UPDATE
`value` = VALUES(`value`), `time` = VALUES(`time`)
</insert>
<select id="getValueByKey" parameterType="java.lang.String" resultType="com.cxyxiaomo.epp.common.pojo.Setting">
SELECT * FROM setting
WHERE `key` = #{key}
</select>
</mapper>