|
@@ -123,7 +123,8 @@ public class CostInfoServiceImpl implements CostInfoService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public ResMsg findCostInfoDetails(CostInfoEntity costInfoEntity) {
|
|
public ResMsg findCostInfoDetails(CostInfoEntity costInfoEntity) {
|
|
- CostInfoEntity costInfo = costInfoMapper.findByApplyCostIdAndCostType(costInfoEntity.getCostId(), costInfoEntity.getCostType());
|
|
|
|
|
|
+ CostInfoEntity byId = costInfoMapper.findById(costInfoEntity.getCostId()).orElse(null);
|
|
|
|
+ CostInfoEntity costInfo = costInfoMapper.findByApplyCostIdAndCostType(byId.getApplyCostId(), costInfoEntity.getCostType());
|
|
if (ObjectUtils.isEmpty(costInfo)) {
|
|
if (ObjectUtils.isEmpty(costInfo)) {
|
|
return new ResMsg(CodeEnum.NO_DATA);
|
|
return new ResMsg(CodeEnum.NO_DATA);
|
|
}
|
|
}
|