|
@@ -48,10 +48,15 @@
|
|
email,
|
|
email,
|
|
company_phone,
|
|
company_phone,
|
|
create_time,
|
|
create_time,
|
|
|
|
+ customer_level_id,
|
|
(select name from sys_dict where customer_level_id = id and code = 'CustomLevel') customerLevelValue,
|
|
(select name from sys_dict where customer_level_id = id and code = 'CustomLevel') customerLevelValue,
|
|
|
|
+ customer_industry_id,
|
|
(select name from sys_dict where customer_industry_id = id and code = 'CustomIndustry') customerIndustryValue,
|
|
(select name from sys_dict where customer_industry_id = id and code = 'CustomIndustry') customerIndustryValue,
|
|
|
|
+ custom_source_id,
|
|
(select name from sys_dict where custom_source_id = id and code = 'CustomSources') customSourceValue,
|
|
(select name from sys_dict where custom_source_id = id and code = 'CustomSources') customSourceValue,
|
|
|
|
+ incharger_id,
|
|
(select `name` from `user` where id = incharger_id) inchargerName,
|
|
(select `name` from `user` where id = incharger_id) inchargerName,
|
|
|
|
+ creator_id,
|
|
(select `name` from `user` where id = creator_id) creatorName
|
|
(select `name` from `user` where id = creator_id) creatorName
|
|
from custom
|
|
from custom
|
|
where company_id = #{companyId}
|
|
where company_id = #{companyId}
|
|
@@ -118,10 +123,15 @@
|
|
email,
|
|
email,
|
|
company_phone,
|
|
company_phone,
|
|
create_time,
|
|
create_time,
|
|
|
|
+ customer_level_id,
|
|
(select name from sys_dict where customer_level_id = id and code = 'CustomLevel') customerLevelValue,
|
|
(select name from sys_dict where customer_level_id = id and code = 'CustomLevel') customerLevelValue,
|
|
|
|
+ customer_industry_id,
|
|
(select name from sys_dict where customer_industry_id = id and code = 'CustomIndustry') customerIndustryValue,
|
|
(select name from sys_dict where customer_industry_id = id and code = 'CustomIndustry') customerIndustryValue,
|
|
|
|
+ custom_source_id,
|
|
(select name from sys_dict where custom_source_id = id and code = 'CustomSources') customSourceValue,
|
|
(select name from sys_dict where custom_source_id = id and code = 'CustomSources') customSourceValue,
|
|
|
|
+ incharger_id,
|
|
(select `name` from `user` where id = incharger_id) inchargerName,
|
|
(select `name` from `user` where id = incharger_id) inchargerName,
|
|
|
|
+ creator_id,
|
|
(select `name` from `user` where id = creator_id) creatorName
|
|
(select `name` from `user` where id = creator_id) creatorName
|
|
from custom
|
|
from custom
|
|
where company_id = #{companyId}
|
|
where company_id = #{companyId}
|
|
@@ -194,10 +204,15 @@
|
|
email,
|
|
email,
|
|
company_phone,
|
|
company_phone,
|
|
create_time,
|
|
create_time,
|
|
|
|
+ customer_level_id,
|
|
(select name from sys_dict where customer_level_id = id and code = 'CustomLevel') customerLevelValue,
|
|
(select name from sys_dict where customer_level_id = id and code = 'CustomLevel') customerLevelValue,
|
|
|
|
+ customer_industry_id,
|
|
(select name from sys_dict where customer_industry_id = id and code = 'CustomIndustry') customerIndustryValue,
|
|
(select name from sys_dict where customer_industry_id = id and code = 'CustomIndustry') customerIndustryValue,
|
|
|
|
+ custom_source_id,
|
|
(select name from sys_dict where custom_source_id = id and code = 'CustomSources') customSourceValue,
|
|
(select name from sys_dict where custom_source_id = id and code = 'CustomSources') customSourceValue,
|
|
|
|
+ incharger_id,
|
|
(select `name` from `user` where id = incharger_id) inchargerName,
|
|
(select `name` from `user` where id = incharger_id) inchargerName,
|
|
|
|
+ creator_id,
|
|
(select `name` from `user` where id = creator_id) creatorName
|
|
(select `name` from `user` where id = creator_id) creatorName
|
|
from custom
|
|
from custom
|
|
where company_id = #{companyId}
|
|
where company_id = #{companyId}
|