|
|
|
@ -3,26 +3,30 @@
|
|
|
|
|
<mapper namespace="com.glxp.api.admin.dao.inout.UnitMaintainPlatformDao">
|
|
|
|
|
<select id="getLinkPlatformList" resultType="com.glxp.api.admin.res.info.PlatformLinkResponse">
|
|
|
|
|
select up.id,
|
|
|
|
|
up.unitId,
|
|
|
|
|
u.name corpName,
|
|
|
|
|
u.corpType,
|
|
|
|
|
u.spell pinyinCode,
|
|
|
|
|
ap.name platformName,
|
|
|
|
|
ap.id platformId,
|
|
|
|
|
up.sourceAction,
|
|
|
|
|
up.targetAction,
|
|
|
|
|
up.invCode,
|
|
|
|
|
up.invSubCode
|
|
|
|
|
up.unitId,
|
|
|
|
|
u.name corpName,
|
|
|
|
|
u.corpType,
|
|
|
|
|
u.spell pinyinCode,
|
|
|
|
|
ap.name platformName,
|
|
|
|
|
ap.id platformId,
|
|
|
|
|
up.sourceAction,
|
|
|
|
|
up.targetAction,
|
|
|
|
|
up.invCode,
|
|
|
|
|
up.invSubCode,
|
|
|
|
|
bl.name socurceName
|
|
|
|
|
from io_unit_maintain_platform up
|
|
|
|
|
left join basic_corp u on up.unitId = u.erpId
|
|
|
|
|
left join auth_platform ap on up.platformId = ap.id
|
|
|
|
|
left join basic_corp u on up.unitId = u.erpId
|
|
|
|
|
left join auth_platform ap on up.platformId = ap.id
|
|
|
|
|
left join basic_bustype_local bl on up.sourceAction = bl.action
|
|
|
|
|
where up.customerId = #{customerId}
|
|
|
|
|
<if test="key != null and key != ''">
|
|
|
|
|
AND (u.erpId like concat('%', #{key}, '%')
|
|
|
|
|
or u.name like concat('%', #{key}, '%')
|
|
|
|
|
or u.spell like concat('%', #{key}, '%')
|
|
|
|
|
)
|
|
|
|
|
or u.name like concat('%', #{key}, '%')
|
|
|
|
|
or u.spell like concat('%', #{key}, '%')
|
|
|
|
|
)
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
order by up.unitId
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectByCustomerId" resultType="com.glxp.api.admin.entity.inout.UnitMaintainPlatformEntity">
|
|
|
|
@ -128,13 +132,15 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteById">
|
|
|
|
|
delete from io_unit_maintain_platform where id = #{id}
|
|
|
|
|
delete
|
|
|
|
|
from io_unit_maintain_platform
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<select id="selectCount" resultType="java.lang.Long">
|
|
|
|
|
select count(*)
|
|
|
|
|
from io_unit_maintain_platform
|
|
|
|
|
where sourceAction = #{action}
|
|
|
|
|
and unitId = #{unitId}
|
|
|
|
|
and unitId = #{unitId}
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|