guoyujia 1 年之前
父节点
当前提交
2361660fbf
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/main/java/cn/ezhizao/project/business/service/impl/Sfc10500ServiceImpl.java

+ 3 - 0
src/main/java/cn/ezhizao/project/business/service/impl/Sfc10500ServiceImpl.java

@@ -1,5 +1,7 @@
 package cn.ezhizao.project.business.service.impl;
 
+import cn.ezhizao.framework.aspectj.lang.annotation.DataSource;
+import cn.ezhizao.framework.aspectj.lang.enums.DataSourceType;
 import cn.ezhizao.project.business.domain.Sfc10500;
 import cn.ezhizao.project.business.mapper.Sfc10500Mapper;
 import cn.ezhizao.project.business.service.ISfc10500Service;
@@ -18,6 +20,7 @@ public class Sfc10500ServiceImpl extends ServiceImpl<Sfc10500Mapper, Sfc10500> i
 
 
     @Override
+    @DataSource(value = DataSourceType.SLAVE)
     public BigDecimal getLotMount(Sfc10500 sfc10500) {
         return sfc10500Mapper.getLotMount(sfc10500);
     }