|
|
|
|
@ -60,7 +60,7 @@ public class ErpContractInfoServiceImpl implements IErpContractInfoService {
|
|
|
|
|
@Override
|
|
|
|
|
public TableDataInfo<ErpContractInfoVo> queryPageList(ErpContractInfoBo bo, PageQuery pageQuery) {
|
|
|
|
|
MPJLambdaWrapper<ErpContractInfo> lqw = buildQueryWrapper(bo);
|
|
|
|
|
Page<ErpContractInfoVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
|
|
|
|
Page<ErpContractInfoVo> result = baseMapper.selectCustomErpContractInfoVoList(pageQuery.build(), lqw);
|
|
|
|
|
return TableDataInfo.build(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -73,7 +73,7 @@ public class ErpContractInfoServiceImpl implements IErpContractInfoService {
|
|
|
|
|
@Override
|
|
|
|
|
public List<ErpContractInfoVo> queryList(ErpContractInfoBo bo) {
|
|
|
|
|
MPJLambdaWrapper<ErpContractInfo> lqw = buildQueryWrapper(bo);
|
|
|
|
|
return baseMapper.selectVoList(lqw);
|
|
|
|
|
return baseMapper.selectCustomErpContractInfoVoList(lqw);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private MPJLambdaWrapper<ErpContractInfo> buildQueryWrapper(ErpContractInfoBo bo) {
|
|
|
|
|
@ -159,7 +159,7 @@ public class ErpContractInfoServiceImpl implements IErpContractInfoService {
|
|
|
|
|
* 保存前的数据校验
|
|
|
|
|
*/
|
|
|
|
|
private void validEntityBeforeSave(ErpContractInfo entity) {
|
|
|
|
|
// 注释掉物料列表的强制校验,允许空物料列表
|
|
|
|
|
// 物料列表的强制校验
|
|
|
|
|
// if (entity.getContractMaterialList() == null || entity.getContractMaterialList().isEmpty()) {
|
|
|
|
|
// throw new ServiceException("请填写合同物料!");
|
|
|
|
|
// }
|
|
|
|
|
|