diff --git a/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapProRouteProcessMapper.java b/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapProRouteProcessMapper.java new file mode 100644 index 00000000..27093e89 --- /dev/null +++ b/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapProRouteProcessMapper.java @@ -0,0 +1,81 @@ +package com.op.sap.mapper; + +import com.op.sap.domain.SapProRouteProcess; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + + +/** + * 工艺组成Mapper接口 + * + * @author yinjinlu + * @date 2022-05-13 + */ +@Mapper +public interface SapProRouteProcessMapper +{ + /** + * 查询工艺组成 + * + * @param recordId 工艺组成主键 + * @return 工艺组成 + */ + public SapProRouteProcess selectProRouteProcessByRecordId(String recordId); + + /** + * 查询工艺组成列表 + * + * @param proRouteProcess 工艺组成 + * @return 工艺组成集合 + */ + public List selectProRouteProcessList(SapProRouteProcess proRouteProcess); + + public SapProRouteProcess checkOrderNumExists(SapProRouteProcess proRouteProcess); + public SapProRouteProcess checkProcessExists(SapProRouteProcess proRouteProcess); + public SapProRouteProcess checkUpdateFlagUnique(SapProRouteProcess proRouteProcess); + + public SapProRouteProcess findPreProcess(SapProRouteProcess proRouteProcess); + + public SapProRouteProcess findNextProcess(SapProRouteProcess proRouteProcess); + /** + * 新增工艺组成 + * + * @param proRouteProcess 工艺组成 + * @return 结果 + */ + public int insertProRouteProcess(SapProRouteProcess proRouteProcess); + + /** + * 修改工艺组成 + * + * @param proRouteProcess 工艺组成 + * @return 结果 + */ + public int updateProRouteProcess(SapProRouteProcess proRouteProcess); + + /** + * 删除工艺组成 + * + * @param recordId 工艺组成主键 + * @return 结果 + */ + public int deleteProRouteProcessByRecordId(String recordId); + + /** + * 批量删除工艺组成 + * + * @param recordIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteProRouteProcessByRecordIds(String[] recordIds); + + /** + * 根据工艺路线ID删除所有工序配置 + * @param routeId + * @return + */ + public int deleteByRouteId(String routeId); + + +} diff --git a/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapProRouteProductMapper.java b/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapProRouteProductMapper.java new file mode 100644 index 00000000..e8636708 --- /dev/null +++ b/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapProRouteProductMapper.java @@ -0,0 +1,69 @@ +package com.op.sap.mapper; + +import com.op.sap.domain.SapProRouteProduct; + +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +/** + * 工艺产品(物料)关联Mapper接口 + * + * @author Open Platform + * @date 2023-07-13 + */ +@Mapper +public interface SapProRouteProductMapper { + /** + * 查询工艺产品(物料)关联 + * + * @param recordId 工艺产品(物料)关联主键 + * @return 工艺产品(物料)关联 + */ + public SapProRouteProduct selectProRouteProductByRecordId(String recordId); + + /** + * 查询工艺产品(物料)关联列表 + * + * @param proRouteProduct 工艺产品(物料)关联 + * @return 工艺产品(物料)关联集合 + */ + public List selectProRouteProductList(SapProRouteProduct proRouteProduct); + + /** + * 新增工艺产品(物料)关联 + * + * @param proRouteProduct 工艺产品(物料)关联 + * @return 结果 + */ + public int insertProRouteProduct(SapProRouteProduct proRouteProduct); + + /** + * 修改工艺产品(物料)关联 + * + * @param proRouteProduct 工艺产品(物料)关联 + * @return 结果 + */ + public int updateProRouteProduct(SapProRouteProduct proRouteProduct); + + /** + * 删除工艺产品(物料)关联 + * + * @param recordId 工艺产品(物料)关联主键 + * @return 结果 + */ + public int deleteProRouteProductByRecordId(String recordId); + + /** + * 批量删除工艺产品(物料)关联 + * + * @param recordIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteProRouteProductByRecordIds(String[] recordIds); + + public List getRouteProdProductListUndo(SapProRouteProduct proRouteProduct); + List getRouteProdProductListDo(SapProRouteProduct proRouteProduct); + + void deleteByRouteId(SapProRouteProduct proRouteProduct); +}