This commit is contained in:
linfso 2024-05-27 16:29:44 +08:00
parent 2bdc592914
commit 2edf9446f7

View File

@ -41,8 +41,8 @@
<result property="createSite" column="create_site" />
<result property="updateSite" column="update_site" />
<association property="createByName" column="create_by" select="selectEmpNameByCode"/>
<association property="updateByName" column="update_by" select="selectEmpNameByCode"/>
<association property="createByName" column="create_by" select="selectEmpNameByUserId"/>
<association property="updateByName" column="update_by" select="selectEmpNameByUserId"/>
<association property="createSiteName" column="create_site" select="selectSiteNameByCode"/>
<association property="updateSiteName" column="update_site" select="selectSiteNameByCode"/>
@ -63,8 +63,8 @@
select a.site_name from emis_site a where a.site_code = #{code} limit 1
</select>
<select id="selectEmpNameByCode" parameterType="String" resultType="string">
select a.emp_name from sys_user a where a.emp_code = #{code} limit 1
<select id="selectEmpNameByUserId" parameterType="String" resultType="string">
select a.emp_name from sys_user a where a.user_id = #{id} limit 1
</select>