|
|
@@ -943,7 +943,7 @@ public class StoreStaffConfigServiceImpl implements StoreStaffConfigService {
|
|
|
* @return 员工详情(包含演出列表),如果员工不存在则返回null
|
|
|
*/
|
|
|
@Override
|
|
|
- public StoreStaffDetailWithPerformanceVo queryStaffDetailWithPerformance(Integer id, Integer userId) {
|
|
|
+ public StoreStaffDetailWithPerformanceVo queryStaffDetailWithPerformance(Integer id, String userId) {
|
|
|
log.info("查询员工详情(包含演出列表),id={},userId={}", id, userId);
|
|
|
|
|
|
// 参数校验
|
|
|
@@ -1828,16 +1828,16 @@ public class StoreStaffConfigServiceImpl implements StoreStaffConfigService {
|
|
|
* @param userId 用户ID,可为null(未登录时返回false)
|
|
|
* @return true-已喜欢,false-未喜欢
|
|
|
*/
|
|
|
- private Boolean checkIsLiked(Integer staffId, Integer userId) {
|
|
|
+ private Boolean checkIsLiked(Integer staffId, String userId) {
|
|
|
// 如果用户未登录,返回false
|
|
|
- if (userId == null || userId <= 0) {
|
|
|
+ if (StringUtils.isEmpty(userId)) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
LambdaQueryWrapper<LifeLikeRecord> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
queryWrapper.eq(LifeLikeRecord::getType, "8") // 8-点赞员工
|
|
|
- .eq(LifeLikeRecord::getDianzanId, String.valueOf(userId))
|
|
|
+ .eq(LifeLikeRecord::getDianzanId, userId)
|
|
|
.eq(LifeLikeRecord::getHuifuId, String.valueOf(staffId))
|
|
|
.eq(LifeLikeRecord::getDeleteFlag, 0);
|
|
|
long count = lifeLikeRecordMapper.selectCount(queryWrapper);
|