订单
This commit is contained in:
@@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 顾客关注陪玩信息Controller
|
||||
* 顾客关注陪聊信息Controller
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024-04-30
|
||||
@@ -24,7 +24,7 @@ public class PlayCustomFollowInfoController {
|
||||
private IPlayCustomFollowInfoService playCustomFollowInfoService;
|
||||
|
||||
/**
|
||||
* 查询顾客关注陪玩信息列表
|
||||
* 查询顾客关注陪聊信息列表
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:list')")
|
||||
@GetMapping("/list")
|
||||
@@ -34,7 +34,7 @@ public class PlayCustomFollowInfoController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取顾客关注陪玩信息详细信息
|
||||
* 获取顾客关注陪聊信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@@ -43,10 +43,10 @@ public class PlayCustomFollowInfoController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增顾客关注陪玩信息
|
||||
* 新增顾客关注陪聊信息
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:create')")
|
||||
@Log(title = "顾客关注陪玩信息", businessType = BusinessType.INSERT)
|
||||
@Log(title = "顾客关注陪聊信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/create")
|
||||
public R create(@RequestBody PlayCustomFollowInfoEntity playCustomFollowInfo) {
|
||||
boolean success = playCustomFollowInfoService.create(playCustomFollowInfo);
|
||||
@@ -57,10 +57,10 @@ public class PlayCustomFollowInfoController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改顾客关注陪玩信息
|
||||
* 修改顾客关注陪聊信息
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:edit')")
|
||||
@Log(title = "顾客关注陪玩信息", businessType = BusinessType.UPDATE)
|
||||
@Log(title = "顾客关注陪聊信息", businessType = BusinessType.UPDATE)
|
||||
@PostMapping(value = "/update/{id}")
|
||||
public R update(@PathVariable String id, @RequestBody PlayCustomFollowInfoEntity playCustomFollowInfo) {
|
||||
playCustomFollowInfo.setId(id);
|
||||
@@ -72,10 +72,10 @@ public class PlayCustomFollowInfoController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除顾客关注陪玩信息
|
||||
* 删除顾客关注陪聊信息
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:remove')")
|
||||
@Log(title = "顾客关注陪玩信息", businessType = BusinessType.DELETE)
|
||||
@Log(title = "顾客关注陪聊信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R remove(@PathVariable String[] ids) {
|
||||
return R.ok(playCustomFollowInfoService.deletePlayCustomFollowInfoByIds(ids));
|
||||
|
||||
@@ -5,7 +5,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.starry.admin.modules.follow.module.entity.PlayCustomFollowInfoEntity;
|
||||
|
||||
/**
|
||||
* 顾客关注陪玩信息Mapper接口
|
||||
* 顾客关注陪聊信息Mapper接口
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024-04-30
|
||||
|
||||
@@ -8,7 +8,7 @@ import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 顾客关注陪玩信息对象 play_custom_follow_info
|
||||
* 顾客关注陪聊信息对象 play_custom_follow_info
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024-04-30
|
||||
@@ -35,7 +35,7 @@ public class PlayCustomFollowInfoEntity extends BaseEntity<PlayCustomFollowInfoE
|
||||
private String customUserId;
|
||||
|
||||
/**
|
||||
* 陪玩ID
|
||||
* 陪聊ID
|
||||
*/
|
||||
private String clerkUserId;
|
||||
|
||||
|
||||
@@ -5,17 +5,17 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.starry.admin.modules.follow.module.entity.PlayCustomFollowInfoEntity;
|
||||
|
||||
/**
|
||||
* 顾客关注陪玩信息Service接口
|
||||
* 顾客关注陪聊信息Service接口
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024-04-30
|
||||
*/
|
||||
public interface IPlayCustomFollowInfoService extends IService<PlayCustomFollowInfoEntity> {
|
||||
/**
|
||||
* 查询顾客关注陪玩信息
|
||||
* 查询顾客关注陪聊信息
|
||||
*
|
||||
* @param id 顾客关注陪玩信息主键
|
||||
* @return 顾客关注陪玩信息
|
||||
* @param id 顾客关注陪聊信息主键
|
||||
* @return 顾客关注陪聊信息
|
||||
*/
|
||||
PlayCustomFollowInfoEntity selectPlayCustomFollowInfoById(String id);
|
||||
|
||||
@@ -23,56 +23,56 @@ public interface IPlayCustomFollowInfoService extends IService<PlayCustomFollowI
|
||||
* 修改关注状态
|
||||
*
|
||||
* @param customUserId 顾客ID
|
||||
* @param clarkUserId 陪玩ID
|
||||
* @param clerkUserId 陪聊ID
|
||||
* @return 关注状态[0:未关注,1:已关注]
|
||||
*/
|
||||
String queryFollowState(String customUserId, String clarkUserId);
|
||||
String queryFollowState(String customUserId, String clerkUserId);
|
||||
|
||||
/**
|
||||
* 修改关注状态
|
||||
*
|
||||
* @param customUserId 顾客ID
|
||||
* @param clarkUserId 陪玩ID
|
||||
* @param clerkUserId 陪聊ID
|
||||
* @param followState 关注状态[0:未关注,1:已关注]
|
||||
*/
|
||||
void updateFollowState(String customUserId, String clarkUserId, String followState);
|
||||
void updateFollowState(String customUserId, String clerkUserId, String followState);
|
||||
|
||||
/**
|
||||
* 查询顾客关注陪玩信息列表
|
||||
* 查询顾客关注陪聊信息列表
|
||||
*
|
||||
* @param playCustomFollowInfo 顾客关注陪玩信息
|
||||
* @return 顾客关注陪玩信息集合
|
||||
* @param playCustomFollowInfo 顾客关注陪聊信息
|
||||
* @return 顾客关注陪聊信息集合
|
||||
*/
|
||||
IPage<PlayCustomFollowInfoEntity> selectPlayCustomFollowInfoByPage(PlayCustomFollowInfoEntity playCustomFollowInfo);
|
||||
|
||||
/**
|
||||
* 新增顾客关注陪玩信息
|
||||
* 新增顾客关注陪聊信息
|
||||
*
|
||||
* @param playCustomFollowInfo 顾客关注陪玩信息
|
||||
* @param playCustomFollowInfo 顾客关注陪聊信息
|
||||
* @return 结果
|
||||
*/
|
||||
boolean create(PlayCustomFollowInfoEntity playCustomFollowInfo);
|
||||
|
||||
/**
|
||||
* 修改顾客关注陪玩信息
|
||||
* 修改顾客关注陪聊信息
|
||||
*
|
||||
* @param playCustomFollowInfo 顾客关注陪玩信息
|
||||
* @param playCustomFollowInfo 顾客关注陪聊信息
|
||||
* @return 结果
|
||||
*/
|
||||
boolean update(PlayCustomFollowInfoEntity playCustomFollowInfo);
|
||||
|
||||
/**
|
||||
* 批量删除顾客关注陪玩信息
|
||||
* 批量删除顾客关注陪聊信息
|
||||
*
|
||||
* @param ids 需要删除的顾客关注陪玩信息主键集合
|
||||
* @param ids 需要删除的顾客关注陪聊信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayCustomFollowInfoByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除顾客关注陪玩信息信息
|
||||
* 删除顾客关注陪聊信息信息
|
||||
*
|
||||
* @param id 顾客关注陪玩信息主键
|
||||
* @param id 顾客关注陪聊信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayCustomFollowInfoById(String id);
|
||||
|
||||
@@ -16,7 +16,7 @@ import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 顾客关注陪玩信息Service业务层处理
|
||||
* 顾客关注陪聊信息Service业务层处理
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024-04-30
|
||||
@@ -27,10 +27,10 @@ public class PlayCustomFollowInfoServiceImpl extends ServiceImpl<PlayCustomFollo
|
||||
private PlayCustomFollowInfoMapper playCustomFollowInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询顾客关注陪玩信息
|
||||
* 查询顾客关注陪聊信息
|
||||
*
|
||||
* @param id 顾客关注陪玩信息主键
|
||||
* @return 顾客关注陪玩信息
|
||||
* @param id 顾客关注陪聊信息主键
|
||||
* @return 顾客关注陪聊信息
|
||||
*/
|
||||
@Override
|
||||
public PlayCustomFollowInfoEntity selectPlayCustomFollowInfoById(String id) {
|
||||
@@ -39,25 +39,25 @@ public class PlayCustomFollowInfoServiceImpl extends ServiceImpl<PlayCustomFollo
|
||||
|
||||
|
||||
@Override
|
||||
public String queryFollowState(String customUserId, String clarkUserId) {
|
||||
public String queryFollowState(String customUserId, String clerkUserId) {
|
||||
LambdaQueryWrapper<PlayCustomFollowInfoEntity> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
lambdaQueryWrapper.eq(PlayCustomFollowInfoEntity::getClerkUserId, clarkUserId);
|
||||
lambdaQueryWrapper.eq(PlayCustomFollowInfoEntity::getClerkUserId, clerkUserId);
|
||||
lambdaQueryWrapper.eq(PlayCustomFollowInfoEntity::getCustomUserId, customUserId);
|
||||
PlayCustomFollowInfoEntity entity = this.baseMapper.selectOne(lambdaQueryWrapper);
|
||||
return entity == null ? "0" : entity.getFollowState();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateFollowState(String customUserId, String clarkUserId, String followState) {
|
||||
public void updateFollowState(String customUserId, String clerkUserId, String followState) {
|
||||
LambdaQueryWrapper<PlayCustomFollowInfoEntity> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
lambdaQueryWrapper.eq(PlayCustomFollowInfoEntity::getClerkUserId, clarkUserId);
|
||||
lambdaQueryWrapper.eq(PlayCustomFollowInfoEntity::getClerkUserId, clerkUserId);
|
||||
lambdaQueryWrapper.eq(PlayCustomFollowInfoEntity::getCustomUserId, customUserId);
|
||||
PlayCustomFollowInfoEntity entity = this.baseMapper.selectOne(lambdaQueryWrapper);
|
||||
if (entity == null) {
|
||||
entity = new PlayCustomFollowInfoEntity();
|
||||
entity.setCustomUserId(customUserId);
|
||||
entity.setFollowState(followState);
|
||||
entity.setClerkUserId(clarkUserId);
|
||||
entity.setClerkUserId(clerkUserId);
|
||||
entity.setFollowTime(new Date());
|
||||
this.baseMapper.insert(entity);
|
||||
} else {
|
||||
@@ -67,10 +67,10 @@ public class PlayCustomFollowInfoServiceImpl extends ServiceImpl<PlayCustomFollo
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询顾客关注陪玩信息列表
|
||||
* 查询顾客关注陪聊信息列表
|
||||
*
|
||||
* @param playCustomFollowInfo 顾客关注陪玩信息
|
||||
* @return 顾客关注陪玩信息
|
||||
* @param playCustomFollowInfo 顾客关注陪聊信息
|
||||
* @return 顾客关注陪聊信息
|
||||
*/
|
||||
@Override
|
||||
public IPage<PlayCustomFollowInfoEntity> selectPlayCustomFollowInfoByPage(PlayCustomFollowInfoEntity playCustomFollowInfo) {
|
||||
@@ -79,9 +79,9 @@ public class PlayCustomFollowInfoServiceImpl extends ServiceImpl<PlayCustomFollo
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增顾客关注陪玩信息
|
||||
* 新增顾客关注陪聊信息
|
||||
*
|
||||
* @param playCustomFollowInfo 顾客关注陪玩信息
|
||||
* @param playCustomFollowInfo 顾客关注陪聊信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@@ -93,9 +93,9 @@ public class PlayCustomFollowInfoServiceImpl extends ServiceImpl<PlayCustomFollo
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改顾客关注陪玩信息
|
||||
* 修改顾客关注陪聊信息
|
||||
*
|
||||
* @param playCustomFollowInfo 顾客关注陪玩信息
|
||||
* @param playCustomFollowInfo 顾客关注陪聊信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@@ -104,9 +104,9 @@ public class PlayCustomFollowInfoServiceImpl extends ServiceImpl<PlayCustomFollo
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除顾客关注陪玩信息
|
||||
* 批量删除顾客关注陪聊信息
|
||||
*
|
||||
* @param ids 需要删除的顾客关注陪玩信息主键
|
||||
* @param ids 需要删除的顾客关注陪聊信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@@ -115,9 +115,9 @@ public class PlayCustomFollowInfoServiceImpl extends ServiceImpl<PlayCustomFollo
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除顾客关注陪玩信息信息
|
||||
* 删除顾客关注陪聊信息信息
|
||||
*
|
||||
* @param id 顾客关注陪玩信息主键
|
||||
* @param id 顾客关注陪聊信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user