|
|
@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="parentId" column="parent_id" /> |
|
|
|
<result property="parentId" column="parent_id" /> |
|
|
|
<result property="areaCode" column="area_code" /> |
|
|
|
<result property="areaCode" column="area_code" /> |
|
|
|
<result property="areaName" column="area_name" /> |
|
|
|
<result property="areaName" column="area_name" /> |
|
|
|
|
|
|
|
<result property="productLineCode" column="product_line_code" /> |
|
|
|
<result property="areaType" column="area_type" /> |
|
|
|
<result property="areaType" column="area_type" /> |
|
|
|
<result property="areaLevel" column="area_level" /> |
|
|
|
<result property="areaLevel" column="area_level" /> |
|
|
|
<result property="orderNum" column="order_num" /> |
|
|
|
<result property="orderNum" column="order_num" /> |
|
|
@ -22,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectDhcAreaVo"> |
|
|
|
<sql id="selectDhcAreaVo"> |
|
|
|
select area_id, parent_id, area_code, area_name, area_type, area_level, order_num, area_desc, status, del_flag, create_by, create_time, update_by, update_time from dhc_area |
|
|
|
select area_id, parent_id, area_code, area_name, product_line_code, area_type, area_level, order_num, area_desc, status, del_flag, create_by, create_time, update_by, update_time from dhc_area |
|
|
|
</sql> |
|
|
|
</sql> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectDhcAreaList" parameterType="DhcArea" resultMap="DhcAreaResult"> |
|
|
|
<select id="selectDhcAreaList" parameterType="DhcArea" resultMap="DhcAreaResult"> |
|
|
@ -36,11 +37,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="orderNum != null "> and order_num = #{orderNum}</if> |
|
|
|
<if test="orderNum != null "> and order_num = #{orderNum}</if> |
|
|
|
<if test="areaDesc != null and areaDesc != ''"> and area_desc = #{areaDesc}</if> |
|
|
|
<if test="areaDesc != null and areaDesc != ''"> and area_desc = #{areaDesc}</if> |
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if> |
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if> |
|
|
|
|
|
|
|
<if test="productLineCode != null and productLineCode != ''"> and product_line_code = #{productLineCode}</if> |
|
|
|
</where> |
|
|
|
</where> |
|
|
|
|
|
|
|
order BY order_num |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<select id="selectCount" parameterType="DhcArea" resultType="integer"> |
|
|
|
<select id="selectCount" parameterType="DhcArea" resultType="integer"> |
|
|
|
select count(area_id) from dhc_area |
|
|
|
select count(area_id) from dhc_area |
|
|
|
<where> |
|
|
|
<where> |
|
|
|
|
|
|
|
<if test="parentId != null and parentId != ''"> and parent_id = #{parentId}</if> |
|
|
|
<if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if> |
|
|
|
<if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if> |
|
|
|
<if test="areaId != null and areaId != ''"> and area_id != #{areaId}</if> |
|
|
|
<if test="areaId != null and areaId != ''"> and area_id != #{areaId}</if> |
|
|
|
<if test="delFlag != null and delFlag != ''"> and del_flag = #{delFlag}</if> |
|
|
|
<if test="delFlag != null and delFlag != ''"> and del_flag = #{delFlag}</if> |
|
|
@ -57,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="parentId != null">parent_id,</if> |
|
|
|
<if test="parentId != null">parent_id,</if> |
|
|
|
<if test="areaCode != null">area_code,</if> |
|
|
|
<if test="areaCode != null">area_code,</if> |
|
|
|
<if test="areaName != null">area_name,</if> |
|
|
|
<if test="areaName != null">area_name,</if> |
|
|
|
|
|
|
|
<if test="productLineCode != null">product_line_code,</if> |
|
|
|
<if test="areaType != null">area_type,</if> |
|
|
|
<if test="areaType != null">area_type,</if> |
|
|
|
<if test="areaLevel != null">area_level,</if> |
|
|
|
<if test="areaLevel != null">area_level,</if> |
|
|
|
<if test="orderNum != null">order_num,</if> |
|
|
|
<if test="orderNum != null">order_num,</if> |
|
|
@ -72,6 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="parentId != null">#{parentId},</if> |
|
|
|
<if test="parentId != null">#{parentId},</if> |
|
|
|
<if test="areaCode != null">#{areaCode},</if> |
|
|
|
<if test="areaCode != null">#{areaCode},</if> |
|
|
|
<if test="areaName != null">#{areaName},</if> |
|
|
|
<if test="areaName != null">#{areaName},</if> |
|
|
|
|
|
|
|
<if test="productLineCode != null">#{productLineCode},</if> |
|
|
|
<if test="areaType != null">#{areaType},</if> |
|
|
|
<if test="areaType != null">#{areaType},</if> |
|
|
|
<if test="areaLevel != null">#{areaLevel},</if> |
|
|
|
<if test="areaLevel != null">#{areaLevel},</if> |
|
|
|
<if test="orderNum != null">#{orderNum},</if> |
|
|
|
<if test="orderNum != null">#{orderNum},</if> |
|
|
@ -91,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="parentId != null">parent_id = #{parentId},</if> |
|
|
|
<if test="parentId != null">parent_id = #{parentId},</if> |
|
|
|
<if test="areaCode != null">area_code = #{areaCode},</if> |
|
|
|
<if test="areaCode != null">area_code = #{areaCode},</if> |
|
|
|
<if test="areaName != null">area_name = #{areaName},</if> |
|
|
|
<if test="areaName != null">area_name = #{areaName},</if> |
|
|
|
|
|
|
|
<if test="productLineCode != null">product_line_code = #{productLineCode},</if> |
|
|
|
<if test="areaType != null">area_type = #{areaType},</if> |
|
|
|
<if test="areaType != null">area_type = #{areaType},</if> |
|
|
|
<if test="areaLevel != null">area_level = #{areaLevel},</if> |
|
|
|
<if test="areaLevel != null">area_level = #{areaLevel},</if> |
|
|
|
<if test="orderNum != null">order_num = #{orderNum},</if> |
|
|
|
<if test="orderNum != null">order_num = #{orderNum},</if> |
|
|
|