ソースを参照

快手 后台接口接入

yumeng 6 年 前
コミット
fe06178fcc
33 ファイル変更3238 行追加266 行削除
  1. 0 206
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/TouTiaoAdvertiserController.java
  2. 244 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouGroupCreateController.java
  3. 244 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouGroupCreateTargetController.java
  4. 244 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouScheduleController.java
  5. 166 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/entity/KuaiShouGroupCreate.java
  6. 124 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/entity/KuaiShouGroupCreateTarget.java
  7. 100 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/entity/KuaiShouSchedule.java
  8. 14 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouGroupCreateMapper.java
  9. 17 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouGroupCreateTargetMapper.java
  10. 14 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouScheduleMapper.java
  11. 5 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouGroupCreateMapper.xml
  12. 5 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouGroupCreateTargetMapper.xml
  13. 5 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouScheduleMapper.xml
  14. 14 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaiShouGroupCreateService.java
  15. 14 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaiShouGroupCreateTargetService.java
  16. 14 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaiShouScheduleService.java
  17. 19 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaiShouGroupCreateServiceImpl.java
  18. 19 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaiShouGroupCreateTargetServiceImpl.java
  19. 19 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaiShouScheduleServiceImpl.java
  20. 74 5
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaishouInterfaceServiceImpl.java
  21. 258 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/KuaiShouGroupCreateList.vue
  22. 223 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/KuaiShouGroupCreateTargetList.vue
  23. 203 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/KuaiShouScheduleList.vue
  24. 232 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouGroupCreateModal.vue
  25. 239 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouGroupCreateModal__Style#Drawer.vue
  26. 190 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouGroupCreateTargetModal.vue
  27. 197 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouGroupCreateTargetModal__Style#Drawer.vue
  28. 167 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouScheduleModal.vue
  29. 174 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouScheduleModal__Style#Drawer.vue
  30. 0 30
      module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/material/entity/KuaishouSchedule.java
  31. 0 7
      module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/material/mapper/KuaishouScheduleMapper.java
  32. 0 7
      module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/material/service/IKuaishouScheduleService.java
  33. 0 11
      module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/material/service/impl/KuaishouScheduleServiceImpl.java

+ 0 - 206
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/TouTiaoAdvertiserController.java

@@ -1,206 +0,0 @@
-package org.jeecg.modules.ctop.controller;
-
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
-import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import org.jeecg.common.api.vo.Result;
-import org.jeecg.common.system.query.QueryGenerator;
-import org.jeecg.modules.ctop.service.ITouTiaoAdvertiserService;
-import org.jeecg.modules.system.entity.SysDictItem;
-import org.jeecg.modules.system.service.ISysDictItemService;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.ResponseBody;
-
-import javax.servlet.http.HttpServletRequest;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * 头条广告主相关 2019年7月10日14:13:04 @author 宋英豪
- */
-@Controller
-@RequestMapping("toutiao")
-public class TouTiaoAdvertiserController {
-    @Autowired
-    private ITouTiaoAdvertiserService touTiaoAdvertiserService;
-
-    /**
-     * 1:获取广告主信息 @param accountId 本平台广告主id
-     */
-    @RequestMapping("/advertiser/info")
-    @ResponseBody
-    public Map<String, Object> advertiserInfo(String accountId) {
-        return touTiaoAdvertiserService.getAdvertiserInfo(accountId);
-    }
-
-    /**
-     * 2:获取广告主广告计划信息 @param accountId 本平台广告主id
-     */
-    @RequestMapping("/advertiser/plan/get")
-    @ResponseBody
-    public Map<String, Object> advertiserPlan(String accountId, String ids) {
-        return touTiaoAdvertiserService.getAdvertiserPlan(accountId, ids);
-    }
-
-    /**
-     * 3:修改广告计划信息状态 @param accountId 本平台广告主id
-     */
-    @RequestMapping("/advertiser/plan/update/status")
-    @ResponseBody
-    public Map<String, Object> advertiserPlanUpdateStatus(String accountId, String adIds, String optStatus) {
-        return touTiaoAdvertiserService.advertiserPlanUpdateStatus(accountId, adIds, optStatus);
-    }
-
-    /**
-     * 3:修改广告计划信息状态 @param accountId 本平台广告主id
-     */
-    @RequestMapping("/advertiser/plan/update/bid")
-    @ResponseBody
-    public Map<String, Object> advertiserPlanUpdateBid(String accountId, String adIds, String bids) {
-        return touTiaoAdvertiserService.advertiserPlanUpdateBid(accountId, adIds, bids);
-    }
-
-    /**
-     * 3:修改广告计划信息状态 @param accountId 本平台广告主id
-     */
-    @RequestMapping("/advertiser/plan/update/budget")
-    @ResponseBody
-    public Map<String, Object> advertiserPlanUpdateBudget(String accountId, String adIds, String budgets) {
-        return touTiaoAdvertiserService.advertiserPlanUpdateBudget(accountId, adIds, budgets);
-    }
-
-    /**
-     * 4:获取广告主广告预算信息 @param accountId 本平台广告主id
-     */
-    @RequestMapping("/advertiser/budget/get/")
-    @ResponseBody
-    public Map<String, Object> advertiserBudget(String accountId) {
-        return touTiaoAdvertiserService.getAdvertiserBudget(accountId);
-    }
-
-    /**
-     * 3:获取广告主广告组信息 @param accountId 本平台广告主id
-     */
-    @RequestMapping("/advertiser/campaign/get")
-    @ResponseBody
-    public Map<String, Object> advertiserCampaign(String accountId, String ids) {
-        return touTiaoAdvertiserService.getAdvertiserCampaign(accountId, ids);
-    }
-
-    /**
-     * 5:获取广告主广告创意信息 @param accountId 本平台广告主id
-     */
-    @RequestMapping("/advertiser/creative/get")
-    @ResponseBody
-    public Map<String, Object> getAdvertiserCreative(String accountId, String ids) {
-        return touTiaoAdvertiserService.getAdvertiserCreative(accountId, ids);
-    }
-
-    /**
-     * 5:修改广告创意信息状态 @param accountId 本平台广告主id
-     */
-    @RequestMapping("/advertiser/update/status/")
-    @ResponseBody
-    public Map<String, Object> advertiserCreativeUpdateStatus(String accountId, String creativeIds, String optStatus) {
-        return touTiaoAdvertiserService.advertiserCreativeUpdateStatus(accountId, creativeIds, optStatus);
-    }
-
-    /**
-     * 6:获取广告主广告创意素材信息 @param accountId 本平台广告主id @param creativeIds 广告创意id
-     */
-    @RequestMapping("/advertiser/creative/material/read")
-    @ResponseBody
-    public Map<String, Object> advertiserCreativeMaterial(String accountId, String creativeIds) {
-        return touTiaoAdvertiserService.getAdvertiserCreativeMaterial(accountId, creativeIds);
-    }
-
-    /**
-     * 7:创建广告组信息 @param accountId 本平台广告主id
-     */
-    @RequestMapping("/advertiser/campaign/create")
-    @ResponseBody
-    public Map<String, Object> advertiserCampaignCreate(String accountId, String campaignName, String budgetMode, Integer budget, String landingType) {
-        return touTiaoAdvertiserService.advertiserCampaignCreate(accountId, campaignName, budgetMode, budget, landingType);
-    }
-
-    /**
-     * 7:广告组更新状态信息 @param accountId 本平台广告主id
-     */
-    @RequestMapping("/advertiser/campaign/update/status")
-    @ResponseBody
-    public Map<String, Object> advertiserCampaignUpdateStatus(String accountId, String campaignIds, String optStatus) {
-        return touTiaoAdvertiserService.advertiserCampaignUpdateStatus(accountId, campaignIds, optStatus);
-    }
-
-    /**
-     * 8:广告组更新信息 @param accountId 本平台广告主id
-     */
-    @RequestMapping("/advertiser/campaign/update")
-    @ResponseBody
-    public Map<String, Object> advertiserCampaignUpdate(String accountId, Long campaignId, String budgetMode, Integer budget, String campaignName) {
-        return touTiaoAdvertiserService.advertiserCampaignUpdate(accountId, campaignId, budgetMode, budget, campaignName);
-    }
-
-    /**
-     * @功能:查询字典数据
-     * @param sysDictItem
-     * @param pageNo
-     * @param pageSize
-     * @param req
-     * @return
-     */
-    @RequestMapping(value = "dictItem/list", method = RequestMethod.GET)
-    @ResponseBody
-    public Result<IPage<SysDictItem>> queryPageList(SysDictItem sysDictItem, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
-                                                    @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, HttpServletRequest req) {
-        Result<IPage<SysDictItem>> result = new Result<IPage<SysDictItem>>();
-        QueryWrapper<SysDictItem> queryWrapper = QueryGenerator.initQueryWrapper(sysDictItem, req.getParameterMap());
-        queryWrapper.orderByAsc("sort_order");
-        Page<SysDictItem> page = new Page<SysDictItem>(pageNo, pageSize);
-        IPage<SysDictItem> pageList = sysDictItemService.page(page, queryWrapper);
-        System.err.println(pageList);
-        result.setSuccess(true);
-        result.setResult(pageList);
-        return result;
-    }
-
-    /**
-     *
-     * @param setBidType
-     * @param setFlowControlMode
-     * @param setBudgetPrice
-     * @param setBudgetMode
-     * @param setFlowDate
-     * @param setDateFlowRange
-     * @param setDateQuantum
-     * @param setPriceType
-     * @param setConvertPrice
-     * @param setFilterType
-     * @param setDateQuantumRange
-     * @param req
-     * @return
-     */
-    @RequestMapping(value = "budgetModel/insert", method = RequestMethod.GET)
-    @ResponseBody
-    public Map<String,Object> budgetModelInsert(@RequestParam(name="setBidType", defaultValue="1")String setBidType,
-                                                @RequestParam(name="setFlowControlMode", defaultValue="1") String setFlowControlMode,
-                                                @RequestParam(name="setBudgetPrice", defaultValue="1") String setBudgetPrice,
-                                                @RequestParam(name="setBudgetMode", defaultValue="1") String setBudgetMode,
-                                                @RequestParam(name="setFlowDate", defaultValue="1") String setFlowDate,
-                                                @RequestParam(name="setDateFlowRange", defaultValue="1") String setDateFlowRange,
-                                                @RequestParam(name="setDateQuantum", defaultValue="1") String setDateQuantum,
-                                                @RequestParam(name="setPriceType", defaultValue="1") String setPriceType,
-                                                @RequestParam(name="setConvertPrice", defaultValue="1") String setConvertPrice,
-                                                @RequestParam(name="setFilterType", defaultValue="1") String setFilterType,
-                                                @RequestParam(name="setDateQuantumRange", defaultValue="1") String setDateQuantumRange,HttpServletRequest req) {
-        Map<String,Object> result = new HashMap<>();
-        return result;
-    }
-
-    @Autowired
-    private ISysDictItemService sysDictItemService;
-}

+ 244 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouGroupCreateController.java

