bug修改
parent
d414b93c29
commit
b970311aab
|
|
@ -208,10 +208,7 @@ public class AppUserDynamicServiceImpl implements IAppUserDynamicService
|
|||
List<Long> userIds = appDynamicLikeMapper.selectAppDynamicLikeList(appDynamicLike).stream().map(x->x.getUserId()).collect(Collectors.toList());
|
||||
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.setDynamicId(id);
|
||||
|
|
|
|||
|
|
@ -62,6 +62,9 @@ public class AppUserServiceImpl implements IAppUserService {
|
|||
@Autowired
|
||||
private AppOrderMapper appOrderMapper;
|
||||
|
||||
@Autowired
|
||||
private AppRegisterMapper appRegisterMapper;
|
||||
|
||||
@Override
|
||||
public AjaxResult statistics() {
|
||||
StatisticsVo statisticsVo = new StatisticsVo();
|
||||
|
|
@ -210,6 +213,9 @@ public class AppUserServiceImpl implements IAppUserService {
|
|||
public int deleteAppUserByIds(Long[] ids) {
|
||||
for (Long id : ids) {
|
||||
userSkillMapper.deleteUserSkillByUserId(id);
|
||||
AppUser appUser = appUserMapper.selectAppUserById(id);
|
||||
AppRegister appRegister = appRegisterMapper.selectAppRegisterByphone(appUser.getPhone());
|
||||
appRegisterMapper.deleteAppRegisterById(appRegister.getId());
|
||||
}
|
||||
return appUserMapper.deleteAppUserByIds(ids);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,7 +92,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
a.order_start_time as "orderStartTime",
|
||||
a.order_end_time as "orderEndTime" ,
|
||||
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 id="selectAppUserVo">
|
||||
|
|
|
|||
Loading…
Reference in New Issue