This commit is contained in:
linfso 2024-06-02 15:13:27 +08:00
parent cf55122879
commit 5b5c642f2d
2 changed files with 9 additions and 4 deletions

View File

@ -11,7 +11,9 @@
package com.xdadan.erp.emis.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.common.core.cache.MybatisRedisCache;
import com.xdadan.erp.common.core.domain.BaseEntity;
import org.apache.ibatis.annotations.CacheNamespace;
import java.util.List;
@ -21,7 +23,10 @@ import java.util.List;
* @author linfso
* @date 2023-12-14 13:02:47
*/
@CacheNamespace(implementation= MybatisRedisCache.class,eviction=MybatisRedisCache.class)
public interface EmisBaseMapper extends BaseMapper<BaseEntity>
{
public String selectEmpNameByUserId(String userId);
}

View File

@ -16,10 +16,10 @@
<result property="createSite" column="create_site" />
<result property="updateSite" column="update_site" />
<association property="createByName" column="create_by" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectEmpNameByUserId" fetchType="lazy"/>
<association property="updateByName" column="update_by" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectEmpNameByUserId" fetchType="lazy"/>
<association property="createSiteName" column="create_site" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode" fetchType="lazy"/>
<association property="updateSiteName" column="update_site" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode" fetchType="lazy"/>
<association property="createByName" column="create_by" select="selectEmpNameByUserId" fetchType="lazy"/>
<association property="updateByName" column="update_by" select="selectEmpNameByUserId" fetchType="lazy"/>
<association property="createSiteName" column="create_site" select="selectSiteNameByCode" fetchType="lazy"/>
<association property="updateSiteName" column="update_site" select="selectSiteNameByCode" fetchType="lazy"/>
</resultMap>