Live2D

一张表(甲)获取另一张表(乙)的数据将自己的填入的数据和乙表已存在的数据插入到另一张表(丙)中:

甲获取到乙的数据

 

 

插入到丙:

Sql:写在甲表中:

甲表关联查询乙表 甲对乙的关联查询接口写在了甲中:

<!--    search  -->
<select id="searchRps" parameterType="com.greathack.homlin.pojo.docDistribute.DocReceipt" resultType="com.greathack.homlin.pojo.docDistribute.DocReceipt" >
   select doc_receipt.*,doc_document.orgId as dispatchOrgId,doc_document.orgName as dispatchOrgName,doc_document.docNo,doc_document.title,doc_document.secretLevel,doc_document.remark as mk from doc_receipt LEFT JOIN doc_document on doc_receipt.documentId = doc_document.documentId;
</select>

请求处理方法写在甲表中:

 

在丙表控制层当中进行添加:

关联查询的方法接口用get(或者search承接)写在甲的JS预加载上面

 

 

 

 

 

posted @ 2020-07-24 08:58  漫天繁星入眼帘  阅读(188)  评论(0)    收藏  举报