@ -36,7 +35,12 @@ public class DhcAreaServiceImpl implements IDhcAreaService
@@ -36,7 +35,12 @@ public class DhcAreaServiceImpl implements IDhcAreaService
@ -61,9 +65,10 @@ public class DhcAreaServiceImpl implements IDhcAreaService
@@ -61,9 +65,10 @@ public class DhcAreaServiceImpl implements IDhcAreaService
publicintinsertDhcArea(DhcAreadhcArea)
{
dhcArea.setCreateTime(DateUtils.getNowDate());
dhcArea.setDelFlag("0");
Integercount=dhcAreaMapper.selectCount(dhcArea);
if(count>1){
return-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,7 +114,15 @@ public class DhcAreaServiceImpl implements IDhcAreaService
@@ -108,7 +114,15 @@ public class DhcAreaServiceImpl implements IDhcAreaService