<insert id="insertSpaceLineByPj" parameterType="com.istrong.strongzs.entity.dto.ScopeLineDTO">
INSERT into uf_BM_RM_SR (formmodeid,modedatacreater,ennmcd,ennm,adunnm)
values (187,2083,7111,(select ennm from uf_SS_PROJECT_0001_ WHERE id = 7111),(select adunnm from uf_SS_PROJECT_0001_ WHERE id = 7111)) returning id;
INSERT into uf_BM_RM_SR_dt1 (mainid,jd,wd) VALUES (
@mainid,100.1,100.1)
</insert>
如上我有两条sql,希望能拿到第一条sql返回的id,放到第二条sql的@mainid里去 ,请问要怎么做