md
This commit is contained in:
parent
2bdc592914
commit
2edf9446f7
@ -41,8 +41,8 @@
|
|||||||
<result property="createSite" column="create_site" />
|
<result property="createSite" column="create_site" />
|
||||||
<result property="updateSite" column="update_site" />
|
<result property="updateSite" column="update_site" />
|
||||||
|
|
||||||
<association property="createByName" column="create_by" select="selectEmpNameByCode"/>
|
<association property="createByName" column="create_by" select="selectEmpNameByUserId"/>
|
||||||
<association property="updateByName" column="update_by" select="selectEmpNameByCode"/>
|
<association property="updateByName" column="update_by" select="selectEmpNameByUserId"/>
|
||||||
<association property="createSiteName" column="create_site" select="selectSiteNameByCode"/>
|
<association property="createSiteName" column="create_site" select="selectSiteNameByCode"/>
|
||||||
<association property="updateSiteName" column="update_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 a.site_name from emis_site a where a.site_code = #{code} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectEmpNameByCode" parameterType="String" resultType="string">
|
<select id="selectEmpNameByUserId" parameterType="String" resultType="string">
|
||||||
select a.emp_name from sys_user a where a.emp_code = #{code} limit 1
|
select a.emp_name from sys_user a where a.user_id = #{id} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user