|
@@ -9,9 +9,9 @@
|
|
|
</sql>
|
|
</sql>
|
|
|
<!-- ,taobj.sum_residue-->
|
|
<!-- ,taobj.sum_residue-->
|
|
|
<sql id="msl_Base_Column_List">
|
|
<sql id="msl_Base_Column_List">
|
|
|
- msl.sup_id, msl.sup_code, msl.sup_name, msl.sup_type,
|
|
|
|
|
|
|
+ msl.sup_id, msl.sup_code, msl.sup_name,msl.sup_type,msl.service_categories,
|
|
|
msl.contact_name, msl.contact_phone, msl.org_id, msl.staff_id,
|
|
msl.contact_name, msl.contact_phone, msl.org_id, msl.staff_id,
|
|
|
- msl.service_categories, msl.remarks, msl.flg_valid, msl.cp_id,
|
|
|
|
|
|
|
+ msl.remarks, msl.flg_valid, msl.cp_id,
|
|
|
msl.op_create_time, msl.op_create_user_id, msl.op_update_time,
|
|
msl.op_create_time, msl.op_create_user_id, msl.op_update_time,
|
|
|
msl.op_update_user_id, msl.op_app_code, msl.op_timestamp,
|
|
msl.op_update_user_id, msl.op_app_code, msl.op_timestamp,
|
|
|
msl.op_db_user
|
|
msl.op_db_user
|
|
@@ -178,7 +178,16 @@
|
|
|
<select id="selectByCond" resultMap="BaseResultMap">
|
|
<select id="selectByCond" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
SELECT
|
|
|
<include refid="msl_Base_Column_List"/>
|
|
<include refid="msl_Base_Column_List"/>
|
|
|
- ,tms.staff_name,
|
|
|
|
|
|
|
+ ,tms.staff_name,sys.f_get_name_i18n(tdk.kind_name_i18n,'zh_CN' )AS "supTypeName"
|
|
|
|
|
+ ,
|
|
|
|
|
+ (
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ string_agg ( sys.f_get_name_i18n ( tdk1.kind_name_i18n, 'zh_CN' ), ',' )
|
|
|
|
|
+ FROM
|
|
|
|
|
+ sys.t_data_kind AS tdk1
|
|
|
|
|
+ WHERE
|
|
|
|
|
+ tdk1.kind_code = ANY ( msl.service_categories )
|
|
|
|
|
+ ) AS "serviceCategoriesName",
|
|
|
(SELECT COALESCE
|
|
(SELECT COALESCE
|
|
|
( array_to_string( ARRAY_AGG ( tsm.brand_name ), ',' ), '' )
|
|
( array_to_string( ARRAY_AGG ( tsm.brand_name ), ',' ), '' )
|
|
|
FROM
|
|
FROM
|
|
@@ -191,6 +200,7 @@
|
|
|
FROM dkic_b.t_mst_supplier msl
|
|
FROM dkic_b.t_mst_supplier msl
|
|
|
LEFT JOIN dkic_b.t_mst_staff tms ON tms.staff_id = msl.staff_id
|
|
LEFT JOIN dkic_b.t_mst_staff tms ON tms.staff_id = msl.staff_id
|
|
|
LEFT JOIN dkic_b.t_mst_org tmo ON tmo.org_id = msl.org_id
|
|
LEFT JOIN dkic_b.t_mst_org tmo ON tmo.org_id = msl.org_id
|
|
|
|
|
+ LEFT JOIN sys.t_data_kind tdk ON tdk.kind_code = msl.sup_type
|
|
|
<include refid="msl_Condition"/>
|
|
<include refid="msl_Condition"/>
|
|
|
ORDER BY msl.op_create_time desc
|
|
ORDER BY msl.op_create_time desc
|
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|