Commit aa33fb71 authored by zhangzhenbang's avatar zhangzhenbang

suo

parent 95fd943f
......@@ -216,5 +216,10 @@ public class IdentityInfoController {
}
@PostMapping("/phone")
public IdentityInformation getPhoneById(@RequestBody IdentityInformation info) {
return identityInformationService.getAllIdentityInfoById(info.getId());
}
}
......@@ -55,4 +55,7 @@ public interface IdentityInformationMapper {
//待删除,战士用的
@Select("select * from reservation where identity_id=#{id}")
List<Reservation> selectReservationByIdentityId(IdentityInformation info);
@Select("select * from identity_information where id = #{id}")
IdentityInformation getAllIdentityInfoById(int id);
}
......@@ -46,4 +46,6 @@ public interface IdentityInformationService {
List<Reservation> selectReservationByIdentityId(IdentityInformation info);
IdentityInformation getAllIdentityInfoById(int id);
}
......@@ -129,4 +129,9 @@ public class IdentityInformationServiceImpl implements IdentityInformationServic
public List<Reservation> selectReservationByIdentityId(IdentityInformation info) {
return identityInformationMapper.selectReservationByIdentityId(info);
}
@Override
public IdentityInformation getAllIdentityInfoById(int id) {
return identityInformationMapper.getAllIdentityInfoById(id);
}
}
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