|
@@ -123,7 +123,8 @@ public class CostInfoServiceImpl implements CostInfoService {
|
|
|
|
|
|
@Override
|
|
|
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)) {
|
|
|
return new ResMsg(CodeEnum.NO_DATA);
|
|
|
}
|