whycxzp
2022-09-13 3948741c3bb65c45ee46238c8a5cab06c0d95905
更新对比
2个文件已修改
3 ■■■■ 已修改文件
src/main/java/com/whyc/service/ProductBomHistoryService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/ProductBomMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/ProductBomHistoryService.java
@@ -461,7 +461,7 @@
        List<ProductBom> deleteList = new LinkedList<>();
        //查找到基准产品
        if(baseProduct == null){ //查找上传的产品最新标准版本
        if(baseProduct == null){ //查找上传的现有产品表内未锁定的版本
            baseProductBomList = bomService.getEnabledBomListByParentCodeAndCustomCode(product.getParentCode(),"");
        }else{ //根据baseProduct的code和custom_code
            baseProductBomList = bomService.getEnabledBomListByParentCodeAndCustomCode(baseProduct.getParentCode(),baseProduct.getCustomCode());
src/main/resources/mapper/ProductBomMapper.xml
@@ -200,6 +200,7 @@
        where p.id = b.product_id
        and b.material_id = m.id
        and p.parent_code = #{parentCode} and p.custom_code = #{customCode}
        and p.version!=-1
    </select>
    <insert id="insertBomSelectBomH">
        insert into db_doc.tb_product_bom(product_id,material_id,sub_version,quantity)