Bläddra i källkod

修改360借条展示逻辑

syh 5 år sedan
förälder
incheckning
df3a7fcb32

+ 11 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/service/impl/ReportServiceImpl.java

@@ -4,6 +4,7 @@ import cn.com.ctop.common.utils.CsvUtils;
 import cn.com.ctop.common.utils.OSSUtils;
 import com.alibaba.fastjson.JSONObject;
 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.methods.CloseableHttpResponse;
 import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
@@ -229,6 +230,16 @@ public class ReportServiceImpl implements IReportService {
         platformCampaignStatisticInfoService.remove(campaignWrapper);
 
         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.insertCustomerInfo(debitDataPath, "utf8");
         //3:根据模板生成相应的excel模板文件