接口逻辑优化
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -27,7 +27,7 @@ | ... | @@ -27,7 +27,7 @@ |
| 27 | 27 | ||
| 28 | <resultMap id="result" type="com.pashanhoo.file.entity.vo.DgCatalogWithFileVO"> | 28 | <resultMap id="result" type="com.pashanhoo.file.entity.vo.DgCatalogWithFileVO"> |
| 29 | <result column="bsm_archives" property="bsmArchive"/> | 29 | <result column="bsm_archives" property="bsmArchive"/> |
| 30 | <result column="bsm_catalog" property="bsmCatalog"/> | 30 | <result column="bsmCatalog" property="bsmCatalog"/> |
| 31 | <result column="wjmc" property="wjmc"/> | 31 | <result column="wjmc" property="wjmc"/> |
| 32 | <result column="catalogXh" property="catalogXh"/> | 32 | <result column="catalogXh" property="catalogXh"/> |
| 33 | <collection property="fileLists" ofType="com.pashanhoo.file.entity.vo.DgFileListVO"> | 33 | <collection property="fileLists" ofType="com.pashanhoo.file.entity.vo.DgFileListVO"> |
| ... | @@ -43,7 +43,7 @@ | ... | @@ -43,7 +43,7 @@ |
| 43 | </resultMap> | 43 | </resultMap> |
| 44 | 44 | ||
| 45 | <select id="getFileList" resultMap="result"> | 45 | <select id="getFileList" resultMap="result"> |
| 46 | select DF.*, DAC.XH as catalogXh, DAC.WJMC,DAC.BSM_CATALOG,DA.BSM_ARCHIVES | 46 | select DF.*, DAC.XH as catalogXh, DAC.WJMC,DAC.BSM_CATALOG as bsmCatalog,DA.BSM_ARCHIVES |
| 47 | from DG_FILE DF | 47 | from DG_FILE DF |
| 48 | right join DG_ARCHIVES_CATALOG DAC on DAC.BSM_CATALOG = DF.BSM_CATALOG | 48 | right join DG_ARCHIVES_CATALOG DAC on DAC.BSM_CATALOG = DF.BSM_CATALOG |
| 49 | join DG_ARCHIVES DA on DAC.BSM_ARCHIVES = DA.BSM_ARCHIVES | 49 | join DG_ARCHIVES DA on DAC.BSM_ARCHIVES = DA.BSM_ARCHIVES | ... | ... |
-
Please register or sign in to post a comment