虚拟商品设置物流模版问题兼容处理
This commit is contained in:
parent
28d57dff72
commit
b61cfe8b6b
@ -574,7 +574,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|||||||
break;
|
break;
|
||||||
case "VIRTUAL_GOODS":
|
case "VIRTUAL_GOODS":
|
||||||
if (!"0".equals(goods.getTemplateId())) {
|
if (!"0".equals(goods.getTemplateId())) {
|
||||||
throw new ServiceException(ResultCode.VIRTUAL_GOODS_NOT_NEED_TEMP);
|
goods.setTemplateId("0");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user