8/91 优化

workplace
wangwei 10 months ago
parent 27b1a4e5ee
commit 1b36ce9bb2

@ -218,6 +218,8 @@ public class IoSplitCodeEntity implements Serializable {
private String productName; private String productName;
@TableField(exist = false) @TableField(exist = false)
private String workplaceName; private String workplaceName;
@TableField(exist = false)
private String busTypeName;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

@ -136,4 +136,6 @@ public class IoSplitCodeRequest extends ListPageRequest {
private Long workPlaceCode; private Long workPlaceCode;
} }

@ -150,4 +150,5 @@ public class IoSplitCodeResponse {
private String useLevelUnit; private String useLevelUnit;
} }

@ -3,10 +3,12 @@
<mapper namespace="com.glxp.api.dao.inout.IoSplitCodeMapper"> <mapper namespace="com.glxp.api.dao.inout.IoSplitCodeMapper">
<select id="filterList" parameterType="com.glxp.api.req.inout.IoSplitCodeRequest" <select id="filterList" parameterType="com.glxp.api.req.inout.IoSplitCodeRequest"
resultType="com.glxp.api.entity.inout.IoSplitCodeEntity"> 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 FROM io_split_code isc
left join basic_products bp on bp.nameCode = isc.nameCode left join basic_products bp on bp.nameCode = isc.nameCode
left join sys_workplace sw on sw.workplaceId = isc.workPlaceCode 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> <where>
isc.remainCount > 0 isc.remainCount > 0
<if test="code != '' and code != null"> <if test="code != '' and code != null">

Loading…
Cancel
Save