持久层:
<select id="get" resultType="People">
select * from #{identity} where id= #{id}
</select>
People get(@Param("identity") String identity,@Param("id") String id);
service层:
People get(String identity,String id);
@Override
public People get(String identity,String id) {
return peopleMapper.get(identity,id);
}
controller层:
p2=peopleService.get(p.getIdentity(),p.getId());
报错信息:
cxxyjsj
慕标2137209