Commit 24eb707e authored by mengmeng's avatar mengmeng

fix entityName errror

parent 114e12df
......@@ -71,7 +71,7 @@ public class PensionServiceController {
public Result<PensionServiceDTO> getByServiceTypeId(@PathVariable("serviceTypeId") Long serviceTypeId){
List<PensionServiceDTO> data = baseMapper.selectList(
new QueryWrapper<PensionServiceDTO>().lambda()
.eq(PensionServiceDTO::getServiceTypeId,serviceTypeId));
.eq(PensionServiceDTO::getServiceParentId,serviceTypeId));
return new Result<PensionServiceDTO>().ok(data.get(0));
}
......
......@@ -90,7 +90,7 @@ public class PensionServiceTypeServiceImpl extends CrudServiceImpl<PensionServic
List<PensionServiceTypeDTO> resultList = new ArrayList<>();
for (PensionServiceEntity pensionService:pensionServices) {
PensionServiceTypeDTO pensionServiceTypeDTO = get(pensionService.getServiceTypeId());
PensionServiceTypeDTO pensionServiceTypeDTO = get(pensionService.getServiceParentId());
resultList.add(pensionServiceTypeDTO);
}
return resultList;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment