diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateStLotJob.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateStLotJob.java new file mode 100644 index 0000000..b32e03b --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/config/job/GenerateStLotJob.java @@ -0,0 +1,29 @@ +package com.lideeyunji.core.framework.config.job; + +import com.lideeyunji.core.framework.service.IGrBiFsBusinessRealService; +import com.lideeyunji.core.framework.service.IGrBiStLotService; +import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant; +import com.lideeyunji.tool.framework.quartz.core.handler.JobHandler; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; + +/** + * oracle gr_bi_st_lot -> mysql gr_bi_st_lot + */ +@Slf4j +@Component("generateStLotJob") +public class GenerateStLotJob implements JobHandler { + + @Resource + private IGrBiStLotService grBiFsStLotService; + + @Override + public String execute(String param) throws Exception { + log.info("*********** 开始生成物料产品库存统计表完成情况 ************"); + grBiFsStLotService.generateStLot(lideeYunJiBaseConstant.DS_ERP_BI_DATA); + log.info("*********** 生成物料产品库存统计表完成情况完成 ************"); + return "*********** 生成物料产品库存统计表完成情况完成 ************"; + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiStLotService.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiStLotService.java index d1b33cf..bc6dce1 100644 --- a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiStLotService.java +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/IGrBiStLotService.java @@ -58,4 +58,6 @@ public interface IGrBiStLotService * @return 结果 */ public int deleteGrBiStLotByID(Long ID); + + void generateStLot(String dsErpBiData); } diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStLotServiceImpl.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStLotServiceImpl.java new file mode 100644 index 0000000..2807452 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStLotServiceImpl.java @@ -0,0 +1,95 @@ +package com.lideeyunji.core.framework.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import com.lideeyunji.core.framework.mapper.GrBiStLotMapper; +import com.lideeyunji.core.framework.entity.GrBiStLot; +import com.lideeyunji.core.framework.service.IGrBiStLotService; + +/** + * 物料产品库存统计表Service业务层处理 + * + * @author king + * @date 2026-03-12 + */ +@Service +public class GrBiStLotServiceImpl extends ServiceImpl implements IGrBiStLotService +{ + /** + * 查询物料产品库存统计表 + * + * @param ID 物料产品库存统计表主键 + * @return 物料产品库存统计表 + */ + @Override + public GrBiStLot selectGrBiStLotByID(Long ID) + { + return this.baseMapper.selectGrBiStLotByID(ID); + } + + /** + * 查询物料产品库存统计表列表 + * + * @param grBiStLot 物料产品库存统计表 + * @return 物料产品库存统计表 + */ + @Override + public List selectGrBiStLotList(GrBiStLot grBiStLot) + { + return this.baseMapper.selectGrBiStLotList(grBiStLot); + } + + /** + * 新增物料产品库存统计表 + * + * @param grBiStLot 物料产品库存统计表 + * @return 结果 + */ + @Override + public int insertGrBiStLot(GrBiStLot grBiStLot) + { + return this.baseMapper.insertGrBiStLot(grBiStLot); + } + + /** + * 修改物料产品库存统计表 + * + * @param grBiStLot 物料产品库存统计表 + * @return 结果 + */ + @Override + public int updateGrBiStLot(GrBiStLot grBiStLot) + { + return this.baseMapper.updateGrBiStLot(grBiStLot); + } + + /** + * 批量删除物料产品库存统计表 + * + * @param IDs 需要删除的物料产品库存统计表主键 + * @return 结果 + */ + @Override + public int deleteGrBiStLotByIDs(Long[] IDs) + { + return this.baseMapper.deleteGrBiStLotByIDs(IDs); + } + + /** + * 删除物料产品库存统计表信息 + * + * @param ID 物料产品库存统计表主键 + * @return 结果 + */ + @Override + public int deleteGrBiStLotByID(Long ID) + { + return this.baseMapper.deleteGrBiStLotByID(ID); + } + + @Override + public void generateStLot(String dsErpBiData) { + + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStProductAvlServiceImpl.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStProductAvlServiceImpl.java new file mode 100644 index 0000000..cb6cd71 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStProductAvlServiceImpl.java @@ -0,0 +1,90 @@ +package com.lideeyunji.core.framework.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import com.lideeyunji.core.framework.mapper.GrBiStProductAvlMapper; +import com.lideeyunji.core.framework.entity.GrBiStProductAvl; +import com.lideeyunji.core.framework.service.IGrBiStProductAvlService; + +/** + * 产品可销库存Service业务层处理 + * + * @author king + * @date 2026-03-12 + */ +@Service +public class GrBiStProductAvlServiceImpl extends ServiceImpl implements IGrBiStProductAvlService +{ + /** + * 查询产品可销库存 + * + * @param ID 产品可销库存主键 + * @return 产品可销库存 + */ + @Override + public GrBiStProductAvl selectGrBiStProductAvlByID(Long ID) + { + return this.baseMapper.selectGrBiStProductAvlByID(ID); + } + + /** + * 查询产品可销库存列表 + * + * @param grBiStProductAvl 产品可销库存 + * @return 产品可销库存 + */ + @Override + public List selectGrBiStProductAvlList(GrBiStProductAvl grBiStProductAvl) + { + return this.baseMapper.selectGrBiStProductAvlList(grBiStProductAvl); + } + + /** + * 新增产品可销库存 + * + * @param grBiStProductAvl 产品可销库存 + * @return 结果 + */ + @Override + public int insertGrBiStProductAvl(GrBiStProductAvl grBiStProductAvl) + { + return this.baseMapper.insertGrBiStProductAvl(grBiStProductAvl); + } + + /** + * 修改产品可销库存 + * + * @param grBiStProductAvl 产品可销库存 + * @return 结果 + */ + @Override + public int updateGrBiStProductAvl(GrBiStProductAvl grBiStProductAvl) + { + return this.baseMapper.updateGrBiStProductAvl(grBiStProductAvl); + } + + /** + * 批量删除产品可销库存 + * + * @param IDs 需要删除的产品可销库存主键 + * @return 结果 + */ + @Override + public int deleteGrBiStProductAvlByIDs(Long[] IDs) + { + return this.baseMapper.deleteGrBiStProductAvlByIDs(IDs); + } + + /** + * 删除产品可销库存信息 + * + * @param ID 产品可销库存主键 + * @return 结果 + */ + @Override + public int deleteGrBiStProductAvlByID(Long ID) + { + return this.baseMapper.deleteGrBiStProductAvlByID(ID); + } +} diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStProductServiceImpl.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStProductServiceImpl.java new file mode 100644 index 0000000..f6c9c07 --- /dev/null +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/service/impl/GrBiStProductServiceImpl.java @@ -0,0 +1,90 @@ +package com.lideeyunji.core.framework.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import com.lideeyunji.core.framework.mapper.GrBiStProductMapper; +import com.lideeyunji.core.framework.entity.GrBiStProduct; +import com.lideeyunji.core.framework.service.IGrBiStProductService; + +/** + * 库存产品占比表Service业务层处理 + * + * @author king + * @date 2026-03-12 + */ +@Service +public class GrBiStProductServiceImpl extends ServiceImpl implements IGrBiStProductService +{ + /** + * 查询库存产品占比表 + * + * @param ID 库存产品占比表主键 + * @return 库存产品占比表 + */ + @Override + public GrBiStProduct selectGrBiStProductByID(Long ID) + { + return this.baseMapper.selectGrBiStProductByID(ID); + } + + /** + * 查询库存产品占比表列表 + * + * @param grBiStProduct 库存产品占比表 + * @return 库存产品占比表 + */ + @Override + public List selectGrBiStProductList(GrBiStProduct grBiStProduct) + { + return this.baseMapper.selectGrBiStProductList(grBiStProduct); + } + + /** + * 新增库存产品占比表 + * + * @param grBiStProduct 库存产品占比表 + * @return 结果 + */ + @Override + public int insertGrBiStProduct(GrBiStProduct grBiStProduct) + { + return this.baseMapper.insertGrBiStProduct(grBiStProduct); + } + + /** + * 修改库存产品占比表 + * + * @param grBiStProduct 库存产品占比表 + * @return 结果 + */ + @Override + public int updateGrBiStProduct(GrBiStProduct grBiStProduct) + { + return this.baseMapper.updateGrBiStProduct(grBiStProduct); + } + + /** + * 批量删除库存产品占比表 + * + * @param IDs 需要删除的库存产品占比表主键 + * @return 结果 + */ + @Override + public int deleteGrBiStProductByIDs(Long[] IDs) + { + return this.baseMapper.deleteGrBiStProductByIDs(IDs); + } + + /** + * 删除库存产品占比表信息 + * + * @param ID 库存产品占比表主键 + * @return 结果 + */ + @Override + public int deleteGrBiStProductByID(Long ID) + { + return this.baseMapper.deleteGrBiStProductByID(ID); + } +}