Explorar el Código

快手相关代码提交

yumeng hace 5 años
padre
commit
3c67fa3619
Se han modificado 39 ficheros con 4062 adiciones y 20 borrados
  1. 13 13
      jeecg-boot-base-common/src/main/java/org/jeecg/common/util/encryption/AesEncryptUtil.java
  2. 252 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouCampaignTemplateController.java
  3. 1 7
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouController.java
  4. 250 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouCreateAppTemplateController.java
  5. 251 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouGroupCreateTemplateController.java
  6. 262 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouVideoController.java
  7. 106 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/entity/KuaiShouCampaignTemplate.java
  8. 118 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/entity/KuaiShouCreateAppTemplate.java
  9. 148 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/entity/KuaiShouGroupCreateTemplate.java
  10. 94 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/entity/KuaiShouVideo.java
  11. 17 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouCampaignTemplateMapper.java
  12. 17 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouCreateAppTemplateMapper.java
  13. 17 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouGroupCreateTemplateMapper.java
  14. 17 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouVideoMapper.java
  15. 5 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouCampaignTemplateMapper.xml
  16. 5 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouCreateAppTemplateMapper.xml
  17. 5 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouGroupCreateTemplateMapper.xml
  18. 5 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouVideoMapper.xml
  19. 17 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaiShouCampaignTemplateService.java
  20. 17 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaiShouCreateAppTemplateService.java
  21. 17 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaiShouGroupCreateTemplateService.java
  22. 16 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaiShouVideoService.java
  23. 48 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaiShouCampaignTemplateServiceImpl.java
  24. 48 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaiShouCreateAppTemplateServiceImpl.java
  25. 40 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaiShouGroupCreateTemplateServiceImpl.java
  26. 52 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaiShouVideoServiceImpl.java
  27. 198 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/KuaiShouCampaignTemplateList.vue
  28. 208 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/KuaiShouCreateAppTemplateList.vue
  29. 233 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/KuaiShouGroupCreateTemplateList.vue
  30. 188 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/KuaiShouVideoList.vue
  31. 161 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouCampaignTemplateModal.vue
  32. 168 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouCampaignTemplateModal__Style#Drawer.vue
  33. 172 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouCreateAppTemplateModal.vue
  34. 179 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouCreateAppTemplateModal__Style#Drawer.vue
  35. 202 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouGroupCreateTemplateModal.vue
  36. 209 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouGroupCreateTemplateModal__Style#Drawer.vue
  37. 148 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouVideoModal.vue
  38. 155 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouVideoModal__Style#Drawer.vue
  39. 3 0
      module-kuaishou/src/main/java/constant/KuaishouInterfaceConstant.java

+ 13 - 13
jeecg-boot-base-common/src/main/java/org/jeecg/common/util/encryption/AesEncryptUtil.java

@@ -5,6 +5,7 @@ import org.apache.shiro.codec.Base64;
 import javax.crypto.Cipher;
 import javax.crypto.spec.IvParameterSpec;
 import javax.crypto.spec.SecretKeySpec;
+import java.io.UnsupportedEncodingException;
 
 /**
  * AES 加密
@@ -105,19 +106,18 @@ public class AesEncryptUtil {
     }
 
 
-    /**
-     * 测试
-     */
-    public static void main(String args[]) throws Exception {
-
-        String test1 = "sa";
-        String test = new String(test1.getBytes(), "UTF-8");
-        String data = null;
-        String key = KEY;
-        String iv = IV;
-        // /g2wzfqvMOeazgtsUVbq1kmJawROa6mcRAzwG1/GeJ4=
-        data = encrypt(test, key, iv);
-        String jiemi = desEncrypt(data, key, iv).trim();
+    public static String getURLDecoderString(String str) {
+        String result = "";
+        if (null == str) {
+            return "";
+        }
+        try {
+            result = java.net.URLDecoder.decode(str, "UTF-8");
+        } catch (UnsupportedEncodingException e) {
+            e.printStackTrace();
+        }
+        return result;
+
 
     }
 }

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

@@ -0,0 +1,252 @@
+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.KuaiShouCampaignTemplate;
+import org.jeecg.modules.kuaishou.service.IKuaiShouCampaignTemplateService;
+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-08-06
+ * @Version: V1.0
+ */
+@Slf4j
+@Api(tags="快手-创建广告计划模板")
+@RestController
+@RequestMapping("/kuaishou/kuaiShouCampaignTemplate")
+public class KuaiShouCampaignTemplateController {
+	@Autowired
+	private IKuaiShouCampaignTemplateService kuaiShouCampaignTemplateService;
+
+
+
+	 @PostMapping("/insert")
+	 public Map<String, Object> campaignTemplateInsert(@RequestBody KuaiShouCampaignTemplate template, HttpServletRequest req) {
+		 return kuaiShouCampaignTemplateService.insertTemplate(template);
+	 }
+
+
+	 /**
+	  * 分页列表查询
+	 * @param kuaiShouCampaignTemplate
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告计划模板-分页列表查询")
+	@ApiOperation(value="快手-创建广告计划模板-分页列表查询", notes="快手-创建广告计划模板-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<KuaiShouCampaignTemplate>> queryPageList(KuaiShouCampaignTemplate kuaiShouCampaignTemplate,
+									  @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+									  @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+									  HttpServletRequest req) {
+		Result<IPage<KuaiShouCampaignTemplate>> result = new Result<IPage<KuaiShouCampaignTemplate>>();
+		QueryWrapper<KuaiShouCampaignTemplate> queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouCampaignTemplate, req.getParameterMap());
+		Page<KuaiShouCampaignTemplate> page = new Page<KuaiShouCampaignTemplate>(pageNo, pageSize);
+		IPage<KuaiShouCampaignTemplate> pageList = kuaiShouCampaignTemplateService.page(page, queryWrapper);
+		result.setSuccess(true);
+		result.setResult(pageList);
+		return result;
+	}
+	
+	/**
+	  *   添加
+	 * @param kuaiShouCampaignTemplate
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告计划模板-添加")
+	@ApiOperation(value="快手-创建广告计划模板-添加", notes="快手-创建广告计划模板-添加")
+	@PostMapping(value = "/add")
+	public Result<KuaiShouCampaignTemplate> add(@RequestBody KuaiShouCampaignTemplate kuaiShouCampaignTemplate) {
+		Result<KuaiShouCampaignTemplate> result = new Result<KuaiShouCampaignTemplate>();
+		try {
+			kuaiShouCampaignTemplateService.save(kuaiShouCampaignTemplate);
+			result.success("添加成功!");
+		} catch (Exception e) {
+			log.error(e.getMessage(),e);
+			result.error500("操作失败");
+		}
+		return result;
+	}
+	
+	/**
+	  *  编辑
+	 * @param kuaiShouCampaignTemplate
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告计划模板-编辑")
+	@ApiOperation(value="快手-创建广告计划模板-编辑", notes="快手-创建广告计划模板-编辑")
+	@PutMapping(value = "/edit")
+	public Result<KuaiShouCampaignTemplate> edit(@RequestBody KuaiShouCampaignTemplate kuaiShouCampaignTemplate) {
+		Result<KuaiShouCampaignTemplate> result = new Result<KuaiShouCampaignTemplate>();
+		KuaiShouCampaignTemplate kuaiShouCampaignTemplateEntity = kuaiShouCampaignTemplateService.getById(kuaiShouCampaignTemplate.getId());
+		if(kuaiShouCampaignTemplateEntity==null) {
+			result.error500("未找到对应实体");
+		}else {
+			boolean ok = kuaiShouCampaignTemplateService.updateById(kuaiShouCampaignTemplate);
+			//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 {
+			kuaiShouCampaignTemplateService.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<KuaiShouCampaignTemplate> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		Result<KuaiShouCampaignTemplate> result = new Result<KuaiShouCampaignTemplate>();
+		if(ids==null || "".equals(ids.trim())) {
+			result.error500("参数不识别!");
+		}else {
+			this.kuaiShouCampaignTemplateService.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<KuaiShouCampaignTemplate> queryById(@RequestParam(name="id",required=true) String id) {
+		Result<KuaiShouCampaignTemplate> result = new Result<KuaiShouCampaignTemplate>();
+		KuaiShouCampaignTemplate kuaiShouCampaignTemplate = kuaiShouCampaignTemplateService.getById(id);
+		if(kuaiShouCampaignTemplate==null) {
+			result.error500("未找到对应实体");
+		}else {
+			result.setResult(kuaiShouCampaignTemplate);
+			result.setSuccess(true);
+		}
+		return result;
+	}
+
+  /**
+      * 导出excel
+   *
+   * @param request
+   * @param response
+   */
+  @RequestMapping(value = "/exportXls")
+  public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+      // Step.1 组装查询条件
+      QueryWrapper<KuaiShouCampaignTemplate> queryWrapper = null;
+      try {
+          String paramsStr = request.getParameter("paramsStr");
+          if (oConvertUtils.isNotEmpty(paramsStr)) {
+              String deString = URLDecoder.decode(paramsStr, "UTF-8");
+              KuaiShouCampaignTemplate kuaiShouCampaignTemplate = JSON.parseObject(deString, KuaiShouCampaignTemplate.class);
+              queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouCampaignTemplate, request.getParameterMap());
+          }
+      } catch (UnsupportedEncodingException e) {
+          e.printStackTrace();
+      }
+
+      //Step.2 AutoPoi 导出Excel
+      ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+      List<KuaiShouCampaignTemplate> pageList = kuaiShouCampaignTemplateService.list(queryWrapper);
+      //导出文件名称
+      mv.addObject(NormalExcelConstants.FILE_NAME, "快手-创建广告计划模板列表");
+      mv.addObject(NormalExcelConstants.CLASS, KuaiShouCampaignTemplate.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<KuaiShouCampaignTemplate> listKuaiShouCampaignTemplates = ExcelImportUtil.importExcel(file.getInputStream(), KuaiShouCampaignTemplate.class, params);
+              kuaiShouCampaignTemplateService.saveBatch(listKuaiShouCampaignTemplates);
+              return Result.ok("文件导入成功!数据行数:" + listKuaiShouCampaignTemplates.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("文件导入失败!");
+  }
+
+}

