bug修改

main
linhw 2024-06-06 10:22:38 +08:00
parent d414b93c29
commit b970311aab
3 changed files with 13 additions and 5 deletions

View File

@ -208,11 +208,8 @@ public class AppUserDynamicServiceImpl implements IAppUserDynamicService
List<Long> userIds = appDynamicLikeMapper.selectAppDynamicLikeList(appDynamicLike).stream().map(x->x.getUserId()).collect(Collectors.toList()); List<Long> userIds = appDynamicLikeMapper.selectAppDynamicLikeList(appDynamicLike).stream().map(x->x.getUserId()).collect(Collectors.toList());
appUserDynamicVo.setCountLike(userIds.size()); appUserDynamicVo.setCountLike(userIds.size());
// 是否点赞 // 是否点赞
if (appUserDynamic.getAppId() != null) {
appUserDynamicVo.setIsLike(userIds.contains(appUserDynamic.getUserId()) ? 0 : 1); appUserDynamicVo.setIsLike(userIds.contains(appUserDynamic.getUserId()) ? 0 : 1);
}
AppUserCollect appUserCollect = new AppUserCollect(); AppUserCollect appUserCollect = new AppUserCollect();
appUserCollect.setDynamicId(id); appUserCollect.setDynamicId(id);
appUserCollect.setUserId(appUserDynamic.getAppId()); appUserCollect.setUserId(appUserDynamic.getAppId());

View File

@ -62,6 +62,9 @@ public class AppUserServiceImpl implements IAppUserService {
@Autowired @Autowired
private AppOrderMapper appOrderMapper; private AppOrderMapper appOrderMapper;
@Autowired
private AppRegisterMapper appRegisterMapper;
@Override @Override
public AjaxResult statistics() { public AjaxResult statistics() {
StatisticsVo statisticsVo = new StatisticsVo(); StatisticsVo statisticsVo = new StatisticsVo();
@ -210,6 +213,9 @@ public class AppUserServiceImpl implements IAppUserService {
public int deleteAppUserByIds(Long[] ids) { public int deleteAppUserByIds(Long[] ids) {
for (Long id : ids) { for (Long id : ids) {
userSkillMapper.deleteUserSkillByUserId(id); userSkillMapper.deleteUserSkillByUserId(id);
AppUser appUser = appUserMapper.selectAppUserById(id);
AppRegister appRegister = appRegisterMapper.selectAppRegisterByphone(appUser.getPhone());
appRegisterMapper.deleteAppRegisterById(appRegister.getId());
} }
return appUserMapper.deleteAppUserByIds(ids); return appUserMapper.deleteAppUserByIds(ids);
} }

View File

@ -92,7 +92,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.order_start_time as "orderStartTime", a.order_start_time as "orderStartTime",
a.order_end_time as "orderEndTime" , a.order_end_time as "orderEndTime" ,
a.`check` as "check", a.`check` as "check",
a.back_ground_img as "backGroundImg" a.back_ground_img as "backGroundImg",
a.hy as "hy",
a.jx as "jx",
a.jy as "jy",
a.is_show_tech as "isShowTech",
a.cyfx as "cyfx"
</sql> </sql>
<sql id="selectAppUserVo"> <sql id="selectAppUserVo">