瀏覽代碼

managew 推广产品细节完善

master
chenchaod 1 月之前
父節點
當前提交
e1fdebe878

+ 2
- 1
zhywpt-app-managew/src/main/java/cn/com/taiji/managew/manager/product/PromotionManagerImpl.java 查看文件

@@ -93,6 +93,7 @@ public class PromotionManagerImpl extends AbstractManagewManager implements Prom
IssueProductPromotion promotion = copyProperties(req, new IssueProductPromotion());
List<String> collect = req.getIssueScope().stream().map(m -> String.join(StrUtil.COMMA, m)).collect(Collectors.toList());
promotion.setIssueScope(String.join(StrUtil.COLON, collect));
promotion.setAgencyId(String.join(StrUtil.COMMA, req.getAgencyIds()));
Staff staff = staffRepo.findByStaffId(req.getStaffId());
promotion.setOperateUserId(staff.getOpenId());
promotion.setOperateUserName(staff.getStaffName());
@@ -331,7 +332,7 @@ public class PromotionManagerImpl extends AbstractManagewManager implements Prom
IssueProductPromotion promotion = issueProductPromotionRepo.findById(req.getId()).orElse(null);
if (promotion == null) throw new ManagerException("要审核的推广产品不存在");
IssueProduct product = issueProductRepo.findByReleaseId(promotion.getReleaseId());
if (product.getExamine()!=1 || EnableStatus.DISABLE.equals(product.getStatus())) {
if (product.getExamine()!=0 || EnableStatus.DISABLE.equals(product.getStatus())) {
throw new ManagerException("发行产品未上架,不可审核推广");
}
promotion.setExamine(req.getExamine());

Loading…
取消
儲存