|
@@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<sql id="selectDeptVo">
|
|
<sql id="selectDeptVo">
|
|
select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time ,
|
|
select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time ,
|
|
- d.area_type ,d.province_code ,d.province_name ,d.city_code ,d.city_name ,d.district_code ,d.district_name
|
|
|
|
|
|
+ d.area_type ,d.province_code ,d.province_name ,d.city_code ,d.city_name ,d.district_code ,d.district_name ,d.point_list
|
|
from sys_dept d
|
|
from sys_dept d
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
@@ -98,49 +98,49 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<insert id="insertDept" parameterType="SysDept">
|
|
<insert id="insertDept" parameterType="SysDept">
|
|
- insert into sys_dept(
|
|
|
|
- <if test="deptId != null and deptId != 0">dept_id,</if>
|
|
|
|
- <if test="parentId != null and parentId != 0">parent_id,</if>
|
|
|
|
- <if test="deptName != null and deptName != ''">dept_name,</if>
|
|
|
|
- <if test="ancestors != null and ancestors != ''">ancestors,</if>
|
|
|
|
- <if test="orderNum != null">order_num,</if>
|
|
|
|
- <if test="leader != null and leader != ''">leader,</if>
|
|
|
|
- <if test="phone != null and phone != ''">phone,</if>
|
|
|
|
- <if test="email != null and email != ''">email,</if>
|
|
|
|
- <if test="status != null">status,</if>
|
|
|
|
- <if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
|
|
|
+ insert into sys_dept(
|
|
|
|
+ <if test="deptId != null and deptId != 0">dept_id,</if>
|
|
|
|
+ <if test="parentId != null and parentId != 0">parent_id,</if>
|
|
|
|
+ <if test="deptName != null and deptName != ''">dept_name,</if>
|
|
|
|
+ <if test="ancestors != null and ancestors != ''">ancestors,</if>
|
|
|
|
+ <if test="orderNum != null">order_num,</if>
|
|
|
|
+ <if test="leader != null and leader != ''">leader,</if>
|
|
|
|
+ <if test="phone != null and phone != ''">phone,</if>
|
|
|
|
+ <if test="email != null and email != ''">email,</if>
|
|
|
|
+ <if test="status != null">status,</if>
|
|
|
|
+ <if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
|
+ <if test="pointList != null and pointList != ''">point_list,</if>
|
|
|
|
+ <if test="areaType != null and areaType != ''">area_type,</if>
|
|
|
|
+ <if test="provinceCode != null and provinceCode != ''">province_code,</if>
|
|
|
|
+ <if test="provinceName != null and provinceName != ''">province_name,</if>
|
|
|
|
+ <if test="cityCode != null and cityCode != ''">city_code,</if>
|
|
|
|
+ <if test="cityName != null and cityName != ''">city_name,</if>
|
|
|
|
+ <if test="districtCode != null and districtCode != ''">district_code,</if>
|
|
|
|
+ <if test="districtName != null and districtName != ''">district_name,</if>
|
|
|
|
+ create_time
|
|
|
|
+ )values(
|
|
|
|
+ <if test="deptId != null and deptId != 0">#{deptId},</if>
|
|
|
|
+ <if test="parentId != null and parentId != 0">#{parentId},</if>
|
|
|
|
+ <if test="deptName != null and deptName != ''">#{deptName},</if>
|
|
|
|
+ <if test="ancestors != null and ancestors != ''">#{ancestors},</if>
|
|
|
|
+ <if test="orderNum != null">#{orderNum},</if>
|
|
|
|
+ <if test="leader != null and leader != ''">#{leader},</if>
|
|
|
|
+ <if test="phone != null and phone != ''">#{phone},</if>
|
|
|
|
+ <if test="email != null and email != ''">#{email},</if>
|
|
|
|
+ <if test="status != null">#{status},</if>
|
|
|
|
+ <if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
|
+ <if test="pointList != null and pointList != ''">#{pointList},</if>
|
|
|
|
+ <if test="areaType != null and areaType != ''">#{areaType},</if>
|
|
|
|
+ <if test="provinceCode != null and provinceCode != ''">#{provinceCode},</if>
|
|
|
|
+ <if test="provinceName != null and provinceName != ''">#{provinceName},</if>
|
|
|
|
+ <if test="cityCode != null and cityCode != ''">#{cityCode},</if>
|
|
|
|
+ <if test="cityName != null and cityName != ''">#{cityName},</if>
|
|
|
|
+ <if test="districtCode != null and districtCode != ''">#{districtCode},</if>
|
|
|
|
+ <if test="districtName != null and districtName != ''">#{districtName},</if>
|
|
|
|
|
|
- <if test="areaType != null and areaType != ''">area_type,</if>
|
|
|
|
- <if test="provinceCode != null and provinceCode != ''">province_code,</if>
|
|
|
|
- <if test="provinceName != null and provinceName != ''">province_name,</if>
|
|
|
|
- <if test="cityCode != null and cityCode != ''">city_code,</if>
|
|
|
|
- <if test="cityName != null and cityName != ''">city_name,</if>
|
|
|
|
- <if test="districtCode != null and districtCode != ''">district_code,</if>
|
|
|
|
- <if test="districtName != null and districtName != ''">district_name,</if>
|
|
|
|
- create_time
|
|
|
|
- )values(
|
|
|
|
- <if test="deptId != null and deptId != 0">#{deptId},</if>
|
|
|
|
- <if test="parentId != null and parentId != 0">#{parentId},</if>
|
|
|
|
- <if test="deptName != null and deptName != ''">#{deptName},</if>
|
|
|
|
- <if test="ancestors != null and ancestors != ''">#{ancestors},</if>
|
|
|
|
- <if test="orderNum != null">#{orderNum},</if>
|
|
|
|
- <if test="leader != null and leader != ''">#{leader},</if>
|
|
|
|
- <if test="phone != null and phone != ''">#{phone},</if>
|
|
|
|
- <if test="email != null and email != ''">#{email},</if>
|
|
|
|
- <if test="status != null">#{status},</if>
|
|
|
|
- <if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
|
-
|
|
|
|
- <if test="areaType != null and areaType != ''">#{areaType},</if>
|
|
|
|
- <if test="provinceCode != null and provinceCode != ''">#{provinceCode},</if>
|
|
|
|
- <if test="provinceName != null and provinceName != ''">#{provinceName},</if>
|
|
|
|
- <if test="cityCode != null and cityCode != ''">#{cityCode},</if>
|
|
|
|
- <if test="cityName != null and cityName != ''">#{cityName},</if>
|
|
|
|
- <if test="districtCode != null and districtCode != ''">#{districtCode},</if>
|
|
|
|
- <if test="districtName != null and districtName != ''">#{districtName},</if>
|
|
|
|
-
|
|
|
|
- sysdate()
|
|
|
|
- )
|
|
|
|
- </insert>
|
|
|
|
|
|
+ sysdate()
|
|
|
|
+ )
|
|
|
|
+ </insert>
|
|
|
|
|
|
<update id="updateDept" parameterType="SysDept">
|
|
<update id="updateDept" parameterType="SysDept">
|
|
update sys_dept
|
|
update sys_dept
|
|
@@ -154,7 +154,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="email != null">email = #{email},</if>
|
|
<if test="email != null">email = #{email},</if>
|
|
<if test="status != null and status != ''">status = #{status},</if>
|
|
<if test="status != null and status != ''">status = #{status},</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
-
|
|
|
|
|
|
+ <if test="pointList != null and pointList != ''">point_list = #{pointList},</if>
|
|
<if test="areaType != null and areaType != ''">area_type = #{areaType},</if>
|
|
<if test="areaType != null and areaType != ''">area_type = #{areaType},</if>
|
|
<if test="provinceCode != null and provinceCode != ''"> province_code=#{provinceCode},</if>
|
|
<if test="provinceCode != null and provinceCode != ''"> province_code=#{provinceCode},</if>
|
|
<if test="provinceName != null and provinceName != ''">province_name=#{provinceName},</if>
|
|
<if test="provinceName != null and provinceName != ''">province_name=#{provinceName},</if>
|