细节修改
This commit is contained in:
@@ -6,9 +6,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.constraints.NotNull;
|
|
||||||
import javax.validation.constraints.Pattern;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
@@ -57,6 +55,8 @@ public class DeptConfigParam {
|
|||||||
* 地图状态:0-离线 1-在线
|
* 地图状态:0-离线 1-在线
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty("地图状态:0-离线 1-在线")
|
@ApiModelProperty("地图状态:0-离线 1-在线")
|
||||||
|
@Max(value = 1)
|
||||||
|
@Min(value = 0)
|
||||||
@NotNull(message = "地图状态不可为空")
|
@NotNull(message = "地图状态不可为空")
|
||||||
private Integer mapType;
|
private Integer mapType;
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<mapper namespace="com.njcn.system.mapper.DeptMapMapper">
|
<mapper namespace="com.njcn.system.mapper.DeptMapMapper">
|
||||||
|
|
||||||
<select id="selectCountByDept" resultType="int">
|
<select id="selectCountByDept" resultType="int">
|
||||||
SELECT count(Id) FROM sys_dept WHERE Id = #{deptId}
|
SELECT count(Id) FROM sys_dept WHERE State = 1 AND Id = #{deptId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectDeptName" resultType="java.lang.String">
|
<select id="selectDeptName" resultType="java.lang.String">
|
||||||
|
|||||||
Reference in New Issue
Block a user