| @@ -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()); | |||