区域管理

This commit is contained in:
sxu 2025-02-18 19:38:35 +08:00
parent 9e0966deb9
commit eebc09df2f
1 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package com.bonus.system.service.impl;
import java.util.List;
import com.bonus.common.core.exception.ServiceException;
import com.bonus.common.core.utils.DateUtils;
import com.bonus.common.core.utils.id.Id;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bonus.system.mapper.SysAllocAreaMapper;
@ -52,9 +53,10 @@ public class SysAllocAreaServiceImpl implements ISysAllocAreaService {
public int insertSysAllocArea(SysAllocArea sysAllocArea) {
sysAllocArea.setCreateTime(DateUtils.getNowDate());
try {
sysAllocArea.setAreaId(Id.next());
return sysAllocAreaMapper.insertSysAllocArea(sysAllocArea);
} catch (Exception e) {
throw new ServiceException("错误信息描述");
throw new ServiceException("新增区域错误" + e.getMessage());
}
}