@@ -0,0 +1,244 @@
+package org.jeecg.modules.kuaishou.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+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 org.jeecg.modules.kuaishou.entity.KuaiShouGroupCreate;
+import org.jeecg.modules.kuaishou.service.IKuaiShouGroupCreateService;
+import java.util.Date;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+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.view.JeecgEntityExcelView;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+
+ /**
+ * @Description: 快手-创建广告组信息
+ * @Author: jeecg-boot
+ * @Date:   2019-07-24
+ * @Version: V1.0
+ */
+@Slf4j
+@Api(tags="快手-创建广告组信息")
+@RestController
+@RequestMapping("/kuaishou/kuaiShouGroupCreate")
+public class KuaiShouGroupCreateController {
+	@Autowired
+	private IKuaiShouGroupCreateService kuaiShouGroupCreateService;
+	
+	/**
+	  * 分页列表查询
+	 * @param kuaiShouGroupCreate
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告组信息-分页列表查询")
+	@ApiOperation(value="快手-创建广告组信息-分页列表查询", notes="快手-创建广告组信息-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<KuaiShouGroupCreate>> queryPageList(KuaiShouGroupCreate kuaiShouGroupCreate,
+									  @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+									  @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+									  HttpServletRequest req) {
+		Result<IPage<KuaiShouGroupCreate>> result = new Result<IPage<KuaiShouGroupCreate>>();
+		QueryWrapper<KuaiShouGroupCreate> queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouGroupCreate, req.getParameterMap());
+		Page<KuaiShouGroupCreate> page = new Page<KuaiShouGroupCreate>(pageNo, pageSize);
+		IPage<KuaiShouGroupCreate> pageList = kuaiShouGroupCreateService.page(page, queryWrapper);
+		result.setSuccess(true);
+		result.setResult(pageList);
+		return result;
+	}
+	
+	/**
+	  *   添加
+	 * @param kuaiShouGroupCreate
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告组信息-添加")
+	@ApiOperation(value="快手-创建广告组信息-添加", notes="快手-创建广告组信息-添加")
+	@PostMapping(value = "/add")
+	public Result<KuaiShouGroupCreate> add(@RequestBody KuaiShouGroupCreate kuaiShouGroupCreate) {
+		Result<KuaiShouGroupCreate> result = new Result<KuaiShouGroupCreate>();
+		try {
+			kuaiShouGroupCreateService.save(kuaiShouGroupCreate);
+			result.success("添加成功!");
+		} catch (Exception e) {
+			log.error(e.getMessage(),e);
+			result.error500("操作失败");
+		}
+		return result;
+	}
+	
+	/**
+	  *  编辑
+	 * @param kuaiShouGroupCreate
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告组信息-编辑")
+	@ApiOperation(value="快手-创建广告组信息-编辑", notes="快手-创建广告组信息-编辑")
+	@PutMapping(value = "/edit")
+	public Result<KuaiShouGroupCreate> edit(@RequestBody KuaiShouGroupCreate kuaiShouGroupCreate) {
+		Result<KuaiShouGroupCreate> result = new Result<KuaiShouGroupCreate>();
+		KuaiShouGroupCreate kuaiShouGroupCreateEntity = kuaiShouGroupCreateService.getById(kuaiShouGroupCreate.getId());
+		if(kuaiShouGroupCreateEntity==null) {
+			result.error500("未找到对应实体");
+		}else {
+			boolean ok = kuaiShouGroupCreateService.updateById(kuaiShouGroupCreate);
+			//TODO 返回false说明什么?
+			if(ok) {
+				result.success("修改成功!");
+			}
+		}
+		
+		return result;
+	}
+	
+	/**
+	  *   通过id删除
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告组信息-通过id删除")
+	@ApiOperation(value="快手-创建广告组信息-通过id删除", notes="快手-创建广告组信息-通过id删除")
+	@DeleteMapping(value = "/delete")
+	public Result<?> delete(@RequestParam(name="id",required=true) String id) {
+		try {
+			kuaiShouGroupCreateService.removeById(id);
+		} catch (Exception e) {
+			log.error("删除失败",e.getMessage());
+			return Result.error("删除失败!");
+		}
+		return Result.ok("删除成功!");
+	}
+	
+	/**
+	  *  批量删除
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告组信息-批量删除")
+	@ApiOperation(value="快手-创建广告组信息-批量删除", notes="快手-创建广告组信息-批量删除")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<KuaiShouGroupCreate> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		Result<KuaiShouGroupCreate> result = new Result<KuaiShouGroupCreate>();
+		if(ids==null || "".equals(ids.trim())) {
+			result.error500("参数不识别!");
+		}else {
+			this.kuaiShouGroupCreateService.removeByIds(Arrays.asList(ids.split(",")));
+			result.success("删除成功!");
+		}
+		return result;
+	}
+	
+	/**
+	  * 通过id查询
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告组信息-通过id查询")
+	@ApiOperation(value="快手-创建广告组信息-通过id查询", notes="快手-创建广告组信息-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<KuaiShouGroupCreate> queryById(@RequestParam(name="id",required=true) String id) {
+		Result<KuaiShouGroupCreate> result = new Result<KuaiShouGroupCreate>();
+		KuaiShouGroupCreate kuaiShouGroupCreate = kuaiShouGroupCreateService.getById(id);
+		if(kuaiShouGroupCreate==null) {
+			result.error500("未找到对应实体");
+		}else {
+			result.setResult(kuaiShouGroupCreate);
+			result.setSuccess(true);
+		}
+		return result;
+	}
+
+  /**
+      * 导出excel
+   *
+   * @param request
+   * @param response
+   */
+  @RequestMapping(value = "/exportXls")
+  public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+      // Step.1 组装查询条件
+      QueryWrapper<KuaiShouGroupCreate> queryWrapper = null;
+      try {
+          String paramsStr = request.getParameter("paramsStr");
+          if (oConvertUtils.isNotEmpty(paramsStr)) {
+              String deString = URLDecoder.decode(paramsStr, "UTF-8");
+              KuaiShouGroupCreate kuaiShouGroupCreate = JSON.parseObject(deString, KuaiShouGroupCreate.class);
+              queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouGroupCreate, request.getParameterMap());
+          }
+      } catch (UnsupportedEncodingException e) {
+          e.printStackTrace();
+      }
+
+      //Step.2 AutoPoi 导出Excel
+      ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+      List<KuaiShouGroupCreate> pageList = kuaiShouGroupCreateService.list(queryWrapper);
+      //导出文件名称
+      mv.addObject(NormalExcelConstants.FILE_NAME, "快手-创建广告组信息列表");
+      mv.addObject(NormalExcelConstants.CLASS, KuaiShouGroupCreate.class);
+      mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("快手-创建广告组信息列表数据", "导出人:Jeecg", "导出信息"));
+      mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
+      return mv;
+  }
+
+  /**
+      * 通过excel导入数据
+   *
+   * @param request
+   * @param response
+   * @return
+   */
+  @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+  public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+      MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
+      Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
+      for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
+          MultipartFile file = entity.getValue();// 获取上传文件对象
+          ImportParams params = new ImportParams();
+          params.setTitleRows(2);
+          params.setHeadRows(1);
+          params.setNeedSave(true);
+          try {
+              List<KuaiShouGroupCreate> listKuaiShouGroupCreates = ExcelImportUtil.importExcel(file.getInputStream(), KuaiShouGroupCreate.class, params);
+              kuaiShouGroupCreateService.saveBatch(listKuaiShouGroupCreates);
+              return Result.ok("文件导入成功!数据行数:" + listKuaiShouGroupCreates.size());
+          } catch (Exception e) {
+              log.error(e.getMessage(),e);
+              return Result.error("文件导入失败:"+e.getMessage());
+          } finally {
+              try {
+                  file.getInputStream().close();
+              } catch (IOException e) {
+                  e.printStackTrace();
+              }
+          }
+      }
+      return Result.ok("文件导入失败!");
+  }
+
+}

+ 244 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouGroupCreateTargetController.java

@@ -0,0 +1,244 @@
+package org.jeecg.modules.kuaishou.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+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 org.jeecg.modules.kuaishou.entity.KuaiShouGroupCreateTarget;
+import org.jeecg.modules.kuaishou.service.IKuaiShouGroupCreateTargetService;
+import java.util.Date;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+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.view.JeecgEntityExcelView;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+
+ /**
+ * @Description: 快手-创建广告组定向信息
+ * @Author: jeecg-boot
+ * @Date:   2019-07-24
+ * @Version: V1.0
+ */
+@Slf4j
+@Api(tags="快手-创建广告组定向信息")
+@RestController
+@RequestMapping("/kuaishou/kuaiShouGroupCreateTarget")
+public class KuaiShouGroupCreateTargetController {
+	@Autowired
+	private IKuaiShouGroupCreateTargetService kuaiShouGroupCreateTargetService;
+	
+	/**
+	  * 分页列表查询
+	 * @param kuaiShouGroupCreateTarget
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告组定向信息-分页列表查询")
+	@ApiOperation(value="快手-创建广告组定向信息-分页列表查询", notes="快手-创建广告组定向信息-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<KuaiShouGroupCreateTarget>> queryPageList(KuaiShouGroupCreateTarget kuaiShouGroupCreateTarget,
+									  @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+									  @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+									  HttpServletRequest req) {
+		Result<IPage<KuaiShouGroupCreateTarget>> result = new Result<IPage<KuaiShouGroupCreateTarget>>();
+		QueryWrapper<KuaiShouGroupCreateTarget> queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouGroupCreateTarget, req.getParameterMap());
+		Page<KuaiShouGroupCreateTarget> page = new Page<KuaiShouGroupCreateTarget>(pageNo, pageSize);
+		IPage<KuaiShouGroupCreateTarget> pageList = kuaiShouGroupCreateTargetService.page(page, queryWrapper);
+		result.setSuccess(true);
+		result.setResult(pageList);
+		return result;
+	}
+	
+	/**
+	  *   添加
+	 * @param kuaiShouGroupCreateTarget
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告组定向信息-添加")
+	@ApiOperation(value="快手-创建广告组定向信息-添加", notes="快手-创建广告组定向信息-添加")
+	@PostMapping(value = "/add")
+	public Result<KuaiShouGroupCreateTarget> add(@RequestBody KuaiShouGroupCreateTarget kuaiShouGroupCreateTarget) {
+		Result<KuaiShouGroupCreateTarget> result = new Result<KuaiShouGroupCreateTarget>();
+		try {
+			kuaiShouGroupCreateTargetService.save(kuaiShouGroupCreateTarget);
+			result.success("添加成功!");
+		} catch (Exception e) {
+			log.error(e.getMessage(),e);
+			result.error500("操作失败");
+		}
+		return result;
+	}
+	
+	/**
+	  *  编辑
+	 * @param kuaiShouGroupCreateTarget
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告组定向信息-编辑")
+	@ApiOperation(value="快手-创建广告组定向信息-编辑", notes="快手-创建广告组定向信息-编辑")
+	@PutMapping(value = "/edit")
+	public Result<KuaiShouGroupCreateTarget> edit(@RequestBody KuaiShouGroupCreateTarget kuaiShouGroupCreateTarget) {
+		Result<KuaiShouGroupCreateTarget> result = new Result<KuaiShouGroupCreateTarget>();
+		KuaiShouGroupCreateTarget kuaiShouGroupCreateTargetEntity = kuaiShouGroupCreateTargetService.getById(kuaiShouGroupCreateTarget.getId());
+		if(kuaiShouGroupCreateTargetEntity==null) {
+			result.error500("未找到对应实体");
+		}else {
+			boolean ok = kuaiShouGroupCreateTargetService.updateById(kuaiShouGroupCreateTarget);
+			//TODO 返回false说明什么?
+			if(ok) {
+				result.success("修改成功!");
+			}
+		}
+		
+		return result;
+	}
+	
+	/**
+	  *   通过id删除
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告组定向信息-通过id删除")
+	@ApiOperation(value="快手-创建广告组定向信息-通过id删除", notes="快手-创建广告组定向信息-通过id删除")
+	@DeleteMapping(value = "/delete")
+	public Result<?> delete(@RequestParam(name="id",required=true) String id) {
+		try {
+			kuaiShouGroupCreateTargetService.removeById(id);
+		} catch (Exception e) {
+			log.error("删除失败",e.getMessage());
+			return Result.error("删除失败!");
+		}
+		return Result.ok("删除成功!");
+	}
+	
+	/**
+	  *  批量删除
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告组定向信息-批量删除")
+	@ApiOperation(value="快手-创建广告组定向信息-批量删除", notes="快手-创建广告组定向信息-批量删除")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<KuaiShouGroupCreateTarget> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		Result<KuaiShouGroupCreateTarget> result = new Result<KuaiShouGroupCreateTarget>();
+		if(ids==null || "".equals(ids.trim())) {
+			result.error500("参数不识别!");
+		}else {
+			this.kuaiShouGroupCreateTargetService.removeByIds(Arrays.asList(ids.split(",")));
+			result.success("删除成功!");
+		}
+		return result;
+	}
+	
+	/**
+	  * 通过id查询
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告组定向信息-通过id查询")
+	@ApiOperation(value="快手-创建广告组定向信息-通过id查询", notes="快手-创建广告组定向信息-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<KuaiShouGroupCreateTarget> queryById(@RequestParam(name="id",required=true) String id) {
+		Result<KuaiShouGroupCreateTarget> result = new Result<KuaiShouGroupCreateTarget>();
+		KuaiShouGroupCreateTarget kuaiShouGroupCreateTarget = kuaiShouGroupCreateTargetService.getById(id);
+		if(kuaiShouGroupCreateTarget==null) {
+			result.error500("未找到对应实体");
+		}else {
+			result.setResult(kuaiShouGroupCreateTarget);
+			result.setSuccess(true);
+		}
+		return result;
+	}
+
+  /**
+      * 导出excel
+   *
+   * @param request
+   * @param response
+   */
+  @RequestMapping(value = "/exportXls")
+  public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+      // Step.1 组装查询条件
+      QueryWrapper<KuaiShouGroupCreateTarget> queryWrapper = null;
+      try {
+          String paramsStr = request.getParameter("paramsStr");
+          if (oConvertUtils.isNotEmpty(paramsStr)) {
+              String deString = URLDecoder.decode(paramsStr, "UTF-8");
+              KuaiShouGroupCreateTarget kuaiShouGroupCreateTarget = JSON.parseObject(deString, KuaiShouGroupCreateTarget.class);
+              queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouGroupCreateTarget, request.getParameterMap());
+          }
+      } catch (UnsupportedEncodingException e) {
+          e.printStackTrace();
+      }
+
+      //Step.2 AutoPoi 导出Excel
+      ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+      List<KuaiShouGroupCreateTarget> pageList = kuaiShouGroupCreateTargetService.list(queryWrapper);
+      //导出文件名称
+      mv.addObject(NormalExcelConstants.FILE_NAME, "快手-创建广告组定向信息列表");
+      mv.addObject(NormalExcelConstants.CLASS, KuaiShouGroupCreateTarget.class);
+      mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("快手-创建广告组定向信息列表数据", "导出人:Jeecg", "导出信息"));
+      mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
+      return mv;
+  }
+
+  /**
+      * 通过excel导入数据
+   *
+   * @param request
+   * @param response
+   * @return
+   */
+  @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+  public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+      MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
+      Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
+      for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
+          MultipartFile file = entity.getValue();// 获取上传文件对象
+          ImportParams params = new ImportParams();
+          params.setTitleRows(2);
+          params.setHeadRows(1);
+          params.setNeedSave(true);
+          try {
+              List<KuaiShouGroupCreateTarget> listKuaiShouGroupCreateTargets = ExcelImportUtil.importExcel(file.getInputStream(), KuaiShouGroupCreateTarget.class, params);
+              kuaiShouGroupCreateTargetService.saveBatch(listKuaiShouGroupCreateTargets);
+              return Result.ok("文件导入成功!数据行数:" + listKuaiShouGroupCreateTargets.size());
+          } catch (Exception e) {
+              log.error(e.getMessage(),e);
+              return Result.error("文件导入失败:"+e.getMessage());
+          } finally {
+              try {
+                  file.getInputStream().close();
+              } catch (IOException e) {
+                  e.printStackTrace();
+              }
+          }
+      }
+      return Result.ok("文件导入失败!");
+  }
+
+}

