|
|
|
@ -5,18 +5,18 @@ |
|
|
|
|
|
|
|
|
|
<!-- 可根据自己的需求,是否要使用 --> |
|
|
|
|
<resultMap type="com.daqing.framework.domain.crms.CompanyCustomerEntity" id="companyCustomerMap"> |
|
|
|
|
<result property="id" column="id"/> |
|
|
|
|
<result property="registeredCapital" column="registered_capital"/> |
|
|
|
|
<result property="industry" column="industry"/> |
|
|
|
|
<result property="years" column="years"/> |
|
|
|
|
<result property="region" column="region"/> |
|
|
|
|
<result property="shareholder" column="shareholder"/> |
|
|
|
|
<result property="affiliatedCompany" column="affiliated_company"/> |
|
|
|
|
<result property="empNum" column="emp_num"/> |
|
|
|
|
<result property="linkman" column="linkman"/> |
|
|
|
|
<result property="businessSource" column="business_source"/> |
|
|
|
|
<result property="customerId" column="customer_id"/> |
|
|
|
|
</resultMap> |
|
|
|
|
<result property="id" column="id"/> |
|
|
|
|
<result property="registeredCapital" column="registered_capital"/> |
|
|
|
|
<result property="industry" column="industry"/> |
|
|
|
|
<result property="years" column="years"/> |
|
|
|
|
<result property="region" column="region"/> |
|
|
|
|
<result property="shareholder" column="shareholder"/> |
|
|
|
|
<result property="affiliatedCompany" column="affiliated_company"/> |
|
|
|
|
<result property="empNum" column="emp_num"/> |
|
|
|
|
<result property="linkman" column="linkman"/> |
|
|
|
|
<result property="businessSource" column="business_source"/> |
|
|
|
|
<result property="customerId" column="customer_id"/> |
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
<!-- 根据客户基本信息id查询企业类型客户的信息 --> |
|
|
|
|
<select id="queryCompanyCustomerById" parameterType="long" resultType="com.daqing.framework.domain.crms.CompanyCustomerEntity"> |
|
|
|
@ -59,9 +59,6 @@ |
|
|
|
|
</where> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<!-- 根据客户编号/客户名称获取企业信息 --> |
|
|
|
|
<select id="queryCompanyCodeAndName" resultMap="companyCustomerMap"> |
|
|
|
|
SELECT code,`name` from crms_customer |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper> |