Implement product Excel file import functionality, including new service methods for handling Excel attachments. Update the ProductController to list imported Excel files by product code. Enhance BmsProduct and related entities to store references to the imported Excel files. Update front-end components to support displaying and managing Excel file attachments for products.

This commit is contained in:
wuweihua
2026-10-09 16:46:52 +08:00
parent 853187ad58
commit 533d360cdc
21 changed files with 589 additions and 31 deletions
@@ -0,0 +1,24 @@
package com.bms.price.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.bms.price.domain.PrcPriceExcelFile;
/**
* Import quote Excel attachment mapper
*/
public interface PrcPriceExcelFileMapper
{
public PrcPriceExcelFile selectPrcPriceExcelFileById(Long pefId);
public List<PrcPriceExcelFile> selectPrcPriceExcelFileList(PrcPriceExcelFile query);
/** Distinct PRODUCT excel files linked by product.pef_id for this product_code */
public List<PrcPriceExcelFile> selectByProductCode(@Param("productCode") String productCode);
public int insertPrcPriceExcelFile(PrcPriceExcelFile row);
public int updatePrcPriceExcelFile(PrcPriceExcelFile row);
public int deletePrcPriceExcelFileByIds(Long[] pefIds);
}
@@ -34,4 +34,8 @@ public interface PrcPriceSetProductMapper
/** Bind detail.psp_id from set product by psv + product_code. */
public int bindDetailPspByPsvId(@Param("psvId") Long psvId);
/** Stamp Excel attachment id on set products under this version (optional code filter). */
public int updatePefIdByPsvId(@Param("psvId") Long psvId, @Param("pefId") Long pefId,
@Param("productCodes") List<String> productCodes);
}