瀏覽代碼

修改名称

yumeng 5 年之前
父節點
當前提交
57f3de1eeb

+ 10 - 2
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/controller/BatchController.java

@@ -440,7 +440,7 @@ public class BatchController {
      * 获取人群包接口
      *
      * @param accountId
-     * @return
+     * @returnBatch
      */
     @GetMapping(value = "/getPopulationList")
     public Result<JSONArray> getAppList(Long accountId) {
@@ -1559,7 +1559,15 @@ public class BatchController {
                 if (Check.isNull(group)) {
                     continue;
                 }
-                String unitName = group.getUnitName();
+                String unitNameStr = group.getUnitName();
+                String unitName;
+
+                if (unitNameStr.contains("#")) {
+                    int lastIndexOf = unitNameStr.lastIndexOf("#");
+                    unitName = unitNameStr.substring(0, lastIndexOf);
+                } else {
+                    unitName = unitNameStr;
+                }
                 group.setUnitName(unitName + RandomUtil.verifyCode());
                 JSONObject unitJson = batchService.copyUnit(group, copyToCampaignId);
                 if (!Check.isNull(unitJson)) {