feat(wms): 添加历史钢卷待操作记录查询功能
- 在 IWmsCoilPendingActionService 中新增 queryStaleActionPageList 方法 - 在 WmsCoilPendingActionController 中添加 staleList 接口 - 在 WmsCoilPendingActionMapper 中增加 selectStaleActionVoPagePlus 方法 - 在 WmsCoilPendingActionMapper.xml 中实现对应的 SQL 查询 - 在 WmsCoilPendingActionServiceImpl 中实现查询逻辑 - 查询关联钢卷已是历史钢卷且操作未完成的记录,支持分页展示
This commit is contained in:
@@ -26,6 +26,7 @@ import com.klp.system.service.ISysUserService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.data.redis.core.StringRedisTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.RoundingMode;
|
||||
@@ -167,6 +168,19 @@ public class WmsCoilPendingActionServiceImpl implements IWmsCoilPendingActionSer
|
||||
return baseMapper.selectVoList(lqw);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询待操作记录中,关联钢卷已是历史钢卷(dataType=0)且操作未完成(actionStatus != 2)的记录
|
||||
*/
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public TableDataInfo<WmsCoilPendingActionVo> queryStaleActionPageList(PageQuery pageQuery) {
|
||||
QueryWrapper<WmsCoilPendingAction> lqw = Wrappers.query();
|
||||
lqw.ne("wcpa.action_status", 2);
|
||||
lqw.eq("wcpa.del_flag", 0);
|
||||
Page<WmsCoilPendingActionVo> result = baseMapper.selectStaleActionVoPagePlus(pageQuery.build(), lqw);
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<WmsCoilPendingActionIdCoilVo> queryActionIdCoilIdList(WmsCoilPendingActionBo bo) {
|
||||
// 复用与 /list 相同的查询条件(buildQueryWrapperPlus)
|
||||
|
||||
Reference in New Issue
Block a user