计算销售报表-物料产品库存统计表 同步

This commit is contained in:
king
2026-03-13 08:59:13 +08:00
parent bfc7d11131
commit bea29295a5
5 changed files with 306 additions and 0 deletions

View File

@@ -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 "*********** 生成物料产品库存统计表完成情况完成 ************";
}
}

View File

@@ -58,4 +58,6 @@ public interface IGrBiStLotService
* @return 结果 * @return 结果
*/ */
public int deleteGrBiStLotByID(Long ID); public int deleteGrBiStLotByID(Long ID);
void generateStLot(String dsErpBiData);
} }

View File

@@ -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<GrBiStLotMapper, GrBiStLot> implements IGrBiStLotService
{
/**
* 查询物料产品库存统计表
*
* @param ID 物料产品库存统计表主键
* @return 物料产品库存统计表
*/
@Override
public GrBiStLot selectGrBiStLotByID(Long ID)
{
return this.baseMapper.selectGrBiStLotByID(ID);
}
/**
* 查询物料产品库存统计表列表
*
* @param grBiStLot 物料产品库存统计表
* @return 物料产品库存统计表
*/
@Override
public List<GrBiStLot> 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) {
}
}

View File

@@ -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<GrBiStProductAvlMapper, GrBiStProductAvl> implements IGrBiStProductAvlService
{
/**
* 查询产品可销库存
*
* @param ID 产品可销库存主键
* @return 产品可销库存
*/
@Override
public GrBiStProductAvl selectGrBiStProductAvlByID(Long ID)
{
return this.baseMapper.selectGrBiStProductAvlByID(ID);
}
/**
* 查询产品可销库存列表
*
* @param grBiStProductAvl 产品可销库存
* @return 产品可销库存
*/
@Override
public List<GrBiStProductAvl> 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);
}
}

View File

@@ -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<GrBiStProductMapper, GrBiStProduct> implements IGrBiStProductService
{
/**
* 查询库存产品占比表
*
* @param ID 库存产品占比表主键
* @return 库存产品占比表
*/
@Override
public GrBiStProduct selectGrBiStProductByID(Long ID)
{
return this.baseMapper.selectGrBiStProductByID(ID);
}
/**
* 查询库存产品占比表列表
*
* @param grBiStProduct 库存产品占比表
* @return 库存产品占比表
*/
@Override
public List<GrBiStProduct> 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);
}
}