后台菜单bug

This commit is contained in:
2025-05-28 17:11:26 +08:00
parent 78c6fe4b1e
commit 6cbef6eae4
3 changed files with 6 additions and 3 deletions

View File

@@ -71,8 +71,11 @@ public class AdminMenuService {
public int saveMenu(AdminMenu adminMenu, boolean isEdit) {
if (isEdit) {
return adminMenuMapper.updateByPrimaryKey(adminMenu);
return adminMenuMapper.updateByPrimaryKeySelective(adminMenu);
} else {
if (adminMenu.getParentid() == null) {
adminMenu.setParentid(0);
}
adminMenu.setCreatetime(new Date());
int insert = adminMenuMapper.insert(adminMenu);
AdminMenuExample example = new AdminMenuExample();

View File

@@ -23,7 +23,7 @@ public interface GuildDiamondStatisticsDayService extends IService<GuildDiamondS
int updateDayDiamondStatistics(String cycleDate, String statDate, GuildMember guildMember, double diamond);
Page<GuildDiamondStatisticsDayVo> listByStatDate(String statDate, String endDate, int partitionId,
Page<GuildDiamondStatisticsDayVo> listByStatDate(String statDate, String endDate, Integer partitionId,
Integer guildId, Integer pageNo, Integer pageSize, Long inviteUid);
IPage<GuildMemberDiamondStatisticsDayVo> listMemberByStatDate(String statDate, String endDate, int partitionId, Integer guildId, Long uid, Integer pageNo, Integer pageSize);

View File

@@ -38,7 +38,7 @@ public class GuildDiamondStatisticsDayServiceImpl extends ServiceImpl<GuildDiamo
}
@Override
public Page<GuildDiamondStatisticsDayVo> listByStatDate(String statDate, String endDate, int partitionId,
public Page<GuildDiamondStatisticsDayVo> listByStatDate(String statDate, String endDate, Integer partitionId,
Integer guildId, Integer pageNo, Integer pageSize, Long inviteUid) {
Page<GuildDiamondStatisticsDayVo> page = new Page<>(pageNo, pageSize);
return baseMapper.listByStatDate(page, statDate, endDate, guildId, partitionId, inviteUid);