+ 1 - 7
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouController.java

@@ -76,8 +76,6 @@ public class KuaiShouController {
         targetJson.put("android_osv", 3);
         //  targetJson.put("ios_osv", 3);
         targetJson.put("network", 0);
-
-
         Map<String, Object> stringObjectMap = kuaishouInterfaceService.adUnitCreate(accessToken, advertiserId, requestJson);
         System.err.println(JSON.toJSONString(stringObjectMap));
     }
@@ -104,7 +102,6 @@ public class KuaiShouController {
         String accessToken = "cbe9caeffcc2c5ccd97a05bf909896da";
         Long advertiserId = 23212L;
         kuaishouInterfaceService.getCreativeList(accessToken, advertiserId, 1);
-
     }
 
     @RequestMapping("/getDeepConversionInfos")
@@ -112,16 +109,13 @@ public class KuaiShouController {
         String accessToken = "cbe9caeffcc2c5ccd97a05bf909896da";
         Long advertiserId = 23212L;
         kuaishouInterfaceService.getDeepConversionInfos(advertiserId, accessToken);
-
     }
 
 
     @RequestMapping(value = "/video/upload", consumes = "multipart/form-data;charset=utf-8")
     public void upload(@RequestParam("multipartFile") MultipartFile multipartFile, HttpServletRequest request) throws IOException {
-
-        String accessToken = "360d43b49553684a011d6607322582b1";
+        String accessToken = "75d8c4291d275c73a00f8f60d821b6bd";
         Long advertiserId = 23212L;
-
         kuaishouInterfaceService.videoUpload(advertiserId, accessToken, multipartFile, request);
 
     }

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

