lxw
2023-10-20 7256cfae5c075ee4b353a96d864963373e05946c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.whyc.mapper;
 
import com.whyc.pojo.MaterialProductApproving;
import com.whyc.pojo.MaterialProductHistory;
import com.whyc.pojo.ProductBom;
 
import java.util.List;
 
public interface MaterialProductHistoryMapper extends CustomMapper<MaterialProductHistory>{
    void updateVersionBatch(List<MaterialProductHistory> cphList);
 
    List<MaterialProductHistory> getLatestExistListByMaterialId(Integer materialId);
 
    void updateVersionSubtractBatch(List<MaterialProductApproving> removedList);
 
    List<MaterialProductHistory> getListWithMaterialInfo(List<MaterialProductHistory> mpList);
 
    List<MaterialProductHistory> getListByParentCodeAndCustomCodeAndSubMaterialIdAndVersion(String parentCode, String customCode, List<ProductBom> bomList, int currentVersion);
}