|
@@ -43,6 +43,18 @@
|
|
|
<result property="code" column="wd_type_code"/>
|
|
|
<result property="name" column="wd_type_name"/>
|
|
|
</resultMap>
|
|
|
+ <resultMap type="com.benyun.core.entity.Category" id="BigIndustryResult">
|
|
|
+ <result property="code" column="industry_code"/>
|
|
|
+ <result property="name" column="big_category"/>
|
|
|
+ </resultMap>
|
|
|
+ <resultMap type="com.benyun.core.entity.Category" id="MidIndustryResult">
|
|
|
+ <result property="code" column="industry_code"/>
|
|
|
+ <result property="name" column="mid_category"/>
|
|
|
+ </resultMap>
|
|
|
+ <resultMap type="com.benyun.core.entity.Category" id="SubIndustryResult">
|
|
|
+ <result property="code" column="industry_code"/>
|
|
|
+ <result property="name" column="sub_category"/>
|
|
|
+ </resultMap>
|
|
|
<select id="searchProvince" resultMap="ProvinceResult">
|
|
|
select * from `ddt_addr_category` where city = ''
|
|
|
</select>
|
|
@@ -73,4 +85,16 @@
|
|
|
<select id="searchSubManageByMid" resultMap="SubManageResult">
|
|
|
select * from `ddt_manage_type` where mid_category <![CDATA[<>]]> '' and sub_category <![CDATA[<>]]> '' and mid_category = #{midCategory}
|
|
|
</select>
|
|
|
+ <select id="searchBigIndustry" resultMap="BigIndustryResult">
|
|
|
+ select * from `ddt_industry_category` where mid_category = ''
|
|
|
+ </select>
|
|
|
+ <select id="searchMidIndustryByBig" resultMap="MidIndustryResult">
|
|
|
+ select * from `ddt_industry_category` where mid_category <![CDATA[<>]]> '' and sub_category = '' and big_category = #{bigCategory}
|
|
|
+ </select>
|
|
|
+ <select id="searchSubIndustryByMid" resultMap="SubIndustryResult">
|
|
|
+ select * from `ddt_industry_category` where mid_category <![CDATA[<>]]> '' and sub_category <![CDATA[<>]]> '' and mid_category = #{midCategory}
|
|
|
+ </select>
|
|
|
+ <select id="searchSubIndustryByCode" resultMap="SubIndustryResult">
|
|
|
+ select * from `ddt_industry_category` where industry_code = #{industryCode}
|
|
|
+ </select>
|
|
|
</mapper>
|