Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-cloud-yunqueyilian
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.wechat
pica-cloud-yunqueyilian
提交
931e4887
提交
931e4887
编写于
10月 08, 2018
作者:
yongbo.wang
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'release-oldTables' into 'release'
Release old tables See merge request
!6
上级
3961f1b0
555a5770
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
22 行增加
和
22 行删除
+22
-22
MenuManagerServiceImpl.java
...queyilian/server/service/impl/MenuManagerServiceImpl.java
+5
-5
PWechatUserMapper.xml
server/src/main/resources/mybatis/PWechatUserMapper.xml
+17
-17
未找到文件。
server/src/main/java/com/pica/cloud/wechat/yunqueyilian/server/service/impl/MenuManagerServiceImpl.java
浏览文件 @
931e4887
...
...
@@ -24,7 +24,7 @@ public class MenuManagerServiceImpl {
public
static
void
main
(
String
[]
args
)
throws
IOException
{
// CloudPropertiesUtil.read("dev");
CloudPropertiesUtil
.
read
(
"
pro
"
);
CloudPropertiesUtil
.
read
(
"
test1
"
);
AccessToken
accessToken
=
WeChatToolUtil
.
getAccessToken
(
CloudPropertiesUtil
.
getValue
(
"AppID"
),
CloudPropertiesUtil
.
getValue
(
"AppSecret"
));
Boolean
flag
=
WeChatToolUtil
.
createMenu
(
getMenu
(),
accessToken
.
getAccess_token
());
if
(
flag
)
{
...
...
@@ -42,11 +42,11 @@ public class MenuManagerServiceImpl {
*/
private
static
Menu
getMenu
()
throws
UnsupportedEncodingException
{
//test1
String
btn11Url
=
"https://
uat
-yunqueyilian.yunqueyi.com/message"
;
String
btn11Url
=
"https://
test1
-yunqueyilian.yunqueyi.com/message"
;
String
btn21Url
=
"http://mp.weixin.qq.com/mp/homepage?__biz=MzIzNjM5NDA1OQ==&hid=2&sn=f52aa8659aa75f32aae5ea62d23e64ca&scene=18#wechat_redirect"
;
String
btn31Url
=
"https://
uat
-yunqueyilian.yunqueyi.com/goBind"
;
String
btn32Url
=
"https://
uat
-yunqueyilian.yunqueyi.com/applyIndex"
;
String
btn33Url
=
"https://
uat
-yunqueyilian.yunqueyi.com/followUp"
;
String
btn31Url
=
"https://
test1
-yunqueyilian.yunqueyi.com/goBind"
;
String
btn32Url
=
"https://
test1
-yunqueyilian.yunqueyi.com/applyIndex"
;
String
btn33Url
=
"https://
test1
-yunqueyilian.yunqueyi.com/followUp"
;
//pro
// String btn11Url = "https://yunqueyilian.yunqueyi.com/message";
...
...
server/src/main/resources/mybatis/PWechatUserMapper.xml
浏览文件 @
931e4887
...
...
@@ -21,25 +21,25 @@
<result
column=
"groupid"
property=
"groupid"
jdbcType=
"VARCHAR"
/>
<result
column=
"tagid_list"
property=
"tagidList"
jdbcType=
"VARCHAR"
/>
<result
column=
"delete_flag"
property=
"deleteFlag"
jdbcType=
"INTEGER"
/>
<result
column=
"creat_id"
property=
"creatId"
jdbcType=
"INTEGER"
/>
<result
column=
"creat_time"
property=
"creatTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"modif
y
_id"
property=
"modifyId"
jdbcType=
"INTEGER"
/>
<result
column=
"modif
y
_time"
property=
"modifyTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"creat
ed
_id"
property=
"creatId"
jdbcType=
"INTEGER"
/>
<result
column=
"creat
ed
_time"
property=
"creatTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"modif
ied
_id"
property=
"modifyId"
jdbcType=
"INTEGER"
/>
<result
column=
"modif
ied
_time"
property=
"modifyTime"
jdbcType=
"TIMESTAMP"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, openid, patient_id, type, sex, nickname, province, city, country, headimgurl,
privilege, unionid, subscribe, language, subscribe_time, remark, groupid, tagid_list,
delete_flag, creat
_id, creat_time, modify_id, modify
_time
id, openid, patient_id, type, sex, nickname, province, city, country, headimgurl,
privilege, unionid, subscribe, language, subscribe_time, remark, groupid, tagid_list,
delete_flag, creat
ed_id, created_time, modified_id, modified
_time
</sql>
<insert
id=
"insert"
parameterType=
"com.pica.cloud.wechat.yunqueyilian.server.entity.PWechatUser"
>
insert into p_wechat_user (openid, patient_id,
insert into p
at
_wechat_user (openid, patient_id,
type, sex, nickname,
province, city, country,
headimgurl, privilege, unionid,
subscribe, language, subscribe_time,
remark, groupid, tagid_list,
delete_flag, creat
_id, creat
_time,
modif
y_id, modify
_time)
delete_flag, creat
ed_id, created
_time,
modif
ied_id, modified
_time)
values (#{openid,jdbcType=VARCHAR}, #{patientId,jdbcType=INTEGER},
#{type,jdbcType=INTEGER}, #{sex,jdbcType=INTEGER}, #{nickname,jdbcType=VARCHAR},
#{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{country,jdbcType=VARCHAR},
...
...
@@ -50,7 +50,7 @@
#{modifyId,jdbcType=INTEGER}, SYSDATE())
</insert>
<update
id=
"updateById"
parameterType=
"com.pica.cloud.wechat.yunqueyilian.server.entity.PWechatUser"
>
update p_wechat_user
update p
at
_wechat_user
<set>
<if
test=
"openid != null"
>
openid = #{openid,jdbcType=VARCHAR},
...
...
@@ -107,26 +107,26 @@
delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if>
<if
test=
"creatId != null"
>
creat_id = #{creatId,jdbcType=INTEGER},
creat
ed
_id = #{creatId,jdbcType=INTEGER},
</if>
<if
test=
"creatTime != null"
>
creat_time = #{creatTime,jdbcType=TIMESTAMP},
creat
ed
_time = #{creatTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"modifyId != null"
>
modif
y
_id = #{modifyId,jdbcType=INTEGER},
modif
ied
_id = #{modifyId,jdbcType=INTEGER},
</if>
modif
y
_time = SYSDATE()
modif
ied
_time = SYSDATE()
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<select
id=
"queryByOpenId"
resultMap=
"BaseResultMap"
parameterType=
"java.util.Map"
>
select
<include
refid=
"Base_Column_List"
/>
from p_wechat_user
from p
at
_wechat_user
where type = #{type} and openid = #{openId}
</select>
<update
id=
"updateSubscribeById"
parameterType=
"com.pica.cloud.wechat.yunqueyilian.server.entity.PWechatUser"
>
update p_wechat_user set subscribe = #{subscribe},modify_time = SYSDATE() where id = #{id,jdbcType=INTEGER}
update p
at
_wechat_user set subscribe = #{subscribe},modify_time = SYSDATE() where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录