区域管理
This commit is contained in:
parent
9e0966deb9
commit
eebc09df2f
|
|
@ -3,6 +3,7 @@ package com.bonus.system.service.impl;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.bonus.common.core.exception.ServiceException;
|
import com.bonus.common.core.exception.ServiceException;
|
||||||
import com.bonus.common.core.utils.DateUtils;
|
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.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.bonus.system.mapper.SysAllocAreaMapper;
|
import com.bonus.system.mapper.SysAllocAreaMapper;
|
||||||
|
|
@ -52,9 +53,10 @@ public class SysAllocAreaServiceImpl implements ISysAllocAreaService {
|
||||||
public int insertSysAllocArea(SysAllocArea sysAllocArea) {
|
public int insertSysAllocArea(SysAllocArea sysAllocArea) {
|
||||||
sysAllocArea.setCreateTime(DateUtils.getNowDate());
|
sysAllocArea.setCreateTime(DateUtils.getNowDate());
|
||||||
try {
|
try {
|
||||||
|
sysAllocArea.setAreaId(Id.next());
|
||||||
return sysAllocAreaMapper.insertSysAllocArea(sysAllocArea);
|
return sysAllocAreaMapper.insertSysAllocArea(sysAllocArea);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new ServiceException("错误信息描述");
|
throw new ServiceException("新增区域错误" + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue