|
@@ -1060,7 +1060,7 @@ public class BatchController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping(value = "/getCreativeCopywriter")
|
|
|
- public Result<MaterialInfo> getVideoList(String code, Long accountId) {
|
|
|
+ public Result<MaterialInfo> getCreativeCopywriter(String code, Long accountId) {
|
|
|
Result<MaterialInfo> result = new Result<>();
|
|
|
try {
|
|
|
Long projectId = materialInfoMapper.getProjectIdByAccountId(accountId);
|
|
@@ -1550,6 +1550,7 @@ public class BatchController {
|
|
|
|
|
|
/**
|
|
|
* 批量复制组
|
|
|
+ *
|
|
|
* @param requestJson
|
|
|
* @return
|
|
|
*/
|
|
@@ -1619,10 +1620,9 @@ public class BatchController {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 复制组
|
|
|
+ *
|
|
|
* @param requestJson
|
|
|
* @return
|
|
|
*/
|
|
@@ -1718,6 +1718,7 @@ public class BatchController {
|
|
|
|
|
|
/**
|
|
|
* 获取人群包
|
|
|
+ *
|
|
|
* @param accountId
|
|
|
* @return
|
|
|
*/
|
|
@@ -1749,6 +1750,7 @@ public class BatchController {
|
|
|
|
|
|
/**
|
|
|
* 获取创意
|
|
|
+ *
|
|
|
* @param accountId
|
|
|
* @param campaignId
|
|
|
* @return
|
|
@@ -1781,4 +1783,29 @@ public class BatchController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取当前组下创意数
|
|
|
+ *
|
|
|
+ * @param accountId
|
|
|
+ * @param unitId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/checkCreativeCount")
|
|
|
+ public Result checkCreativeCount(Long accountId, Long unitId) {
|
|
|
+ Result result = new Result<>();
|
|
|
+ try {
|
|
|
+ if (Check.isNull(unitId) || Check.isNull(accountId)) {
|
|
|
+ throw new Exception("必填参数不能为空");
|
|
|
+ }
|
|
|
+ Integer count = kuaiShouCreativeService.checkCreativeCount(accountId, unitId);
|
|
|
+ result.setResult(count);
|
|
|
+ result.setSuccess(true);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ result.setSuccess(false);
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|