diff --git a/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapBaseFileMapper.java b/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapBaseFileMapper.java new file mode 100644 index 00000000..782c828a --- /dev/null +++ b/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapBaseFileMapper.java @@ -0,0 +1,71 @@ +package com.op.sap.mapper; + +import com.op.common.core.domain.BaseFileData; +import com.op.sap.domain.SapBaseFile; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 附件Mapper接口 + * + * @author Open Platform + * @date 2023-07-10 + */ +@Mapper +public interface SapBaseFileMapper { + /** + * 查询附件 + * + * @param fileId 附件主键 + * @return 附件 + */ + public SapBaseFile selectBaseFileByFileId(String fileId); + + /** + * 查询附件列表 + * + * @param baseFile 附件 + * @return 附件集合 + */ + public List selectBaseFileList(SapBaseFile baseFile); + + /** + * 新增附件 + * + * @param baseFile 附件 + * @return 结果 + */ + public int insertBaseFile(SapBaseFile baseFile); + + /** + * 修改附件 + * + * @param baseFile 附件 + * @return 结果 + */ + public int updateBaseFile(SapBaseFile baseFile); + + /** + * 删除附件 + * + * @param fileId 附件主键 + * @return 结果 + */ + public int deleteBaseFileByFileId(String fileId); + + /** + * 批量删除附件 + * + * @param fileIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBaseFileByFileIds(String[] fileIds); + + Boolean insertBaseFileBatch(@Param("baseFiles") List baseFiles); + + List getBaseFileBatch(String processId); + + void deleteBaseFileBySourceId(String processId); +} diff --git a/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapBaseProductMapper.java b/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapBaseProductMapper.java new file mode 100644 index 00000000..277f4581 --- /dev/null +++ b/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapBaseProductMapper.java @@ -0,0 +1,67 @@ +package com.op.sap.mapper; + + + +import com.op.sap.domain.SapBaseProduct; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +/** + * 物料信息Mapper接口 + * + * @author Open Platform + * @date 2023-07-18 + */ +@Mapper +public interface SapBaseProductMapper { + /** + * 查询物料信息 + * + * @param productId 物料信息主键 + * @return 物料信息 + */ + public SapBaseProduct selectBaseProductByProductId(String productId); + + /** + * 查询物料信息列表 + * + * @param baseProduct 物料信息 + * @return 物料信息集合 + */ + public List selectBaseProductList(SapBaseProduct baseProduct); + + /** + * 新增物料信息 + * + * @param baseProduct 物料信息 + * @return 结果 + */ + public int insertBaseProduct(SapBaseProduct baseProduct); + + /** + * 修改物料信息 + * + * @param baseProduct 物料信息 + * @return 结果 + */ + public int updateBaseProduct(SapBaseProduct baseProduct); + + /** + * 删除物料信息 + * + * @param productId 物料信息主键 + * @return 结果 + */ + public int deleteBaseProductByProductId(String productId); + + /** + * 批量删除物料信息 + * + * @param productIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBaseProductByProductIds(String[] productIds); + + public String selectBaseProductIDByProductCode(String productCode); +} diff --git a/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapProProcessContentMapper.java b/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapProProcessContentMapper.java new file mode 100644 index 00000000..5abab809 --- /dev/null +++ b/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapProProcessContentMapper.java @@ -0,0 +1,65 @@ +package com.op.sap.mapper; + +import com.op.sap.domain.SapProProcessContent; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + + +/** + * 生产工序内容Mapper接口 + * + * @author yinjinlu + * @date 2022-05-12 + */ +@Mapper +public interface SapProProcessContentMapper +{ + /** + * 查询生产工序内容 + * + * @param contentId 生产工序内容主键 + * @return 生产工序内容 + */ + public SapProProcessContent selectProProcessContentByContentId(String contentId); + + /** + * 查询生产工序内容列表 + * + * @param proProcessContent 生产工序内容 + * @return 生产工序内容集合 + */ + public List selectProProcessContentList(SapProProcessContent proProcessContent); + + /** + * 新增生产工序内容 + * + * @param proProcessContent 生产工序内容 + * @return 结果 + */ + public int insertProProcessContent(SapProProcessContent proProcessContent); + + /** + * 修改生产工序内容 + * + * @param proProcessContent 生产工序内容 + * @return 结果 + */ + public int updateProProcessContent(SapProProcessContent proProcessContent); + + /** + * 删除生产工序内容 + * + * @param contentId 生产工序内容主键 + * @return 结果 + */ + public int deleteProProcessContentByContentId(String contentId); + + /** + * 批量删除生产工序内容 + * + * @param contentIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteProProcessContentByContentIds(String[] contentIds); +} diff --git a/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapProProcessMapper.java b/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapProProcessMapper.java new file mode 100644 index 00000000..166b59af --- /dev/null +++ b/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapProProcessMapper.java @@ -0,0 +1,72 @@ +package com.op.sap.mapper; + +import com.op.sap.domain.SapProProcess; + +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + + +/** + * 生产工序Mapper接口 + * + * @author yinjinlu + * @date 2022-05-11 + */ +@Mapper +public interface SapProProcessMapper +{ + /** + * 查询生产工序 + * + * @param processId 生产工序主键 + * @return 生产工序 + */ + public SapProProcess selectProProcessByProcessId(String processId); + + /** + * 查询生产工序列表 + * + * @param proProcess 生产工序 + * @return 生产工序集合 + */ + public List selectProProcessList(SapProProcess proProcess); + + public SapProProcess checkProcessCodeUnique(SapProProcess proProcess); + public SapProProcess checkProcessNameUnique(SapProProcess proProcess); + + + /** + * 新增生产工序 + * + * @param proProcess 生产工序 + * @return 结果 + */ + public int insertProProcess(SapProProcess proProcess); + + /** + * 修改生产工序 + * + * @param proProcess 生产工序 + * @return 结果 + */ + public int updateProProcess(SapProProcess proProcess); + + /** + * 删除生产工序 + * + * @param processId 生产工序主键 + * @return 结果 + */ + public int deleteProProcessByProcessId(String processId); + + /** + * 批量删除生产工序 + * + * @param processIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteProProcessByProcessIds(String[] processIds); + + int selectProProcessByProcessName(String processName); +} diff --git a/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapProRouteMapper.java b/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapProRouteMapper.java new file mode 100644 index 00000000..2e1fd4ae --- /dev/null +++ b/op-modules/op-sap/src/main/java/com/op/sap/mapper/SapProRouteMapper.java @@ -0,0 +1,84 @@ +package com.op.sap.mapper; + +import com.op.sap.domain.SapProRoute; + +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + + +/** + * 工艺路线Mapper接口 + * + * @author yinjinlu + * @date 2022-05-12 + */ +@Mapper +public interface SapProRouteMapper { + /** + * 查询工艺路线 + * + * @param routeId 工艺路线主键 + * @return 工艺路线 + */ + public SapProRoute selectProRouteByRouteId(String routeId); + + /** + * 查询工艺路线列表 + * + * @param proRoute 工艺路线 + * @return 工艺路线集合 + */ + public List selectProRouteList(SapProRoute proRoute); + + /** + * 根据物料查找生效的工艺路线 + * + * @param itemId + * @return + */ + public SapProRoute getRouteByProductId(String itemId); + + public SapProRoute checkRouteCodeUnique(SapProRoute proRoute); + + /** + * 新增工艺路线 + * + * @param proRoute 工艺路线 + * @return 结果 + */ + public int insertProRoute(SapProRoute proRoute); + + /** + * 修改工艺路线 + * + * @param proRoute 工艺路线 + * @return 结果 + */ + public int updateProRoute(SapProRoute proRoute); + + /** + * 删除工艺路线 + * + * @param routeId 工艺路线主键 + * @return 结果 + */ + public int deleteProRouteByRouteId(String routeId); + + /** + * 批量删除工艺路线 + * + * @param routeIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteProRouteByRouteIds(String[] routeIds); + + /** + * 查询所有工艺信息list(不分页) + * + * @return + */ + List selectAllRoute(); + int selectProRouteByRouteCode(String routeCode); + +}