Przeglądaj źródła

订单统计报表多数据源配置

liuchaohui 2 lat temu
rodzic
commit
aff859e979

+ 2 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/report/service/impl/SoSoDetailsServiceImpl.java

@@ -1,5 +1,6 @@
 package org.jeecg.modules.report.service.impl;
 
+import com.baomidou.dynamic.datasource.annotation.DS;
 import org.jeecg.modules.report.entity.SoSoDetails;
 import org.jeecg.modules.report.mapper.SoSoDetailsMapper;
 import org.jeecg.modules.report.service.ISoSoDetailsService;
@@ -20,6 +21,7 @@ import java.util.Map;
 public class SoSoDetailsServiceImpl extends ServiceImpl<SoSoDetailsMapper, SoSoDetails> implements ISoSoDetailsService {
 
     @Override
+    @DS("multi-one")
     public List<Map<String, Object>> getSO_SOMainReport(Map<String, Object> map) {
         return this.baseMapper.getSO_SOMainReport(map);
     }