|
@@ -10,7 +10,11 @@ import cn.com.ctop.common.module.mapper.UserCompanyMapper;
|
|
|
import cn.com.ctop.common.module.service.IProductService;
|
|
|
import cn.com.ctop.common.module.service.ISysRoleExtService;
|
|
|
import cn.com.ctop.common.module.service.IUserAllocationService;
|
|
|
-import cn.com.ctop.common.module.utils.*;
|
|
|
+import cn.com.ctop.common.module.utils.Check;
|
|
|
+import cn.com.ctop.common.module.utils.HttpUtils;
|
|
|
+import cn.com.ctop.common.module.utils.ResultMapUtils;
|
|
|
+import cn.com.ctop.common.module.utils.StatusCode;
|
|
|
+import cn.com.ctop.common.module.utils.StringUtils;
|
|
|
import cn.com.ctop.common.module.vo.SheetInfoVo;
|
|
|
import cn.com.ctop.kuaishou.modules.report.entity.KuaishouInfoDTO;
|
|
|
import cn.com.ctop.kuaishou.modules.report.entity.KuaishouReportDailyAccountDTO;
|
|
@@ -32,11 +36,24 @@ import org.jeecg.common.system.query.QueryGenerator;
|
|
|
import org.jeecg.common.util.DateUtils;
|
|
|
import org.jeecg.modules.ctop.mapper.ProjectMemberMapper;
|
|
|
import org.jeecg.modules.ctop.service.IAdvertiserService;
|
|
|
-import org.jeecg.modules.excelutil.entity.*;
|
|
|
+import org.jeecg.modules.excelutil.entity.EffecfReportAccountEntity;
|
|
|
+import org.jeecg.modules.excelutil.entity.EffecfReportCreativeEntity;
|
|
|
+import org.jeecg.modules.excelutil.entity.EffecfReportGroupEntity;
|
|
|
+import org.jeecg.modules.excelutil.entity.EffecfReportPlanEntity;
|
|
|
+import org.jeecg.modules.excelutil.entity.EffecfReportProjectEntity;
|
|
|
+import org.jeecg.modules.excelutil.entity.KuaishouXxlEntity;
|
|
|
import org.jeecg.modules.system.service.ISysRoleService;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.PutMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
@@ -44,7 +61,12 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.IOException;
|
|
|
import java.io.OutputStream;
|
|
|
import java.text.ParseException;
|
|
|
-import java.util.*;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.Arrays;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @Description: 广告主信息表
|
|
@@ -169,6 +191,7 @@ public class AdvertiserController {
|
|
|
try {
|
|
|
String userId = advertiser.getUserId();
|
|
|
String name = advertiser.getName().trim();
|
|
|
+ advertiser.setName(name);
|
|
|
QueryWrapper<UserCompany> userCompanyQueryWrapper = new QueryWrapper<>();
|
|
|
userCompanyQueryWrapper.eq("user_id", userId);
|
|
|
userCompanyQueryWrapper.orderByDesc("create_time");
|
|
@@ -212,6 +235,7 @@ public class AdvertiserController {
|
|
|
if (advertiserEntity == null) {
|
|
|
result.error500("未找到对应实体");
|
|
|
} else {
|
|
|
+ advertiser.setName(advertiser.getName().trim());
|
|
|
boolean ok = advertiserService.updateById(advertiser);
|
|
|
if (ok) {
|
|
|
result.success("修改成功!");
|