|
|
|
@ -65,7 +65,17 @@ public class ErpProjectPurchaseServiceImpl implements IErpProjectPurchaseService
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public ErpProjectPurchaseVo queryById(Long projectPurchaseId) {
|
|
|
|
public ErpProjectPurchaseVo queryById(Long projectPurchaseId) {
|
|
|
|
return baseMapper.selectVoById(projectPurchaseId);
|
|
|
|
MPJLambdaWrapper<ErpProjectPurchase> lqw = JoinWrappers.lambda(ErpProjectPurchase.class)
|
|
|
|
|
|
|
|
.eq(ErpProjectPurchase::getProjectPurchaseId, projectPurchaseId);
|
|
|
|
|
|
|
|
List<ErpProjectPurchaseVo> list = baseMapper.selectCustomErpProjectPurchaseVoList(lqw);
|
|
|
|
|
|
|
|
ErpProjectPurchaseVo erpProjectPurchaseVo = list.get(0);
|
|
|
|
|
|
|
|
MPJLambdaWrapper<ErpProjectPurchaseMaterial> lqwM = JoinWrappers.lambda(ErpProjectPurchaseMaterial.class)
|
|
|
|
|
|
|
|
.selectAll(ErpProjectPurchaseMaterial.class)
|
|
|
|
|
|
|
|
.eq("t.del_flag", "0")
|
|
|
|
|
|
|
|
.eq(ErpProjectPurchaseMaterial::getProjectPurchaseId, erpProjectPurchaseVo.getProjectPurchaseId());
|
|
|
|
|
|
|
|
List<ErpProjectPurchaseMaterialVo> voList = purchaseMaterialMapper.selectCustomErpProjectPurchaseMaterialVoList(lqwM);
|
|
|
|
|
|
|
|
erpProjectPurchaseVo.setPurchaseMaterialList(voList);
|
|
|
|
|
|
|
|
return erpProjectPurchaseVo;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
|