|
@@ -604,7 +604,7 @@ public class KuaishouItemCollectSamplesController extends BaseController {
|
|
export.add(date.getString("promoterNickName"));
|
|
export.add(date.getString("promoterNickName"));
|
|
export.add(date.getString("status"));
|
|
export.add(date.getString("status"));
|
|
JSONObject copyJson = kuaishouItemCollectSamplesService.getCopyInfo(date.getLong("promoterId"));
|
|
JSONObject copyJson = kuaishouItemCollectSamplesService.getCopyInfo(date.getLong("promoterId"));
|
|
- if(!Check.isNull(copyJson)){
|
|
|
|
|
|
+ if (!Check.isNull(copyJson)) {
|
|
export.add(copyJson.getString("fansNumber"));
|
|
export.add(copyJson.getString("fansNumber"));
|
|
export.add(copyJson.getString("totalSale"));
|
|
export.add(copyJson.getString("totalSale"));
|
|
}
|
|
}
|
|
@@ -842,7 +842,7 @@ public class KuaishouItemCollectSamplesController extends BaseController {
|
|
throw new Exception("该商品已下架或失效");
|
|
throw new Exception("该商品已下架或失效");
|
|
}
|
|
}
|
|
|
|
|
|
- KuaishouPromoter onlyPromoterInfo = promoterService.getOnlyPromoterInfoByUserId(promoterId,userId);
|
|
|
|
|
|
+ KuaishouPromoter onlyPromoterInfo = promoterService.getOnlyPromoterInfoByUserId(promoterId, userId);
|
|
if (Check.isNull(onlyPromoterInfo)) {
|
|
if (Check.isNull(onlyPromoterInfo)) {
|
|
throw new Exception("该达人未录入");
|
|
throw new Exception("该达人未录入");
|
|
}
|
|
}
|
|
@@ -856,7 +856,7 @@ public class KuaishouItemCollectSamplesController extends BaseController {
|
|
}*/
|
|
}*/
|
|
returnJson.put("code", 0);
|
|
returnJson.put("code", 0);
|
|
returnJson.put("message", "校验通过");
|
|
returnJson.put("message", "校验通过");
|
|
- returnJson.put("id", onlyPromoterInfo.getId());
|
|
|
|
|
|
+ returnJson.put("id", onlyPromoterInfo.getId());
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
returnJson.put("code", 500);
|
|
returnJson.put("code", 500);
|
|
returnJson.put("message", e.getMessage());
|
|
returnJson.put("message", e.getMessage());
|
|
@@ -865,6 +865,14 @@ public class KuaishouItemCollectSamplesController extends BaseController {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 定时改变状态:
|
|
|
|
+ * 达人出单量超过50, 状态:待上传作业 -> 审核通过
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/updateStatusToApproved")
|
|
|
|
+ public void updateStatusToApproved() {
|
|
|
|
+ kuaishouItemCollectSamplesService.checkAndUpdateStatus();
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|