|
@@ -66,7 +66,7 @@ public class BannerService implements IBannerService {
|
|
|
public boolean add(Banner t) {
|
|
|
Date date = new Date();
|
|
|
t.setUpdated(date);
|
|
|
- t.setSupdated(date);
|
|
|
+ t.setSupdated(date.getTime()/1000);
|
|
|
myBatisDao.save("bannerSqlMapper.addBanner", t);
|
|
|
return true;
|
|
|
}
|
|
@@ -76,7 +76,7 @@ public class BannerService implements IBannerService {
|
|
|
public boolean edit(Banner t) {
|
|
|
Date date = new Date();
|
|
|
t.setUpdated(date);
|
|
|
- t.setSupdated(date);
|
|
|
+ t.setSupdated(date.getTime()/1000);
|
|
|
t.getBannerTemplate().setUpdated(date);
|
|
|
myBatisDao.save("bannerSqlMapper.editBanner", t);
|
|
|
|
|
@@ -87,14 +87,15 @@ public class BannerService implements IBannerService {
|
|
|
@Override
|
|
|
public boolean updata(Banner t) {
|
|
|
Date date = new Date();
|
|
|
+ Long supdated = date.getTime()/1000;
|
|
|
t.setUpdated(date);
|
|
|
- t.setSupdated(date);
|
|
|
+ t.setSupdated(supdated);
|
|
|
t.getBannerTemplate().setUpdated(date);
|
|
|
myBatisDao.save("bannerSqlMapper.updataBanner", t);
|
|
|
Long id[]={t.getId()};
|
|
|
myBatisDao.save("bannerSqlMapper.updataOperatorBanner", MapBuilder.create(HashMap.class)
|
|
|
.add("idList", id)
|
|
|
- .add("supdated", date)
|
|
|
+ .add("supdated", supdated)
|
|
|
.map());
|
|
|
|
|
|
return true;
|
|
@@ -113,13 +114,14 @@ public class BannerService implements IBannerService {
|
|
|
@Override
|
|
|
public boolean updateStatus(List<Long> idList, int status) {
|
|
|
Date date = new Date();
|
|
|
+ Long supdated = date.getTime()/1000;
|
|
|
//更新创意与创意模板状态
|
|
|
myBatisDao.save("bannerSqlMapper.updateBannerStatus",
|
|
|
MapBuilder.create(HashMap.class)
|
|
|
.add("status", status)
|
|
|
.add("idList", idList)
|
|
|
.add("updated", date)
|
|
|
- .add("supdated", date)
|
|
|
+ .add("supdated", supdated)
|
|
|
.map());
|
|
|
/**下面为创意物理删除,暂先保留
|
|
|
//删除选择创意
|
|
@@ -130,7 +132,7 @@ public class BannerService implements IBannerService {
|
|
|
*/
|
|
|
myBatisDao.save("bannerSqlMapper.updataOperatorBanner", MapBuilder.create(HashMap.class)
|
|
|
.add("idList", idList)
|
|
|
- .add("supdated", date)
|
|
|
+ .add("supdated", supdated)
|
|
|
.map());
|
|
|
return true;
|
|
|
}
|
|
@@ -161,8 +163,9 @@ public class BannerService implements IBannerService {
|
|
|
banner.setChecked(1);
|
|
|
banner.setStatus(bannerTemplate.getStatus());
|
|
|
Date date = new Date();
|
|
|
+ Long supdated = date.getTime()/1000;
|
|
|
banner.setUpdated(date);
|
|
|
- banner.setSupdated(date);
|
|
|
+ banner.setSupdated(supdated);
|
|
|
banner.setBannerTemplate(bannerTemplate);
|
|
|
|
|
|
LOG.debug("banner====qqq=="+banner);
|
|
@@ -200,7 +203,7 @@ public class BannerService implements IBannerService {
|
|
|
myBatisDao.save("bannerSqlMapper.updateBannerSupdated",
|
|
|
MapBuilder.create(HashMap.class)
|
|
|
.add("adGroupIdList", adGroupIdList)
|
|
|
- .add("modifyDate",date ).map());
|
|
|
+ .add("modifyDate",date.getTime()/1000 ).map());
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -208,7 +211,7 @@ public class BannerService implements IBannerService {
|
|
|
myBatisDao.save("bannerSqlMapper.updateBannerSupdatedByOrderId",
|
|
|
MapBuilder.create(HashMap.class)
|
|
|
.add("orderIdList", orderIdList)
|
|
|
- .add("modifyDate", date).map());
|
|
|
+ .add("modifyDate", date.getTime()/1000).map());
|
|
|
|
|
|
return true;
|
|
|
}
|
|
@@ -218,7 +221,7 @@ public class BannerService implements IBannerService {
|
|
|
myBatisDao.save("bannerSqlMapper.updateBannerSupdatedByCampaignId",
|
|
|
MapBuilder.create(HashMap.class)
|
|
|
.add("campaignIdList", campaignIdList)
|
|
|
- .add("modifyDate", date).map());
|
|
|
+ .add("modifyDate", date.getTime()/1000).map());
|
|
|
|
|
|
return true;
|
|
|
}
|
|
@@ -276,15 +279,16 @@ public class BannerService implements IBannerService {
|
|
|
@Override
|
|
|
public boolean updateStatus1(List<Long> idList, int status) {
|
|
|
Date date = new Date();
|
|
|
+ Long supdated = date.getTime()/1000;
|
|
|
myBatisDao.save("bannerSqlMapper.updateBannerStatus",MapBuilder.create(HashMap.class)
|
|
|
.add("status", status)
|
|
|
.add("idList", idList)
|
|
|
.add("updated", date)
|
|
|
- .add("supdated", date)
|
|
|
+ .add("supdated", supdated)
|
|
|
.map());
|
|
|
myBatisDao.save("bannerSqlMapper.updateOperatorBannerTime",MapBuilder.create(HashMap.class)
|
|
|
.add("idList", idList)
|
|
|
- .add("supdated", new Date())
|
|
|
+ .add("supdated", supdated)
|
|
|
.map());
|
|
|
return true;
|
|
|
}
|
|
@@ -352,7 +356,7 @@ public class BannerService implements IBannerService {
|
|
|
MapBuilder.create(HashMap.class)
|
|
|
.add("operatorId", operatorId)
|
|
|
.add("bannerId",bannerId)
|
|
|
- .add("supdated", new Date())
|
|
|
+ .add("supdated", new Date().getTime()/1000)
|
|
|
.add("operatorChecked", status).map());
|
|
|
return true;
|
|
|
}
|
|
@@ -361,7 +365,7 @@ public class BannerService implements IBannerService {
|
|
|
MapBuilder.create(HashMap.class)
|
|
|
.add("operatorId", operatorId)
|
|
|
.add("bannerId",bannerId)
|
|
|
- .add("supdated", new Date())
|
|
|
+ .add("supdated", new Date().getTime()/1000)
|
|
|
.add("operatorChecked", status).map());
|
|
|
return true;
|
|
|
}
|