Browse Source

渠道号修改

zhaoxian 3 năm trước cách đây
mục cha
commit
b801f6257d

+ 2 - 2
jeecg-boot-module-system/src/main/java/cn/com/ctop/common/module/service/impl/UserAllocationServiceImpl.java

@@ -223,8 +223,8 @@ public class UserAllocationServiceImpl extends ServiceImpl<UserAllocationMapper,
     }
 
     @Override
-    public List<JSONObject> getUserIdListByProductId(Long productId,String userId) {
-        return userAllocationMapper.getUserIdListByProductId(productId,userId);
+    public List<JSONObject> getUserIdListByProductId(Long productId, String userId) {
+        return userAllocationMapper.getUserIdListByProductId(productId, userId);
     }
 
     @Override

+ 160 - 50
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/ai/entity/AiKuaishouAccountAutoStrategy.java

@@ -184,201 +184,311 @@ public class AiKuaishouAccountAutoStrategy {
     @Excel(name = "url类型", width = 15)
     @ApiModelProperty(value = "url类型")
     private Integer webUriType;
-    /**投放链接*/
+    /**
+     * 投放链接
+     */
     @Excel(name = "投放链接", width = 15)
     @ApiModelProperty(value = "投放链接")
     private String url;
-    /**调起链接*/
+    /**
+     * 调起链接
+     */
     @Excel(name = "调起链接", width = 15)
     @ApiModelProperty(value = "调起链接")
     private String schemaUri;
-    /**应用ID*/
+    /**
+     * 应用ID
+     */
     @Excel(name = "应用ID", width = 15)
     @ApiModelProperty(value = "应用ID")
     private Long appId;
-    /**创意展现方式 1-轮播  2-优选*/
+    /**
+     * 创意展现方式 1-轮播  2-优选
+     */
     @Excel(name = "创意展现方式 1-轮播  2-优选", width = 15)
     @ApiModelProperty(value = "创意展现方式 1-轮播  2-优选")
     private Integer showMode;
-    /**投放方式 1-加速投放  2-平滑投放 3-优先低成本*/
+    /**
+     * 投放方式 1-加速投放  2-平滑投放 3-优先低成本
+     */
     @Excel(name = "投放方式 1-加速投放  2-平滑投放 3-优先低成本", width = 15)
     @ApiModelProperty(value = "投放方式 1-加速投放  2-平滑投放 3-优先低成本")
     private Integer speed;
-    /**预约广告*/
+    /**
+     * 预约广告
+     */
     @Excel(name = "预约广告", width = 15)
     @ApiModelProperty(value = "预约广告")
     private Integer siteType;
-    /**游戏礼包码*/
+    /**
+     * 游戏礼包码
+     */
     @Excel(name = "游戏礼包码", width = 15)
     @ApiModelProperty(value = "游戏礼包码")
     private String giftData;
-    /**是否使用落地页前置功能*/
+    /**
+     * 是否使用落地页前置功能
+     */
     @Excel(name = "是否使用落地页前置功能", width = 15)
     @ApiModelProperty(value = "是否使用落地页前置功能")
     private Integer videoLandingPage;
-    /**智能定向*/
+    /**
+     * 智能定向
+     */
     @Excel(name = "智能定向", width = 15)
     @ApiModelProperty(value = "智能定向")
     private Integer autoTarget;
-    /**是否开启自动生成视频*/
+    /**
+     * 是否开启自动生成视频
+     */
     @Excel(name = "是否开启自动生成视频", width = 15)
     @ApiModelProperty(value = "是否开启自动生成视频")
     private Integer autoCreatePhoto;
-    /**创意名称*/
+    /**
+     * 创意名称
+     */
     @Excel(name = "创意名称", width = 15)
     @ApiModelProperty(value = "创意名称")
     private String creativeName;
-    /**行动号召按钮文案*/
+    /**
+     * 行动号召按钮文案
+     */
     @Excel(name = "行动号召按钮文案", width = 15)
     @ApiModelProperty(value = "行动号召按钮文案")
     private String actionBarText;
-    /**广告语*/
+    /**
+     * 广告语
+     */
     @Excel(name = "广告语", width = 15)
     @ApiModelProperty(value = "广告语")
     private String description;
-    /**便利贴创意短广告语*/
+    /**
+     * 便利贴创意短广告语
+     */
     @Excel(name = "便利贴创意短广告语", width = 15)
     @ApiModelProperty(value = "便利贴创意短广告语")
     private String shortSlogan;
-    /**封面广告语标题*/
+    /**
+     * 封面广告语标题
+     */
     @Excel(name = "封面广告语标题", width = 15)
     @ApiModelProperty(value = "封面广告语标题")
     private String stickerTitle;
-    /**贴纸样式类型*/
+    /**
+     * 贴纸样式类型
+     */
     @Excel(name = "贴纸样式类型", width = 15)
     @ApiModelProperty(value = "贴纸样式类型")
     private String overlayType;
-    /**广告标签*/
+    /**
+     * 广告标签
+     */
     @Excel(name = "广告标签", width = 15)
     @ApiModelProperty(value = "广告标签")
     private String exposeTag;
-    /**广告标签2期*/
+    /**
+     * 广告标签2期
+     */
     @Excel(name = "广告标签2期", width = 15)
     @ApiModelProperty(value = "广告标签2期")
     private String newExposeTag;
-    /**安卓下载中间页ID*/
+    /**
+     * 安卓下载中间页ID
+     */
     @Excel(name = "安卓下载中间页ID", width = 15)
     @ApiModelProperty(value = "安卓下载中间页ID")
     private String siteId;
-    /**第三方点击检测链接*/
+    /**
+     * 第三方点击检测链接
+     */
     @Excel(name = "第三方点击检测链接", width = 15)
     @ApiModelProperty(value = "第三方点击检测链接")
     private String clickTrackUrl;
-    /**第三方开始播放监测链接*/
+    /**
+     * 第三方开始播放监测链接
+     */
     @Excel(name = "第三方开始播放监测链接", width = 15)
     @ApiModelProperty(value = "第三方开始播放监测链接")
     private String impressionUrl;
-    /**第三方有效播放监测链接*/
+    /**
+     * 第三方有效播放监测链接
+     */
     @Excel(name = "第三方有效播放监测链接", width = 15)
     @ApiModelProperty(value = "第三方有效播放监测链接")
     private String adPhotoPlayedT3sUrl;
-    /**第三方点击按钮监测链接*/
+    /**
+     * 第三方点击按钮监测链接
+     */
     @Excel(name = "第三方点击按钮监测链接", width = 15)
     @ApiModelProperty(value = "第三方点击按钮监测链接")
     private String actionbarClickUrl;
-    /**创意分类*/
+    /**
+     * 创意分类
+     */
     @Excel(name = "创意分类", width = 15)
     @ApiModelProperty(value = "创意分类")
     private Integer creativeCategory;
-    /**创意标签*/
+    /**
+     * 创意标签
+     */
     @Excel(name = "创意标签", width = 15)
     @ApiModelProperty(value = "创意标签")
     private String creativeTag;
-    /**物料关联的封面个数*/
+    /**
+     * 物料关联的封面个数
+     */
     @Excel(name = "物料关联的封面个数", width = 15)
     @ApiModelProperty(value = "物料关联的封面个数")
     private Integer imageCnt;
-    /**程序化创意2.0-是否开启智能抽帧*/
+    /**
+     * 程序化创意2.0-是否开启智能抽帧
+     */
     @Excel(name = "程序化创意2.0-是否开启智能抽帧", width = 15)
     @ApiModelProperty(value = "程序化创意2.0-是否开启智能抽帧")
     private Integer smartCover;
-    /**程序化创意2.0-是否开启素材挖掘*/
+    /**
+     * 程序化创意2.0-是否开启素材挖掘
+     */
     @Excel(name = "程序化创意2.0-是否开启素材挖掘", width = 15)
     @ApiModelProperty(value = "程序化创意2.0-是否开启素材挖掘")
     private Integer assetMining;
-    /**单/多应用,1单应用,2多应用*/
+    /**
+     * 单/多应用,1单应用,2多应用
+     */
     @Excel(name = "单/多应用,1单应用,2多应用", width = 15)
     @ApiModelProperty(value = "单/多应用,1单应用,2多应用")
     private Integer singleAppid;
-    /**应用ID列表*/
+    /**
+     * 应用ID列表
+     */
     @Excel(name = "应用ID列表", width = 15)
     @ApiModelProperty(value = "应用ID列表")
     private String appIdArray;
-    /**是否通用监测链接*/
+    /**
+     * 是否通用监测链接
+     */
     @Excel(name = "是否通用监测链接", width = 15)
     @ApiModelProperty(value = "是否通用监测链接")
     private Integer generalTrack;
-    /**深度转化出价*/
+    /**
+     * 深度转化出价
+     */
     @Excel(name = "深度转化出价", width = 15)
     @ApiModelProperty(value = "深度转化出价")
     private BigDecimal deepConversionBid;
-    /**是否创建程序化创意*/
+    /**
+     * 是否创建程序化创意
+     */
     @Excel(name = "是否创建程序化创意", width = 15)
     @ApiModelProperty(value = "是否创建程序化创意")
     private Integer openProgramCreate;
-    /**操作人*/
+    /**
+     * 操作人
+     */
     @Excel(name = "操作人", width = 15)
     @ApiModelProperty(value = "操作人")
     private String userId;
-    /**素材来源*/
+    /**
+     * 素材来源
+     */
     @Excel(name = "素材来源", width = 15)
     @ApiModelProperty(value = "素材来源")
     private Integer channelType;
-    /**计划日预算*/
+    /**
+     * 计划日预算
+     */
     @Excel(name = "计划日预算", width = 15)
     @ApiModelProperty(value = "计划日预算")
     private BigDecimal campaignDayBudget;
-    /**组日预算*/
+    /**
+     * 组日预算
+     */
     @Excel(name = "组日预算", width = 15)
     @ApiModelProperty(value = "组日预算")
     private BigDecimal unitDayBudget;
-    /**分日预算*/
+    /**
+     * 分日预算
+     */
     @Excel(name = "分日预算", width = 15)
     @ApiModelProperty(value = "分日预算")
     private String campaignDayBudgetSchedule;
-    /**自定义组数量*/
+    /**
+     * 自定义计划数量
+     */
+    @Excel(name = "自定义组数量", width = 15)
+    @ApiModelProperty(value = "自定义组数量")
+    private Integer customPlanCnt;
+    /**
+     * 自定义组数量
+     */
     @Excel(name = "自定义组数量", width = 15)
     @ApiModelProperty(value = "自定义组数量")
     private Integer customUnitCnt;
-    /**程序化数量*/
+    /**
+     * 程序化计划数量
+     */
+    @Excel(name = "程序化数量", width = 15)
+    @ApiModelProperty(value = "程序化数量")
+    private Integer programPlanCnt;
+    /**
+     * 程序化组数量
+     */
     @Excel(name = "程序化数量", width = 15)
     @ApiModelProperty(value = "程序化数量")
     private Integer programUnitCnt;
-    /**素材名称关键字*/
+    /**
+     * 素材名称关键字
+     */
     @Excel(name = "素材名称关键字", width = 15)
     @ApiModelProperty(value = "素材名称关键字")
     private String materialKeyword;
-    /**是否多应用多出价 0 否 1 是*/
+    /**
+     * 是否多应用多出价 0 否 1 是
+     */
     @Excel(name = "是否多应用多出价 0 否 1 是", width = 15)
     @ApiModelProperty(value = "是否多应用多出价 0 否 1 是")
     private Integer multipleBids;
-    /**渠道号使用层级*/
+    /**
+     * 渠道号使用层级
+     */
     @Excel(name = "渠道号使用层级", width = 15)
     @ApiModelProperty(value = "渠道号使用层级")
     private String usageLevel;
-    /**是否使用渠道号0不使用,1使用*/
+    /**
+     * 是否使用渠道号0不使用,1使用
+     */
     @Excel(name = "是否使用渠道号0不使用,1使用", width = 15)
     @ApiModelProperty(value = "是否使用渠道号0不使用,1使用")
     private Integer useChannel;
-    /**1 定向匹配。2素材匹配*/
+    /**
+     * 1 定向匹配。2素材匹配
+     */
     @Excel(name = "1 定向匹配。2素材匹配", width = 15)
     @ApiModelProperty(value = "1 定向匹配。2素材匹配")
     private Integer matchType;
-    /**本地定向集*/
+    /**
+     * 本地定向集
+     */
     @Excel(name = "本地定向集", width = 15)
     @ApiModelProperty(value = "本地定向集")
     private String autoTargetArray;
-    /**素材来源 1-上新素材,2-高质量素材,3-遗漏素材,4-历史打捞*/
+    /**
+     * 素材来源 1-上新素材,2-高质量素材,3-遗漏素材,4-历史打捞
+     */
     @Excel(name = "素材来源 1-上新素材,2-高质量素材,3-遗漏素材,4-历史打捞", width = 15)
     @ApiModelProperty(value = "素材来源 1-上新素材,2-高质量素材,3-遗漏素材,4-历史打捞")
     private String sourceMaterial;
-    /**创建时间*/
+    /**
+     * 创建时间
+     */
     @ApiModelProperty(value = "创建时间")
     private Date createTime;
-    /**updateTime*/
+    /**
+     * updateTime
+     */
     @ApiModelProperty(value = "updateTime")
     private Date updateTime;
-    
+
     @TableField(exist = false)
     private String authName;
 }

+ 0 - 4
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/channel/entity/KuaishouChannel.java

@@ -87,10 +87,6 @@ public class KuaishouChannel {
      * 使用范围,1账户,2项目
      */
     private Integer usageRange;
-    /**
-     * 渠道号锁 0 不可用,1可用
-     */
-    private Integer channelLock;
 
     /**
      * 创建人

+ 0 - 5
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/channel/service/impl/KuaishouChannelServiceImpl.java

@@ -1036,7 +1036,6 @@ public class KuaishouChannelServiceImpl extends ServiceImpl<KuaishouChannelMappe
             KuaishouChannel one = this.getOne(queryWrapper);
             if (!Check.isNull(one)) {
                 one.setUpdateTime(new Date());
-                one.setChannelLock(1);
                 if (0 == state) {
                     this.saveOrUpdate(one);
                 } else {
@@ -1263,12 +1262,10 @@ public class KuaishouChannelServiceImpl extends ServiceImpl<KuaishouChannelMappe
                         } else {
                             channelRel.setAppId(channel.getAppId());
                             channelRelService.saveOrUpdate(channelRel);
-                            channel.setChannelLock(0);
                             this.saveOrUpdate(channel);
                             return Result.ok(channel);
                         }
                     } else {
-                        channel.setChannelLock(0);
                         this.saveOrUpdate(channel);
                         channel.setAppId(channelRel.getAppId());
                         return Result.ok(channel);
@@ -1332,12 +1329,10 @@ public class KuaishouChannelServiceImpl extends ServiceImpl<KuaishouChannelMappe
                         } else {
                             channelRel.setAppId(channel.getAppId());
                             channelRelService.saveOrUpdate(channelRel);
-                            channel.setChannelLock(0);
                             this.saveOrUpdate(channel);
                             return Result.ok(channel);
                         }
                     } else {
-                        channel.setChannelLock(0);
                         this.saveOrUpdate(channel);
                         channel.setAppId(channelRel.getAppId());
                         return Result.ok(channel);