+ 244 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouScheduleController.java

@@ -0,0 +1,244 @@
+package org.jeecg.modules.kuaishou.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+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 org.jeecg.modules.kuaishou.entity.KuaiShouSchedule;
+import org.jeecg.modules.kuaishou.service.IKuaiShouScheduleService;
+import java.util.Date;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+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.view.JeecgEntityExcelView;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+
+ /**
+ * @Description: 广告组-时间段范围
+ * @Author: jeecg-boot
+ * @Date:   2019-07-24
+ * @Version: V1.0
+ */
+@Slf4j
+@Api(tags="广告组-时间段范围")
+@RestController
+@RequestMapping("/kuaishou/kuaiShouSchedule")
+public class KuaiShouScheduleController {
+	@Autowired
+	private IKuaiShouScheduleService kuaiShouScheduleService;
+	
+	/**
+	  * 分页列表查询
+	 * @param kuaiShouSchedule
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	@AutoLog(value = "广告组-时间段范围-分页列表查询")
+	@ApiOperation(value="广告组-时间段范围-分页列表查询", notes="广告组-时间段范围-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<KuaiShouSchedule>> queryPageList(KuaiShouSchedule kuaiShouSchedule,
+									  @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+									  @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+									  HttpServletRequest req) {
+		Result<IPage<KuaiShouSchedule>> result = new Result<IPage<KuaiShouSchedule>>();
+		QueryWrapper<KuaiShouSchedule> queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouSchedule, req.getParameterMap());
+		Page<KuaiShouSchedule> page = new Page<KuaiShouSchedule>(pageNo, pageSize);
+		IPage<KuaiShouSchedule> pageList = kuaiShouScheduleService.page(page, queryWrapper);
+		result.setSuccess(true);
+		result.setResult(pageList);
+		return result;
+	}
+	
+	/**
+	  *   添加
+	 * @param kuaiShouSchedule
+	 * @return
+	 */
+	@AutoLog(value = "广告组-时间段范围-添加")
+	@ApiOperation(value="广告组-时间段范围-添加", notes="广告组-时间段范围-添加")
+	@PostMapping(value = "/add")
+	public Result<KuaiShouSchedule> add(@RequestBody KuaiShouSchedule kuaiShouSchedule) {
+		Result<KuaiShouSchedule> result = new Result<KuaiShouSchedule>();
+		try {
+			kuaiShouScheduleService.save(kuaiShouSchedule);
+			result.success("添加成功!");
+		} catch (Exception e) {
+			log.error(e.getMessage(),e);
+			result.error500("操作失败");
+		}
+		return result;
+	}
+	
+	/**
+	  *  编辑
+	 * @param kuaiShouSchedule
+	 * @return
+	 */
+	@AutoLog(value = "广告组-时间段范围-编辑")
+	@ApiOperation(value="广告组-时间段范围-编辑", notes="广告组-时间段范围-编辑")
+	@PutMapping(value = "/edit")
+	public Result<KuaiShouSchedule> edit(@RequestBody KuaiShouSchedule kuaiShouSchedule) {
+		Result<KuaiShouSchedule> result = new Result<KuaiShouSchedule>();
+		KuaiShouSchedule kuaiShouScheduleEntity = kuaiShouScheduleService.getById(kuaiShouSchedule.getId());
+		if(kuaiShouScheduleEntity==null) {
+			result.error500("未找到对应实体");
+		}else {
+			boolean ok = kuaiShouScheduleService.updateById(kuaiShouSchedule);
+			//TODO 返回false说明什么?
+			if(ok) {
+				result.success("修改成功!");
+			}
+		}
+		
+		return result;
+	}
+	
+	/**
+	  *   通过id删除
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "广告组-时间段范围-通过id删除")
+	@ApiOperation(value="广告组-时间段范围-通过id删除", notes="广告组-时间段范围-通过id删除")
+	@DeleteMapping(value = "/delete")
+	public Result<?> delete(@RequestParam(name="id",required=true) String id) {
+		try {
+			kuaiShouScheduleService.removeById(id);
+		} catch (Exception e) {
+			log.error("删除失败",e.getMessage());
+			return Result.error("删除失败!");
+		}
+		return Result.ok("删除成功!");
+	}
+	
+	/**
+	  *  批量删除
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "广告组-时间段范围-批量删除")
+	@ApiOperation(value="广告组-时间段范围-批量删除", notes="广告组-时间段范围-批量删除")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<KuaiShouSchedule> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		Result<KuaiShouSchedule> result = new Result<KuaiShouSchedule>();
+		if(ids==null || "".equals(ids.trim())) {
+			result.error500("参数不识别!");
+		}else {
+			this.kuaiShouScheduleService.removeByIds(Arrays.asList(ids.split(",")));
+			result.success("删除成功!");
+		}
+		return result;
+	}
+	
+	/**
+	  * 通过id查询
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "广告组-时间段范围-通过id查询")
+	@ApiOperation(value="广告组-时间段范围-通过id查询", notes="广告组-时间段范围-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<KuaiShouSchedule> queryById(@RequestParam(name="id",required=true) String id) {
+		Result<KuaiShouSchedule> result = new Result<KuaiShouSchedule>();
+		KuaiShouSchedule kuaiShouSchedule = kuaiShouScheduleService.getById(id);
+		if(kuaiShouSchedule==null) {
+			result.error500("未找到对应实体");
+		}else {
+			result.setResult(kuaiShouSchedule);
+			result.setSuccess(true);
+		}
+		return result;
+	}
+
+  /**
+      * 导出excel
+   *
+   * @param request
+   * @param response
+   */
+  @RequestMapping(value = "/exportXls")
+  public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+      // Step.1 组装查询条件
+      QueryWrapper<KuaiShouSchedule> queryWrapper = null;
+      try {
+          String paramsStr = request.getParameter("paramsStr");
+          if (oConvertUtils.isNotEmpty(paramsStr)) {
+              String deString = URLDecoder.decode(paramsStr, "UTF-8");
+              KuaiShouSchedule kuaiShouSchedule = JSON.parseObject(deString, KuaiShouSchedule.class);
+              queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouSchedule, request.getParameterMap());
+          }
+      } catch (UnsupportedEncodingException e) {
+          e.printStackTrace();
+      }
+
+      //Step.2 AutoPoi 导出Excel
+      ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+      List<KuaiShouSchedule> pageList = kuaiShouScheduleService.list(queryWrapper);
+      //导出文件名称
+      mv.addObject(NormalExcelConstants.FILE_NAME, "广告组-时间段范围列表");
+      mv.addObject(NormalExcelConstants.CLASS, KuaiShouSchedule.class);
+      mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("广告组-时间段范围列表数据", "导出人:Jeecg", "导出信息"));
+      mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
+      return mv;
+  }
+
+  /**
+      * 通过excel导入数据
+   *
+   * @param request
+   * @param response
+   * @return
+   */
+  @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+  public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+      MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
+      Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
+      for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
+          MultipartFile file = entity.getValue();// 获取上传文件对象
+          ImportParams params = new ImportParams();
+          params.setTitleRows(2);
+          params.setHeadRows(1);
+          params.setNeedSave(true);
+          try {
+              List<KuaiShouSchedule> listKuaiShouSchedules = ExcelImportUtil.importExcel(file.getInputStream(), KuaiShouSchedule.class, params);
+              kuaiShouScheduleService.saveBatch(listKuaiShouSchedules);
+              return Result.ok("文件导入成功!数据行数:" + listKuaiShouSchedules.size());
+          } catch (Exception e) {
+              log.error(e.getMessage(),e);
+              return Result.error("文件导入失败:"+e.getMessage());
+          } finally {
+              try {
+                  file.getInputStream().close();
+              } catch (IOException e) {
+                  e.printStackTrace();
+              }
+          }
+      }
+      return Result.ok("文件导入失败!");
+  }
+
+}

+ 166 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/entity/KuaiShouGroupCreate.java

