mybatis 多重嵌套查询 10
数据库表:approve表id,case_id,approve_typeapprove_suggest表id,approve_id,remark,create_time1...
数据库表:
approve表 id , case_id , approve_type
approve_suggest表 id , approve_id , remark , create_time
1. 一(approve)对多(approve_suggest)的关系
2. 按照approve_type又可以分为多种approve记录
pojo:
ApproveList.java
private String id;
private String approveType;
private List<ApproveContent> appConts;
ApproveContent.java
private String id;
private String remark;
private Date create_time;
Mapper.java
List<ApproveList> queryAllApprove(@Param("caseId")String caseId);
----------怎么写xml---------- 展开
approve表 id , case_id , approve_type
approve_suggest表 id , approve_id , remark , create_time
1. 一(approve)对多(approve_suggest)的关系
2. 按照approve_type又可以分为多种approve记录
pojo:
ApproveList.java
private String id;
private String approveType;
private List<ApproveContent> appConts;
ApproveContent.java
private String id;
private String remark;
private Date create_time;
Mapper.java
List<ApproveList> queryAllApprove(@Param("caseId")String caseId);
----------怎么写xml---------- 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询