Commit c3b2ec39 by 吴迪

【新增】修改bug

parent 9ca496c0
......@@ -2,6 +2,7 @@ package io.office.modules.manage.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.office.datasource.annotation.DataSource;
import io.office.modules.manage.entity.ShortCodeEntity;
import io.office.modules.manage.vo.request.ShortCodeVo;
import org.apache.ibatis.annotations.Mapper;
......@@ -10,14 +11,14 @@ import java.util.List;
/**
* ${comments}
*
*
* @author wudi
* @email
* @email
* @date 2021-11-21 12:26:37
*/
@Mapper
public interface ShortCodeDao extends BaseMapper<ShortCodeEntity> {
@DataSource("slave2")
List<ShortCodeVo> getList(ShortCodeVo shortCodeVo);
}
......@@ -57,7 +57,7 @@ dynamic:
password: ryr@3647we
slave2:
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://192.168.0.85:1433;DatabaseName=gs108
url: jdbc:sqlserver://192.168.0.85:1433;DatabaseName=center_outer
username: test2
password: test2
##多数据源的配置
......@@ -105,4 +105,4 @@ searchDayCountLimitSwitch: 100
#域名
gs1:
domain: http://www.gs1cn.org
\ No newline at end of file
domain: http://www.gs1cn.org
......@@ -23,7 +23,7 @@
<select id="getList" parameterType="io.office.modules.manage.vo.request.ShortCodeVo" resultType="io.office.modules.manage.vo.request.ShortCodeVo">
select top 300 * from center_outer.short_code a left join firm b on a.f_id=b.f_id
select top 300 * from short_code a left join firm b on a.f_id=b.f_id
<where>
<if test="shortCode!=null and shortCode!=''">
a.short_code = #{shortCode}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment