mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2024-12-27 18:34:28 +08:00
feat: 优惠券删除多余代码
This commit is contained in:
parent
e81d7196a8
commit
61d37d3b42
1 changed files with 0 additions and 3 deletions
|
@ -57,9 +57,6 @@ public class CouponServiceImpl extends SkyeyeBusinessServiceImpl<CouponDao, Coup
|
|||
|
||||
@Override
|
||||
public void validatorEntity(Coupon coupon) {
|
||||
if (StrUtil.isNotEmpty(coupon.getId()) && StrUtil.isNotEmpty(coupon.getTemplateId())) {
|
||||
throw new CustomException("更新操作不可上传模板id(templateId)");
|
||||
}
|
||||
// 模板新增
|
||||
if (StrUtil.isEmpty(coupon.getId()) && StrUtil.isEmpty(coupon.getTemplateId()) && // 主键和模板id为空时,即为模板
|
||||
coupon.getProductScope() != PromotionMaterialScope.ALL.getKey() && // 判断适用商品类型
|
||||
|
|
Loading…
Reference in a new issue