金属元素编码自动生成,公司中间表关联查询
This commit is contained in:
@@ -9,4 +9,23 @@
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
<select id="getPageByReq" resultType="com.zt.plat.module.base.dal.dataobject.base.CompanyRelativityDO">
|
||||
select
|
||||
c.NUM as erpNumber,
|
||||
c.NAME as erpName,
|
||||
d.NAME as companyName,
|
||||
d.ID as deptId,
|
||||
d.LEADER_USER_ID as leaderUserId,
|
||||
d.IS_COMPANY,
|
||||
d.IS_GROUP,
|
||||
d.PHONE,
|
||||
d.EMAIL,
|
||||
d.STATUS,
|
||||
d.CREATOR
|
||||
from
|
||||
SPLY_CPN_REL r
|
||||
left join SYSTEM_DEPT d on r.COMPANY_ID = d.ID
|
||||
left join SPLY_ERP_CPN c on r.ERP_NUM = c.NUM
|
||||
where r.DELETED = 0
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -9,4 +9,7 @@
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
<select id="selectMaxCode" resultType="java.lang.String">
|
||||
SELECT MAX(coding) FROM element
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user