| | |
| | | import com.oying.modules.pc.product.events.ProductAuditVerdictEvent; |
| | | import com.oying.modules.pc.product.mapper.ProductAuditMapper; |
| | | import com.oying.modules.pc.product.service.ProductAuditService; |
| | | import com.oying.modules.pc.store.domain.StoreAudit; |
| | | import com.oying.utils.FileUtil; |
| | | import com.oying.utils.PageResult; |
| | | import com.oying.utils.PageUtil; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public boolean hasPendingByStoreId(Long productId) { |
| | | LambdaQueryWrapper<ProductAudit> wrapper = new LambdaQueryWrapper<ProductAudit>() |
| | | .eq(ProductAudit::getProductId, productId) |
| | | .eq(ProductAudit::getStatus, AuditStatusEnum.PENDING.getValue()); |
| | | return productAuditMapper.selectCount(wrapper) > 0; |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void create(ProductAudit resources) { |
| | | productAuditMapper.insert(resources); |