@@ -0,0 +1,166 @@
+package org.jeecg.modules.kuaishou.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.util.Date;
+
+/**
+ * @Description: 快手-创建广告组信息
+ * @Author: jeecg-boot
+ * @Date: 2019-07-24
+ * @Version: V1.0
+ */
+@Data
+@TableName("ctop_kuaishou_group_create")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "ctop_kuaishou_group_create对象", description = "快手-创建广告组信息")
+public class KuaiShouGroupCreate {
+
+    /**
+     * id
+     */
+    @TableId(type = IdType.AUTO)
+    @ApiModelProperty(value = "id")
+    private Long id;
+    /**
+     * 账户ID
+     */
+    @Excel(name = "账户ID", width = 15)
+    @ApiModelProperty(value = "账户ID")
+    private Long accountId;
+    /**
+     * 广告活动ID
+     */
+    @Excel(name = "广告活动ID", width = 15)
+    @ApiModelProperty(value = "广告活动ID")
+    private Long campaignId;
+    /**
+     * 广告组名称
+     */
+    @Excel(name = "广告组名称", width = 15)
+    @ApiModelProperty(value = "广告组名称")
+    private String unitName;
+    /**
+     * 出价类型
+     */
+    @Excel(name = "出价类型", width = 15)
+    @ApiModelProperty(value = "出价类型")
+    private Integer bidType;
+    /**
+     * 出价
+     */
+    @Excel(name = "出价", width = 15)
+    @ApiModelProperty(value = "出价")
+    private Integer bid;
+    /**
+     * OCPC出价
+     */
+    @Excel(name = "OCPC出价", width = 15)
+    @ApiModelProperty(value = "OCPC出价")
+    private Integer cpaBid;
+    /**
+     * 优化目标
+     */
+    @Excel(name = "优化目标", width = 15)
+    @ApiModelProperty(value = "优化目标")
+    private Integer ocpxActionType;
+    /**
+     * 深度转化目标
+     */
+    @Excel(name = "深度转化目标", width = 15)
+    @ApiModelProperty(value = "深度转化目标")
+    private Integer deepConversionType;
+    /**
+     * 资源位置
+     */
+    @Excel(name = "资源位置", width = 15)
+    @ApiModelProperty(value = "资源位置")
+    private Integer page;
+    /**
+     * 投放开始时间
+     */
+    @Excel(name = "投放开始时间", width = 15)
+    @ApiModelProperty(value = "投放开始时间")
+    private String beginTime;
+    /**
+     * 投放结束时间
+     */
+    @Excel(name = "投放结束时间", width = 15)
+    @ApiModelProperty(value = "投放结束时间")
+    private String endTime;
+    /**
+     * 投放时段
+     */
+    @Excel(name = "投放时段", width = 15)
+    @ApiModelProperty(value = "投放时段")
+    private String scheduleTime;
+    /**
+     * 单日预算
+     */
+    @Excel(name = "单日预算", width = 15)
+    @ApiModelProperty(value = "单日预算")
+    private Long dayBudget;
+    /**
+     * url类型 1:淘宝商品短链 2:淘宝商品 itemID
+     */
+    @Excel(name = "url类型 1:淘宝商品短链 2:淘宝商品 itemID", width = 15)
+    @ApiModelProperty(value = "url类型 1:淘宝商品短链 2:淘宝商品 itemID")
+    private Integer urlType;
+    /**
+     * 投放链接
+     */
+    @Excel(name = "投放链接", width = 15)
+    @ApiModelProperty(value = "投放链接")
+    private Object url;
+    /**
+     * APP ID
+     */
+    @Excel(name = "APP ID", width = 15)
+    @ApiModelProperty(value = "APP ID")
+    private Long appId;
+    /**
+     * 创意展现方式  1:轮播 2:优选
+     */
+    @Excel(name = "创意展现方式  1:轮播 2:优选", width = 15)
+    @ApiModelProperty(value = "创意展现方式  1:轮播 2:优选")
+    private Integer showModel;
+    /**
+     * 投放方式 1:快速投放 2:平滑投放
+     */
+    @Excel(name = "投放方式 1:快速投放 2:平滑投放", width = 15)
+    @ApiModelProperty(value = "投放方式 1:快速投放 2:平滑投放")
+    private Integer speed;
+    /**
+     * 广告组ID
+     */
+    @Excel(name = "广告组ID", width = 15)
+    @ApiModelProperty(value = "广告组ID")
+    private Long unitId;
+    /**
+     * 创建时间
+     */
+    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+    /**
+     * 修改时间
+     */
+    @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "修改时间")
+    private Date updateTime;
+}

+ 124 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/entity/KuaiShouGroupCreateTarget.java

@@ -0,0 +1,124 @@
+package org.jeecg.modules.kuaishou.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.util.Date;
+
+/**
+ * @Description: 快手-创建广告组定向信息
+ * @Author: jeecg-boot
+ * @Date: 2019-07-24
+ * @Version: V1.0
+ */
+@Data
+@TableName("ctop_kuaishou_group_create_target")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "ctop_kuaishou_group_create_target对象", description = "快手-创建广告组定向信息")
+public class KuaiShouGroupCreateTarget {
+
+    /**
+     * id
+     */
+    @TableId(type = IdType.AUTO)
+    @ApiModelProperty(value = "id")
+    private Long id;
+    /**
+     * 账户ID
+     */
+    @Excel(name = "账户ID", width = 15)
+    @ApiModelProperty(value = "账户ID")
+    private Long accountId;
+    /**
+     * 广告组ID
+     */
+    @Excel(name = "广告组ID", width = 15)
+    @ApiModelProperty(value = "广告组ID")
+    private Long unitId;
+    /**
+     * 地域
+     */
+    @Excel(name = "地域", width = 15)
+    @ApiModelProperty(value = "地域")
+    private Object region;
+    /**
+     * 年龄最小限制
+     */
+    @Excel(name = "年龄最小限制", width = 15)
+    @ApiModelProperty(value = "年龄最小限制")
+    private Integer ageMin;
+    /**
+     * 年龄最大限制
+     */
+    @Excel(name = "年龄最大限制", width = 15)
+    @ApiModelProperty(value = "年龄最大限制")
+    private Integer ageMax;
+    /**
+     * 性别 1:女性, 2:男性, 0:不限
+     */
+    @Excel(name = "性别 1:女性, 2:男性, 0:不限", width = 15)
+    @ApiModelProperty(value = "性别 1:女性, 2:男性, 0:不限")
+    private Integer gender;
+    /**
+     * 操作系统 1: Android, 2: iOS, 0:不限
+     */
+    @Excel(name = "操作系统 1: Android, 2: iOS, 0:不限", width = 15)
+    @ApiModelProperty(value = "操作系统 1: Android, 2: iOS, 0:不限")
+    private Integer platformOs;
+    /**
+     * 安卓版本  3:不限, 4: 4.x+, 5: 5.x+, 6: 6.x+, 7: 7.x+;
+     */
+    @Excel(name = "安卓版本  3:不限, 4: 4.x+, 5: 5.x+, 6: 6.x+, 7: 7.x+;", width = 15)
+    @ApiModelProperty(value = "安卓版本  3:不限, 4: 4.x+, 5: 5.x+, 6: 6.x+, 7: 7.x+;")
+    private Integer androidOsv;
+    /**
+     * ios版本  6:不限, 7: 7.x+, 8: 8.x+,9: 9.x+, 10: 10.x+
+     */
+    @Excel(name = "ios版本  6:不限, 7: 7.x+, 8: 8.x+,9: 9.x+, 10: 10.x+", width = 15)
+    @ApiModelProperty(value = "ios版本  6:不限, 7: 7.x+, 8: 8.x+,9: 9.x+, 10: 10.x+")
+    private Integer iosOsv;
+    /**
+     * 网络环境 1: Wi-Fi, 2:移动网络,0:表示不限
+     */
+    @Excel(name = "网络环境 1: Wi-Fi, 2:移动网络,0:表示不限", width = 15)
+    @ApiModelProperty(value = "网络环境 1: Wi-Fi, 2:移动网络,0:表示不限")
+    private Integer network;
+    /**
+     * 设备品牌 1: OPPO, 2: VIVO,3:华为, 4:小米,5:荣耀, 6:三星,7:金立, 8:魅族,9:乐视, 10:其他,11 : 苹 果
+     */
+    @Excel(name = "设备品牌 1: OPPO, 2: VIVO,3:华为, 4:小米,5:荣耀, 6:三星,7:金立, 8:魅族,9:乐视, 10:其他,11 : 苹 果", width = 15)
+    @ApiModelProperty(value = "设备品牌 1: OPPO, 2: VIVO,3:华为, 4:小米,5:荣耀, 6:三星,7:金立, 8:魅族,9:乐视, 10:其他,11 : 苹 果")
+    private Object deviceBrand;
+    /**
+     * 设备价格 1: 1500 元以下,2: 1501~2000,3: 2001~2500,4: 2501~3000,5: 3001~3500,6: 3501~4000,7: 4001~4500,8: 4501~5000,9: 5001~5500,10: 5500 元以上
+     */
+    @Excel(name = "设备价格 1: 1500 元以下,2: 1501~2000,3: 2001~2500,4: 2501~3000,5: 3001~3500,6: 3501~4000,7: 4001~4500,8: 4501~5000,9: 5001~5500,10: 5500 元以上", width = 15)
+    @ApiModelProperty(value = "设备价格 1: 1500 元以下,2: 1501~2000,3: 2001~2500,4: 2501~3000,5: 3001~3500,6: 3501~4000,7: 4001~4500,8: 4501~5000,9: 5001~5500,10: 5500 元以上")
+    private Object devicePrice;
+    /**
+     * 创建时间
+     */
+    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+    /**
+     * 修改时间
+     */
+    @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "修改时间")
+    private Date updateTime;
+}

+ 100 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/entity/KuaiShouSchedule.java

@@ -0,0 +1,100 @@
+package org.jeecg.modules.kuaishou.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.util.Date;
+
+/**
+ * @Description: 广告组-时间段范围
+ * @Author: jeecg-boot
+ * @Date: 2019-07-24
+ * @Version: V1.0
+ */
+@Data
+@TableName("ctop_kuaishou_schedule")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "ctop_kuaishou_schedule对象", description = "广告组-时间段范围")
+public class KuaiShouSchedule {
+
+    /**
+     * id
+     */
+    @TableId(type = IdType.AUTO)
+    @ApiModelProperty(value = "id")
+    private Long id;
+    /**
+     * 广告组id
+     */
+    @Excel(name = "广告组id", width = 15)
+    @ApiModelProperty(value = "广告组id")
+    private Long unitId;
+    /**
+     * 周一时间段
+     */
+    @Excel(name = "周一时间段", width = 15)
+    @ApiModelProperty(value = "周一时间段")
+    private String mon;
+    /**
+     * 周二时间段
+     */
+    @Excel(name = "周二时间段", width = 15)
+    @ApiModelProperty(value = "周二时间段")
+    private String tues;
+    /**
+     * 周三时间段
+     */
+    @Excel(name = "周三时间段", width = 15)
+    @ApiModelProperty(value = "周三时间段")
+    private String wed;
+    /**
+     * 周四时间段
+     */
+    @Excel(name = "周四时间段", width = 15)
+    @ApiModelProperty(value = "周四时间段")
+    private String thur;
+    /**
+     * 周五时间段
+     */
+    @Excel(name = "周五时间段", width = 15)
+    @ApiModelProperty(value = "周五时间段")
+    private String fri;
+    /**
+     * 周六时间段
+     */
+    @Excel(name = "周六时间段", width = 15)
+    @ApiModelProperty(value = "周六时间段")
+    private String sat;
+    /**
+     * 周日时间段
+     */
+    @Excel(name = "周日时间段", width = 15)
+    @ApiModelProperty(value = "周日时间段")
+    private String sun;
+    /**
+     * createTime
+     */
+    @Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "createTime")
+    private Date createTime;
+    /**
+     * updateTime
+     */
+    @Excel(name = "updateTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "updateTime")
+    private Date updateTime;
+}

+ 14 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouGroupCreateMapper.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.kuaishou.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.modules.kuaishou.entity.KuaiShouGroupCreate;
+
+/**
+ * @Description: 快手-创建广告组信息
+ * @Author: jeecg-boot
+ * @Date: 2019-07-24
+ * @Version: V1.0
+ */
+public interface KuaiShouGroupCreateMapper extends BaseMapper<KuaiShouGroupCreate> {
+
+}

