优化枚举类校验;优化Swagger配置,添加默认参数;fix删除部门;优化ResponseDTO;

This commit is contained in:
Turbolisten
2021-01-09 10:13:15 +08:00
parent f7155ac4c2
commit ea0159ddb4
12 changed files with 86 additions and 83 deletions

View File

@@ -18,15 +18,6 @@
d.create_time
</sql>
<select id="countSubDepartment" resultType="integer">
SELECT
count(1)
FROM
t_department
WHERE
parent_id = #{departmentId}
</select>
<select id="listAll" resultMap="DepartmentVO">
SELECT
<include refid="baseSql"></include>,
@@ -50,5 +41,14 @@
</select>
<select id="countSubDepartment" resultType="java.lang.Integer">
SELECT
count(1)
FROM
t_department
WHERE
parent_id = #{deptId}
</select>
</mapper>

View File

@@ -124,7 +124,10 @@
FROM
t_employee e
WHERE
e.department_id = #{departmentId}
e.department_id = #{depId}
<if test="deleteFlag != null">
AND e.is_delete = #{deleteFlag}
</if>
</select>