Files
klp-oa/klp-wms/src/main/java/com/klp/service/IWmsCoilPendingActionService.java
Joshi 31bbdedb8f feat(wms): 获取消耗钢卷接口,用作报表或者导出
- 在IWmsCoilPendingActionService中新增queryActionIdCoilIdList方法
- 在WmsCoilPendingActionController中新增/actionCoilIdList端点
- 在WmsCoilPendingActionMapper中新增selectActionIdCoilIdList查询方法
- 在WmsCoilPendingActionMapper.xml中添加对应的SQL查询语句
- 在WmsCoilPendingActionServiceImpl中实现查询逻辑
- 创建WmsCoilPendingActionIdCoilVo数据传输对象,仅包含actionId和coilId字段
2026-03-25 14:36:53 +08:00

96 lines
2.5 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.klp.service;
import com.klp.domain.vo.WmsCoilPendingActionVo;
import com.klp.domain.vo.WmsCoilPendingActionIdCoilVo;
import com.klp.domain.bo.WmsCoilPendingActionBo;
import com.klp.common.core.domain.PageQuery;
import com.klp.common.core.page.TableDataInfo;
import java.util.Collection;
import java.util.List;
import java.util.Date;
import com.klp.domain.vo.TheoryCycleRegressionResultVo;
/**
* 钢卷待操作Service接口
*
* @author Joshi
* @date 2025-11-03
*/
public interface IWmsCoilPendingActionService {
/**
* 查询钢卷待操作
*/
WmsCoilPendingActionVo queryById(Long actionId);
/**
* 查询钢卷待操作列表
*/
TableDataInfo<WmsCoilPendingActionVo> queryPageList(WmsCoilPendingActionBo bo, PageQuery pageQuery);
/**
* 查询钢卷待操作列表
*/
List<WmsCoilPendingActionVo> queryList(WmsCoilPendingActionBo bo);
/**
* 查询钢卷待操作:仅返回 actionId 与 coilId 列表
*/
List<WmsCoilPendingActionIdCoilVo> queryActionIdCoilIdList(WmsCoilPendingActionBo bo);
/**
* 新增钢卷待操作
*/
Boolean insertByBo(WmsCoilPendingActionBo bo);
/**
* 修改钢卷待操作
*/
Boolean updateByBo(WmsCoilPendingActionBo bo);
/**
* 校验并批量删除钢卷待操作信息
*/
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
/**
* 更新操作状态
*/
Boolean updateStatus(Long actionId, Integer status);
/**
* 开始处理操作
*/
Boolean startProcess(Long actionId);
/**
* 完成操作
*/
Boolean completeAction(Long actionId);
/**
* 取消操作
*/
Boolean cancelAction(Long actionId);
/**
* 还原操作(将已删除的记录恢复为正常状态)
*/
Boolean restoreAction(Long actionId);
/**
* 计算理论节拍线性回归默认近6个月同时返回散点用于前端绘图并将结果缓存。
*/
TheoryCycleRegressionResultVo calcTheoryCycleRegression(Date startTime, Date endTime);
/**
* 计算理论节拍线性回归(可选择是否返回散点;并对散点数量进行上限控制)。
*
* @param includePoints 是否返回散点 points默认 false避免结果过大
* @param maxPoints 最大散点数includePoints=true 时生效)
*/
TheoryCycleRegressionResultVo calcTheoryCycleRegression(Date startTime, Date endTime, Boolean includePoints, Integer maxPoints);
}