|
@@ -38,7 +38,8 @@ public class AdGroupPlaceService implements IAdGroupPlaceService{
|
|
|
}
|
|
|
@Override
|
|
|
public boolean delete(Long adGroupId) {
|
|
|
- ibatisDao.delete("adGroupPlaceSqlMapper.delete", adGroupId);
|
|
|
+
|
|
|
+ //ibatisDao.delete("adGroupPlaceSqlMapper.delete", adGroupId);
|
|
|
return true;
|
|
|
}
|
|
|
@Override
|
|
@@ -57,9 +58,9 @@ public class AdGroupPlaceService implements IAdGroupPlaceService{
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public boolean edit(AdGroupPlace t) {
|
|
|
- // TODO Auto-generated method stub
|
|
|
- return false;
|
|
|
+ public boolean edit(AdGroupPlace adGroupPlace) {
|
|
|
+
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -93,4 +94,12 @@ public class AdGroupPlaceService implements IAdGroupPlaceService{
|
|
|
public List<Long> queryPlaceByAdgroupId(Long adgroupId){
|
|
|
return ibatisDao.getList("adGroupPlaceSqlMapper.queryPlaceByAdgroupId", adgroupId);
|
|
|
}
|
|
|
+
|
|
|
+ public boolean updateAdgroupPlaceByAdgroupId(Long adgroupId){
|
|
|
+ ibatisDao.save("adGroupPlaceSqlMapper.updateAdgroupPlaceByAdgroupId",MapBuilder.create(HashMap.class)
|
|
|
+ .add("adgroupId",adgroupId)
|
|
|
+ .add("supdated",new Date().getTime()/1000)
|
|
|
+ .map());
|
|
|
+ return true;
|
|
|
+ }
|
|
|
}
|