|
|
|
@ -3,10 +3,12 @@
|
|
|
|
|
<mapper namespace="com.glxp.api.dao.inout.IoSplitCodeMapper">
|
|
|
|
|
<select id="filterList" parameterType="com.glxp.api.req.inout.IoSplitCodeRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.inout.IoSplitCodeEntity">
|
|
|
|
|
SELECT isc.*,bp.cpmctymc productName,sw.workplaceName
|
|
|
|
|
SELECT isc.*,bp.cpmctymc productName,sw.workplaceName,COALESCE(thr_bustype_origin.name, basic_bussiness_type.name) as busTypeName
|
|
|
|
|
FROM io_split_code isc
|
|
|
|
|
left join basic_products bp on bp.nameCode = isc.nameCode
|
|
|
|
|
left join sys_workplace sw on sw.workplaceId = isc.workPlaceCode
|
|
|
|
|
left join thr_bustype_origin on isc.action = thr_bustype_origin.action
|
|
|
|
|
left join basic_bussiness_type on isc.action = basic_bussiness_type.action
|
|
|
|
|
<where>
|
|
|
|
|
isc.remainCount > 0
|
|
|
|
|
<if test="code != '' and code != null">
|
|
|
|
|