|
@@ -4,6 +4,7 @@ import cn.com.ctop.common.utils.CsvUtils;
|
|
import cn.com.ctop.common.utils.OSSUtils;
|
|
import cn.com.ctop.common.utils.OSSUtils;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
+import com.oracle.deploy.update.UpdateInfo;
|
|
import org.apache.http.client.ClientProtocolException;
|
|
import org.apache.http.client.ClientProtocolException;
|
|
import org.apache.http.client.methods.CloseableHttpResponse;
|
|
import org.apache.http.client.methods.CloseableHttpResponse;
|
|
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
|
|
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
|
|
@@ -229,6 +230,16 @@ public class ReportServiceImpl implements IReportService {
|
|
platformCampaignStatisticInfoService.remove(campaignWrapper);
|
|
platformCampaignStatisticInfoService.remove(campaignWrapper);
|
|
|
|
|
|
this.insertPlatformInfo(accountOneKsDataPath, "gb2312", 1L);
|
|
this.insertPlatformInfo(accountOneKsDataPath, "gb2312", 1L);
|
|
|
|
+ QueryWrapper<PlatformCampaignStatisticInfo> queryWrapper = new QueryWrapper<>();
|
|
|
|
+ queryWrapper.eq("campaign_code", "biaodan").orderByDesc("id").last("limit 1");
|
|
|
|
+ PlatformCampaignStatisticInfo statisticInfo = platformCampaignStatisticInfoMapper.selectOne(queryWrapper);
|
|
|
|
+ if (null != statisticInfo) {
|
|
|
|
+ PlatformCampaignStatisticInfo updateInfo = new PlatformCampaignStatisticInfo();
|
|
|
|
+ updateInfo.setCampaignCode("biaodan2");
|
|
|
|
+ QueryWrapper<PlatformCampaignStatisticInfo> updateWrapper = new QueryWrapper<>();
|
|
|
|
+ updateWrapper.ne("campaign_info", statisticInfo.getCampaignInfo()).eq("campaign_code", statisticInfo.getCampaignCode());
|
|
|
|
+ platformCampaignStatisticInfoMapper.update(updateInfo, updateWrapper);
|
|
|
|
+ }
|
|
this.insertPlatformInfo(accountFourKsDataPath, "gb2312", 4L);
|
|
this.insertPlatformInfo(accountFourKsDataPath, "gb2312", 4L);
|
|
this.insertCustomerInfo(debitDataPath, "utf8");
|
|
this.insertCustomerInfo(debitDataPath, "utf8");
|
|
//3:根据模板生成相应的excel模板文件
|
|
//3:根据模板生成相应的excel模板文件
|