Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
promotion-service
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
promotion
promotion-service
Commits
3875bc20
提交
3875bc20
authored
1月 13, 2026
作者:
douxy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
CP计划小程序改造,新增修改促销员门店信息接口
上级
86ed838d
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
43 行增加
和
4 行删除
+43
-4
TemporaryInfoCoreController.java
...tion/controller/user/tem/TemporaryInfoCoreController.java
+11
-4
TemporaryInfoDao.java
...angxiaolu/promotion/domain/user/dao/TemporaryInfoDao.java
+2
-0
TemporaryInfoDaoImpl.java
.../promotion/domain/user/dao/impl/TemporaryInfoDaoImpl.java
+8
-0
WeChatUserCoreService.java
...iaolu/promotion/service/wechat/WeChatUserCoreService.java
+8
-0
WeChatUserCoreServiceImpl.java
...motion/service/wechat/impl/WeChatUserCoreServiceImpl.java
+14
-0
没有找到文件。
src/main/java/com/wangxiaolu/promotion/controller/user/tem/TemporaryInfoCoreController.java
浏览文件 @
3875bc20
...
@@ -13,10 +13,7 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -13,10 +13,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* @author : liqiulin
* @author : liqiulin
...
@@ -68,4 +65,14 @@ public class TemporaryInfoCoreController {
...
@@ -68,4 +65,14 @@ public class TemporaryInfoCoreController {
return
R
.
success
(
weChatUserCoreService
.
saveWxUserInfoTemporary
(
temporaryDto
));
return
R
.
success
(
weChatUserCoreService
.
saveWxUserInfoTemporary
(
temporaryDto
));
}
}
@PutMapping
(
"/temporary/changeStoreInfo"
)
public
R
changeUserInfo
(
@RequestBody
WxTemporaryEnrollVo
wxTemporaryEnrollVo
)
{
if
(
wxTemporaryEnrollVo
.
getOpenId
()
==
null
){
throw
new
ParamException
(
RCode
.
WX_OPENID_PARAM_ERROR
,
null
);
}
WxTemporaryInfoDto
temporaryDto
=
new
WxTemporaryInfoDto
();
BeanUtils
.
copyProperties
(
wxTemporaryEnrollVo
,
temporaryDto
);
return
R
.
success
(
weChatUserCoreService
.
saveWxUserStoreInfoTemporary
(
temporaryDto
));
}
}
}
src/main/java/com/wangxiaolu/promotion/domain/user/dao/TemporaryInfoDao.java
浏览文件 @
3875bc20
...
@@ -28,4 +28,6 @@ public interface TemporaryInfoDao {
...
@@ -28,4 +28,6 @@ public interface TemporaryInfoDao {
void
updateById
(
WxTemporaryInfoDto
temporaryDto
);
void
updateById
(
WxTemporaryInfoDto
temporaryDto
);
WxTemporaryInfoDto
selectByPhone
(
String
phone
);
WxTemporaryInfoDto
selectByPhone
(
String
phone
);
int
saveWxUserStoreInfoTemporary
(
WxTemporaryInfoDto
temporaryDto
);
}
}
src/main/java/com/wangxiaolu/promotion/domain/user/dao/impl/TemporaryInfoDaoImpl.java
浏览文件 @
3875bc20
...
@@ -94,6 +94,14 @@ public class TemporaryInfoDaoImpl implements TemporaryInfoDao {
...
@@ -94,6 +94,14 @@ public class TemporaryInfoDaoImpl implements TemporaryInfoDao {
return
transitionDto
(
temDo
);
return
transitionDto
(
temDo
);
}
}
@Override
public
int
saveWxUserStoreInfoTemporary
(
WxTemporaryInfoDto
temporaryDto
)
{
TemporaryInfoDO
entity
=
new
TemporaryInfoDO
();
BeanUtils
.
copyProperties
(
temporaryDto
,
entity
);
return
temporaryInfoMapper
.
updateById
(
entity
);
}
private
LambdaQueryWrapper
<
TemporaryInfoDO
>
buildQueryList
(
TemporaryWrapper
tw
)
{
private
LambdaQueryWrapper
<
TemporaryInfoDO
>
buildQueryList
(
TemporaryWrapper
tw
)
{
LambdaQueryWrapper
<
TemporaryInfoDO
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
TemporaryInfoDO
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
if
(
StringUtils
.
isNotBlank
(
tw
.
getOpenId
()))
{
if
(
StringUtils
.
isNotBlank
(
tw
.
getOpenId
()))
{
...
...
src/main/java/com/wangxiaolu/promotion/service/wechat/WeChatUserCoreService.java
浏览文件 @
3875bc20
...
@@ -13,4 +13,12 @@ public interface WeChatUserCoreService {
...
@@ -13,4 +13,12 @@ public interface WeChatUserCoreService {
* 保存促销员用户信息
* 保存促销员用户信息
*/
*/
boolean
saveWxUserInfoTemporary
(
WxTemporaryInfoDto
temporaryDto
);
boolean
saveWxUserInfoTemporary
(
WxTemporaryInfoDto
temporaryDto
);
/**
* 修改促销员的门店信息
* @param temporaryDto
* @return
*/
boolean
saveWxUserStoreInfoTemporary
(
WxTemporaryInfoDto
temporaryDto
);
}
}
src/main/java/com/wangxiaolu/promotion/service/wechat/impl/WeChatUserCoreServiceImpl.java
浏览文件 @
3875bc20
...
@@ -38,4 +38,18 @@ public class WeChatUserCoreServiceImpl implements WeChatUserCoreService {
...
@@ -38,4 +38,18 @@ public class WeChatUserCoreServiceImpl implements WeChatUserCoreService {
log
.
info
(
"微信-促销员[{}]:[{}]注册成功:{}"
,
saveId
,
temporaryDto
.
getName
(),
JSONObject
.
toJSONString
(
temporaryDto
));
log
.
info
(
"微信-促销员[{}]:[{}]注册成功:{}"
,
saveId
,
temporaryDto
.
getName
(),
JSONObject
.
toJSONString
(
temporaryDto
));
return
saveId
>
0
;
return
saveId
>
0
;
}
}
/**
* 保存用户门店信息
* @param temporaryDto
* @return
*/
@Override
public
boolean
saveWxUserStoreInfoTemporary
(
WxTemporaryInfoDto
temporaryDto
)
{
WxTemporaryInfoDto
wxTemporaryInfoDto
=
temporaryInfoDao
.
selectOneByOpenId
(
temporaryDto
.
getOpenId
());
wxTemporaryInfoDto
.
setStoreCode
(
temporaryDto
.
getStoreCode
());
wxTemporaryInfoDto
.
setStoreName
(
temporaryDto
.
getStoreName
());
int
saveId
=
temporaryInfoDao
.
saveWxUserStoreInfoTemporary
(
wxTemporaryInfoDto
);
return
saveId
>
0
;
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论