main
王宇航 2024-08-16 16:46:38 +08:00
parent f4a69cc371
commit 7d17720470
4 changed files with 20 additions and 2 deletions

View File

@ -166,7 +166,13 @@ public class AppUserController extends BaseController
public static void main(String[] args) {
String s = "12";
System.out.println(s.length());
int i = 29224;
int j = 29198;
double v = i / 1000.0;
double v1 = j / 1000.0;
System.out.println( v );
System.out.println(v1);
System.out.println( v - v1);
}
}

View File

@ -63,4 +63,7 @@ public interface AppDynamicCommentMapper
public int deleteAppDynamicCommentByParentId(Long parentId);
public List<AppDynamicCommentVo> selectCommentList(AppDynamicComment appDynamicComment);
int deleteAppDynamicCommentByUserids();
}

View File

@ -238,6 +238,8 @@ public class AppUserServiceImpl implements IAppUserService {
}
}
}
appDynamicCommentMapper.deleteAppDynamicCommentByUserids();
return appUserMapper.deleteAppUserByIds(ids);
}

View File

@ -116,4 +116,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id}
</foreach>
</delete>
<delete id="deleteAppDynamicCommentByUserids">
delete from app_dynamic_comment where user_id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>