@@ -0,0 +1,250 @@
+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.KuaiShouCreateAppTemplate;
+import org.jeecg.modules.kuaishou.service.IKuaiShouCreateAppTemplateService;
+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-08-06
+ * @Version: V1.0
+ */
+@Slf4j
+@Api(tags="创建应用")
+@RestController
+@RequestMapping("/kuaishou/kuaiShouCreateAppTemplate")
+public class KuaiShouCreateAppTemplateController {
+	@Autowired
+	private IKuaiShouCreateAppTemplateService kuaiShouCreateAppTemplateService;
+
+	 @PostMapping(value = "/insert")
+	 public Map<String, Object> insert(@RequestBody KuaiShouCreateAppTemplate appTemplate) {
+		 System.err.println(appTemplate.toString());
+		 return kuaiShouCreateAppTemplateService.insert(appTemplate);
+	 }
+
+	/**
+	  * 分页列表查询
+	 * @param kuaiShouCreateAppTemplate
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	@AutoLog(value = "创建应用-分页列表查询")
+	@ApiOperation(value="创建应用-分页列表查询", notes="创建应用-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<KuaiShouCreateAppTemplate>> queryPageList(KuaiShouCreateAppTemplate kuaiShouCreateAppTemplate,
+									  @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+									  @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+									  HttpServletRequest req) {
+		Result<IPage<KuaiShouCreateAppTemplate>> result = new Result<IPage<KuaiShouCreateAppTemplate>>();
+		QueryWrapper<KuaiShouCreateAppTemplate> queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouCreateAppTemplate, req.getParameterMap());
+		Page<KuaiShouCreateAppTemplate> page = new Page<KuaiShouCreateAppTemplate>(pageNo, pageSize);
+		IPage<KuaiShouCreateAppTemplate> pageList = kuaiShouCreateAppTemplateService.page(page, queryWrapper);
+		result.setSuccess(true);
+		result.setResult(pageList);
+		return result;
+	}
+	
+	/**
+	  *   添加
+	 * @param kuaiShouCreateAppTemplate
+	 * @return
+	 */
+	@AutoLog(value = "创建应用-添加")
+	@ApiOperation(value="创建应用-添加", notes="创建应用-添加")
+	@PostMapping(value = "/add")
+	public Result<KuaiShouCreateAppTemplate> add(@RequestBody KuaiShouCreateAppTemplate kuaiShouCreateAppTemplate) {
+		Result<KuaiShouCreateAppTemplate> result = new Result<KuaiShouCreateAppTemplate>();
+		try {
+			kuaiShouCreateAppTemplateService.save(kuaiShouCreateAppTemplate);
+			result.success("添加成功!");
+		} catch (Exception e) {
+			log.error(e.getMessage(),e);
+			result.error500("操作失败");
+		}
+		return result;
+	}
+	
+	/**
+	  *  编辑
+	 * @param kuaiShouCreateAppTemplate
+	 * @return
+	 */
+	@AutoLog(value = "创建应用-编辑")
+	@ApiOperation(value="创建应用-编辑", notes="创建应用-编辑")
+	@PutMapping(value = "/edit")
+	public Result<KuaiShouCreateAppTemplate> edit(@RequestBody KuaiShouCreateAppTemplate kuaiShouCreateAppTemplate) {
+		Result<KuaiShouCreateAppTemplate> result = new Result<KuaiShouCreateAppTemplate>();
+		KuaiShouCreateAppTemplate kuaiShouCreateAppTemplateEntity = kuaiShouCreateAppTemplateService.getById(kuaiShouCreateAppTemplate.getId());
+		if(kuaiShouCreateAppTemplateEntity==null) {
+			result.error500("未找到对应实体");
+		}else {
+			boolean ok = kuaiShouCreateAppTemplateService.updateById(kuaiShouCreateAppTemplate);
+			//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 {
+			kuaiShouCreateAppTemplateService.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<KuaiShouCreateAppTemplate> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		Result<KuaiShouCreateAppTemplate> result = new Result<KuaiShouCreateAppTemplate>();
+		if(ids==null || "".equals(ids.trim())) {
+			result.error500("参数不识别!");
+		}else {
+			this.kuaiShouCreateAppTemplateService.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<KuaiShouCreateAppTemplate> queryById(@RequestParam(name="id",required=true) String id) {
+		Result<KuaiShouCreateAppTemplate> result = new Result<KuaiShouCreateAppTemplate>();
+		KuaiShouCreateAppTemplate kuaiShouCreateAppTemplate = kuaiShouCreateAppTemplateService.getById(id);
+		if(kuaiShouCreateAppTemplate==null) {
+			result.error500("未找到对应实体");
+		}else {
+			result.setResult(kuaiShouCreateAppTemplate);
+			result.setSuccess(true);
+		}
+		return result;
+	}
+
+  /**
+      * 导出excel
+   *
+   * @param request
+   * @param response
+   */
+  @RequestMapping(value = "/exportXls")
+  public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+      // Step.1 组装查询条件
+      QueryWrapper<KuaiShouCreateAppTemplate> queryWrapper = null;
+      try {
+          String paramsStr = request.getParameter("paramsStr");
+          if (oConvertUtils.isNotEmpty(paramsStr)) {
+              String deString = URLDecoder.decode(paramsStr, "UTF-8");
+              KuaiShouCreateAppTemplate kuaiShouCreateAppTemplate = JSON.parseObject(deString, KuaiShouCreateAppTemplate.class);
+              queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouCreateAppTemplate, request.getParameterMap());
+          }
+      } catch (UnsupportedEncodingException e) {
+          e.printStackTrace();
+      }
+
+      //Step.2 AutoPoi 导出Excel
+      ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+      List<KuaiShouCreateAppTemplate> pageList = kuaiShouCreateAppTemplateService.list(queryWrapper);
+      //导出文件名称
+      mv.addObject(NormalExcelConstants.FILE_NAME, "创建应用列表");
+      mv.addObject(NormalExcelConstants.CLASS, KuaiShouCreateAppTemplate.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<KuaiShouCreateAppTemplate> listKuaiShouCreateAppTemplates = ExcelImportUtil.importExcel(file.getInputStream(), KuaiShouCreateAppTemplate.class, params);
+              kuaiShouCreateAppTemplateService.saveBatch(listKuaiShouCreateAppTemplates);
+              return Result.ok("文件导入成功!数据行数:" + listKuaiShouCreateAppTemplates.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("文件导入失败!");
+  }
+
+}

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

@@ -0,0 +1,251 @@
+package org.jeecg.modules.kuaishou.controller;
+
+import com.alibaba.fastjson.JSON;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+import org.jeecg.modules.kuaishou.entity.KuaiShouCreateAppTemplate;
+import org.jeecg.modules.kuaishou.entity.KuaiShouGroupCreateTemplate;
+import org.jeecg.modules.kuaishou.service.IKuaiShouGroupCreateTemplateService;
+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 javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+
+ /**
+ * @Description: 快手-创建广告组信息模板
+ * @Author: jeecg-boot
+ * @Date:   2019-08-07
+ * @Version: V1.0
+ */
+@Slf4j
+@Api(tags="快手-创建广告组信息模板")
+@RestController
+@RequestMapping("/kuaishou/kuaiShouGroupCreateTemplate")
+public class KuaiShouGroupCreateTemplateController {
+	@Autowired
+	private IKuaiShouGroupCreateTemplateService kuaiShouGroupCreateTemplateService;
+
+
+	 @PostMapping(value = "/insert")
+	 public Map<String, Object> insert(@RequestBody KuaiShouGroupCreateTemplate groupCreateTemplate) {
+		 System.err.println(groupCreateTemplate);
+		 return kuaiShouGroupCreateTemplateService.insert(groupCreateTemplate);
+	 }
+
+
+	/**
+	  * 分页列表查询
+	 * @param kuaiShouGroupCreateTemplate
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告组信息模板-分页列表查询")
+	@ApiOperation(value="快手-创建广告组信息模板-分页列表查询", notes="快手-创建广告组信息模板-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<KuaiShouGroupCreateTemplate>> queryPageList(KuaiShouGroupCreateTemplate kuaiShouGroupCreateTemplate,
+									  @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+									  @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+									  HttpServletRequest req) {
+		Result<IPage<KuaiShouGroupCreateTemplate>> result = new Result<IPage<KuaiShouGroupCreateTemplate>>();
+		QueryWrapper<KuaiShouGroupCreateTemplate> queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouGroupCreateTemplate, req.getParameterMap());
+		Page<KuaiShouGroupCreateTemplate> page = new Page<KuaiShouGroupCreateTemplate>(pageNo, pageSize);
+		IPage<KuaiShouGroupCreateTemplate> pageList = kuaiShouGroupCreateTemplateService.page(page, queryWrapper);
+		result.setSuccess(true);
+		result.setResult(pageList);
+		return result;
+	}
+	
+	/**
+	  *   添加
+	 * @param kuaiShouGroupCreateTemplate
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告组信息模板-添加")
+	@ApiOperation(value="快手-创建广告组信息模板-添加", notes="快手-创建广告组信息模板-添加")
+	@PostMapping(value = "/add")
+	public Result<KuaiShouGroupCreateTemplate> add(@RequestBody KuaiShouGroupCreateTemplate kuaiShouGroupCreateTemplate) {
+		Result<KuaiShouGroupCreateTemplate> result = new Result<KuaiShouGroupCreateTemplate>();
+		try {
+			kuaiShouGroupCreateTemplateService.save(kuaiShouGroupCreateTemplate);
+			result.success("添加成功!");
+		} catch (Exception e) {
+			log.error(e.getMessage(),e);
+			result.error500("操作失败");
+		}
+		return result;
+	}
+	
+	/**
+	  *  编辑
+	 * @param kuaiShouGroupCreateTemplate
+	 * @return
+	 */
+	@AutoLog(value = "快手-创建广告组信息模板-编辑")
+	@ApiOperation(value="快手-创建广告组信息模板-编辑", notes="快手-创建广告组信息模板-编辑")
+	@PutMapping(value = "/edit")
+	public Result<KuaiShouGroupCreateTemplate> edit(@RequestBody KuaiShouGroupCreateTemplate kuaiShouGroupCreateTemplate) {
+		Result<KuaiShouGroupCreateTemplate> result = new Result<KuaiShouGroupCreateTemplate>();
+		KuaiShouGroupCreateTemplate kuaiShouGroupCreateTemplateEntity = kuaiShouGroupCreateTemplateService.getById(kuaiShouGroupCreateTemplate.getId());
+		if(kuaiShouGroupCreateTemplateEntity==null) {
+			result.error500("未找到对应实体");
+		}else {
+			boolean ok = kuaiShouGroupCreateTemplateService.updateById(kuaiShouGroupCreateTemplate);
+			//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 {
+			kuaiShouGroupCreateTemplateService.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<KuaiShouGroupCreateTemplate> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		Result<KuaiShouGroupCreateTemplate> result = new Result<KuaiShouGroupCreateTemplate>();
+		if(ids==null || "".equals(ids.trim())) {
+			result.error500("参数不识别!");
+		}else {
+			this.kuaiShouGroupCreateTemplateService.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<KuaiShouGroupCreateTemplate> queryById(@RequestParam(name="id",required=true) String id) {
+		Result<KuaiShouGroupCreateTemplate> result = new Result<KuaiShouGroupCreateTemplate>();
+		KuaiShouGroupCreateTemplate kuaiShouGroupCreateTemplate = kuaiShouGroupCreateTemplateService.getById(id);
+		if(kuaiShouGroupCreateTemplate==null) {
+			result.error500("未找到对应实体");
+		}else {
+			result.setResult(kuaiShouGroupCreateTemplate);
+			result.setSuccess(true);
+		}
+		return result;
+	}
+
+  /**
+      * 导出excel
+   *
+   * @param request
+   * @param response
+   */
+  @RequestMapping(value = "/exportXls")
+  public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+      // Step.1 组装查询条件
+      QueryWrapper<KuaiShouGroupCreateTemplate> queryWrapper = null;
+      try {
+          String paramsStr = request.getParameter("paramsStr");
+          if (oConvertUtils.isNotEmpty(paramsStr)) {
+              String deString = URLDecoder.decode(paramsStr, "UTF-8");
+              KuaiShouGroupCreateTemplate kuaiShouGroupCreateTemplate = JSON.parseObject(deString, KuaiShouGroupCreateTemplate.class);
+              queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouGroupCreateTemplate, request.getParameterMap());
+          }
+      } catch (UnsupportedEncodingException e) {
+          e.printStackTrace();
+      }
+
+      //Step.2 AutoPoi 导出Excel
+      ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+      List<KuaiShouGroupCreateTemplate> pageList = kuaiShouGroupCreateTemplateService.list(queryWrapper);
+      //导出文件名称
+      mv.addObject(NormalExcelConstants.FILE_NAME, "快手-创建广告组信息模板列表");
+      mv.addObject(NormalExcelConstants.CLASS, KuaiShouGroupCreateTemplate.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<KuaiShouGroupCreateTemplate> listKuaiShouGroupCreateTemplates = ExcelImportUtil.importExcel(file.getInputStream(), KuaiShouGroupCreateTemplate.class, params);
+              kuaiShouGroupCreateTemplateService.saveBatch(listKuaiShouGroupCreateTemplates);
+              return Result.ok("文件导入成功!数据行数:" + listKuaiShouGroupCreateTemplates.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("文件导入失败!");
+  }
+
+}

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

@@ -0,0 +1,262 @@
+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 com.alibaba.fastjson.JSONObject;
+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.KuaiShouVideo;
+import org.jeecg.modules.kuaishou.service.IKuaiShouVideoService;
+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-08-06
+ * @Version: V1.0
+ */
+@Slf4j
+@Api(tags="快手-上传视频")
+@RestController
+@RequestMapping("/kuaishou/kuaiShouVideo")
+public class KuaiShouVideoController {
+	@Autowired
+	private IKuaiShouVideoService kuaiShouVideoService;
+
+
+
+	 @PostMapping(value = "/insert")
+	 public Result<KuaiShouVideo> insert(@RequestBody JSONObject requestJson) {
+		 System.err.println(requestJson);
+		 Result<KuaiShouVideo> result = new Result<KuaiShouVideo>();
+		 try {
+			 kuaiShouVideoService.insert(requestJson);
+			 result.success("添加成功!");
+		 } catch (Exception e) {
+			 log.error(e.getMessage(), e);
+			 result.error500("操作失败");
+		 }
+		 return result;
+	 }
+	
+	/**
+	  * 分页列表查询
+	 * @param kuaiShouVideo
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	@AutoLog(value = "快手-上传视频-分页列表查询")
+	@ApiOperation(value="快手-上传视频-分页列表查询", notes="快手-上传视频-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<KuaiShouVideo>> queryPageList(KuaiShouVideo kuaiShouVideo,
+									  @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+									  @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+									  HttpServletRequest req) {
+		Result<IPage<KuaiShouVideo>> result = new Result<IPage<KuaiShouVideo>>();
+		QueryWrapper<KuaiShouVideo> queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouVideo, req.getParameterMap());
+		Page<KuaiShouVideo> page = new Page<KuaiShouVideo>(pageNo, pageSize);
+		IPage<KuaiShouVideo> pageList = kuaiShouVideoService.page(page, queryWrapper);
+		result.setSuccess(true);
+		result.setResult(pageList);
+		return result;
+	}
+	
+	/**
+	  *   添加
+	 * @param kuaiShouVideo
+	 * @return
+	 */
+	@AutoLog(value = "快手-上传视频-添加")
+	@ApiOperation(value="快手-上传视频-添加", notes="快手-上传视频-添加")
+	@PostMapping(value = "/add")
+	public Result<KuaiShouVideo> add(@RequestBody KuaiShouVideo kuaiShouVideo) {
+		Result<KuaiShouVideo> result = new Result<KuaiShouVideo>();
+		try {
+			kuaiShouVideoService.save(kuaiShouVideo);
+			result.success("添加成功!");
+		} catch (Exception e) {
+			log.error(e.getMessage(),e);
+			result.error500("操作失败");
+		}
+		return result;
+	}
+	
+	/**
+	  *  编辑
+	 * @param kuaiShouVideo
+	 * @return
+	 */
+	@AutoLog(value = "快手-上传视频-编辑")
+	@ApiOperation(value="快手-上传视频-编辑", notes="快手-上传视频-编辑")
+	@PutMapping(value = "/edit")
+	public Result<KuaiShouVideo> edit(@RequestBody KuaiShouVideo kuaiShouVideo) {
+		Result<KuaiShouVideo> result = new Result<KuaiShouVideo>();
+		KuaiShouVideo kuaiShouVideoEntity = kuaiShouVideoService.getById(kuaiShouVideo.getId());
+		if(kuaiShouVideoEntity==null) {
+			result.error500("未找到对应实体");
+		}else {
+			boolean ok = kuaiShouVideoService.updateById(kuaiShouVideo);
+			//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 {
+			kuaiShouVideoService.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<KuaiShouVideo> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		Result<KuaiShouVideo> result = new Result<KuaiShouVideo>();
+		if(ids==null || "".equals(ids.trim())) {
+			result.error500("参数不识别!");
+		}else {
+			this.kuaiShouVideoService.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<KuaiShouVideo> queryById(@RequestParam(name="id",required=true) String id) {
+		Result<KuaiShouVideo> result = new Result<KuaiShouVideo>();
+		KuaiShouVideo kuaiShouVideo = kuaiShouVideoService.getById(id);
+		if(kuaiShouVideo==null) {
+			result.error500("未找到对应实体");
+		}else {
+			result.setResult(kuaiShouVideo);
+			result.setSuccess(true);
+		}
+		return result;
+	}
+
+  /**
+      * 导出excel
+   *
+   * @param request
+   * @param response
+   */
+  @RequestMapping(value = "/exportXls")
+  public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+      // Step.1 组装查询条件
+      QueryWrapper<KuaiShouVideo> queryWrapper = null;
+      try {
+          String paramsStr = request.getParameter("paramsStr");
+          if (oConvertUtils.isNotEmpty(paramsStr)) {
+              String deString = URLDecoder.decode(paramsStr, "UTF-8");
+              KuaiShouVideo kuaiShouVideo = JSON.parseObject(deString, KuaiShouVideo.class);
+              queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouVideo, request.getParameterMap());
+          }
+      } catch (UnsupportedEncodingException e) {
+          e.printStackTrace();
+      }
+
+      //Step.2 AutoPoi 导出Excel
+      ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+      List<KuaiShouVideo> pageList = kuaiShouVideoService.list(queryWrapper);
+      //导出文件名称
+      mv.addObject(NormalExcelConstants.FILE_NAME, "快手-上传视频列表");
+      mv.addObject(NormalExcelConstants.CLASS, KuaiShouVideo.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<KuaiShouVideo> listKuaiShouVideos = ExcelImportUtil.importExcel(file.getInputStream(), KuaiShouVideo.class, params);
+              kuaiShouVideoService.saveBatch(listKuaiShouVideos);
+              return Result.ok("文件导入成功!数据行数:" + listKuaiShouVideos.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("文件导入失败!");
+  }
+
+}

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

@@ -0,0 +1,106 @@
+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-08-06
+ * @Version: V1.0
+ */
+@Data
+@TableName("ctop_kuaishou_campaign_template")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "ctop_kuaishou_campaign_template对象", description = "快手-创建广告计划模板")
+public class KuaiShouCampaignTemplate {
+
+    /**
+     * 账户ID
+     */
+    @TableId(type = IdType.AUTO)
+    @ApiModelProperty(value = "账户ID")
+    private Integer id;
+    /**
+     * 2:提升应用安装 3:获取电商下单 4:推广品牌活动 5:收集销售线索
+     */
+    @Excel(name = "2:提升应用安装 3:获取电商下单 4:推广品牌活动 5:收集销售线索", width = 15)
+    @ApiModelProperty(value = "2:提升应用安装 3:获取电商下单 4:推广品牌活动 5:收集销售线索")
+    private Integer type;
+    /**
+     * 应用创建主键id
+     */
+    @Excel(name = "应用创建主键id", width = 15)
+    @ApiModelProperty(value = "应用创建主键id")
+    private Long appId;
+    /**
+     * url类型 当计划类型为 3(获取电商下单)时必填:1 - 淘宝商品短链2 - 淘宝商品 itemID
+     */
+    @Excel(name = "url类型 当计划类型为 3(获取电商下单)时必填:1 - 淘宝商品短链2 - 淘宝商品 itemID", width = 15)
+    @ApiModelProperty(value = "url类型 当计划类型为 3(获取电商下单)时必填:1 - 淘宝商品短链2 - 淘宝商品 itemID")
+    private String urlType;
+    /**
+     * 广告计划名称
+     */
+    @Excel(name = "广告计划名称", width = 15)
+    @ApiModelProperty(value = "广告计划名称")
+    private String campaignName;
+    /**
+     * 当前登录人id
+     */
+    @Excel(name = "当前登录人id", width = 15)
+    @ApiModelProperty(value = "当前登录人id")
+    private String loginId;
+    /**
+     * 当计划类型是 3/4/5 时必填
+     */
+    @Excel(name = "当计划类型是 3/4/5 时必填", width = 15)
+    @ApiModelProperty(value = "当计划类型是 3/4/5 时必填")
+    private Object url;
+    /**
+     * 计划单日预算金额 单位:厘 0表示预算不限,不小于500元,不超过100000000
+     */
+    @Excel(name = "计划单日预算金额 单位:厘 0表示预算不限,不小于500元,不超过100000000", width = 15)
+    @ApiModelProperty(value = "计划单日预算金额 单位:厘 0表示预算不限,不小于500元,不超过100000000")
+    private Integer dayBudget;
+    /**
+     * 创建人
+     */
+    @Excel(name = "创建人", width = 15)
+    @ApiModelProperty(value = "创建人")
+    private String createBy;
+    /**
+     * 修改人
+     */
+    @Excel(name = "修改人", width = 15)
+    @ApiModelProperty(value = "修改人")
+    private String updateBy;
+    /**
+     * 创建时间
+     */
+    @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;
+}

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

@@ -0,0 +1,118 @@
+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-08-06
+ * @Version: V1.0
+ */
+@Data
+@TableName("ctop_kuaishou_create_app_template")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "ctop_kuaishou_create_app_template对象", description = "创建应用")
+public class KuaiShouCreateAppTemplate {
+
+    /**
+     * id
+     */
+    @TableId(type = IdType.AUTO)
+    @ApiModelProperty(value = "id")
+    private Integer id;
+    /**
+     * app类型 安卓 ios
+     */
+    @Excel(name = "app类型 安卓 ios", width = 15)
+    @ApiModelProperty(value = "app类型 安卓 ios")
+    private String appType;
+    /**
+     * 应用类型   : 1 Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏
+     */
+    @Excel(name = "应用类型   : 1 Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏", width = 15)
+    @ApiModelProperty(value = "应用类型   : 1 Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏")
+    private String platform;
+    /**
+     * 应用标记
+     */
+    @Excel(name = "应用标记", width = 15)
+    @ApiModelProperty(value = "应用标记")
+    private String appVersion;
+    /**
+     * 应用名称
+     */
+    @Excel(name = "应用名称", width = 15)
+    @ApiModelProperty(value = "应用名称")
+    private String appName;
+    /**
+     * 应用包名
+     */
+    @Excel(name = "应用包名", width = 15)
+    @ApiModelProperty(value = "应用包名")
+    private String packageName;
+    /**
+     * 上传文件到服务器返回地址
+     */
+    @Excel(name = "上传文件到服务器返回地址", width = 15)
+    @ApiModelProperty(value = "上传文件到服务器返回地址")
+    private Object file;
+    /**
+     * 上传图片到服务器返回地址
+     */
+    @Excel(name = "上传图片到服务器返回地址", width = 15)
+    @ApiModelProperty(value = "上传图片到服务器返回地址")
+    private Object imageUrl;
+    /**
+     * 输入应用下载地址
+     */
+    @Excel(name = "输入应用下载地址", width = 15)
+    @ApiModelProperty(value = "输入应用下载地址")
+    private Object url;
+    /**
+     * 登录人id
+     */
+    @Excel(name = "登录人id", width = 15)
+    @ApiModelProperty(value = "登录人id")
+    private String loginId;
+    /**
+     * 创建时间
+     */
+    @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;
+    /**
+     * createBy
+     */
+    @Excel(name = "createBy", width = 15)
+    @ApiModelProperty(value = "createBy")
+    private String createBy;
+    /**
+     * updateBy
+     */
+    @Excel(name = "updateBy", width = 15)
+    @ApiModelProperty(value = "updateBy")
+    private String updateBy;
+}

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

@@ -0,0 +1,148 @@
+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-08-07
+ * @Version: V1.0
+ */
+@Data
+@TableName("ctop_kuaishou_group_create_template")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "ctop_kuaishou_group_create_template对象", description = "快手-创建广告组信息模板")
+public class KuaiShouGroupCreateTemplate {
+
+    /**
+     * id
+     */
+    @TableId(type = IdType.AUTO)
+    @ApiModelProperty(value = "id")
+    private Long id;
+    /**
+     * 广告组名称
+     */
+    @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 Long bid;
+    /**
+     * OCPC出价
+     */
+    @Excel(name = "OCPC出价", width = 15)
+    @ApiModelProperty(value = "OCPC出价")
+    private Long cpaBid;
+    /**
+     * 优化目标
+     */
+    @Excel(name = "优化目标", width = 15)
+    @ApiModelProperty(value = "优化目标")
+    private Integer ocpxActionType;
+    /**
+     * 深度转化目标 null
+     */
+    @Excel(name = "深度转化目标 null", width = 15)
+    @ApiModelProperty(value = "深度转化目标 null")
+    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 Integer dayBudget;
+    /**
+     * 创意展现方式  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 String loginId;
+    /**
+     * 创建人
+     */
+    @Excel(name = "创建人", width = 15)
+    @ApiModelProperty(value = "创建人")
+    private String createBy;
+    /**
+     * 修改人
+     */
+    @Excel(name = "修改人", width = 15)
+    @ApiModelProperty(value = "修改人")
+    private String updateBy;
+    /**
+     * 创建时间
+     */
+    @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;
+}

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

@@ -0,0 +1,94 @@
+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-08-06
+ * @Version: V1.0
+ */
+@Data
+@TableName("ctop_kuaishou_video")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "ctop_kuaishou_video对象", description = "快手-上传视频")
+public class KuaiShouVideo {
+
+    /**
+     * id
+     */
+    @TableId(type = IdType.AUTO)
+    @ApiModelProperty(value = "id")
+    private Integer id;
+    /**
+     * 视频保存本地地址
+     */
+    @Excel(name = "视频保存本地地址", width = 15)
+    @ApiModelProperty(value = "视频保存本地地址")
+    private Object localUrl;
+    /**
+     * 视频描述
+     */
+    @Excel(name = "视频描述", width = 15)
+    @ApiModelProperty(value = "视频描述")
+    private Object videoDesc;
+    /**
+     * videoName
+     */
+    @Excel(name = "videoName", width = 15)
+    @ApiModelProperty(value = "videoName")
+    private String videoName;
+    /**
+     * 视频类别
+     */
+    @Excel(name = "视频类别", width = 15)
+    @ApiModelProperty(value = "视频类别")
+    private String videoType;
+    /**
+     * 登录人id
+     */
+    @Excel(name = "登录人id", width = 15)
+    @ApiModelProperty(value = "登录人id")
+    private String loginId;
+    /**
+     * 创建时间
+     */
+    @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;
+    /**
+     * createBy
+     */
+    @Excel(name = "createBy", width = 15)
+    @ApiModelProperty(value = "createBy")
+    private String createBy;
+    /**
+     * updateBy
+     */
+    @Excel(name = "updateBy", width = 15)
+    @ApiModelProperty(value = "updateBy")
+    private String updateBy;
+}

+ 17 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouCampaignTemplateMapper.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.KuaiShouCampaignTemplate;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 快手-创建广告计划模板
+ * @Author: jeecg-boot
+ * @Date:   2019-08-06
+ * @Version: V1.0
+ */
+public interface KuaiShouCampaignTemplateMapper extends BaseMapper<KuaiShouCampaignTemplate> {
+
+}

+ 17 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouCreateAppTemplateMapper.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.KuaiShouCreateAppTemplate;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 创建应用
+ * @Author: jeecg-boot
+ * @Date:   2019-08-06
+ * @Version: V1.0
+ */
+public interface KuaiShouCreateAppTemplateMapper extends BaseMapper<KuaiShouCreateAppTemplate> {
+
+}

+ 17 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouGroupCreateTemplateMapper.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.KuaiShouGroupCreateTemplate;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 快手-创建广告组信息模板
+ * @Author: jeecg-boot
+ * @Date:   2019-08-07
+ * @Version: V1.0
+ */
+public interface KuaiShouGroupCreateTemplateMapper extends BaseMapper<KuaiShouGroupCreateTemplate> {
+
+}

+ 17 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouVideoMapper.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.KuaiShouVideo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 快手-上传视频
+ * @Author: jeecg-boot
+ * @Date:   2019-08-06
+ * @Version: V1.0
+ */
+public interface KuaiShouVideoMapper extends BaseMapper<KuaiShouVideo> {
+
+}

+ 5 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouCampaignTemplateMapper.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.KuaiShouCampaignTemplateMapper">
+
+</mapper>

+ 5 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouCreateAppTemplateMapper.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.KuaiShouCreateAppTemplateMapper">
+
+</mapper>

+ 5 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouGroupCreateTemplateMapper.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.KuaiShouGroupCreateTemplateMapper">
+
+</mapper>

+ 5 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouVideoMapper.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.KuaiShouVideoMapper">
+
+</mapper>

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

@@ -0,0 +1,17 @@
+package org.jeecg.modules.kuaishou.service;
+
+import org.jeecg.modules.kuaishou.entity.KuaiShouCampaignTemplate;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+import java.util.Map;
+
+/**
+ * @Description: 快手-创建广告计划模板
+ * @Author: jeecg-boot
+ * @Date:   2019-08-06
+ * @Version: V1.0
+ */
+public interface IKuaiShouCampaignTemplateService extends IService<KuaiShouCampaignTemplate> {
+
+    Map<String, Object> insertTemplate(KuaiShouCampaignTemplate template);
+}

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

@@ -0,0 +1,17 @@
+package org.jeecg.modules.kuaishou.service;
+
+import org.jeecg.modules.kuaishou.entity.KuaiShouCreateAppTemplate;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+import java.util.Map;
+
+/**
+ * @Description: 创建应用
+ * @Author: jeecg-boot
+ * @Date:   2019-08-06
+ * @Version: V1.0
+ */
+public interface IKuaiShouCreateAppTemplateService extends IService<KuaiShouCreateAppTemplate> {
+
+    Map<String, Object> insert(KuaiShouCreateAppTemplate appTemplate);
+}

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

@@ -0,0 +1,17 @@
+package org.jeecg.modules.kuaishou.service;
+
+import org.jeecg.modules.kuaishou.entity.KuaiShouGroupCreateTemplate;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+import java.util.Map;
+
+/**
+ * @Description: 快手-创建广告组信息模板
+ * @Author: jeecg-boot
+ * @Date:   2019-08-07
+ * @Version: V1.0
+ */
+public interface IKuaiShouGroupCreateTemplateService extends IService<KuaiShouGroupCreateTemplate> {
+
+    Map<String, Object> insert(KuaiShouGroupCreateTemplate groupCreateTemplate);
+}

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

@@ -0,0 +1,16 @@
+package org.jeecg.modules.kuaishou.service;
+
+import com.alibaba.fastjson.JSONObject;
+import org.jeecg.modules.kuaishou.entity.KuaiShouVideo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @Description: 快手-上传视频
+ * @Author: jeecg-boot
+ * @Date:   2019-08-06
+ * @Version: V1.0
+ */
+public interface IKuaiShouVideoService extends IService<KuaiShouVideo> {
+
+    void insert(JSONObject requestJson) throws Exception;
+}

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

@@ -0,0 +1,48 @@
+package org.jeecg.modules.kuaishou.service.impl;
+
+import org.jeecg.modules.kuaishou.entity.KuaiShouCampaignTemplate;
+import org.jeecg.modules.kuaishou.mapper.KuaiShouCampaignTemplateMapper;
+import org.jeecg.modules.kuaishou.service.IKuaiShouCampaignTemplateService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * @Description: 快手-创建广告计划模板
+ * @Author: jeecg-boot
+ * @Date:   2019-08-06
+ * @Version: V1.0
+ */
+@Service
+public class KuaiShouCampaignTemplateServiceImpl extends ServiceImpl<KuaiShouCampaignTemplateMapper, KuaiShouCampaignTemplate> implements IKuaiShouCampaignTemplateService {
+
+    @Autowired
+    private KuaiShouCampaignTemplateMapper campaignTemplateMapper;
+
+    /**
+     * 创建广告创意模板
+     *
+     * @param template
+     * @return
+     */
+    @Override
+    public Map<String, Object> insertTemplate(KuaiShouCampaignTemplate template) {
+        Map<String, Object> resultMap = new HashMap<>();
+        try {
+            template.setDayBudget(template.getDayBudget() * 1000);
+            campaignTemplateMapper.insert(template);
+            resultMap.put("success", true);
+            resultMap.put("message", "创建广告创意成功");
+            resultMap.put("code", 0);
+        } catch (Exception e) {
+            resultMap.put("success", false);
+            resultMap.put("message", "创建广告创意失败");
+            resultMap.put("code", -1);
+        }
+        return resultMap;
+    }
+}

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

@@ -0,0 +1,48 @@
+package org.jeecg.modules.kuaishou.service.impl;
+
+import cn.com.ctop.common.utils.Check;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import constant.KuaishouInterfaceConstant;
+import org.jeecg.modules.kuaishou.entity.KuaiShouCreateAppTemplate;
+import org.jeecg.modules.kuaishou.mapper.KuaiShouCreateAppTemplateMapper;
+import org.jeecg.modules.kuaishou.service.IKuaiShouCreateAppTemplateService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * @Description: 创建应用
+ * @Author: jeecg-boot
+ * @Date: 2019-08-06
+ * @Version: V1.0
+ */
+@Service
+public class KuaiShouCreateAppTemplateServiceImpl extends ServiceImpl<KuaiShouCreateAppTemplateMapper, KuaiShouCreateAppTemplate> implements IKuaiShouCreateAppTemplateService {
+    @Autowired
+    private KuaiShouCreateAppTemplateMapper appTemplateMapper;
+
+    @Override
+    public Map<String, Object> insert(KuaiShouCreateAppTemplate appTemplate) {
+        Map<String, Object> resultMap = new HashMap<>();
+        try {
+            if (!Check.isNull(appTemplate.getFile())) {
+                appTemplate.setFile(KuaishouInterfaceConstant.HTTPS_PREFIX + appTemplate.getFile());
+            }
+            if (!Check.isNull(appTemplate.getImageUrl())) {
+                appTemplate.setImageUrl(KuaishouInterfaceConstant.HTTPS_PREFIX + appTemplate.getImageUrl());
+            }
+            appTemplateMapper.insert(appTemplate);
+            resultMap.put("success", true);
+            resultMap.put("message", "创建广告创意成功");
+            resultMap.put("code", 0);
+        } catch (Exception e) {
+            resultMap.put("success", false);
+            resultMap.put("message", "创建广告创意失败");
+            resultMap.put("code", -1);
+        }
+        return resultMap;
+
+    }
+}

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

@@ -0,0 +1,40 @@
+package org.jeecg.modules.kuaishou.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.jeecg.modules.kuaishou.entity.KuaiShouGroupCreateTemplate;
+import org.jeecg.modules.kuaishou.mapper.KuaiShouGroupCreateTemplateMapper;
+import org.jeecg.modules.kuaishou.service.IKuaiShouGroupCreateTemplateService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * @Description: 快手-创建广告组信息模板
+ * @Author: jeecg-boot
+ * @Date: 2019-08-07
+ * @Version: V1.0
+ */
+@Service
+public class KuaiShouGroupCreateTemplateServiceImpl extends ServiceImpl<KuaiShouGroupCreateTemplateMapper, KuaiShouGroupCreateTemplate> implements IKuaiShouGroupCreateTemplateService {
+
+    @Autowired
+    private KuaiShouGroupCreateTemplateMapper groupCreateMapper;
+
+    @Override
+    public Map<String, Object> insert(KuaiShouGroupCreateTemplate groupCreateTemplate) {
+        Map<String, Object> resultMap = new HashMap<>();
+        try {
+            groupCreateMapper.insert(groupCreateTemplate);
+            resultMap.put("success", true);
+            resultMap.put("message", "创建广告组成功");
+            resultMap.put("code", 0);
+        } catch (Exception e) {
+            resultMap.put("success", false);
+            resultMap.put("message", "创建广告组失败");
+            resultMap.put("code", -1);
+        }
+        return resultMap;
+    }
+}

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

@@ -0,0 +1,52 @@
+package org.jeecg.modules.kuaishou.service.impl;
+
+import cn.com.ctop.common.utils.Check;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import constant.KuaishouInterfaceConstant;
+import org.jeecg.common.util.encryption.AesEncryptUtil;
+import org.jeecg.modules.kuaishou.entity.KuaiShouVideo;
+import org.jeecg.modules.kuaishou.mapper.KuaiShouVideoMapper;
+import org.jeecg.modules.kuaishou.service.IKuaiShouVideoService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 快手-上传视频
+ * @Author: jeecg-boot
+ * @Date: 2019-08-06
+ * @Version: V1.0
+ */
+@Service
+public class KuaiShouVideoServiceImpl extends ServiceImpl<KuaiShouVideoMapper, KuaiShouVideo> implements IKuaiShouVideoService {
+    @Autowired
+    private KuaiShouVideoMapper kuaiShouVideoMapper;
+
+    @Override
+    public void insert(JSONObject requestJson) throws Exception {
+        if (Check.isNull(requestJson)) {
+            throw new Exception("传递参数不能为空");
+        }
+        JSONArray localArr = requestJson.getJSONArray("localUrl");
+        if (Check.isNull(localArr)) {
+            throw new Exception("地址不能为空");
+        }
+        for (int i = 0; i < localArr.size(); i++) {
+            KuaiShouVideo video = new KuaiShouVideo();
+            video.setVideoDesc(requestJson.getString("videoDesc"));
+            String url = localArr.get(i).toString();
+            String fileName = url.substring(url.lastIndexOf("/") + 1);
+            String fileNameStr = null;
+            if (!Check.isNull(fileName)) {
+                String[] split = fileName.split("-");
+                fileNameStr = split[0];
+            }
+            video.setLoginId(requestJson.getString("loginId"));
+            video.setVideoName(AesEncryptUtil.getURLDecoderString(fileNameStr));
+            video.setLocalUrl(KuaishouInterfaceConstant.HTTPS_PREFIX + url);
+            kuaiShouVideoMapper.insert(video);
+        }
+    }
+}

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

@@ -0,0 +1,198 @@
+<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="2:提升应用安装 3:获取电商下单 4:推广品牌活动 5:收集销售线索">
+              <a-input placeholder="请输入2:提升应用安装 3:获取电商下单 4:推广品牌活动 5:收集销售线索" v-model="queryParam.type"></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.appId"></a-input>
+            </a-form-item>
+          </a-col>
+        <template v-if="toggleSearchStatus">
+        <a-col :md="6" :sm="8">
+            <a-form-item label="url类型 当计划类型为 3(获取电商下单)时必填:1 - 淘宝商品短链2 - 淘宝商品 itemID">
+              <a-input placeholder="请输入url类型 当计划类型为 3(获取电商下单)时必填:1 - 淘宝商品短链2 - 淘宝商品 itemID" v-model="queryParam.urlType"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="广告计划名称">
+              <a-input placeholder="请输入广告计划名称" v-model="queryParam.campaignName"></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.loginId"></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 -->
+
+    <!-- 表单区域 -->
+    <kuaiShouCampaignTemplate-modal ref="modalForm" @ok="modalFormOk"></kuaiShouCampaignTemplate-modal>
+  </a-card>
+</template>
+
+<script>
+  import KuaiShouCampaignTemplateModal from './modules/KuaiShouCampaignTemplateModal'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: "KuaiShouCampaignTemplateList",
+    mixins:[JeecgListMixin],
+    components: {
+      KuaiShouCampaignTemplateModal
+    },
+    data () {
+      return {
+        description: '快手-创建广告计划模板管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+           },
+		   {
+            title: '2:提升应用安装 3:获取电商下单 4:推广品牌活动 5:收集销售线索',
+            align:"center",
+            dataIndex: 'type'
+           },
+		   {
+            title: '应用创建主键id',
+            align:"center",
+            dataIndex: 'appId'
+           },
+		   {
+            title: 'url类型 当计划类型为 3(获取电商下单)时必填:1 - 淘宝商品短链2 - 淘宝商品 itemID',
+            align:"center",
+            dataIndex: 'urlType'
+           },
+		   {
+            title: '广告计划名称',
+            align:"center",
+            dataIndex: 'campaignName'
+           },
+		   {
+            title: '当前登录人id',
+            align:"center",
+            dataIndex: 'loginId'
+           },
+		   {
+            title: '当计划类型是 3/4/5 时必填',
+            align:"center",
+            dataIndex: 'url'
+           },
+		   {
+            title: '计划单日预算金额 单位:厘 0表示预算不限,不小于500元,不超过100000000',
+            align:"center",
+            dataIndex: 'dayBudget'
+           },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/kuaishou/kuaiShouCampaignTemplate/list",
+          delete: "/kuaishou/kuaiShouCampaignTemplate/delete",
+          deleteBatch: "/kuaishou/kuaiShouCampaignTemplate/deleteBatch",
+          exportXlsUrl: "kuaishou/kuaiShouCampaignTemplate/exportXls",
+          importExcelUrl: "kuaishou/kuaiShouCampaignTemplate/importExcel",
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    }
+  },
+    methods: {
+     
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less'
+</style>

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

@@ -0,0 +1,208 @@
+<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="app类型 安卓 ios">
+              <a-input placeholder="请输入app类型 安卓 ios" v-model="queryParam.appType"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="应用类型   : 1 Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏">
+              <a-input placeholder="请输入应用类型   : 1 Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏" v-model="queryParam.platform"></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.appVersion"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="应用名称">
+              <a-input placeholder="请输入应用名称" v-model="queryParam.appName"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="应用包名">
+              <a-input placeholder="请输入应用包名" v-model="queryParam.packageName"></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 -->
+
+    <!-- 表单区域 -->
+    <kuaiShouCreateAppTemplate-modal ref="modalForm" @ok="modalFormOk"></kuaiShouCreateAppTemplate-modal>
+  </a-card>
+</template>
+
+<script>
+  import KuaiShouCreateAppTemplateModal from './modules/KuaiShouCreateAppTemplateModal'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: "KuaiShouCreateAppTemplateList",
+    mixins:[JeecgListMixin],
+    components: {
+      KuaiShouCreateAppTemplateModal
+    },
+    data () {
+      return {
+        description: '创建应用管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+           },
+		   {
+            title: 'app类型 安卓 ios',
+            align:"center",
+            dataIndex: 'appType'
+           },
+		   {
+            title: '应用类型   : 1 Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏',
+            align:"center",
+            dataIndex: 'platform'
+           },
+		   {
+            title: '应用标记',
+            align:"center",
+            dataIndex: 'appVersion'
+           },
+		   {
+            title: '应用名称',
+            align:"center",
+            dataIndex: 'appName'
+           },
+		   {
+            title: '应用包名',
+            align:"center",
+            dataIndex: 'packageName'
+           },
+		   {
+            title: '上传文件到服务器返回地址',
+            align:"center",
+            dataIndex: 'file'
+           },
+		   {
+            title: '上传图片到服务器返回地址',
+            align:"center",
+            dataIndex: 'imageUrl'
+           },
+		   {
+            title: '输入应用下载地址',
+            align:"center",
+            dataIndex: 'url'
+           },
+		   {
+            title: '登录人id',
+            align:"center",
+            dataIndex: 'loginId'
+           },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/kuaishou/kuaiShouCreateAppTemplate/list",
+          delete: "/kuaishou/kuaiShouCreateAppTemplate/delete",
+          deleteBatch: "/kuaishou/kuaiShouCreateAppTemplate/deleteBatch",
+          exportXlsUrl: "kuaishou/kuaiShouCreateAppTemplate/exportXls",
+          importExcelUrl: "kuaishou/kuaiShouCreateAppTemplate/importExcel",
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    }
+  },
+    methods: {
+     
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less'
+</style>

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

@@ -0,0 +1,233 @@
+<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="广告组名称">
+              <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>
+        <template v-if="toggleSearchStatus">
+        <a-col :md="6" :sm="8">
+            <a-form-item label="出价">
+              <a-input placeholder="请输入出价" v-model="queryParam.bid"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="OCPC出价">
+              <a-input placeholder="请输入OCPC出价" v-model="queryParam.cpaBid"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="优化目标">
+              <a-input placeholder="请输入优化目标" v-model="queryParam.ocpxActionType"></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 -->
+
+    <!-- 表单区域 -->
+    <kuaiShouGroupCreateTemplate-modal ref="modalForm" @ok="modalFormOk"></kuaiShouGroupCreateTemplate-modal>
+  </a-card>
+</template>
+
+<script>
+  import KuaiShouGroupCreateTemplateModal from './modules/KuaiShouGroupCreateTemplateModal'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: "KuaiShouGroupCreateTemplateList",
+    mixins:[JeecgListMixin],
+    components: {
+      KuaiShouGroupCreateTemplateModal
+    },
+    data () {
+      return {
+        description: '快手-创建广告组信息模板管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+           },
+		   {
+            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: '深度转化目标 null',
+            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: '创意展现方式  1:轮播 2:优选',
+            align:"center",
+            dataIndex: 'showModel'
+           },
+		   {
+            title: '投放方式 1:快速投放 2:平滑投放',
+            align:"center",
+            dataIndex: 'speed'
+           },
+		   {
+            title: '当前登录人id',
+            align:"center",
+            dataIndex: 'loginId'
+           },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/kuaishou/kuaiShouGroupCreateTemplate/list",
+          delete: "/kuaishou/kuaiShouGroupCreateTemplate/delete",
+          deleteBatch: "/kuaishou/kuaiShouGroupCreateTemplate/deleteBatch",
+          exportXlsUrl: "kuaishou/kuaiShouGroupCreateTemplate/exportXls",
+          importExcelUrl: "kuaishou/kuaiShouGroupCreateTemplate/importExcel",
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    }
+  },
+    methods: {
+     
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less'
+</style>

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

@@ -0,0 +1,188 @@
+<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="视频保存本地地址">
+              <a-input placeholder="请输入视频保存本地地址" v-model="queryParam.localUrl"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="视频描述">
+              <a-input placeholder="请输入视频描述" v-model="queryParam.videoDesc"></a-input>
+            </a-form-item>
+          </a-col>
+        <template v-if="toggleSearchStatus">
+        <a-col :md="6" :sm="8">
+            <a-form-item label="videoName">
+              <a-input placeholder="请输入videoName" v-model="queryParam.videoName"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="视频类别">
+              <a-input placeholder="请输入视频类别" v-model="queryParam.videoType"></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.loginId"></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 -->
+
+    <!-- 表单区域 -->
+    <kuaiShouVideo-modal ref="modalForm" @ok="modalFormOk"></kuaiShouVideo-modal>
+  </a-card>
+</template>
+
+<script>
+  import KuaiShouVideoModal from './modules/KuaiShouVideoModal'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: "KuaiShouVideoList",
+    mixins:[JeecgListMixin],
+    components: {
+      KuaiShouVideoModal
+    },
+    data () {
+      return {
+        description: '快手-上传视频管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+           },
+		   {
+            title: '视频保存本地地址',
+            align:"center",
+            dataIndex: 'localUrl'
+           },
+		   {
+            title: '视频描述',
+            align:"center",
+            dataIndex: 'videoDesc'
+           },
+		   {
+            title: 'videoName',
+            align:"center",
+            dataIndex: 'videoName'
+           },
+		   {
+            title: '视频类别',
+            align:"center",
+            dataIndex: 'videoType'
+           },
+		   {
+            title: '登录人id',
+            align:"center",
+            dataIndex: 'loginId'
+           },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/kuaishou/kuaiShouVideo/list",
+          delete: "/kuaishou/kuaiShouVideo/delete",
+          deleteBatch: "/kuaishou/kuaiShouVideo/deleteBatch",
+          exportXlsUrl: "kuaishou/kuaiShouVideo/exportXls",
+          importExcelUrl: "kuaishou/kuaiShouVideo/importExcel",
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    }
+  },
+    methods: {
+     
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less'
+</style>

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

@@ -0,0 +1,161 @@
+<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="2:提升应用安装 3:获取电商下单 4:推广品牌活动 5:收集销售线索">
+          <a-input-number v-decorator="[ 'type', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用创建主键id">
+          <a-input placeholder="请输入应用创建主键id" v-decorator="['appId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="url类型 当计划类型为 3(获取电商下单)时必填:1 - 淘宝商品短链2 - 淘宝商品 itemID">
+          <a-input placeholder="请输入url类型 当计划类型为 3(获取电商下单)时必填:1 - 淘宝商品短链2 - 淘宝商品 itemID" v-decorator="['urlType', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="广告计划名称">
+          <a-input placeholder="请输入广告计划名称" v-decorator="['campaignName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="当前登录人id">
+          <a-input placeholder="请输入当前登录人id" v-decorator="['loginId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="当计划类型是 3/4/5 时必填">
+          <a-input placeholder="请输入当计划类型是 3/4/5 时必填" v-decorator="['url', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="计划单日预算金额 单位:厘 0表示预算不限,不小于500元,不超过100000000">
+          <a-input placeholder="请输入计划单日预算金额 单位:厘 0表示预算不限,不小于500元,不超过100000000" v-decorator="['dayBudget', validatorRules.dayBudget ]" />
+        </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: "KuaiShouCampaignTemplateModal",
+    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:{
+        dayBudget:{rules: [{ required: true, message: '请输入计划单日预算金额 单位:厘 0表示预算不限,不小于500元,不超过100000000!' }]},
+        },
+        url: {
+          add: "/kuaishou/kuaiShouCampaignTemplate/add",
+          edit: "/kuaishou/kuaiShouCampaignTemplate/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,'type','appId','urlType','campaignName','loginId','url','dayBudget'))
+		  //时间格式化
+        });
+
+      },
+      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>

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

@@ -0,0 +1,168 @@
+<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="2:提升应用安装 3:获取电商下单 4:推广品牌活动 5:收集销售线索">
+          <a-input-number v-decorator="[ 'type', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用创建主键id">
+          <a-input placeholder="请输入应用创建主键id" v-decorator="['appId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="url类型 当计划类型为 3(获取电商下单)时必填:1 - 淘宝商品短链2 - 淘宝商品 itemID">
+          <a-input placeholder="请输入url类型 当计划类型为 3(获取电商下单)时必填:1 - 淘宝商品短链2 - 淘宝商品 itemID" v-decorator="['urlType', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="广告计划名称">
+          <a-input placeholder="请输入广告计划名称" v-decorator="['campaignName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="当前登录人id">
+          <a-input placeholder="请输入当前登录人id" v-decorator="['loginId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="当计划类型是 3/4/5 时必填">
+          <a-input placeholder="请输入当计划类型是 3/4/5 时必填" v-decorator="['url', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="计划单日预算金额 单位:厘 0表示预算不限,不小于500元,不超过100000000">
+          <a-input placeholder="请输入计划单日预算金额 单位:厘 0表示预算不限,不小于500元,不超过100000000" v-decorator="['dayBudget', validatorRules.dayBudget ]" />
+        </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: "KuaiShouCampaignTemplateModal",
+    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:{
+        dayBudget:{rules: [{ required: true, message: '请输入计划单日预算金额 单位:厘 0表示预算不限,不小于500元,不超过100000000!' }]},
+        },
+        url: {
+          add: "/kuaishou/kuaiShouCampaignTemplate/add",
+          edit: "/kuaishou/kuaiShouCampaignTemplate/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,'type','appId','urlType','campaignName','loginId','url','dayBudget'))
+		  //时间格式化
+        });
+
+      },
+      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>

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

@@ -0,0 +1,172 @@
+<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="app类型 安卓 ios">
+          <a-input placeholder="请输入app类型 安卓 ios" v-decorator="['appType', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用类型   : 1 Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏">
+          <a-input placeholder="请输入应用类型   : 1 Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏" v-decorator="['platform', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用标记">
+          <a-input placeholder="请输入应用标记" v-decorator="['appVersion', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用名称">
+          <a-input placeholder="请输入应用名称" v-decorator="['appName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用包名">
+          <a-input placeholder="请输入应用包名" v-decorator="['packageName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="上传文件到服务器返回地址">
+          <a-input placeholder="请输入上传文件到服务器返回地址" v-decorator="['file', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="上传图片到服务器返回地址">
+          <a-input placeholder="请输入上传图片到服务器返回地址" v-decorator="['imageUrl', {}]" />
+        </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="登录人id">
+          <a-input placeholder="请输入登录人id" v-decorator="['loginId', {}]" />
+        </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: "KuaiShouCreateAppTemplateModal",
+    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/kuaiShouCreateAppTemplate/add",
+          edit: "/kuaishou/kuaiShouCreateAppTemplate/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,'appType','platform','appVersion','appName','packageName','file','imageUrl','url','loginId'))
+		  //时间格式化
+        });
+
+      },
+      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>

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

@@ -0,0 +1,179 @@
+<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="app类型 安卓 ios">
+          <a-input placeholder="请输入app类型 安卓 ios" v-decorator="['appType', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用类型   : 1 Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏">
+          <a-input placeholder="请输入应用类型   : 1 Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏" v-decorator="['platform', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用标记">
+          <a-input placeholder="请输入应用标记" v-decorator="['appVersion', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用名称">
+          <a-input placeholder="请输入应用名称" v-decorator="['appName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用包名">
+          <a-input placeholder="请输入应用包名" v-decorator="['packageName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="上传文件到服务器返回地址">
+          <a-input placeholder="请输入上传文件到服务器返回地址" v-decorator="['file', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="上传图片到服务器返回地址">
+          <a-input placeholder="请输入上传图片到服务器返回地址" v-decorator="['imageUrl', {}]" />
+        </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="登录人id">
+          <a-input placeholder="请输入登录人id" v-decorator="['loginId', {}]" />
+        </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: "KuaiShouCreateAppTemplateModal",
+    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/kuaiShouCreateAppTemplate/add",
+          edit: "/kuaishou/kuaiShouCreateAppTemplate/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,'appType','platform','appVersion','appName','packageName','file','imageUrl','url','loginId'))
+		  //时间格式化
+        });
+
+      },
+      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>

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

