学校周边重点人员
涉及师生安全的案(事)件 以上两项内容与学校绑定
This commit is contained in:
parent
fc7a3eaf64
commit
9bdbed5175
@ -11,6 +11,7 @@ package cn.com.tenlion.systembase.pojo.bos.schoolkey;
|
|||||||
public class SchoolKeyBO {
|
public class SchoolKeyBO {
|
||||||
|
|
||||||
private String schoolKeyId;
|
private String schoolKeyId;
|
||||||
|
private String schoolId;
|
||||||
private String baseId;
|
private String baseId;
|
||||||
private String degreeOfHarm;
|
private String degreeOfHarm;
|
||||||
private String degreeOfHarmName;
|
private String degreeOfHarmName;
|
||||||
@ -25,6 +26,14 @@ public class SchoolKeyBO {
|
|||||||
this.schoolKeyId = schoolKeyId;
|
this.schoolKeyId = schoolKeyId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSchoolId() {
|
||||||
|
return schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSchoolId(String schoolId) {
|
||||||
|
this.schoolId = schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
public String getBaseId() {
|
public String getBaseId() {
|
||||||
return baseId == null ? "" : baseId.trim();
|
return baseId == null ? "" : baseId.trim();
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ package cn.com.tenlion.systembase.pojo.bos.stuteasafe;
|
|||||||
public class StuTeaSafeBO {
|
public class StuTeaSafeBO {
|
||||||
|
|
||||||
private String stuTeaSafeId;
|
private String stuTeaSafeId;
|
||||||
|
private String schoolId;
|
||||||
private String caseCode;
|
private String caseCode;
|
||||||
private String caseName;
|
private String caseName;
|
||||||
private String happenTime;
|
private String happenTime;
|
||||||
@ -41,6 +42,14 @@ public class StuTeaSafeBO {
|
|||||||
this.stuTeaSafeId = stuTeaSafeId;
|
this.stuTeaSafeId = stuTeaSafeId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSchoolId() {
|
||||||
|
return schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSchoolId(String schoolId) {
|
||||||
|
this.schoolId = schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
public String getCaseCode() {
|
public String getCaseCode() {
|
||||||
return caseCode == null ? "" : caseCode.trim();
|
return caseCode == null ? "" : caseCode.trim();
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,8 @@ public class SchoolKeyDTO {
|
|||||||
|
|
||||||
@ApiModelProperty(name = "schoolKeyId", value = "主键UUID")
|
@ApiModelProperty(name = "schoolKeyId", value = "主键UUID")
|
||||||
private String schoolKeyId;
|
private String schoolKeyId;
|
||||||
|
@ApiModelProperty(name = "schoolId", value = "学校ID")
|
||||||
|
private String schoolId;
|
||||||
@ApiModelProperty(name = "baseId", value = "基础人员信息表ID")
|
@ApiModelProperty(name = "baseId", value = "基础人员信息表ID")
|
||||||
private String baseId;
|
private String baseId;
|
||||||
@ApiModelProperty(name = "degreeOfHarm", value = "危害程度字典表ID")
|
@ApiModelProperty(name = "degreeOfHarm", value = "危害程度字典表ID")
|
||||||
@ -35,6 +37,14 @@ public class SchoolKeyDTO {
|
|||||||
this.schoolKeyId = schoolKeyId;
|
this.schoolKeyId = schoolKeyId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSchoolId() {
|
||||||
|
return schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSchoolId(String schoolId) {
|
||||||
|
this.schoolId = schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
public String getBaseId() {
|
public String getBaseId() {
|
||||||
return baseId == null ? "" : baseId.trim();
|
return baseId == null ? "" : baseId.trim();
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,8 @@ public class StuTeaSafeDTO {
|
|||||||
|
|
||||||
@ApiModelProperty(name = "stuTeaSafeId", value = "主键UUID")
|
@ApiModelProperty(name = "stuTeaSafeId", value = "主键UUID")
|
||||||
private String stuTeaSafeId;
|
private String stuTeaSafeId;
|
||||||
|
@ApiModelProperty(name = "schoolId", value = "学校ID")
|
||||||
|
private String schoolId;
|
||||||
@ApiModelProperty(name = "caseCode", value = "案(事)件编号")
|
@ApiModelProperty(name = "caseCode", value = "案(事)件编号")
|
||||||
private String caseCode;
|
private String caseCode;
|
||||||
@ApiModelProperty(name = "caseName", value = "案(事)件名称")
|
@ApiModelProperty(name = "caseName", value = "案(事)件名称")
|
||||||
@ -59,6 +61,14 @@ public class StuTeaSafeDTO {
|
|||||||
@ApiModelProperty(name = "caseSolve", value = "案件侦破情况")
|
@ApiModelProperty(name = "caseSolve", value = "案件侦破情况")
|
||||||
private String caseSolve;
|
private String caseSolve;
|
||||||
|
|
||||||
|
public String getSchoolId() {
|
||||||
|
return schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSchoolId(String schoolId) {
|
||||||
|
this.schoolId = schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
public String getStuTeaSafeId() {
|
public String getStuTeaSafeId() {
|
||||||
return stuTeaSafeId == null ? "" : stuTeaSafeId.trim();
|
return stuTeaSafeId == null ? "" : stuTeaSafeId.trim();
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ package cn.com.tenlion.systembase.pojo.pos.schoolkey;
|
|||||||
public class SchoolKeyPO {
|
public class SchoolKeyPO {
|
||||||
|
|
||||||
private String schoolKeyId;
|
private String schoolKeyId;
|
||||||
|
private String schoolId;
|
||||||
private String baseId;
|
private String baseId;
|
||||||
private String degreeOfHarm;
|
private String degreeOfHarm;
|
||||||
private String degreeOfHarmName;
|
private String degreeOfHarmName;
|
||||||
@ -25,6 +26,14 @@ public class SchoolKeyPO {
|
|||||||
this.schoolKeyId = schoolKeyId;
|
this.schoolKeyId = schoolKeyId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSchoolId() {
|
||||||
|
return schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSchoolId(String schoolId) {
|
||||||
|
this.schoolId = schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
public String getBaseId() {
|
public String getBaseId() {
|
||||||
return baseId == null ? "" : baseId.trim();
|
return baseId == null ? "" : baseId.trim();
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ package cn.com.tenlion.systembase.pojo.pos.stuteasafe;
|
|||||||
public class StuTeaSafePO {
|
public class StuTeaSafePO {
|
||||||
|
|
||||||
private String stuTeaSafeId;
|
private String stuTeaSafeId;
|
||||||
|
private String schoolId;
|
||||||
private String caseCode;
|
private String caseCode;
|
||||||
private String caseName;
|
private String caseName;
|
||||||
private String happenTime;
|
private String happenTime;
|
||||||
@ -41,6 +42,14 @@ public class StuTeaSafePO {
|
|||||||
this.stuTeaSafeId = stuTeaSafeId;
|
this.stuTeaSafeId = stuTeaSafeId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSchoolId() {
|
||||||
|
return schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSchoolId(String schoolId) {
|
||||||
|
this.schoolId = schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
public String getCaseCode() {
|
public String getCaseCode() {
|
||||||
return caseCode == null ? "" : caseCode.trim();
|
return caseCode == null ? "" : caseCode.trim();
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,8 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
@ApiModel
|
@ApiModel
|
||||||
public class SchoolKeyVO {
|
public class SchoolKeyVO {
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "schoolId", value = "学校ID")
|
||||||
|
private String schoolId;
|
||||||
@ApiModelProperty(name = "baseId", value = "基础人员信息表ID")
|
@ApiModelProperty(name = "baseId", value = "基础人员信息表ID")
|
||||||
private String baseId;
|
private String baseId;
|
||||||
@ApiModelProperty(name = "degreeOfHarm", value = "危害程度字典表ID")
|
@ApiModelProperty(name = "degreeOfHarm", value = "危害程度字典表ID")
|
||||||
@ -28,6 +30,14 @@ public class SchoolKeyVO {
|
|||||||
@CheckNumberAnnotation(name = "是否关注")
|
@CheckNumberAnnotation(name = "是否关注")
|
||||||
private Integer isFollow;
|
private Integer isFollow;
|
||||||
|
|
||||||
|
public String getSchoolId() {
|
||||||
|
return schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSchoolId(String schoolId) {
|
||||||
|
this.schoolId = schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
public String getBaseId() {
|
public String getBaseId() {
|
||||||
return baseId == null ? "" : baseId.trim();
|
return baseId == null ? "" : baseId.trim();
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,8 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
@ApiModel
|
@ApiModel
|
||||||
public class StuTeaSafeVO {
|
public class StuTeaSafeVO {
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "schoolId", value = "学校ID")
|
||||||
|
private String schoolId;
|
||||||
@ApiModelProperty(name = "caseCode", value = "案(事)件编号")
|
@ApiModelProperty(name = "caseCode", value = "案(事)件编号")
|
||||||
private String caseCode;
|
private String caseCode;
|
||||||
@ApiModelProperty(name = "caseName", value = "案(事)件名称")
|
@ApiModelProperty(name = "caseName", value = "案(事)件名称")
|
||||||
@ -64,6 +66,14 @@ public class StuTeaSafeVO {
|
|||||||
@ApiModelProperty(name = "caseSolve", value = "案件侦破情况")
|
@ApiModelProperty(name = "caseSolve", value = "案件侦破情况")
|
||||||
private String caseSolve;
|
private String caseSolve;
|
||||||
|
|
||||||
|
public String getSchoolId() {
|
||||||
|
return schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSchoolId(String schoolId) {
|
||||||
|
this.schoolId = schoolId;
|
||||||
|
}
|
||||||
|
|
||||||
public String getCaseCode() {
|
public String getCaseCode() {
|
||||||
return caseCode == null ? "" : caseCode.trim();
|
return caseCode == null ? "" : caseCode.trim();
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
<resultMap id="schoolKeyDTO" type="cn.com.tenlion.systembase.pojo.dtos.schoolkey.SchoolKeyDTO">
|
<resultMap id="schoolKeyDTO" type="cn.com.tenlion.systembase.pojo.dtos.schoolkey.SchoolKeyDTO">
|
||||||
<result column="school_key_id" property="schoolKeyId"/>
|
<result column="school_key_id" property="schoolKeyId"/>
|
||||||
|
<result column="school_id" property="schoolId"/>
|
||||||
<result column="base_id" property="baseId"/>
|
<result column="base_id" property="baseId"/>
|
||||||
<result column="degree_of_harm" property="degreeOfHarm"/>
|
<result column="degree_of_harm" property="degreeOfHarm"/>
|
||||||
<result column="degree_of_harm_name" property="degreeOfHarmName"/>
|
<result column="degree_of_harm_name" property="degreeOfHarmName"/>
|
||||||
@ -13,6 +14,7 @@
|
|||||||
|
|
||||||
<resultMap id="schoolKeyBO" type="cn.com.tenlion.systembase.pojo.bos.schoolkey.SchoolKeyBO">
|
<resultMap id="schoolKeyBO" type="cn.com.tenlion.systembase.pojo.bos.schoolkey.SchoolKeyBO">
|
||||||
<result column="school_key_id" property="schoolKeyId"/>
|
<result column="school_key_id" property="schoolKeyId"/>
|
||||||
|
<result column="school_id" property="schoolId"/>
|
||||||
<result column="base_id" property="baseId"/>
|
<result column="base_id" property="baseId"/>
|
||||||
<result column="degree_of_harm" property="degreeOfHarm"/>
|
<result column="degree_of_harm" property="degreeOfHarm"/>
|
||||||
<result column="degree_of_harm_name" property="degreeOfHarmName"/>
|
<result column="degree_of_harm_name" property="degreeOfHarmName"/>
|
||||||
@ -22,6 +24,7 @@
|
|||||||
|
|
||||||
<resultMap id="schoolKeyPO" type="cn.com.tenlion.systembase.pojo.pos.schoolkey.SchoolKeyPO">
|
<resultMap id="schoolKeyPO" type="cn.com.tenlion.systembase.pojo.pos.schoolkey.SchoolKeyPO">
|
||||||
<result column="school_key_id" property="schoolKeyId"/>
|
<result column="school_key_id" property="schoolKeyId"/>
|
||||||
|
<result column="school_id" property="schoolId"/>
|
||||||
<result column="base_id" property="baseId"/>
|
<result column="base_id" property="baseId"/>
|
||||||
<result column="degree_of_harm" property="degreeOfHarm"/>
|
<result column="degree_of_harm" property="degreeOfHarm"/>
|
||||||
<result column="degree_of_harm_name" property="degreeOfHarmName"/>
|
<result column="degree_of_harm_name" property="degreeOfHarmName"/>
|
||||||
@ -38,6 +41,7 @@
|
|||||||
degree_of_harm_name,
|
degree_of_harm_name,
|
||||||
degree_of_harm_code,
|
degree_of_harm_code,
|
||||||
is_follow,
|
is_follow,
|
||||||
|
school_id,
|
||||||
creator,
|
creator,
|
||||||
gmt_create,
|
gmt_create,
|
||||||
modifier,
|
modifier,
|
||||||
@ -50,6 +54,7 @@
|
|||||||
#{degreeOfHarmName},
|
#{degreeOfHarmName},
|
||||||
#{degreeOfHarmCode},
|
#{degreeOfHarmCode},
|
||||||
#{isFollow},
|
#{isFollow},
|
||||||
|
#{schoolId},
|
||||||
#{creator},
|
#{creator},
|
||||||
#{gmtCreate},
|
#{gmtCreate},
|
||||||
#{modifier},
|
#{modifier},
|
||||||
@ -89,6 +94,9 @@
|
|||||||
UPDATE
|
UPDATE
|
||||||
data_school_key
|
data_school_key
|
||||||
SET
|
SET
|
||||||
|
<if test="schoolId != null and schoolId != ''">
|
||||||
|
school_id = #{schoolId},
|
||||||
|
</if>
|
||||||
<if test="baseId != null and baseId != ''">
|
<if test="baseId != null and baseId != ''">
|
||||||
base_id = #{baseId},
|
base_id = #{baseId},
|
||||||
</if>
|
</if>
|
||||||
@ -115,6 +123,7 @@
|
|||||||
<select id="get" parameterType="map" resultMap="schoolKeyDTO">
|
<select id="get" parameterType="map" resultMap="schoolKeyDTO">
|
||||||
SELECT
|
SELECT
|
||||||
t1.base_id,
|
t1.base_id,
|
||||||
|
t1.school_id,
|
||||||
t1.degree_of_harm,
|
t1.degree_of_harm,
|
||||||
t1.degree_of_harm_name,
|
t1.degree_of_harm_name,
|
||||||
t1.degree_of_harm_code,
|
t1.degree_of_harm_code,
|
||||||
@ -134,6 +143,7 @@
|
|||||||
<select id="getBO" parameterType="map" resultMap="schoolKeyBO">
|
<select id="getBO" parameterType="map" resultMap="schoolKeyBO">
|
||||||
SELECT
|
SELECT
|
||||||
t1.school_key_id,
|
t1.school_key_id,
|
||||||
|
t1.school_id,
|
||||||
t1.base_id,
|
t1.base_id,
|
||||||
t1.degree_of_harm,
|
t1.degree_of_harm,
|
||||||
t1.degree_of_harm_name,
|
t1.degree_of_harm_name,
|
||||||
@ -153,6 +163,7 @@
|
|||||||
<select id="getPO" parameterType="map" resultMap="schoolKeyPO">
|
<select id="getPO" parameterType="map" resultMap="schoolKeyPO">
|
||||||
SELECT
|
SELECT
|
||||||
t1.school_key_id,
|
t1.school_key_id,
|
||||||
|
t1.school_id,
|
||||||
t1.base_id,
|
t1.base_id,
|
||||||
t1.degree_of_harm,
|
t1.degree_of_harm,
|
||||||
t1.degree_of_harm_name,
|
t1.degree_of_harm_name,
|
||||||
@ -172,6 +183,7 @@
|
|||||||
<select id="list" parameterType="map" resultMap="schoolKeyDTO">
|
<select id="list" parameterType="map" resultMap="schoolKeyDTO">
|
||||||
SELECT
|
SELECT
|
||||||
t1.school_key_id,
|
t1.school_key_id,
|
||||||
|
t1.school_id,
|
||||||
t1.base_id,
|
t1.base_id,
|
||||||
t1.degree_of_harm,
|
t1.degree_of_harm,
|
||||||
t1.degree_of_harm_name,
|
t1.degree_of_harm_name,
|
||||||
@ -188,6 +200,10 @@
|
|||||||
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
<if test="schoolId != null and schoolId != ''">
|
||||||
|
AND
|
||||||
|
t1.school_id = #{schoolId}
|
||||||
|
</if>
|
||||||
<if test="startTime != null and startTime != ''">
|
<if test="startTime != null and startTime != ''">
|
||||||
AND
|
AND
|
||||||
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||||
@ -209,6 +225,7 @@
|
|||||||
<select id="listBO" parameterType="map" resultMap="schoolKeyBO">
|
<select id="listBO" parameterType="map" resultMap="schoolKeyBO">
|
||||||
SELECT
|
SELECT
|
||||||
t1.school_key_id,
|
t1.school_key_id,
|
||||||
|
t1.school_id,
|
||||||
t1.base_id,
|
t1.base_id,
|
||||||
t1.degree_of_harm,
|
t1.degree_of_harm,
|
||||||
t1.degree_of_harm_name,
|
t1.degree_of_harm_name,
|
||||||
@ -224,6 +241,10 @@
|
|||||||
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
<if test="schoolId != null and schoolId != ''">
|
||||||
|
AND
|
||||||
|
t1.school_id = #{schoolId}
|
||||||
|
</if>
|
||||||
<if test="startTime != null and startTime != ''">
|
<if test="startTime != null and startTime != ''">
|
||||||
AND
|
AND
|
||||||
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||||
@ -245,6 +266,7 @@
|
|||||||
<select id="listPO" parameterType="map" resultMap="schoolKeyPO">
|
<select id="listPO" parameterType="map" resultMap="schoolKeyPO">
|
||||||
SELECT
|
SELECT
|
||||||
t1.school_key_id,
|
t1.school_key_id,
|
||||||
|
t1.school_id,
|
||||||
t1.base_id,
|
t1.base_id,
|
||||||
t1.degree_of_harm,
|
t1.degree_of_harm,
|
||||||
t1.degree_of_harm_name,
|
t1.degree_of_harm_name,
|
||||||
@ -260,6 +282,10 @@
|
|||||||
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
<if test="schoolId != null and schoolId != ''">
|
||||||
|
AND
|
||||||
|
t1.school_id = #{schoolId}
|
||||||
|
</if>
|
||||||
<if test="startTime != null and startTime != ''">
|
<if test="startTime != null and startTime != ''">
|
||||||
AND
|
AND
|
||||||
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
<resultMap id="stuTeaSafeDTO" type="cn.com.tenlion.systembase.pojo.dtos.stuteasafe.StuTeaSafeDTO">
|
<resultMap id="stuTeaSafeDTO" type="cn.com.tenlion.systembase.pojo.dtos.stuteasafe.StuTeaSafeDTO">
|
||||||
<result column="stu_tea_safe_id" property="stuTeaSafeId"/>
|
<result column="stu_tea_safe_id" property="stuTeaSafeId"/>
|
||||||
|
<result column="school_id" property="schoolId"/>
|
||||||
<result column="case_code" property="caseCode"/>
|
<result column="case_code" property="caseCode"/>
|
||||||
<result column="case_name" property="caseName"/>
|
<result column="case_name" property="caseName"/>
|
||||||
<result column="happen_time" property="happenTime"/>
|
<result column="happen_time" property="happenTime"/>
|
||||||
@ -29,6 +30,7 @@
|
|||||||
|
|
||||||
<resultMap id="stuTeaSafeBO" type="cn.com.tenlion.systembase.pojo.bos.stuteasafe.StuTeaSafeBO">
|
<resultMap id="stuTeaSafeBO" type="cn.com.tenlion.systembase.pojo.bos.stuteasafe.StuTeaSafeBO">
|
||||||
<result column="stu_tea_safe_id" property="stuTeaSafeId"/>
|
<result column="stu_tea_safe_id" property="stuTeaSafeId"/>
|
||||||
|
<result column="school_id" property="schoolId"/>
|
||||||
<result column="case_code" property="caseCode"/>
|
<result column="case_code" property="caseCode"/>
|
||||||
<result column="case_name" property="caseName"/>
|
<result column="case_name" property="caseName"/>
|
||||||
<result column="happen_time" property="happenTime"/>
|
<result column="happen_time" property="happenTime"/>
|
||||||
@ -54,6 +56,7 @@
|
|||||||
|
|
||||||
<resultMap id="stuTeaSafePO" type="cn.com.tenlion.systembase.pojo.pos.stuteasafe.StuTeaSafePO">
|
<resultMap id="stuTeaSafePO" type="cn.com.tenlion.systembase.pojo.pos.stuteasafe.StuTeaSafePO">
|
||||||
<result column="stu_tea_safe_id" property="stuTeaSafeId"/>
|
<result column="stu_tea_safe_id" property="stuTeaSafeId"/>
|
||||||
|
<result column="school_id" property="schoolId"/>
|
||||||
<result column="case_code" property="caseCode"/>
|
<result column="case_code" property="caseCode"/>
|
||||||
<result column="case_name" property="caseName"/>
|
<result column="case_name" property="caseName"/>
|
||||||
<result column="happen_time" property="happenTime"/>
|
<result column="happen_time" property="happenTime"/>
|
||||||
@ -81,6 +84,7 @@
|
|||||||
<insert id="save" parameterType="map">
|
<insert id="save" parameterType="map">
|
||||||
INSERT INTO data_stu_tea_safe(
|
INSERT INTO data_stu_tea_safe(
|
||||||
stu_tea_safe_id,
|
stu_tea_safe_id,
|
||||||
|
school_id,
|
||||||
case_code,
|
case_code,
|
||||||
case_name,
|
case_name,
|
||||||
happen_time,
|
happen_time,
|
||||||
@ -109,6 +113,7 @@
|
|||||||
is_delete
|
is_delete
|
||||||
) VALUES(
|
) VALUES(
|
||||||
#{stuTeaSafeId},
|
#{stuTeaSafeId},
|
||||||
|
#{schoolId},
|
||||||
#{caseCode},
|
#{caseCode},
|
||||||
#{caseName},
|
#{caseName},
|
||||||
#{happenTime},
|
#{happenTime},
|
||||||
@ -169,6 +174,9 @@
|
|||||||
UPDATE
|
UPDATE
|
||||||
data_stu_tea_safe
|
data_stu_tea_safe
|
||||||
SET
|
SET
|
||||||
|
<if test="schoolId != null and schoolId != ''">
|
||||||
|
school_id = #{schoolId},
|
||||||
|
</if>
|
||||||
<if test="caseCode != null and caseCode != ''">
|
<if test="caseCode != null and caseCode != ''">
|
||||||
case_code = #{caseCode},
|
case_code = #{caseCode},
|
||||||
</if>
|
</if>
|
||||||
@ -242,6 +250,7 @@
|
|||||||
<!-- 涉及师生安全的案(事)件详情 -->
|
<!-- 涉及师生安全的案(事)件详情 -->
|
||||||
<select id="get" parameterType="map" resultMap="stuTeaSafeDTO">
|
<select id="get" parameterType="map" resultMap="stuTeaSafeDTO">
|
||||||
SELECT
|
SELECT
|
||||||
|
t1.school_id,
|
||||||
t1.case_code,
|
t1.case_code,
|
||||||
t1.case_name,
|
t1.case_name,
|
||||||
t1.happen_time,
|
t1.happen_time,
|
||||||
@ -278,6 +287,7 @@
|
|||||||
<select id="getBO" parameterType="map" resultMap="stuTeaSafeBO">
|
<select id="getBO" parameterType="map" resultMap="stuTeaSafeBO">
|
||||||
SELECT
|
SELECT
|
||||||
t1.stu_tea_safe_id,
|
t1.stu_tea_safe_id,
|
||||||
|
t1.school_id,
|
||||||
t1.case_code,
|
t1.case_code,
|
||||||
t1.case_name,
|
t1.case_name,
|
||||||
t1.happen_time,
|
t1.happen_time,
|
||||||
@ -313,6 +323,7 @@
|
|||||||
<select id="getPO" parameterType="map" resultMap="stuTeaSafePO">
|
<select id="getPO" parameterType="map" resultMap="stuTeaSafePO">
|
||||||
SELECT
|
SELECT
|
||||||
t1.stu_tea_safe_id,
|
t1.stu_tea_safe_id,
|
||||||
|
t1.school_id,
|
||||||
t1.case_code,
|
t1.case_code,
|
||||||
t1.case_name,
|
t1.case_name,
|
||||||
t1.happen_time,
|
t1.happen_time,
|
||||||
@ -348,6 +359,7 @@
|
|||||||
<select id="list" parameterType="map" resultMap="stuTeaSafeDTO">
|
<select id="list" parameterType="map" resultMap="stuTeaSafeDTO">
|
||||||
SELECT
|
SELECT
|
||||||
t1.stu_tea_safe_id,
|
t1.stu_tea_safe_id,
|
||||||
|
t1.school_id,
|
||||||
t1.case_code,
|
t1.case_code,
|
||||||
t1.case_name,
|
t1.case_name,
|
||||||
t1.happen_time,
|
t1.happen_time,
|
||||||
@ -380,6 +392,10 @@
|
|||||||
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
<if test="schoolId != null and schoolId != ''">
|
||||||
|
AND
|
||||||
|
t1.school_id = #{schoolId}
|
||||||
|
</if>
|
||||||
<if test="startTime != null and startTime != ''">
|
<if test="startTime != null and startTime != ''">
|
||||||
AND
|
AND
|
||||||
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||||
@ -401,6 +417,7 @@
|
|||||||
<select id="listBO" parameterType="map" resultMap="stuTeaSafeBO">
|
<select id="listBO" parameterType="map" resultMap="stuTeaSafeBO">
|
||||||
SELECT
|
SELECT
|
||||||
t1.stu_tea_safe_id,
|
t1.stu_tea_safe_id,
|
||||||
|
t1.school_id,
|
||||||
t1.case_code,
|
t1.case_code,
|
||||||
t1.case_name,
|
t1.case_name,
|
||||||
t1.happen_time,
|
t1.happen_time,
|
||||||
@ -432,6 +449,10 @@
|
|||||||
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
<if test="schoolId != null and schoolId != ''">
|
||||||
|
AND
|
||||||
|
t1.school_id = #{schoolId}
|
||||||
|
</if>
|
||||||
<if test="startTime != null and startTime != ''">
|
<if test="startTime != null and startTime != ''">
|
||||||
AND
|
AND
|
||||||
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||||
@ -453,6 +474,7 @@
|
|||||||
<select id="listPO" parameterType="map" resultMap="stuTeaSafePO">
|
<select id="listPO" parameterType="map" resultMap="stuTeaSafePO">
|
||||||
SELECT
|
SELECT
|
||||||
t1.stu_tea_safe_id,
|
t1.stu_tea_safe_id,
|
||||||
|
t1.school_id,
|
||||||
t1.case_code,
|
t1.case_code,
|
||||||
t1.case_name,
|
t1.case_name,
|
||||||
t1.happen_time,
|
t1.happen_time,
|
||||||
@ -484,6 +506,10 @@
|
|||||||
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
t1.id LIKE CONCAT('%', #{keywords}, '%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
<if test="schoolId != null and schoolId != ''">
|
||||||
|
AND
|
||||||
|
t1.school_id = #{schoolId}
|
||||||
|
</if>
|
||||||
<if test="startTime != null and startTime != ''">
|
<if test="startTime != null and startTime != ''">
|
||||||
AND
|
AND
|
||||||
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||||
|
@ -247,6 +247,18 @@
|
|||||||
}
|
}
|
||||||
return rowData;
|
return rowData;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{field: 'schoolKey', fixed: 'right', width: 150, title: '周边重点人员', align:'center',
|
||||||
|
templet: function(row) {
|
||||||
|
var rowData = '<a class="layui-btn layui-btn-xs" lay-event="schoolKey">添加重点人员</a>';
|
||||||
|
return rowData;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{field: 'stuteasafe', fixed: 'right', width: 150, title: '涉及师生安全案件', align:'center',
|
||||||
|
templet: function(row) {
|
||||||
|
var rowData = '<a class="layui-btn layui-btn-xs" lay-event="stuteasafe">添加案件</a>';
|
||||||
|
return rowData;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
@ -261,6 +273,46 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 巡查记录
|
||||||
|
function schoolKey(data) {
|
||||||
|
top.dialog.open({
|
||||||
|
url: top.restAjax.path('route/schoolkey/list?schoolId={schoolId}', [data.schoolId]),
|
||||||
|
title: "巡查记录列表",
|
||||||
|
width: '80%',
|
||||||
|
height: '80%',
|
||||||
|
onClose: function() {
|
||||||
|
reloadTable();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 巡查记录
|
||||||
|
function stuteasafe(data) {
|
||||||
|
top.dialog.open({
|
||||||
|
url: top.restAjax.path('route/stuteasafe/list?schoolId={schoolId}', [data.schoolId]),
|
||||||
|
title: "巡查记录列表",
|
||||||
|
width: '80%',
|
||||||
|
height: '80%',
|
||||||
|
onClose: function() {
|
||||||
|
reloadTable();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
//监听行单击事件
|
||||||
|
table.on('tool(dataTable)', function(obj){
|
||||||
|
var data = obj.data;
|
||||||
|
console.log(data)
|
||||||
|
// 周边重点人员
|
||||||
|
if('schoolKey' == obj.event) {
|
||||||
|
schoolKey(data);
|
||||||
|
}else if('stuteasafe' == obj.event) {
|
||||||
|
stuteasafe(data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// 重载表格
|
// 重载表格
|
||||||
function reloadTable(currentPage) {
|
function reloadTable(currentPage) {
|
||||||
table.reload('dataTable', {
|
table.reload('dataTable', {
|
||||||
|
@ -65,14 +65,15 @@
|
|||||||
var laydate = layui.laydate;
|
var laydate = layui.laydate;
|
||||||
var common = layui.common;
|
var common = layui.common;
|
||||||
var resizeTimeout = null;
|
var resizeTimeout = null;
|
||||||
var tableUrl = 'api/schoolkey/listpage';
|
var tableUrl = 'api/schoolkey/listpage?schoolId={schoolId}';
|
||||||
|
var schoolId = top.restAjax.params(window.location.href).schoolId;
|
||||||
|
|
||||||
// 初始化表格
|
// 初始化表格
|
||||||
function initTable() {
|
function initTable() {
|
||||||
table.render({
|
table.render({
|
||||||
elem: '#dataTable',
|
elem: '#dataTable',
|
||||||
id: 'dataTable',
|
id: 'dataTable',
|
||||||
url: top.restAjax.path(tableUrl, []),
|
url: top.restAjax.path(tableUrl, [schoolId]),
|
||||||
width: admin.screen() > 1 ? '100%' : '',
|
width: admin.screen() > 1 ? '100%' : '',
|
||||||
height: $win.height() - 90,
|
height: $win.height() - 90,
|
||||||
limit: 20,
|
limit: 20,
|
||||||
@ -129,7 +130,7 @@
|
|||||||
// 重载表格
|
// 重载表格
|
||||||
function reloadTable(currentPage) {
|
function reloadTable(currentPage) {
|
||||||
table.reload('dataTable', {
|
table.reload('dataTable', {
|
||||||
url: top.restAjax.path(tableUrl, []),
|
url: top.restAjax.path(tableUrl, [schoolId]),
|
||||||
where: {
|
where: {
|
||||||
keywords: $('#keywords').val(),
|
keywords: $('#keywords').val(),
|
||||||
startTime: $('#startTime').val(),
|
startTime: $('#startTime').val(),
|
||||||
@ -201,7 +202,7 @@
|
|||||||
area: ['100%', '100%'],
|
area: ['100%', '100%'],
|
||||||
shadeClose: true,
|
shadeClose: true,
|
||||||
anim: 2,
|
anim: 2,
|
||||||
content: top.restAjax.path('route/schoolkey/save', []),
|
content: top.restAjax.path('route/schoolkey/save?schoolId={schoolId}', [schoolId]),
|
||||||
end: function() {
|
end: function() {
|
||||||
reloadTable();
|
reloadTable();
|
||||||
}
|
}
|
||||||
|
@ -137,6 +137,7 @@
|
|||||||
var wangEditor = window.wangEditor;
|
var wangEditor = window.wangEditor;
|
||||||
var wangEditorObj = {};
|
var wangEditorObj = {};
|
||||||
var viewerObj = {};
|
var viewerObj = {};
|
||||||
|
var schoolId = top.restAjax.params(window.location.href).schoolId;
|
||||||
|
|
||||||
$(document).on('click','#search',function(){
|
$(document).on('click','#search',function(){
|
||||||
queryBasePopulationInfo($('#idCardNumber').val());
|
queryBasePopulationInfo($('#idCardNumber').val());
|
||||||
@ -232,6 +233,7 @@
|
|||||||
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
||||||
top.dialog.close(index);
|
top.dialog.close(index);
|
||||||
var loadLayerIndex;
|
var loadLayerIndex;
|
||||||
|
formData.field['schoolId'] = schoolId;
|
||||||
top.restAjax.post(top.restAjax.path('api/schoolkey/save', []), formData.field, null, function(code, data) {
|
top.restAjax.post(top.restAjax.path('api/schoolkey/save', []), formData.field, null, function(code, data) {
|
||||||
var layerIndex = top.dialog.msg(top.dataMessage.commitSuccess, {
|
var layerIndex = top.dialog.msg(top.dataMessage.commitSuccess, {
|
||||||
time: 0,
|
time: 0,
|
||||||
|
@ -65,14 +65,15 @@
|
|||||||
var laydate = layui.laydate;
|
var laydate = layui.laydate;
|
||||||
var common = layui.common;
|
var common = layui.common;
|
||||||
var resizeTimeout = null;
|
var resizeTimeout = null;
|
||||||
var tableUrl = 'api/stuteasafe/listpage';
|
var tableUrl = 'api/stuteasafe/listpage?schoolId={schoolId}';
|
||||||
|
var schoolId = top.restAjax.params(window.location.href).schoolId;
|
||||||
|
|
||||||
// 初始化表格
|
// 初始化表格
|
||||||
function initTable() {
|
function initTable() {
|
||||||
table.render({
|
table.render({
|
||||||
elem: '#dataTable',
|
elem: '#dataTable',
|
||||||
id: 'dataTable',
|
id: 'dataTable',
|
||||||
url: top.restAjax.path(tableUrl, []),
|
url: top.restAjax.path(tableUrl, [schoolId]),
|
||||||
width: admin.screen() > 1 ? '100%' : '',
|
width: admin.screen() > 1 ? '100%' : '',
|
||||||
height: $win.height() - 90,
|
height: $win.height() - 90,
|
||||||
limit: 20,
|
limit: 20,
|
||||||
@ -264,7 +265,7 @@
|
|||||||
// 重载表格
|
// 重载表格
|
||||||
function reloadTable(currentPage) {
|
function reloadTable(currentPage) {
|
||||||
table.reload('dataTable', {
|
table.reload('dataTable', {
|
||||||
url: top.restAjax.path(tableUrl, []),
|
url: top.restAjax.path(tableUrl, [schoolId]),
|
||||||
where: {
|
where: {
|
||||||
keywords: $('#keywords').val(),
|
keywords: $('#keywords').val(),
|
||||||
startTime: $('#startTime').val(),
|
startTime: $('#startTime').val(),
|
||||||
@ -336,7 +337,7 @@
|
|||||||
area: ['100%', '100%'],
|
area: ['100%', '100%'],
|
||||||
shadeClose: true,
|
shadeClose: true,
|
||||||
anim: 2,
|
anim: 2,
|
||||||
content: top.restAjax.path('route/stuteasafe/save', []),
|
content: top.restAjax.path('route/stuteasafe/save?schoolId={schoolId}', [schoolId]),
|
||||||
end: function() {
|
end: function() {
|
||||||
reloadTable();
|
reloadTable();
|
||||||
}
|
}
|
||||||
|
@ -160,6 +160,7 @@
|
|||||||
var wangEditor = window.wangEditor;
|
var wangEditor = window.wangEditor;
|
||||||
var wangEditorObj = {};
|
var wangEditorObj = {};
|
||||||
var viewerObj = {};
|
var viewerObj = {};
|
||||||
|
var schoolId = top.restAjax.params(window.location.href).schoolId;
|
||||||
|
|
||||||
// 初始化备注富文本
|
// 初始化备注富文本
|
||||||
function initCaseSituationRichText() {
|
function initCaseSituationRichText() {
|
||||||
@ -342,6 +343,7 @@
|
|||||||
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
||||||
top.dialog.close(index);
|
top.dialog.close(index);
|
||||||
var loadLayerIndex;
|
var loadLayerIndex;
|
||||||
|
formData.field['schoolId'] = schoolId;
|
||||||
top.restAjax.post(top.restAjax.path('api/stuteasafe/save', []), formData.field, null, function(code, data) {
|
top.restAjax.post(top.restAjax.path('api/stuteasafe/save', []), formData.field, null, function(code, data) {
|
||||||
var layerIndex = top.dialog.msg(top.dataMessage.commitSuccess, {
|
var layerIndex = top.dialog.msg(top.dataMessage.commitSuccess, {
|
||||||
time: 0,
|
time: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user