|
@@ -86,7 +86,7 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
|
public Boolean deleteProduct(UpdateProductVO updateProductVO) {
|
|
|
LantoneProduct lantoneProduct = getById(updateProductVO.getId());
|
|
|
OpenedProducts openedProducts = new OpenedProducts();
|
|
|
- openedProducts.setId(updateProductVO.getId());
|
|
|
+ openedProducts.setProductId(updateProductVO.getId());
|
|
|
openedProducts.setServiceStatus(StatusEnum.Enable.getKey());
|
|
|
if (openedProductsFacade.getOpendById(openedProducts).size() != 0) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
@@ -94,7 +94,7 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
|
}
|
|
|
lantoneProduct.setModifier(UserUtils.getCurrentPrincipleID());
|
|
|
lantoneProduct.setGmtModified(DateUtil.now());
|
|
|
- lantoneProduct.setIsDeleted(IsDeleteEnum.Y.getName());
|
|
|
+ lantoneProduct.setIsDeleted(IsDeleteEnum.Y.getKey());
|
|
|
if (!updateById(lantoneProduct)) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
"产品删除失败");
|