|
@@ -1,40 +1,40 @@
|
|
package org.jeecg.modules.ctop.controller;
|
|
package org.jeecg.modules.ctop.controller;
|
|
|
|
|
|
-import java.io.OutputStream;
|
|
|
|
-import java.util.*;
|
|
|
|
-import java.io.IOException;
|
|
|
|
-import java.io.UnsupportedEncodingException;
|
|
|
|
-import java.net.URLDecoder;
|
|
|
|
-import javax.servlet.http.HttpServletRequest;
|
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
|
-
|
|
|
|
import cn.com.ctop.common.module.utils.ExportExcelUtils;
|
|
import cn.com.ctop.common.module.utils.ExportExcelUtils;
|
|
-import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
|
-import org.jeecg.common.api.vo.Result;
|
|
|
|
-import org.jeecg.common.system.query.QueryGenerator;
|
|
|
|
-import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
|
-import org.jeecg.common.util.oConvertUtils;
|
|
|
|
import cn.com.ctop.kuaishou.modules.report.entity.KuaishouAgentAccount;
|
|
import cn.com.ctop.kuaishou.modules.report.entity.KuaishouAgentAccount;
|
|
import cn.com.ctop.kuaishou.modules.report.service.IKuaishouAgentAccountService;
|
|
import cn.com.ctop.kuaishou.modules.report.service.IKuaishouAgentAccountService;
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
-
|
|
|
|
|
|
+import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
|
+import org.jeecg.common.api.vo.Result;
|
|
|
|
+import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
|
+import org.jeecg.common.system.query.QueryGenerator;
|
|
|
|
+import org.jeecg.common.util.DateUtils;
|
|
|
|
+import org.jeecg.common.util.oConvertUtils;
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
-import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
|
|
|
-import org.jeecgframework.poi.excel.entity.ExportParams;
|
|
|
|
import org.jeecgframework.poi.excel.entity.ImportParams;
|
|
import org.jeecgframework.poi.excel.entity.ImportParams;
|
|
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
|
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
|
-
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
|
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
-import com.alibaba.fastjson.JSON;
|
|
|
|
-import io.swagger.annotations.Api;
|
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
+
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
|
+import java.io.IOException;
|
|
|
|
+import java.io.OutputStream;
|
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
|
|
+import java.net.URLDecoder;
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
+import java.util.Arrays;
|
|
|
|
+import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 快手代理商账户表
|
|
* 快手代理商账户表
|
|
@@ -49,7 +49,7 @@ import io.swagger.annotations.ApiOperation;
|
|
public class KuaishouAgentAccountController {
|
|
public class KuaishouAgentAccountController {
|
|
@Autowired
|
|
@Autowired
|
|
private IKuaishouAgentAccountService kuaishouAgentAccountService;
|
|
private IKuaishouAgentAccountService kuaishouAgentAccountService;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 分页列表查询
|
|
* 分页列表查询
|
|
* @param kuaishouAgentAccount
|
|
* @param kuaishouAgentAccount
|
|
@@ -73,7 +73,7 @@ public class KuaishouAgentAccountController {
|
|
result.setResult(pageList);
|
|
result.setResult(pageList);
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 添加
|
|
* 添加
|
|
* @param kuaishouAgentAccount
|
|
* @param kuaishouAgentAccount
|
|
@@ -93,8 +93,8 @@ public class KuaishouAgentAccountController {
|
|
}
|
|
}
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
-
|
|
|
|
- /**
|
|
|
|
|
|
+
|
|
|
|
+ /**
|
|
* 编辑
|
|
* 编辑
|
|
* @param kuaishouAgentAccount
|
|
* @param kuaishouAgentAccount
|
|
* @return
|
|
* @return
|
|
@@ -113,11 +113,11 @@ public class KuaishouAgentAccountController {
|
|
result.success("修改成功!");
|
|
result.success("修改成功!");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- return result;
|
|
|
|
|
|
+
|
|
|
|
+ return result;
|
|
}
|
|
}
|
|
-
|
|
|
|
- /**
|
|
|
|
|
|
+
|
|
|
|
+ /**
|
|
* 通过id删除
|
|
* 通过id删除
|
|
* @param id
|
|
* @param id
|
|
* @return
|
|
* @return
|
|
@@ -134,8 +134,8 @@ public class KuaishouAgentAccountController {
|
|
}
|
|
}
|
|
return Result.ok("删除成功!");
|
|
return Result.ok("删除成功!");
|
|
}
|
|
}
|
|
-
|
|
|
|
- /**
|
|
|
|
|
|
+
|
|
|
|
+ /**
|
|
* 批量删除
|
|
* 批量删除
|
|
* @param ids
|
|
* @param ids
|
|
* @return
|
|
* @return
|
|
@@ -153,8 +153,8 @@ public class KuaishouAgentAccountController {
|
|
}
|
|
}
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
-
|
|
|
|
- /**
|
|
|
|
|
|
+
|
|
|
|
+ /**
|
|
* 通过id查询
|
|
* 通过id查询
|
|
* @param id
|
|
* @param id
|
|
* @return
|
|
* @return
|
|
@@ -212,6 +212,7 @@ public class KuaishouAgentAccountController {
|
|
rowData.add(kuaishouAgentAccount.getDirectRebate());
|
|
rowData.add(kuaishouAgentAccount.getDirectRebate());
|
|
rowData.add(kuaishouAgentAccount.getTotalBalance());
|
|
rowData.add(kuaishouAgentAccount.getTotalBalance());
|
|
rowData.add(kuaishouAgentAccount.getCorporationName());
|
|
rowData.add(kuaishouAgentAccount.getCorporationName());
|
|
|
|
+ rowData.add(DateUtils.formatDate(kuaishouAgentAccount.getCreateTime()));
|
|
if(kuaishouAgentAccount.getReviewStatus() == 1){
|
|
if(kuaishouAgentAccount.getReviewStatus() == 1){
|
|
rowData.add("审核中");
|
|
rowData.add("审核中");
|
|
}else if(kuaishouAgentAccount.getReviewStatus() == 2){
|
|
}else if(kuaishouAgentAccount.getReviewStatus() == 2){
|
|
@@ -222,7 +223,7 @@ public class KuaishouAgentAccountController {
|
|
result.add(rowData);
|
|
result.add(rowData);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- String[] accountHeaders = {"广告主ID", "用户ID", "广告主名称", "现金余额", "信用余额", "返点余额", "框返余额", "激励余额", "总余额", "公司名称", "审核状态"};
|
|
|
|
|
|
+ String[] accountHeaders = {"广告主ID", "用户ID", "广告主名称", "现金余额", "信用余额", "返点余额", "框返余额", "激励余额", "总余额", "公司名称", "开户时间", "审核状态"};
|
|
OutputStream os = response.getOutputStream();
|
|
OutputStream os = response.getOutputStream();
|
|
ExportExcelUtils eeu = new ExportExcelUtils();
|
|
ExportExcelUtils eeu = new ExportExcelUtils();
|
|
XSSFWorkbook workbook = new XSSFWorkbook();
|
|
XSSFWorkbook workbook = new XSSFWorkbook();
|