修改甘特图报错问题
This commit is contained in:
@@ -45,7 +45,7 @@ public class WmsSchedulePlanDetailServiceImpl implements IWmsSchedulePlanDetailS
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public TableDataInfo<WmsSchedulePlanDetailVo> queryPageList(WmsSchedulePlanDetailBo bo, PageQuery pageQuery) {
|
public TableDataInfo<WmsSchedulePlanDetailVo> queryPageList(WmsSchedulePlanDetailBo bo, PageQuery pageQuery) {
|
||||||
QueryWrapper<WmsSchedulePlanDetail> lqw = buildQueryWrapper(bo);
|
QueryWrapper<WmsSchedulePlanDetail> lqw = buildQueryWrapperPlus(bo);
|
||||||
Page<WmsSchedulePlanDetailVo> result = baseMapper.selectVoPagePlus(pageQuery.build(), lqw);
|
Page<WmsSchedulePlanDetailVo> result = baseMapper.selectVoPagePlus(pageQuery.build(), lqw);
|
||||||
return TableDataInfo.build(result);
|
return TableDataInfo.build(result);
|
||||||
}
|
}
|
||||||
@@ -55,11 +55,22 @@ public class WmsSchedulePlanDetailServiceImpl implements IWmsSchedulePlanDetailS
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<WmsSchedulePlanDetailVo> queryList(WmsSchedulePlanDetailBo bo) {
|
public List<WmsSchedulePlanDetailVo> queryList(WmsSchedulePlanDetailBo bo) {
|
||||||
QueryWrapper<WmsSchedulePlanDetail> lqw = buildQueryWrapper(bo);
|
LambdaQueryWrapper<WmsSchedulePlanDetail> lqw = buildQueryWrapper(bo);
|
||||||
return baseMapper.selectVoList(lqw);
|
return baseMapper.selectVoList(lqw);
|
||||||
}
|
}
|
||||||
|
private LambdaQueryWrapper<WmsSchedulePlanDetail> buildQueryWrapper(WmsSchedulePlanDetailBo bo) {
|
||||||
|
Map<String, Object> params = bo.getParams();
|
||||||
|
LambdaQueryWrapper<WmsSchedulePlanDetail> lqw = Wrappers.lambdaQuery();
|
||||||
|
lqw.eq(bo.getPlanId() != null, WmsSchedulePlanDetail::getPlanId, bo.getPlanId());
|
||||||
|
lqw.eq(bo.getLineId() != null, WmsSchedulePlanDetail::getLineId, bo.getLineId());
|
||||||
|
lqw.eq(bo.getProductId() != null, WmsSchedulePlanDetail::getProductId, bo.getProductId());
|
||||||
|
lqw.eq(bo.getQuantity() != null, WmsSchedulePlanDetail::getQuantity, bo.getQuantity());
|
||||||
|
lqw.eq(bo.getStartDate() != null, WmsSchedulePlanDetail::getStartDate, bo.getStartDate());
|
||||||
|
lqw.eq(bo.getEndDate() != null, WmsSchedulePlanDetail::getEndDate, bo.getEndDate());
|
||||||
|
return lqw;
|
||||||
|
}
|
||||||
|
|
||||||
private QueryWrapper<WmsSchedulePlanDetail> buildQueryWrapper(WmsSchedulePlanDetailBo bo) {
|
private QueryWrapper<WmsSchedulePlanDetail> buildQueryWrapperPlus(WmsSchedulePlanDetailBo bo) {
|
||||||
Map<String, Object> params = bo.getParams();
|
Map<String, Object> params = bo.getParams();
|
||||||
QueryWrapper<WmsSchedulePlanDetail> lqw = Wrappers.query();
|
QueryWrapper<WmsSchedulePlanDetail> lqw = Wrappers.query();
|
||||||
//联查需要取别名
|
//联查需要取别名
|
||||||
|
|||||||
Reference in New Issue
Block a user