+ 17 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouGroupCreateTargetMapper.java

@@ -0,0 +1,17 @@
+package org.jeecg.modules.kuaishou.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import org.jeecg.modules.kuaishou.entity.KuaiShouGroupCreateTarget;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 快手-创建广告组定向信息
+ * @Author: jeecg-boot
+ * @Date:   2019-07-24
+ * @Version: V1.0
+ */
+public interface KuaiShouGroupCreateTargetMapper extends BaseMapper<KuaiShouGroupCreateTarget> {
+
+}

+ 14 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouScheduleMapper.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.kuaishou.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.modules.kuaishou.entity.KuaiShouSchedule;
+
+/**
+ * @Description: 广告组-时间段范围
+ * @Author: jeecg-boot
+ * @Date: 2019-07-24
+ * @Version: V1.0
+ */
+public interface KuaiShouScheduleMapper extends BaseMapper<KuaiShouSchedule> {
+
+}

+ 5 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouGroupCreateMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.kuaishou.mapper.KuaiShouGroupCreateMapper">
+
+</mapper>

+ 5 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouGroupCreateTargetMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.kuaishou.mapper.KuaiShouGroupCreateTargetMapper">
+
+</mapper>

+ 5 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouScheduleMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.kuaishou.mapper.KuaiShouScheduleMapper">
+
+</mapper>

+ 14 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaiShouGroupCreateService.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.kuaishou.service;
+
+import org.jeecg.modules.kuaishou.entity.KuaiShouGroupCreate;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @Description: 快手-创建广告组信息
+ * @Author: jeecg-boot
+ * @Date:   2019-07-24
+ * @Version: V1.0
+ */
+public interface IKuaiShouGroupCreateService extends IService<KuaiShouGroupCreate> {
+
+}

+ 14 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaiShouGroupCreateTargetService.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.kuaishou.service;
+
+import org.jeecg.modules.kuaishou.entity.KuaiShouGroupCreateTarget;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @Description: 快手-创建广告组定向信息
+ * @Author: jeecg-boot
+ * @Date:   2019-07-24
+ * @Version: V1.0
+ */
+public interface IKuaiShouGroupCreateTargetService extends IService<KuaiShouGroupCreateTarget> {
+
+}

+ 14 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaiShouScheduleService.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.kuaishou.service;
+
+import org.jeecg.modules.kuaishou.entity.KuaiShouSchedule;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @Description: 广告组-时间段范围
+ * @Author: jeecg-boot
+ * @Date:   2019-07-24
+ * @Version: V1.0
+ */
+public interface IKuaiShouScheduleService extends IService<KuaiShouSchedule> {
+
+}

+ 19 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaiShouGroupCreateServiceImpl.java

@@ -0,0 +1,19 @@
+package org.jeecg.modules.kuaishou.service.impl;
+
+import org.jeecg.modules.kuaishou.entity.KuaiShouGroupCreate;
+import org.jeecg.modules.kuaishou.mapper.KuaiShouGroupCreateMapper;
+import org.jeecg.modules.kuaishou.service.IKuaiShouGroupCreateService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 快手-创建广告组信息
+ * @Author: jeecg-boot
+ * @Date:   2019-07-24
+ * @Version: V1.0
+ */
+@Service
+public class KuaiShouGroupCreateServiceImpl extends ServiceImpl<KuaiShouGroupCreateMapper, KuaiShouGroupCreate> implements IKuaiShouGroupCreateService {
+
+}

+ 19 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaiShouGroupCreateTargetServiceImpl.java

@@ -0,0 +1,19 @@
+package org.jeecg.modules.kuaishou.service.impl;
+
+import org.jeecg.modules.kuaishou.entity.KuaiShouGroupCreateTarget;
+import org.jeecg.modules.kuaishou.mapper.KuaiShouGroupCreateTargetMapper;
+import org.jeecg.modules.kuaishou.service.IKuaiShouGroupCreateTargetService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 快手-创建广告组定向信息
+ * @Author: jeecg-boot
+ * @Date:   2019-07-24
+ * @Version: V1.0
+ */
+@Service
+public class KuaiShouGroupCreateTargetServiceImpl extends ServiceImpl<KuaiShouGroupCreateTargetMapper, KuaiShouGroupCreateTarget> implements IKuaiShouGroupCreateTargetService {
+
+}

+ 19 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaiShouScheduleServiceImpl.java

@@ -0,0 +1,19 @@
+package org.jeecg.modules.kuaishou.service.impl;
+
+import org.jeecg.modules.kuaishou.entity.KuaiShouSchedule;
+import org.jeecg.modules.kuaishou.mapper.KuaiShouScheduleMapper;
+import org.jeecg.modules.kuaishou.service.IKuaiShouScheduleService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 广告组-时间段范围
+ * @Author: jeecg-boot
+ * @Date:   2019-07-24
+ * @Version: V1.0
+ */
+@Service
+public class KuaiShouScheduleServiceImpl extends ServiceImpl<KuaiShouScheduleMapper, KuaiShouSchedule> implements IKuaiShouScheduleService {
+
+}

+ 74 - 5
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaishouInterfaceServiceImpl.java

@@ -330,10 +330,19 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
      * @return
      */
 
