|
@@ -150,10 +150,14 @@
|
|
|
where t.relation_id= #{relationId}
|
|
|
</select>
|
|
|
|
|
|
- <select id="getCmRelationByCustomerId" resultMap="BaseResultMap" parameterType="Integer" >
|
|
|
+ <select id="getCmRelationByCustomerId" resultType="CmRelation" parameterType="Integer" >
|
|
|
select
|
|
|
- <include refid="Base_List" />
|
|
|
+ <include refid="Base_List" />,
|
|
|
+ cpm.proc_method_name,
|
|
|
+ cpt.proc_type_name
|
|
|
from tb_rst_cm_relation t
|
|
|
+ LEFT JOIN tb_rst_cm_proc_method cpm ON t.proc_method_id = cpm.proc_method_id
|
|
|
+ LEFT JOIN tb_rst_cm_proc_type cpt ON cpm.proc_type_id = cpt.proc_type_id
|
|
|
where t.customer_id= #{customerId}
|
|
|
</select>
|
|
|
|