|
@@ -15,22 +15,28 @@
|
|
|
<result property="code" column="addr_code"/>
|
|
|
<result property="name" column="district"/>
|
|
|
</resultMap>
|
|
|
- <resultMap type="com.benyun.core.entity.Category" id="BigIndResult">
|
|
|
- <result property="code" column="industry_code"/>
|
|
|
+ <resultMap type="com.benyun.core.entity.Category" id="BigTypeResult">
|
|
|
+ <result property="code" column="type_code_by"/>
|
|
|
<result property="name" column="big_category"/>
|
|
|
</resultMap>
|
|
|
- <resultMap type="com.benyun.core.entity.Category" id="MidIndResult">
|
|
|
- <result property="code" column="industry_code"/>
|
|
|
+ <resultMap type="com.benyun.core.entity.Category" id="MidTypeResult">
|
|
|
+ <result property="code" column="type_code_by"/>
|
|
|
<result property="name" column="mid_category"/>
|
|
|
</resultMap>
|
|
|
- <resultMap type="com.benyun.core.entity.Category" id="BigResult">
|
|
|
+ <resultMap type="com.benyun.core.entity.Category" id="SubTypeResult">
|
|
|
+ <result property="code" column="type_code_by"/>
|
|
|
+ <result property="name" column="sub_category"/>
|
|
|
+ </resultMap>
|
|
|
+ <resultMap type="com.benyun.core.entity.Category" id="BigManageResult">
|
|
|
+ <result property="code" column="manage_type_code"/>
|
|
|
<result property="name" column="big_category"/>
|
|
|
</resultMap>
|
|
|
- <resultMap type="com.benyun.core.entity.Category" id="MidResult">
|
|
|
+ <resultMap type="com.benyun.core.entity.Category" id="MidManageResult">
|
|
|
+ <result property="code" column="manage_type_code"/>
|
|
|
<result property="name" column="mid_category"/>
|
|
|
</resultMap>
|
|
|
- <resultMap type="com.benyun.core.entity.Category" id="SubResult">
|
|
|
- <result property="code" column="type_code_gd"/>
|
|
|
+ <resultMap type="com.benyun.core.entity.Category" id="SubManageResult">
|
|
|
+ <result property="code" column="manage_type_code"/>
|
|
|
<result property="name" column="sub_category"/>
|
|
|
</resultMap>
|
|
|
<resultMap type="com.benyun.core.entity.Category" id="WdTypeResult">
|
|
@@ -46,22 +52,25 @@
|
|
|
<select id="searchZoneByCity" resultMap="ZoneResult">
|
|
|
select * from `ddt_addr_category` where city <![CDATA[<>]]> '' and district <![CDATA[<>]]> '' and city = #{city};
|
|
|
</select>
|
|
|
- <select id="searchBigIndustry" resultMap="BigIndResult">
|
|
|
- select * from `ddt_industry_category` where mid_category = '';
|
|
|
- </select>
|
|
|
- <select id="searchMidIndustryByBig" resultMap="MidIndResult">
|
|
|
- select * from `ddt_industry_category` where mid_category <![CDATA[<>]]> '' AND big_category = #{bigCategory};
|
|
|
- </select>
|
|
|
- <select id="searchBigCategory" resultMap="BigResult">
|
|
|
- SELECT big_category FROM `ddt_type_gd` GROUP BY big_category
|
|
|
+ <select id="searchBigCategory" resultMap="BigTypeResult">
|
|
|
+ select * from `ddt_type_by` where mid_category = ''
|
|
|
</select>
|
|
|
- <select id="searchMidCategoryByBig" resultMap="MidResult">
|
|
|
- SELECT mid_category FROM `ddt_type_gd` WHERE big_category = #{bigCategory} GROUP BY mid_category;
|
|
|
+ <select id="searchMidCategoryByBig" resultMap="MidTypeResult">
|
|
|
+ select * from `ddt_type_by` where mid_category <![CDATA[<>]]> '' and sub_category = '' and big_category = #{bigCategory}
|
|
|
</select>
|
|
|
- <select id="searchSubCategoryByMid" resultMap="SubResult">
|
|
|
- SELECT * FROM `ddt_type_gd` WHERE mid_category = #{midCategory};
|
|
|
+ <select id="searchSubCategoryByMid" resultMap="SubTypeResult">
|
|
|
+ select * from `ddt_type_by` where mid_category <![CDATA[<>]]> '' and sub_category <![CDATA[<>]]> '' and mid_category = #{midCategory}
|
|
|
</select>
|
|
|
<select id="searchWdType" resultMap="WdTypeResult">
|
|
|
SELECT * FROM `ddt_wd_type`;
|
|
|
</select>
|
|
|
+ <select id="searchBigManage" resultMap="BigManageResult">
|
|
|
+ select * from `ddt_manage_type` where mid_category = ''
|
|
|
+ </select>
|
|
|
+ <select id="searchMidManageByBig" resultMap="MidManageResult">
|
|
|
+ select * from `ddt_manage_type` where mid_category <![CDATA[<>]]> '' and sub_category = '' and big_category = #{bigCategory}
|
|
|
+ </select>
|
|
|
+ <select id="searchSubManageByMid" resultMap="SubManageResult">
|
|
|
+ select * from `ddt_manage_type` where mid_category <![CDATA[<>]]> '' and sub_category <![CDATA[<>]]> '' and mid_category = #{midCategory}
|
|
|
+ </select>
|
|
|
</mapper>
|