@ -36,7 +35,12 @@ public class DhcAreaServiceImpl implements IDhcAreaService
@@ -36,7 +35,12 @@ public class DhcAreaServiceImpl implements IDhcAreaService
@ -61,8 +65,9 @@ public class DhcAreaServiceImpl implements IDhcAreaService
@@ -61,8 +65,9 @@ public class DhcAreaServiceImpl implements IDhcAreaService
publicintinsertDhcArea(DhcAreadhcArea)
{
dhcArea.setCreateTime(DateUtils.getNowDate());
dhcArea.setDelFlag("0");
Integercount=dhcAreaMapper.selectCount(dhcArea);
if(count>1){
if(count>0){
return-1;
}else{
returndhcAreaMapper.insertDhcArea(dhcArea);
@ -79,8 +84,9 @@ public class DhcAreaServiceImpl implements IDhcAreaService
@@ -79,8 +84,9 @@ public class DhcAreaServiceImpl implements IDhcAreaService
publicintupdateDhcArea(DhcAreadhcArea)
{
dhcArea.setUpdateTime(DateUtils.getNowDate());
dhcArea.setDelFlag("0");
Integercount=dhcAreaMapper.selectCount(dhcArea);
if(count>1){
if(count>0){
return-1;
}else{
returndhcAreaMapper.updateDhcArea(dhcArea);
@ -108,8 +114,16 @@ public class DhcAreaServiceImpl implements IDhcAreaService
@@ -108,8 +114,16 @@ public class DhcAreaServiceImpl implements IDhcAreaService