浏览代码

修改 编辑微信小程序用户 接口

tags/V1.6.0^2^2
wanghaoran 1年前
父节点
当前提交
66b2e7e907
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. +2
    -6
      tuoheng-api/src/main/java/com/tuoheng/api/service/impl/WestreamSceneryServiceImpl.java

+ 2
- 6
tuoheng-api/src/main/java/com/tuoheng/api/service/impl/WestreamSceneryServiceImpl.java 查看文件

@@ -121,13 +121,9 @@ public class WestreamSceneryServiceImpl extends BaseServiceImpl<WestreamSceneryM
WestreamUser westreamUser = westreamUserMapper.selectOne(new LambdaQueryWrapper<WestreamUser>()
.eq(WestreamUser::getOpenid, entity.getOpenid())
.eq(WestreamUser::getMark, 1));
entity.setStatus(1);
if(ObjectUtil.isNull(westreamUser)){
//新增
entity.setHeartbeatTime(new Date());
westreamUserMapper.insert(entity);
}else {
if(ObjectUtil.isNotNull(westreamUser)){
// 编辑
entity.setStatus(1);
entity.setHeartbeatTime(new Date());
westreamUserMapper.update(entity,new LambdaQueryWrapper<WestreamUser>()
.eq(WestreamUser::getOpenid,entity.getOpenid())

正在加载...
取消
保存