@@ -0,0 +1,202 @@
+<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="广告组名称">
+          <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="深度转化目标 null">
+          <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="创意展现方式  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="['loginId', {}]" />
+        </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: "KuaiShouGroupCreateTemplateModal",
+    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/kuaiShouGroupCreateTemplate/add",
+          edit: "/kuaishou/kuaiShouGroupCreateTemplate/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,'unitName','bidType','bid','cpaBid','ocpxActionType','deepConversionType','page','beginTime','endTime','scheduleTime','dayBudget','showModel','speed','loginId'))
+		  //时间格式化
+        });
+
+      },
+      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>

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

@@ -0,0 +1,209 @@
+<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="广告组名称">
+          <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="深度转化目标 null">
+          <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="创意展现方式  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="['loginId', {}]" />
+        </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: "KuaiShouGroupCreateTemplateModal",
+    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/kuaiShouGroupCreateTemplate/add",
+          edit: "/kuaishou/kuaiShouGroupCreateTemplate/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,'unitName','bidType','bid','cpaBid','ocpxActionType','deepConversionType','page','beginTime','endTime','scheduleTime','dayBudget','showModel','speed','loginId'))
+		  //时间格式化
+        });
+
+      },
+      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>

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

@@ -0,0 +1,148 @@
+<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="视频保存本地地址">
+          <a-input placeholder="请输入视频保存本地地址" v-decorator="['localUrl', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="视频描述">
+          <a-input placeholder="请输入视频描述" v-decorator="['videoDesc', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="videoName">
+          <a-input placeholder="请输入videoName" v-decorator="['videoName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="视频类别">
+          <a-input placeholder="请输入视频类别" v-decorator="['videoType', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="登录人id">
+          <a-input placeholder="请输入登录人id" v-decorator="['loginId', {}]" />
+        </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: "KuaiShouVideoModal",
+    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/kuaiShouVideo/add",
+          edit: "/kuaishou/kuaiShouVideo/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,'localUrl','videoDesc','videoName','videoType','loginId'))
+		  //时间格式化
+        });
+
+      },
+      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>

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

@@ -0,0 +1,155 @@
+<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="视频保存本地地址">
+          <a-input placeholder="请输入视频保存本地地址" v-decorator="['localUrl', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="视频描述">
+          <a-input placeholder="请输入视频描述" v-decorator="['videoDesc', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="videoName">
+          <a-input placeholder="请输入videoName" v-decorator="['videoName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="视频类别">
+          <a-input placeholder="请输入视频类别" v-decorator="['videoType', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="登录人id">
+          <a-input placeholder="请输入登录人id" v-decorator="['loginId', {}]" />
+        </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: "KuaiShouVideoModal",
+    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/kuaiShouVideo/add",
+          edit: "/kuaishou/kuaiShouVideo/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,'localUrl','videoDesc','videoName','videoType','loginId'))
+		  //时间格式化
+        });
+
+      },
+      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>

+ 3 - 0
module-kuaishou/src/main/java/constant/KuaishouInterfaceConstant.java

@@ -30,4 +30,7 @@ public class KuaishouInterfaceConstant {
     public static final String LOGIN_TYPE_BYTEDANCE = "bytedance"; //登录方式-快手
 
 
+    public static final String HTTPS_PREFIX = "https:"; //登录方式-快手
+
+
 }