-- 数据源编码:s
-- 数据类型:表单
-- 参数查询:{"id_IN":"${id}"}
SELECT F.FOLDERNO,
       F.CLIENTUSERORGNAME,
       F.SAMPLETYPE,
       F.CLIENTUSERNAME,
       F.CLIENTUSERPHONE,
       F.OBTAINTIME,
       F.OBTAINUSERNAME,
       C.ID
FROM T_LIMS_REPORT_CHANGE C
         INNER JOIN T_LIMS_FOLDER F ON F.ID = C.FOLDERID

-- 数据源编码:tasks
-- 数据类型:列表
-- 参数查询:{"id_IN":"${id}"}
SELECT T.RESULT,
       T.TESTNAME,
       T.REMARKS,
       C.ID
FROM T_LIMS_REPORT_CHANGE C
         INNER JOIN T_LIMS_FOLDER F ON F.ID = C.FOLDERID
         INNER JOIN T_LIMS_TASK T ON T.FOLDERID = F.ID


-- 数据源编码:s
-- 数据类型:表单
-- 参数查询:{"id_IN":"${id}"}
SELECT F.FOLDERNO,
       F.CLIENTUSERORGNAME,
       F.SAMPLETYPE,
       F.CLIENTUSERNAME,
       F.CLIENTUSERPHONE,
       F.OBTAINTIME,
       F.OBTAINUSERNAME,
       C.ID
FROM T_LIMS_REPORT_APPLY C
         INNER JOIN T_LIMS_FOLDER F ON F.ID = C.FOLDERID

-- 数据源编码:tasks
-- 数据类型:列表
-- 参数查询:{"id_IN":"${id}"}
SELECT T.RESULT,
       T.TESTNAME,
       T.REMARKS,
       C.ID
FROM T_LIMS_REPORT_APPLY C
         INNER JOIN T_LIMS_FOLDER F ON F.ID = C.FOLDERID
         INNER JOIN T_LIMS_TASK T ON T.FOLDERID = F.ID