+    @Autowired
+    private KuaiShouGroupCreateTargetMapper groupCreateTargetMapper;
+    @Autowired
+    private KuaiShouGroupCreateMapper groupCreateMapper;
+
     @Override
     public Map<String, Object> adUnitCreate(String accessToken, Long advertiser_id, JSONObject requestJson) {
         Map<String, Object> returnMap = new HashMap<>();
         try {
+            if (Check.isNull(requestJson)) {
+                throw new Exception("参数不能为空");
+
+            }
             String url = PropertiesUtils.getConfig("kuaishou_api_url") + KuaishouInterfaceConstant.AD_UNIT_CREATE;
             Map<String, String> headers = new HashMap<String, String>();
             requestJson.put("advertiser_id", advertiser_id);
@@ -344,9 +353,55 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
             if (!Check.isNull(resultJson)) {
                 Integer code = resultJson.getInteger("code");
                 if (code == 0) {
-                    //TODO  未写完--------------------------
-                    returnMap.put("code", 0);
-                    returnMap.put("message", "success");
+                    JSONObject dataJson = resultJson.getJSONObject("data");
+                    if (!Check.isNull(dataJson)) {
+                        KuaiShouGroupCreate groupCreate = new KuaiShouGroupCreate();
+                        Long unitId = dataJson.getLong("unit_id");
+                        groupCreate.setUnitId(unitId);
+                        groupCreate.setAccountId(advertiser_id);
+                        groupCreate.setCampaignId(requestJson.getLong("campaign_id"));
+                        groupCreate.setUnitName(requestJson.getString("unit_name"));
+                        groupCreate.setBidType(requestJson.getInteger("bid_type"));
+                        groupCreate.setBid(requestJson.getInteger("bid"));
+                        groupCreate.setCpaBid(requestJson.getInteger("cpa_bid"));
+                        groupCreate.setOcpxActionType(requestJson.getInteger("ocpx_action_type"));
+                        groupCreate.setDeepConversionType(requestJson.getInteger("deep_conversion_type"));
+                        groupCreate.setPage(requestJson.getInteger("page"));
+                        groupCreate.setBeginTime(requestJson.getString("begin_time"));
+                        groupCreate.setEndTime(requestJson.getString("end_time"));
+                        groupCreate.setScheduleTime(requestJson.getString("schedule_time"));
+                        groupCreate.setDayBudget(requestJson.getLong("day_budget"));
+                        groupCreate.setUrlType(requestJson.getInteger("url_type"));
+                        groupCreate.setUrl(requestJson.getString("url"));
+                        groupCreate.setAppId(requestJson.getLong("app_id"));
+                        groupCreate.setShowModel(requestJson.getInteger("show_mode"));
+                        groupCreate.setSpeed(requestJson.getInteger("speed"));
+                        groupCreateMapper.insert(groupCreate);
+                        //定向信息
+                        JSONObject targetJson = requestJson.getJSONObject("target");
+                        if (!Check.isNull(targetJson)) {
+                            KuaiShouGroupCreateTarget groupCreateTarget = new KuaiShouGroupCreateTarget();
+                            groupCreateTarget.setAccountId(advertiser_id);
+                            groupCreateTarget.setUnitId(unitId);
+                            groupCreateTarget.setRegion(targetJson.getJSONArray("region"));
+                            JSONObject ageJson = targetJson.getJSONObject("age");
+                            if (!Check.isNull(ageJson)) {
+                                groupCreateTarget.setAgeMin(ageJson.getInteger("min"));
+                                groupCreateTarget.setAgeMax(ageJson.getInteger("max"));
+                            }
+                            groupCreateTarget.setGender(targetJson.getInteger("gender"));
+                            groupCreateTarget.setPlatformOs(targetJson.getInteger("platform_os"));
+                            groupCreateTarget.setAndroidOsv(targetJson.getInteger("android_osv"));
+                            groupCreateTarget.setIosOsv(targetJson.getInteger("ios_osv"));
+                            groupCreateTarget.setNetwork(targetJson.getInteger("network"));
+                            groupCreateTarget.setDeviceBrand(targetJson.getInteger("device_brand"));
+                            groupCreateTarget.setDevicePrice(targetJson.getJSONArray("device_price"));
+                            groupCreateTargetMapper.insert(groupCreateTarget);
+                        }
+
+                        returnMap.put("code", 0);
+                        returnMap.put("message", "success");
+                    }
 
                 } else {
                     logger.error("创建广告信息失败,advertiser_id:{},返回信息:{}", advertiser_id, resultJson);
@@ -453,6 +508,8 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
     private KuaiShouGroupMapper groupMapper;
     @Autowired
     private KuaiShouAppInfoMapper appInfoMapper;
+    @Autowired
+    private KuaiShouScheduleMapper shouScheduleMapper;
 
     @Override
     public void getGroupList(String accessToken, Long advertiserId, Integer page) {
@@ -505,7 +562,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
                                     group.setAppId(detail.getLong("app_id"));
                                     group.setAppIconUrl(detail.getString("app_icon_url"));
                                     groupMapper.insert(group);
-
                                     // 添加应用信息
                                     JSONObject diverseJson = detail.getJSONObject("diverse_data");
                                     if (!Check.isNull(diverseJson)) {
@@ -517,10 +573,23 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
                                         appInfo.setUnitId(unitId);
                                         appInfoMapper.insert(appInfo);
                                     }
+                                    //时间段信息
+                                    JSONObject scheduleJson = detail.getJSONObject("schedule");
+                                    if (!Check.isNull(scheduleJson)) {
+                                        KuaiShouSchedule schedule = new KuaiShouSchedule();
+                                        schedule.setUnitId(unitId);
+                                        schedule.setMon(scheduleJson.getJSONArray("mon").toJSONString());
+                                        schedule.setTues(scheduleJson.getJSONArray("tues").toJSONString());
+                                        schedule.setWed(scheduleJson.getJSONArray("wed").toJSONString());
+                                        schedule.setThur(scheduleJson.getJSONArray("thur").toJSONString());
+                                        schedule.setFri(scheduleJson.getJSONArray("fri").toJSONString());
+                                        schedule.setSat(scheduleJson.getJSONArray("sat").toJSONString());
+                                        schedule.setSun(scheduleJson.getJSONArray("sun").toJSONString());
+                                        shouScheduleMapper.insert(schedule);
+                                    }
                                 }
 
                                 getGroupList(accessToken, advertiserId, page + 1);
-
                             }
                         }
 

+ 258 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/KuaiShouGroupCreateList.vue

@@ -0,0 +1,258 @@
+<template>
+  <a-card :bordered="false">
+
+    <!-- 查询区域 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline">
+        <a-row :gutter="24">
+
+          <a-col :md="6" :sm="8">
+            <a-form-item label="账户ID">
+              <a-input placeholder="请输入账户ID" v-model="queryParam.accountId"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="广告活动ID">
+              <a-input placeholder="请输入广告活动ID" v-model="queryParam.campaignId"></a-input>
+            </a-form-item>
+          </a-col>
+        <template v-if="toggleSearchStatus">
+        <a-col :md="6" :sm="8">
+            <a-form-item label="广告组名称">
+              <a-input placeholder="请输入广告组名称" v-model="queryParam.unitName"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="出价类型">
+              <a-input placeholder="请输入出价类型" v-model="queryParam.bidType"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="出价">
+              <a-input placeholder="请输入出价" v-model="queryParam.bid"></a-input>
+            </a-form-item>
+          </a-col>
+          </template>
+          <a-col :md="6" :sm="8" >
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
+              <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '收起' : '展开' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a>
+            </span>
+          </a-col>
+
+        </a-row>
+      </a-form>
+    </div>
+
+    <!-- 操作按钮区域 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('快手-创建广告组信息')">导出</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">导入</a-button>
+      </a-upload>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table区域-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        @change="handleTableChange">
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">编辑</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
+                  <a>删除</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+    <!-- table区域-end -->
+
+    <!-- 表单区域 -->
+    <kuaiShouGroupCreate-modal ref="modalForm" @ok="modalFormOk"></kuaiShouGroupCreate-modal>
+  </a-card>
+</template>
+
+<script>
+  import KuaiShouGroupCreateModal from './modules/KuaiShouGroupCreateModal'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: "KuaiShouGroupCreateList",
+    mixins:[JeecgListMixin],
+    components: {
+      KuaiShouGroupCreateModal
+    },
+    data () {
+      return {
+        description: '快手-创建广告组信息管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+           },
+		   {
+            title: '账户ID',
+            align:"center",
+            dataIndex: 'accountId'
+           },
+		   {
+            title: '广告活动ID',
+            align:"center",
+            dataIndex: 'campaignId'
+           },
+		   {
+            title: '广告组名称',
+            align:"center",
+            dataIndex: 'unitName'
+           },
+		   {
+            title: '出价类型',
+            align:"center",
+            dataIndex: 'bidType'
+           },
+		   {
+            title: '出价',
+            align:"center",
+            dataIndex: 'bid'
+           },
+		   {
+            title: 'OCPC出价',
+            align:"center",
+            dataIndex: 'cpaBid'
+           },
+		   {
+            title: '优化目标',
+            align:"center",
+            dataIndex: 'ocpxActionType'
+           },
+		   {
+            title: '深度转化目标',
+            align:"center",
+            dataIndex: 'deepConversionType'
+           },
+		   {
+            title: '资源位置',
+            align:"center",
+            dataIndex: 'page'
+           },
+		   {
+            title: '投放开始时间',
+            align:"center",
+            dataIndex: 'beginTime'
+           },
+		   {
+            title: '投放结束时间',
+            align:"center",
+            dataIndex: 'endTime'
+           },
+		   {
+            title: '投放时段',
+            align:"center",
+            dataIndex: 'scheduleTime'
+           },
+		   {
+            title: '单日预算',
+            align:"center",
+            dataIndex: 'dayBudget'
+           },
+		   {
+            title: 'url类型 1:淘宝商品短链 2:淘宝商品 itemID',
+            align:"center",
+            dataIndex: 'urlType'
+           },
+		   {
+            title: '投放链接',
+            align:"center",
+            dataIndex: 'url'
+           },
+		   {
+            title: 'APP ID',
+            align:"center",
+            dataIndex: 'appId'
+           },
+		   {
+            title: '创意展现方式  1:轮播 2:优选',
+            align:"center",
+            dataIndex: 'showModel'
+           },
+		   {
+            title: '投放方式 1:快速投放 2:平滑投放',
+            align:"center",
+            dataIndex: 'speed'
+           },
+		   {
+            title: '广告组ID',
+            align:"center",
+            dataIndex: 'unitId'
+           },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/kuaishou/kuaiShouGroupCreate/list",
+          delete: "/kuaishou/kuaiShouGroupCreate/delete",
+          deleteBatch: "/kuaishou/kuaiShouGroupCreate/deleteBatch",
+          exportXlsUrl: "kuaishou/kuaiShouGroupCreate/exportXls",
+          importExcelUrl: "kuaishou/kuaiShouGroupCreate/importExcel",
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    }
+  },
+    methods: {
+     
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less'
+</style>

+ 223 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/KuaiShouGroupCreateTargetList.vue

@@ -0,0 +1,223 @@
+<template>
+  <a-card :bordered="false">
+
+    <!-- 查询区域 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline">
+        <a-row :gutter="24">
+
+          <a-col :md="6" :sm="8">
+            <a-form-item label="账户ID">
+              <a-input placeholder="请输入账户ID" v-model="queryParam.accountId"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="广告组ID">
+              <a-input placeholder="请输入广告组ID" v-model="queryParam.unitId"></a-input>
+            </a-form-item>
+          </a-col>
+        <template v-if="toggleSearchStatus">
+        <a-col :md="6" :sm="8">
+            <a-form-item label="地域">
+              <a-input placeholder="请输入地域" v-model="queryParam.region"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="年龄最小限制">
+              <a-input placeholder="请输入年龄最小限制" v-model="queryParam.ageMin"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="年龄最大限制">
+              <a-input placeholder="请输入年龄最大限制" v-model="queryParam.ageMax"></a-input>
+            </a-form-item>
+          </a-col>
+          </template>
+          <a-col :md="6" :sm="8" >
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
+              <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '收起' : '展开' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a>
+            </span>
+          </a-col>
+
+        </a-row>
+      </a-form>
+    </div>
+
+    <!-- 操作按钮区域 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('快手-创建广告组定向信息')">导出</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">导入</a-button>
+      </a-upload>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table区域-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        @change="handleTableChange">
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">编辑</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
+                  <a>删除</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+    <!-- table区域-end -->
+
+    <!-- 表单区域 -->
+    <kuaiShouGroupCreateTarget-modal ref="modalForm" @ok="modalFormOk"></kuaiShouGroupCreateTarget-modal>
+  </a-card>
+</template>
+
+<script>
+  import KuaiShouGroupCreateTargetModal from './modules/KuaiShouGroupCreateTargetModal'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: "KuaiShouGroupCreateTargetList",
+    mixins:[JeecgListMixin],
+    components: {
+      KuaiShouGroupCreateTargetModal
+    },
+    data () {
+      return {
+        description: '快手-创建广告组定向信息管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+           },
+		   {
+            title: '账户ID',
+            align:"center",
+            dataIndex: 'accountId'
+           },
+		   {
+            title: '广告组ID',
+            align:"center",
+            dataIndex: 'unitId'
+           },
+		   {
+            title: '地域',
+            align:"center",
+            dataIndex: 'region'
+           },
+		   {
+            title: '年龄最小限制',
+            align:"center",
+            dataIndex: 'ageMin'
+           },
+		   {
+            title: '年龄最大限制',
+            align:"center",
+            dataIndex: 'ageMax'
+           },
+		   {
+            title: '性别 1:女性, 2:男性, 0:不限',
+            align:"center",
+            dataIndex: 'gender'
+           },
+		   {
+            title: '操作系统 1: Android, 2: iOS, 0:不限',
+            align:"center",
+            dataIndex: 'platformOs'
+           },
+		   {
+            title: '安卓版本  3:不限, 4: 4.x+, 5: 5.x+, 6: 6.x+, 7: 7.x+;',
+            align:"center",
+            dataIndex: 'androidOsv'
+           },
+		   {
+            title: 'ios版本  6:不限, 7: 7.x+, 8: 8.x+,9: 9.x+, 10: 10.x+',
+            align:"center",
+            dataIndex: 'iosOsv'
+           },
+		   {
+            title: '网络环境 1: Wi-Fi, 2:移动网络,0:表示不限',
+            align:"center",
+            dataIndex: 'network'
+           },
+		   {
+            title: '设备品牌 1: OPPO, 2: VIVO,3:华为, 4:小米,5:荣耀, 6:三星,7:金立, 8:魅族,9:乐视, 10:其他,11 : 苹 果',
+            align:"center",
+            dataIndex: 'deviceBrand'
+           },
+		   {
+            title: '设备价格 1: 1500 元以下,2: 1501~2000,3: 2001~2500,4: 2501~3000,5: 3001~3500,6: 3501~4000,7: 4001~4500,8: 4501~5000,9: 5001~5500,10: 5500 元以上',
+            align:"center",
+            dataIndex: 'devicePrice'
+           },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/kuaishou/kuaiShouGroupCreateTarget/list",
+          delete: "/kuaishou/kuaiShouGroupCreateTarget/delete",
+          deleteBatch: "/kuaishou/kuaiShouGroupCreateTarget/deleteBatch",
+          exportXlsUrl: "kuaishou/kuaiShouGroupCreateTarget/exportXls",
+          importExcelUrl: "kuaishou/kuaiShouGroupCreateTarget/importExcel",
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    }
+  },
+    methods: {
+     
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less'
+</style>

+ 203 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/KuaiShouScheduleList.vue

@@ -0,0 +1,203 @@
+<template>
+  <a-card :bordered="false">
+
+    <!-- 查询区域 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline">
+        <a-row :gutter="24">
+
+          <a-col :md="6" :sm="8">
+            <a-form-item label="广告组id">
+              <a-input placeholder="请输入广告组id" v-model="queryParam.unitId"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="周一时间段">
+              <a-input placeholder="请输入周一时间段" v-model="queryParam.mon"></a-input>
+            </a-form-item>
+          </a-col>
+        <template v-if="toggleSearchStatus">
+        <a-col :md="6" :sm="8">
+            <a-form-item label="周二时间段">
+              <a-input placeholder="请输入周二时间段" v-model="queryParam.tues"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="周三时间段">
+              <a-input placeholder="请输入周三时间段" v-model="queryParam.wed"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="周四时间段">
+              <a-input placeholder="请输入周四时间段" v-model="queryParam.thur"></a-input>
+            </a-form-item>
+          </a-col>
+          </template>
+          <a-col :md="6" :sm="8" >
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
+              <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '收起' : '展开' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a>
+            </span>
+          </a-col>
+
+        </a-row>
+      </a-form>
+    </div>
+
+    <!-- 操作按钮区域 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('广告组-时间段范围')">导出</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">导入</a-button>
+      </a-upload>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table区域-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        @change="handleTableChange">
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">编辑</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
+                  <a>删除</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+    <!-- table区域-end -->
+
+    <!-- 表单区域 -->
+    <kuaiShouSchedule-modal ref="modalForm" @ok="modalFormOk"></kuaiShouSchedule-modal>
+  </a-card>
+</template>
+
+<script>
+  import KuaiShouScheduleModal from './modules/KuaiShouScheduleModal'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: "KuaiShouScheduleList",
+    mixins:[JeecgListMixin],
+    components: {
+      KuaiShouScheduleModal
+    },
+    data () {
+      return {
+        description: '广告组-时间段范围管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+           },
+		   {
+            title: '广告组id',
+            align:"center",
+            dataIndex: 'unitId'
+           },
+		   {
+            title: '周一时间段',
+            align:"center",
+            dataIndex: 'mon'
+           },
+		   {
+            title: '周二时间段',
+            align:"center",
+            dataIndex: 'tues'
+           },
+		   {
+            title: '周三时间段',
+            align:"center",
+            dataIndex: 'wed'
+           },
+		   {
+            title: '周四时间段',
+            align:"center",
+            dataIndex: 'thur'
+           },
+		   {
+            title: '周五时间段',
+            align:"center",
+            dataIndex: 'fri'
+           },
+		   {
+            title: '周六时间段',
+            align:"center",
+            dataIndex: 'sat'
+           },
+		   {
+            title: '周日时间段',
+            align:"center",
+            dataIndex: 'sun'
+           },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/kuaishou/kuaiShouSchedule/list",
+          delete: "/kuaishou/kuaiShouSchedule/delete",
+          deleteBatch: "/kuaishou/kuaiShouSchedule/deleteBatch",
+          exportXlsUrl: "kuaishou/kuaiShouSchedule/exportXls",
+          importExcelUrl: "kuaishou/kuaiShouSchedule/importExcel",
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    }
+  },
+    methods: {
+     
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less'
+</style>

+ 232 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouGroupCreateModal.vue

@@ -0,0 +1,232 @@
+<template>
+  <a-modal
+    :title="title"
+    :width="800"
+    :visible="visible"
+    :confirmLoading="confirmLoading"
+    @ok="handleOk"
+    @cancel="handleCancel"
+    cancelText="关闭">
+    
+    <a-spin :spinning="confirmLoading">
+      <a-form :form="form">
+      
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="账户ID">
+          <a-input placeholder="请输入账户ID" v-decorator="['accountId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="广告活动ID">
+          <a-input placeholder="请输入广告活动ID" v-decorator="['campaignId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="广告组名称">
+          <a-input placeholder="请输入广告组名称" v-decorator="['unitName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="出价类型">
+          <a-input-number v-decorator="[ 'bidType', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="出价">
+          <a-input placeholder="请输入出价" v-decorator="['bid', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="OCPC出价">
+          <a-input placeholder="请输入OCPC出价" v-decorator="['cpaBid', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="优化目标">
+          <a-input-number v-decorator="[ 'ocpxActionType', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="深度转化目标">
+          <a-input-number v-decorator="[ 'deepConversionType', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="资源位置">
+          <a-input-number v-decorator="[ 'page', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="投放开始时间">
+          <a-input placeholder="请输入投放开始时间" v-decorator="['beginTime', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="投放结束时间">
+          <a-input placeholder="请输入投放结束时间" v-decorator="['endTime', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="投放时段">
+          <a-input placeholder="请输入投放时段" v-decorator="['scheduleTime', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="单日预算">
+          <a-input placeholder="请输入单日预算" v-decorator="['dayBudget', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="url类型 1:淘宝商品短链 2:淘宝商品 itemID">
+          <a-input-number v-decorator="[ 'urlType', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="投放链接">
+          <a-input placeholder="请输入投放链接" v-decorator="['url', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="APP ID">
+          <a-input placeholder="请输入APP ID" v-decorator="['appId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="创意展现方式  1:轮播 2:优选">
+          <a-input-number v-decorator="[ 'showModel', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="投放方式 1:快速投放 2:平滑投放">
+          <a-input-number v-decorator="[ 'speed', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="广告组ID">
+          <a-input placeholder="请输入广告组ID" v-decorator="['unitId', {}]" />
+        </a-form-item>
+		
+      </a-form>
+    </a-spin>
+  </a-modal>
+</template>
+
+<script>
+  import { httpAction } from '@/api/manage'
+  import pick from 'lodash.pick'
+  import moment from "moment"
+
+  export default {
+    name: "KuaiShouGroupCreateModal",
+    data () {
+      return {
+        title:"操作",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+
+        confirmLoading: false,
+        form: this.$form.createForm(this),
+        validatorRules:{
+        },
+        url: {
+          add: "/kuaishou/kuaiShouGroupCreate/add",
+          edit: "/kuaishou/kuaiShouGroupCreate/edit",
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        this.edit({});
+      },
+      edit (record) {
+        this.form.resetFields();
+        this.model = Object.assign({}, record);
+        this.visible = true;
+        this.$nextTick(() => {
+          this.form.setFieldsValue(pick(this.model,'accountId','campaignId','unitName','bidType','bid','cpaBid','ocpxActionType','deepConversionType','page','beginTime','endTime','scheduleTime','dayBudget','urlType','url','appId','showModel','speed','unitId'))
+		  //时间格式化
+        });
+
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        const that = this;
+        // 触发表单验证
+        this.form.validateFields((err, values) => {
+          if (!err) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            let formData = Object.assign(this.model, values);
+            //时间格式化
+            
+            console.log(formData)
+            httpAction(httpurl,formData,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+
+
+
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      },
+
+
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+
+</style>

+ 239 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouGroupCreateModal__Style#Drawer.vue

@@ -0,0 +1,239 @@
+<template>
+  <a-drawer
+      :title="title"
+      :width="800"
+      placement="right"
+      :closable="false"
+      @close="close"
+      :visible="visible"
+  >
+
+    <a-spin :spinning="confirmLoading">
+      <a-form :form="form">
+      
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="账户ID">
+          <a-input placeholder="请输入账户ID" v-decorator="['accountId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="广告活动ID">
+          <a-input placeholder="请输入广告活动ID" v-decorator="['campaignId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="广告组名称">
+          <a-input placeholder="请输入广告组名称" v-decorator="['unitName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="出价类型">
+          <a-input-number v-decorator="[ 'bidType', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="出价">
+          <a-input placeholder="请输入出价" v-decorator="['bid', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="OCPC出价">
+          <a-input placeholder="请输入OCPC出价" v-decorator="['cpaBid', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="优化目标">
+          <a-input-number v-decorator="[ 'ocpxActionType', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="深度转化目标">
+          <a-input-number v-decorator="[ 'deepConversionType', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="资源位置">
+          <a-input-number v-decorator="[ 'page', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="投放开始时间">
+          <a-input placeholder="请输入投放开始时间" v-decorator="['beginTime', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="投放结束时间">
+          <a-input placeholder="请输入投放结束时间" v-decorator="['endTime', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="投放时段">
+          <a-input placeholder="请输入投放时段" v-decorator="['scheduleTime', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="单日预算">
+          <a-input placeholder="请输入单日预算" v-decorator="['dayBudget', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="url类型 1:淘宝商品短链 2:淘宝商品 itemID">
+          <a-input-number v-decorator="[ 'urlType', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="投放链接">
+          <a-input placeholder="请输入投放链接" v-decorator="['url', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="APP ID">
+          <a-input placeholder="请输入APP ID" v-decorator="['appId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="创意展现方式  1:轮播 2:优选">
+          <a-input-number v-decorator="[ 'showModel', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="投放方式 1:快速投放 2:平滑投放">
+          <a-input-number v-decorator="[ 'speed', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="广告组ID">
+          <a-input placeholder="请输入广告组ID" v-decorator="['unitId', {}]" />
+        </a-form-item>
+		
+      </a-form>
+    </a-spin>
+    <a-button type="primary" @click="handleOk">确定</a-button>
+    <a-button type="primary" @click="handleCancel">取消</a-button>
+  </a-drawer>
+</template>
+
+<script>
+  import { httpAction } from '@/api/manage'
+  import pick from 'lodash.pick'
+  import moment from "moment"
+
+  export default {
+    name: "KuaiShouGroupCreateModal",
+    data () {
+      return {
+        title:"操作",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+
+        confirmLoading: false,
+        form: this.$form.createForm(this),
+        validatorRules:{
+        },
+        url: {
+          add: "/kuaishou/kuaiShouGroupCreate/add",
+          edit: "/kuaishou/kuaiShouGroupCreate/edit",
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        this.edit({});
+      },
+      edit (record) {
+        this.form.resetFields();
+        this.model = Object.assign({}, record);
+        this.visible = true;
+        this.$nextTick(() => {
+          this.form.setFieldsValue(pick(this.model,'accountId','campaignId','unitName','bidType','bid','cpaBid','ocpxActionType','deepConversionType','page','beginTime','endTime','scheduleTime','dayBudget','urlType','url','appId','showModel','speed','unitId'))
+		  //时间格式化
+        });
+
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        const that = this;
+        // 触发表单验证
+        this.form.validateFields((err, values) => {
+          if (!err) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            let formData = Object.assign(this.model, values);
+            //时间格式化
+            
+            console.log(formData)
+            httpAction(httpurl,formData,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+
+
+
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      },
+
+
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+/** Button按钮间距 */
+  .ant-btn {
+    margin-left: 30px;
+    margin-bottom: 30px;
+    float: right;
+  }
+</style>

+ 190 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouGroupCreateTargetModal.vue

@@ -0,0 +1,190 @@
+<template>
+  <a-modal
+    :title="title"
+    :width="800"
+    :visible="visible"
+    :confirmLoading="confirmLoading"
+    @ok="handleOk"
+    @cancel="handleCancel"
+    cancelText="关闭">
+    
+    <a-spin :spinning="confirmLoading">
+      <a-form :form="form">
+      
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="账户ID">
+          <a-input placeholder="请输入账户ID" v-decorator="['accountId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="广告组ID">
+          <a-input placeholder="请输入广告组ID" v-decorator="['unitId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="地域">
+          <a-input placeholder="请输入地域" v-decorator="['region', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="年龄最小限制">
+          <a-input-number v-decorator="[ 'ageMin', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="年龄最大限制">
+          <a-input-number v-decorator="[ 'ageMax', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="性别 1:女性, 2:男性, 0:不限">
+          <a-input-number v-decorator="[ 'gender', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="操作系统 1: Android, 2: iOS, 0:不限">
+          <a-input-number v-decorator="[ 'platformOs', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="安卓版本  3:不限, 4: 4.x+, 5: 5.x+, 6: 6.x+, 7: 7.x+;">
+          <a-input-number v-decorator="[ 'androidOsv', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="ios版本  6:不限, 7: 7.x+, 8: 8.x+,9: 9.x+, 10: 10.x+">
+          <a-input-number v-decorator="[ 'iosOsv', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="网络环境 1: Wi-Fi, 2:移动网络,0:表示不限">
+          <a-input-number v-decorator="[ 'network', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="设备品牌 1: OPPO, 2: VIVO,3:华为, 4:小米,5:荣耀, 6:三星,7:金立, 8:魅族,9:乐视, 10:其他,11 : 苹 果">
+          <a-input placeholder="请输入设备品牌 1: OPPO, 2: VIVO,3:华为, 4:小米,5:荣耀, 6:三星,7:金立, 8:魅族,9:乐视, 10:其他,11 : 苹 果" v-decorator="['deviceBrand', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="设备价格 1: 1500 元以下,2: 1501~2000,3: 2001~2500,4: 2501~3000,5: 3001~3500,6: 3501~4000,7: 4001~4500,8: 4501~5000,9: 5001~5500,10: 5500 元以上">
+          <a-input placeholder="请输入设备价格 1: 1500 元以下,2: 1501~2000,3: 2001~2500,4: 2501~3000,5: 3001~3500,6: 3501~4000,7: 4001~4500,8: 4501~5000,9: 5001~5500,10: 5500 元以上" v-decorator="['devicePrice', {}]" />
+        </a-form-item>
+		
+      </a-form>
+    </a-spin>
+  </a-modal>
+</template>
+
+<script>
+  import { httpAction } from '@/api/manage'
+  import pick from 'lodash.pick'
+  import moment from "moment"
+
+  export default {
+    name: "KuaiShouGroupCreateTargetModal",
+    data () {
+      return {
+        title:"操作",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+
+        confirmLoading: false,
+        form: this.$form.createForm(this),
+        validatorRules:{
+        },
+        url: {
+          add: "/kuaishou/kuaiShouGroupCreateTarget/add",
+          edit: "/kuaishou/kuaiShouGroupCreateTarget/edit",
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        this.edit({});
+      },
+      edit (record) {
+        this.form.resetFields();
+        this.model = Object.assign({}, record);
+        this.visible = true;
+        this.$nextTick(() => {
+          this.form.setFieldsValue(pick(this.model,'accountId','unitId','region','ageMin','ageMax','gender','platformOs','androidOsv','iosOsv','network','deviceBrand','devicePrice'))
+		  //时间格式化
+        });
+
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        const that = this;
+        // 触发表单验证
+        this.form.validateFields((err, values) => {
+          if (!err) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            let formData = Object.assign(this.model, values);
+            //时间格式化
+            
+            console.log(formData)
+            httpAction(httpurl,formData,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+
+
+
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      },
+
+
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+
+</style>

+ 197 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouGroupCreateTargetModal__Style#Drawer.vue

@@ -0,0 +1,197 @@
+<template>
+  <a-drawer
+      :title="title"
+      :width="800"
+      placement="right"
+      :closable="false"
+      @close="close"
+      :visible="visible"
+  >
+
+    <a-spin :spinning="confirmLoading">
+      <a-form :form="form">
+      
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="账户ID">
+          <a-input placeholder="请输入账户ID" v-decorator="['accountId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="广告组ID">
+          <a-input placeholder="请输入广告组ID" v-decorator="['unitId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="地域">
+          <a-input placeholder="请输入地域" v-decorator="['region', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="年龄最小限制">
+          <a-input-number v-decorator="[ 'ageMin', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="年龄最大限制">
+          <a-input-number v-decorator="[ 'ageMax', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="性别 1:女性, 2:男性, 0:不限">
+          <a-input-number v-decorator="[ 'gender', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="操作系统 1: Android, 2: iOS, 0:不限">
+          <a-input-number v-decorator="[ 'platformOs', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="安卓版本  3:不限, 4: 4.x+, 5: 5.x+, 6: 6.x+, 7: 7.x+;">
+          <a-input-number v-decorator="[ 'androidOsv', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="ios版本  6:不限, 7: 7.x+, 8: 8.x+,9: 9.x+, 10: 10.x+">
+          <a-input-number v-decorator="[ 'iosOsv', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="网络环境 1: Wi-Fi, 2:移动网络,0:表示不限">
+          <a-input-number v-decorator="[ 'network', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="设备品牌 1: OPPO, 2: VIVO,3:华为, 4:小米,5:荣耀, 6:三星,7:金立, 8:魅族,9:乐视, 10:其他,11 : 苹 果">
+          <a-input placeholder="请输入设备品牌 1: OPPO, 2: VIVO,3:华为, 4:小米,5:荣耀, 6:三星,7:金立, 8:魅族,9:乐视, 10:其他,11 : 苹 果" v-decorator="['deviceBrand', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="设备价格 1: 1500 元以下,2: 1501~2000,3: 2001~2500,4: 2501~3000,5: 3001~3500,6: 3501~4000,7: 4001~4500,8: 4501~5000,9: 5001~5500,10: 5500 元以上">
+          <a-input placeholder="请输入设备价格 1: 1500 元以下,2: 1501~2000,3: 2001~2500,4: 2501~3000,5: 3001~3500,6: 3501~4000,7: 4001~4500,8: 4501~5000,9: 5001~5500,10: 5500 元以上" v-decorator="['devicePrice', {}]" />
+        </a-form-item>
+		
+      </a-form>
+    </a-spin>
+    <a-button type="primary" @click="handleOk">确定</a-button>
+    <a-button type="primary" @click="handleCancel">取消</a-button>
+  </a-drawer>
+</template>
+
+<script>
+  import { httpAction } from '@/api/manage'
+  import pick from 'lodash.pick'
+  import moment from "moment"
+
+  export default {
+    name: "KuaiShouGroupCreateTargetModal",
+    data () {
+      return {
+        title:"操作",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+
+        confirmLoading: false,
+        form: this.$form.createForm(this),
+        validatorRules:{
+        },
+        url: {
+          add: "/kuaishou/kuaiShouGroupCreateTarget/add",
+          edit: "/kuaishou/kuaiShouGroupCreateTarget/edit",
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        this.edit({});
+      },
+      edit (record) {
+        this.form.resetFields();
+        this.model = Object.assign({}, record);
+        this.visible = true;
+        this.$nextTick(() => {
+          this.form.setFieldsValue(pick(this.model,'accountId','unitId','region','ageMin','ageMax','gender','platformOs','androidOsv','iosOsv','network','deviceBrand','devicePrice'))
+		  //时间格式化
+        });
+
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        const that = this;
+        // 触发表单验证
+        this.form.validateFields((err, values) => {
+          if (!err) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            let formData = Object.assign(this.model, values);
+            //时间格式化
+            
+            console.log(formData)
+            httpAction(httpurl,formData,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+
+
+
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      },
+
+
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+/** Button按钮间距 */
+  .ant-btn {
+    margin-left: 30px;
+    margin-bottom: 30px;
+    float: right;
+  }
+</style>

+ 167 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouScheduleModal.vue

@@ -0,0 +1,167 @@
+<template>
+  <a-modal
+    :title="title"
+    :width="800"
+    :visible="visible"
+    :confirmLoading="confirmLoading"
+    @ok="handleOk"
+    @cancel="handleCancel"
+    cancelText="关闭">
+    
+    <a-spin :spinning="confirmLoading">
+      <a-form :form="form">
+      
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="广告组id">
+          <a-input placeholder="请输入广告组id" v-decorator="['unitId', validatorRules.unitId ]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="周一时间段">
+          <a-input placeholder="请输入周一时间段" v-decorator="['mon', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="周二时间段">
+          <a-input placeholder="请输入周二时间段" v-decorator="['tues', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="周三时间段">
+          <a-input placeholder="请输入周三时间段" v-decorator="['wed', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="周四时间段">
+          <a-input placeholder="请输入周四时间段" v-decorator="['thur', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="周五时间段">
+          <a-input placeholder="请输入周五时间段" v-decorator="['fri', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="周六时间段">
+          <a-input placeholder="请输入周六时间段" v-decorator="['sat', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="周日时间段">
+          <a-input placeholder="请输入周日时间段" v-decorator="['sun', {}]" />
+        </a-form-item>
+		
+      </a-form>
+    </a-spin>
+  </a-modal>
+</template>
+
+<script>
+  import { httpAction } from '@/api/manage'
+  import pick from 'lodash.pick'
+  import moment from "moment"
+
+  export default {
+    name: "KuaiShouScheduleModal",
+    data () {
+      return {
+        title:"操作",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+
+        confirmLoading: false,
+        form: this.$form.createForm(this),
+        validatorRules:{
+        unitId:{rules: [{ required: true, message: '请输入广告组id!' }]},
+        },
+        url: {
+          add: "/kuaishou/kuaiShouSchedule/add",
+          edit: "/kuaishou/kuaiShouSchedule/edit",
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        this.edit({});
+      },
+      edit (record) {
+        this.form.resetFields();
+        this.model = Object.assign({}, record);
+        this.visible = true;
+        this.$nextTick(() => {
+          this.form.setFieldsValue(pick(this.model,'unitId','mon','tues','wed','thur','fri','sat','sun'))
+		  //时间格式化
+        });
+
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        const that = this;
+        // 触发表单验证
+        this.form.validateFields((err, values) => {
+          if (!err) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            let formData = Object.assign(this.model, values);
+            //时间格式化
+            
+            console.log(formData)
+            httpAction(httpurl,formData,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+
+
+
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      },
+
+
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+
+</style>

+ 174 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouScheduleModal__Style#Drawer.vue

@@ -0,0 +1,174 @@
+<template>
+  <a-drawer
+      :title="title"
+      :width="800"
+      placement="right"
+      :closable="false"
+      @close="close"
+      :visible="visible"
+  >
+
+    <a-spin :spinning="confirmLoading">
+      <a-form :form="form">
+      
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="广告组id">
+          <a-input placeholder="请输入广告组id" v-decorator="['unitId', validatorRules.unitId ]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="周一时间段">
+          <a-input placeholder="请输入周一时间段" v-decorator="['mon', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="周二时间段">
+          <a-input placeholder="请输入周二时间段" v-decorator="['tues', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="周三时间段">
+          <a-input placeholder="请输入周三时间段" v-decorator="['wed', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="周四时间段">
+          <a-input placeholder="请输入周四时间段" v-decorator="['thur', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="周五时间段">
+          <a-input placeholder="请输入周五时间段" v-decorator="['fri', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="周六时间段">
+          <a-input placeholder="请输入周六时间段" v-decorator="['sat', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="周日时间段">
+          <a-input placeholder="请输入周日时间段" v-decorator="['sun', {}]" />
+        </a-form-item>
+		
+      </a-form>
+    </a-spin>
+    <a-button type="primary" @click="handleOk">确定</a-button>
+    <a-button type="primary" @click="handleCancel">取消</a-button>
+  </a-drawer>
+</template>
+
+<script>
+  import { httpAction } from '@/api/manage'
+  import pick from 'lodash.pick'
+  import moment from "moment"
+
+  export default {
+    name: "KuaiShouScheduleModal",
+    data () {
+      return {
+        title:"操作",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+
+        confirmLoading: false,
+        form: this.$form.createForm(this),
+        validatorRules:{
+        unitId:{rules: [{ required: true, message: '请输入广告组id!' }]},
+        },
+        url: {
+          add: "/kuaishou/kuaiShouSchedule/add",
+          edit: "/kuaishou/kuaiShouSchedule/edit",
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        this.edit({});
+      },
+      edit (record) {
+        this.form.resetFields();
+        this.model = Object.assign({}, record);
+        this.visible = true;
+        this.$nextTick(() => {
+          this.form.setFieldsValue(pick(this.model,'unitId','mon','tues','wed','thur','fri','sat','sun'))
+		  //时间格式化
+        });
+
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        const that = this;
+        // 触发表单验证
+        this.form.validateFields((err, values) => {
+          if (!err) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            let formData = Object.assign(this.model, values);
+            //时间格式化
+            
+            console.log(formData)
+            httpAction(httpurl,formData,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+
+
+
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      },
+
+
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+/** Button按钮间距 */
+  .ant-btn {
+    margin-left: 30px;
+    margin-bottom: 30px;
+    float: right;
+  }
+</style>

+ 0 - 30
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/material/entity/KuaishouSchedule.java

@@ -1,30 +0,0 @@
-package cn.com.ctop.kuaishou.modules.material.entity;
-
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.Data;
-
-import java.io.Serializable;
-import java.util.List;
-@Data
-@TableName("ctop_kuaishou_schedule")
-public class KuaishouSchedule implements Serializable {
-    private static final long serialVersionUID = 1L;
-    @TableId
-    private Long groupId;
-    @JsonProperty()
-    private List<Integer> mon;
-    @JsonProperty()
-    private List<Integer> tues;
-    @JsonProperty()
-    private List<Integer> wed;
-    @JsonProperty()
-    private List<Integer> thur;
-    @JsonProperty()
-    private List<Integer> fri;
-    @JsonProperty()
-    private List<Integer> sat;
-    @JsonProperty()
-    private List<Integer> sun;
-}

+ 0 - 7
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/material/mapper/KuaishouScheduleMapper.java

@@ -1,7 +0,0 @@
-package cn.com.ctop.kuaishou.modules.material.mapper;
-
-import cn.com.ctop.kuaishou.modules.material.entity.KuaishouSchedule;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-
-public interface KuaishouScheduleMapper extends BaseMapper<KuaishouSchedule> {
-}

+ 0 - 7
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/material/service/IKuaishouScheduleService.java

@@ -1,7 +0,0 @@
-package cn.com.ctop.kuaishou.modules.material.service;
-
-import cn.com.ctop.kuaishou.modules.material.entity.KuaishouSchedule;
-import com.baomidou.mybatisplus.extension.service.IService;
-
-public interface IKuaishouScheduleService extends IService<KuaishouSchedule> {
-}

+ 0 - 11
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/material/service/impl/KuaishouScheduleServiceImpl.java

@@ -1,11 +0,0 @@
-package cn.com.ctop.kuaishou.modules.material.service.impl;
-
-import cn.com.ctop.kuaishou.modules.material.entity.KuaishouSchedule;
-import cn.com.ctop.kuaishou.modules.material.mapper.KuaishouScheduleMapper;
-import cn.com.ctop.kuaishou.modules.material.service.IKuaishouScheduleService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import org.springframework.stereotype.Service;
-
-@Service
-public class KuaishouScheduleServiceImpl extends ServiceImpl<KuaishouScheduleMapper, KuaishouSchedule> implements IKuaishouScheduleService {
-}