Commit 5c27a53c authored by 赵啸非's avatar 赵啸非

添加识别计划类

parent 8fc26cc4
......@@ -272,3 +272,49 @@ INSERT INTO `mortals_xhx_resource` VALUES (null, '监测预警记录详细记录
-- ----------------------------
INSERT INTO `mortals_xhx_param` VALUES (null, '签到方式', 'MonitorAlarmRecord', 'checkInMethod', '0', '自动签到', 1, 4, 0, 'checkInMethod', NULL, NULL, NULL);
INSERT INTO `mortals_xhx_param` VALUES (null, '签到方式', 'MonitorAlarmRecord', 'checkInMethod', '1', '手动签到', 1, 4, 0, 'checkInMethod', NULL, NULL, NULL);
-- ----------------------------
-- 人脸分组信息菜单 SQL
-- ----------------------------
INSERT INTO `mortals_xhx_menu` VALUES (null, '人脸分组信息', '/face/group/list', 0,'', 1, 1, 0, 0,'',NULL, NULL, NULL, 0, 0, 1, NULL, NULL, NULL);
-- ----------------------------
-- 人脸分组信息资源路径 SQL
-- ----------------------------
INSERT INTO `mortals_xhx_resource` VALUES (null, '人脸分组信息-菜单管理-查看', '/face/group/list,/face/group/view,/face/group/info,/face/group/export,/face/group/exportExcel,/face/group/downloadTemplate,/face/group/download', 3, 0, NULL, NULL, NULL, 0);
INSERT INTO `mortals_xhx_resource` VALUES (null, '人脸分组信息-菜单管理-维护', '/face/group/add,/face/group/edit,/face/group/delete,/face/group/logicDelete,/face/group/save,/face/group/importData', 3, 0, NULL, NULL, NULL, 0);
-- ----------------------------
-- 人脸分组信息参数 SQL
-- ----------------------------
-- ----------------------------
-- 分组人脸信息菜单 SQL
-- ----------------------------
INSERT INTO `mortals_xhx_menu` VALUES (null, '分组人脸信息', '/face/group/person/list', 0,'', 1, 1, 0, 0,'',NULL, NULL, NULL, 0, 0, 1, NULL, NULL, NULL);
-- ----------------------------
-- 分组人脸信息资源路径 SQL
-- ----------------------------
INSERT INTO `mortals_xhx_resource` VALUES (null, '分组人脸信息-菜单管理-查看', '/face/group/person/list,/face/group/person/view,/face/group/person/info,/face/group/person/export,/face/group/person/exportExcel,/face/group/person/downloadTemplate,/face/group/person/download', 3, 0, NULL, NULL, NULL, 0);
INSERT INTO `mortals_xhx_resource` VALUES (null, '分组人脸信息-菜单管理-维护', '/face/group/person/add,/face/group/person/edit,/face/group/person/delete,/face/group/person/logicDelete,/face/group/person/save,/face/group/person/importData', 3, 0, NULL, NULL, NULL, 0);
-- ----------------------------
-- 分组人脸信息参数 SQL
-- ----------------------------
-- ----------------------------
-- 人员识别计划信息菜单 SQL
-- ----------------------------
INSERT INTO `mortals_xhx_menu` VALUES (null, '人员识别计划信息', '/face/plan/list', 0,'', 1, 1, 0, 0,'',NULL, NULL, NULL, 0, 0, 1, NULL, NULL, NULL);
-- ----------------------------
-- 人员识别计划信息资源路径 SQL
-- ----------------------------
INSERT INTO `mortals_xhx_resource` VALUES (null, '人员识别计划信息-菜单管理-查看', '/face/plan/list,/face/plan/view,/face/plan/info,/face/plan/export,/face/plan/exportExcel,/face/plan/downloadTemplate,/face/plan/download', 3, 0, NULL, NULL, NULL, 0);
INSERT INTO `mortals_xhx_resource` VALUES (null, '人员识别计划信息-菜单管理-维护', '/face/plan/add,/face/plan/edit,/face/plan/delete,/face/plan/logicDelete,/face/plan/save,/face/plan/importData', 3, 0, NULL, NULL, NULL, 0);
-- ----------------------------
-- 人员识别计划信息参数 SQL
-- ----------------------------
INSERT INTO `mortals_xhx_param` VALUES (null, '识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划', 'FacePlan', 'recognitionPlanType', 'BLACK_LIST.重点人员识别计划', 'BLACK_LIST.重点人员识别计划', 1, 4, 0, 'recognitionPlanType', NULL, NULL, NULL);
INSERT INTO `mortals_xhx_param` VALUES (null, '识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划', 'FacePlan', 'recognitionPlanType', 'WHITE_LIST.陌生人识别计划', 'WHITE_LIST.陌生人识别计划', 1, 4, 0, 'recognitionPlanType', NULL, NULL, NULL);
......@@ -347,3 +347,61 @@ CREATE TABLE mortals_xhx_notice(
`updateUserId` bigint(20) COMMENT '更新人ID',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户消息';
-- ----------------------------
-- 人脸分组信息表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_face_group`;
CREATE TABLE mortals_xhx_face_group(
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`name` varchar(255) NOT NULL COMMENT '名称',
`description` varchar(1024) NOT NULL COMMENT '描述',
`indexCode` varchar(64) NOT NULL COMMENT '分组唯一标识',
`createTime` datetime COMMENT '创建时间',
`createUserId` bigint(20) COMMENT '创建人ID',
`updateTime` datetime COMMENT '更新时间',
`updateUserId` bigint(20) COMMENT '更新人ID',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='人脸分组信息';
-- ----------------------------
-- 分组人脸信息表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_face_group_person`;
CREATE TABLE mortals_xhx_face_group_person(
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`faceGroupId` bigint(20) COMMENT '人脸分组',
`name` varchar(255) NOT NULL COMMENT '名称',
`indexCode` varchar(64) NOT NULL COMMENT '人脸唯一标识',
`createTime` datetime COMMENT '创建时间',
`createUserId` bigint(20) COMMENT '创建人ID',
`updateTime` datetime COMMENT '更新时间',
`updateUserId` bigint(20) COMMENT '更新人ID',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='分组人脸信息';
-- ----------------------------
-- 人员识别计划信息表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_face_plan`;
CREATE TABLE mortals_xhx_face_plan(
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`indexCode` varchar(255) COMMENT '重点人员计划',
`name` varchar(255) NOT NULL COMMENT '名称',
`faceGroupIndexCodes` varchar(512) NOT NULL COMMENT '人脸分组的唯一标识集合,逗号分割',
`cameraIndexCodes` varchar(512) NOT NULL COMMENT '人脸分组的唯一标识集合,逗号分割',
`recognitionResourceIndexCodes` varchar(2048) NOT NULL COMMENT '识别资源的唯一标识集合,逗号分割',
`recognitionResourceType` varchar(512) NOT NULL COMMENT '识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸',
`recognitionPlanType` varchar(64) NOT NULL COMMENT '识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划(BLACK_LIST.重点人员识别计划, WHITE_LIST.陌生人识别计划)',
`status` varchar(255) NOT NULL COMMENT '状态',
`available` varchar(255) NOT NULL COMMENT '是否启用,true:启用,false:禁用',
`description` varchar(1024) NOT NULL COMMENT '描述',
`startTime` datetime COMMENT '启用时间',
`usingTime` bigint(20) COMMENT '启用时间',
`threshold` int(4) COMMENT '阈值 0-100',
`createTime` datetime COMMENT '创建时间',
`createUserId` bigint(20) COMMENT '创建人ID',
`updateTime` datetime COMMENT '更新时间',
`updateUserId` bigint(20) COMMENT '更新人ID',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='人员识别计划信息';
......@@ -57,6 +57,7 @@ const router = new Router({
...restBuilder('notice', 'notice'), //消息
...restBuilder('monitor/alarm', 'monitor/alarm'), //监控预警
...restBuilder('monitor/alarm/record', 'monitor/alarm/record'), //监控预警记录
...restBuilder('face/plan', 'face/plan'), //人员识别计划
//以下为基础路由配置
......
<template>
<!-- 弹出框表单 -->
<el-dialog :title="title" :visible.sync="open" width="90%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row>
<Field label="名称" prop="name" v-model="form.name" type="textarea" placeholder="请输入名称"/>
<Field label="描述" prop="description" v-model="form.description" type="textarea" placeholder="请输入描述"/>
<Field label="分组唯一标识" prop="indexCode" v-model="form.indexCode" placeholder="请输入分组唯一标识"/>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" v-if="pageInfo.type !== 'view'" @click="submitForm">确 定</el-button>
<el-button @click="cancel">取 消</el-button>
</div>
</el-dialog>
</template>
<script>
import form from "@/assets/mixins/formdialog";
import dialogShow from "./dialogshow";
export default {
mixins: [form],
components: {
dialogShow ,
},
data() {
return {
// 遮罩层
loading: true,
// 弹出层标题
title: "人脸分组信息",
// 是否显示弹出层
open: false,
toString:[
],
// 表单校验
rules: {
name: [
{required: true,message: "请输入名称", trigger: "blur" },
{max: 255,message: "最多只能录入255个字符",trigger: "blur",},
],
description: [
{required: true,message: "请输入描述", trigger: "blur" },
{max: 1024,message: "最多只能录入1024个字符",trigger: "blur",},
],
indexCode: [
{required: true,message: "请输入分组唯一标识", trigger: "blur" },
{max: 64,message: "最多只能录入64个字符",trigger: "blur",},
],
}
};
},
methods: {
/** 编辑 */
edit(row) {
this.reset()
this.query = { id: row.id };
this.urls.currUrl ="face/group/edit";
this.getData();
this.pageInfo.type="edit"
this.title = "修改人脸分组信息";
},
/** 新增 */
add(row) {
this.reset()
this.urls.currUrl = "face/group/add";
this.getData();
this.pageInfo.type="add"
this.title = "新增人脸分组信息";
},
/** 查看*/
view(row) {
this.reset()
this.query = { id: row.id };
this.urls.currUrl ="face/group/view";
this.getData();
this.pageInfo.type="view"
this.title = "人脸分组信息详细";
},
/**取消按钮 */
cancel() {
this.open = false;
},
/**获取数据后弹框 */
afterRender(data) {
this.open = true;
},
afterSubmit(data) {
this.open = false;
this.$emit("ok");
},
// 表单重置
reset() {
this.form = {
name : "",
description : "",
indexCode : "",
};
this.resetForm("form");
},
resetForm(refName) {
if (this.$refs[refName]) {
this.$refs[refName].resetFields();
}
},
},
};
</script>
<template>
<div class="page">
<LayoutTable :data="tableData" :config="tableConfig">
</LayoutTable>
<dialog-show ref="dialogform" @ok="getData" />
</div>
</template>
<script>
/** 表单弹出框模式需引入 */
import dialogShow from "./dialogshow";
import table from "@/assets/mixins/table";
export default {
name: "FaceGroupList",
components: {
dialogShow
},
mixins: [table],
created() {
},
methods: {
/** 重写新增方法 */
toAdd(row) {
this.$refs.dialogform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
this.$refs.dialogform.edit(row);
},
/** 重写查看方法 */
toView(row) {
this.$refs.dialogform.view(row);
},
},
data() {
return {
config: {
search: [
],
columns: [
{type: "selection", width: 60},
{type: "index",label: "序号",width: 50},
{label: "名称", prop: "name"},
{label: "描述", prop: "description"},
{label: "分组唯一标识", prop: "indexCode"},
{
label: "操作",
width: 240,
formatter: row => {
return (
<table-buttons noAdd row={row} onEdit={this.toEdit} onView={this.toView} onDel={this.toDel} />
);
}
}
]
}
};
}
};
</script>
\ No newline at end of file
<template>
<!-- 弹出框表单 -->
<el-dialog :title="title" :visible.sync="open" width="90%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row>
<Field label="人脸分组" prop="faceGroupId" v-model="form.faceGroupId" placeholder="请输入人脸分组"/>
<Field label="名称" prop="name" v-model="form.name" type="textarea" placeholder="请输入名称"/>
<Field label="人脸唯一标识" prop="indexCode" v-model="form.indexCode" placeholder="请输入人脸唯一标识"/>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" v-if="pageInfo.type !== 'view'" @click="submitForm">确 定</el-button>
<el-button @click="cancel">取 消</el-button>
</div>
</el-dialog>
</template>
<script>
import form from "@/assets/mixins/formdialog";
import dialogShow from "./dialogshow";
export default {
mixins: [form],
components: {
dialogShow ,
},
data() {
return {
// 遮罩层
loading: true,
// 弹出层标题
title: "分组人脸信息",
// 是否显示弹出层
open: false,
toString:[
],
// 表单校验
rules: {
name: [
{required: true,message: "请输入名称", trigger: "blur" },
{max: 255,message: "最多只能录入255个字符",trigger: "blur",},
],
indexCode: [
{required: true,message: "请输入人脸唯一标识", trigger: "blur" },
{max: 64,message: "最多只能录入64个字符",trigger: "blur",},
],
}
};
},
methods: {
/** 编辑 */
edit(row) {
this.reset()
this.query = { id: row.id };
this.urls.currUrl ="face/group/person/edit";
this.getData();
this.pageInfo.type="edit"
this.title = "修改分组人脸信息";
},
/** 新增 */
add(row) {
this.reset()
this.urls.currUrl = "face/group/person/add";
this.getData();
this.pageInfo.type="add"
this.title = "新增分组人脸信息";
},
/** 查看*/
view(row) {
this.reset()
this.query = { id: row.id };
this.urls.currUrl ="face/group/person/view";
this.getData();
this.pageInfo.type="view"
this.title = "分组人脸信息详细";
},
/**取消按钮 */
cancel() {
this.open = false;
},
/**获取数据后弹框 */
afterRender(data) {
this.open = true;
},
afterSubmit(data) {
this.open = false;
this.$emit("ok");
},
// 表单重置
reset() {
this.form = {
faceGroupId : null,
name : "",
indexCode : "",
};
this.resetForm("form");
},
resetForm(refName) {
if (this.$refs[refName]) {
this.$refs[refName].resetFields();
}
},
},
};
</script>
<template>
<div class="page">
<LayoutTable :data="tableData" :config="tableConfig">
</LayoutTable>
<dialog-show ref="dialogform" @ok="getData" />
</div>
</template>
<script>
/** 表单弹出框模式需引入 */
import dialogShow from "./dialogshow";
import table from "@/assets/mixins/table";
export default {
name: "FaceGroupPersonList",
components: {
dialogShow
},
mixins: [table],
created() {
},
methods: {
/** 重写新增方法 */
toAdd(row) {
this.$refs.dialogform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
this.$refs.dialogform.edit(row);
},
/** 重写查看方法 */
toView(row) {
this.$refs.dialogform.view(row);
},
},
data() {
return {
config: {
search: [
],
columns: [
{type: "selection", width: 60},
{type: "index",label: "序号",width: 50},
{label: "人脸分组", prop: "faceGroupId", formatter: this.formatter},
{label: "名称", prop: "name"},
{label: "人脸唯一标识", prop: "indexCode"},
{
label: "操作",
width: 240,
formatter: row => {
return (
<table-buttons noAdd row={row} onEdit={this.toEdit} onView={this.toView} onDel={this.toDel} />
);
}
}
]
}
};
}
};
</script>
\ No newline at end of file
<template>
<layout-view>
<el-descriptions :title="title" :column="column" :size="size" :colon="false" border>
<template slot="title">
<i class="el-icon-tickets"></i>
基本详细信息
</template>
<template slot="extra">
<el-button type="primary" @click="$router.go(-1)" size="small">返回</el-button>
</template>
<el-descriptions-item label="人脸分组" label-class-name="labelClass" content-class-name="contentClass">
{{form.faceGroupId}}
</el-descriptions-item>
<el-descriptions-item label="名称" label-class-name="labelClass" content-class-name="contentClass">
{{form.name}}
</el-descriptions-item>
<el-descriptions-item label="人脸唯一标识" label-class-name="labelClass" content-class-name="contentClass">
{{form.indexCode}}
</el-descriptions-item>
</el-descriptions>
</layout-view>
</template>
<script>
import view from "@/assets/mixins/view";
export default {
mixins: [view],
components: {
},
methods: {
},
data() {
return {
size:"small",
column:2,
toString:[
],
toArrays: [
],
toDate: [
]
}
}
}
</script>
<style lang="less">
.labelClass{
width: 200px;
}
.el-descriptions__body{
margin-left: 5px;
margin-right: 5px;
color: #606266;
background-color: #FFF;
}
.contentClass{
width: 600px;
}
</style>
\ No newline at end of file
<template>
<layout-view>
<el-descriptions :title="title" :column="column" :size="size" :colon="false" border>
<template slot="title">
<i class="el-icon-tickets"></i>
基本详细信息
</template>
<template slot="extra">
<el-button type="primary" @click="$router.go(-1)" size="small">返回</el-button>
</template>
<el-descriptions-item label="名称" label-class-name="labelClass" content-class-name="contentClass">
{{form.name}}
</el-descriptions-item>
<el-descriptions-item label="描述" label-class-name="labelClass" content-class-name="contentClass">
{{form.description}}
</el-descriptions-item>
<el-descriptions-item label="分组唯一标识" label-class-name="labelClass" content-class-name="contentClass">
{{form.indexCode}}
</el-descriptions-item>
</el-descriptions>
</layout-view>
</template>
<script>
import view from "@/assets/mixins/view";
export default {
mixins: [view],
components: {
},
methods: {
},
data() {
return {
size:"small",
column:2,
toString:[
],
toArrays: [
],
toDate: [
]
}
}
}
</script>
<style lang="less">
.labelClass{
width: 200px;
}
.el-descriptions__body{
margin-left: 5px;
margin-right: 5px;
color: #606266;
background-color: #FFF;
}
.contentClass{
width: 600px;
}
</style>
\ No newline at end of file
<template>
<!-- 弹出框表单 -->
<el-dialog :title="title" :visible.sync="open" width="90%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row>
<Field label="重点人员计划" prop="indexCode" v-model="form.indexCode" type="textarea" placeholder="请输入重点人员计划"/>
<Field label="名称" prop="name" v-model="form.name" type="textarea" placeholder="请输入名称"/>
<Field label="人脸分组的唯一标识集合,逗号分割" prop="faceGroupIndexCodes" v-model="form.faceGroupIndexCodes" type="textarea" placeholder="请输入人脸分组的唯一标识集合,逗号分割"/>
<Field label="人脸分组的唯一标识集合,逗号分割" prop="cameraIndexCodes" v-model="form.cameraIndexCodes" type="textarea" placeholder="请输入人脸分组的唯一标识集合,逗号分割"/>
<Field label="识别资源的唯一标识集合,逗号分割" prop="recognitionResourceIndexCodes" v-model="form.recognitionResourceIndexCodes" type="textarea" placeholder="请输入识别资源的唯一标识集合,逗号分割"/>
<Field label="识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸" prop="recognitionResourceType" v-model="form.recognitionResourceType" type="textarea" placeholder="请输入识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸"/>
<Field label="识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划" prop="recognitionPlanType" v-model="form.recognitionPlanType" type="radio" :enumData="dict.recognitionPlanType" />
<Field label="状态" prop="status" v-model="form.status" type="textarea" placeholder="请输入状态"/>
<Field label="是否启用,true:启用,false:禁用" prop="available" v-model="form.available" type="textarea" placeholder="请输入是否启用,true:启用,false:禁用"/>
<Field label="描述" prop="description" v-model="form.description" type="textarea" placeholder="请输入描述"/>
<Field label="启用时间" prop="startTime" v-model="form.startTime" type="date" />
<Field label="启用时间" prop="usingTime" v-model="form.usingTime" placeholder="请输入启用时间"/>
<Field label="阈值 0-100" prop="threshold" v-model="form.threshold" placeholder="请输入阈值 0-100"/>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" v-if="pageInfo.type !== 'view'" @click="submitForm">确 定</el-button>
<el-button @click="cancel">取 消</el-button>
</div>
</el-dialog>
</template>
<script>
import form from "@/assets/mixins/formdialog";
import dialogShow from "./dialogshow";
export default {
mixins: [form],
components: {
dialogShow ,
},
data() {
return {
// 遮罩层
loading: true,
// 弹出层标题
title: "人员识别计划信息",
// 是否显示弹出层
open: false,
toString:[
],
// 表单校验
rules: {
name: [
{required: true,message: "请输入名称", trigger: "blur" },
{max: 255,message: "最多只能录入255个字符",trigger: "blur",},
],
faceGroupIndexCodes: [
{required: true,message: "请输入人脸分组的唯一标识集合,逗号分割", trigger: "blur" },
{max: 512,message: "最多只能录入512个字符",trigger: "blur",},
],
cameraIndexCodes: [
{required: true,message: "请输入人脸分组的唯一标识集合,逗号分割", trigger: "blur" },
{max: 512,message: "最多只能录入512个字符",trigger: "blur",},
],
recognitionResourceIndexCodes: [
{required: true,message: "请输入识别资源的唯一标识集合,逗号分割", trigger: "blur" },
{max: 2048,message: "最多只能录入2048个字符",trigger: "blur",},
],
recognitionResourceType: [
{required: true,message: "请输入识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸", trigger: "blur" },
{max: 512,message: "最多只能录入512个字符",trigger: "blur",},
],
recognitionPlanType: [
{required: true,message: "请输入识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划", trigger: "blur" },
{max: 64,message: "最多只能录入64个字符",trigger: "blur",},
],
status: [
{required: true,message: "请输入状态", trigger: "blur" },
{max: 255,message: "最多只能录入255个字符",trigger: "blur",},
],
available: [
{required: true,message: "请输入是否启用,true:启用,false:禁用", trigger: "blur" },
{max: 255,message: "最多只能录入255个字符",trigger: "blur",},
],
description: [
{required: true,message: "请输入描述", trigger: "blur" },
{max: 1024,message: "最多只能录入1024个字符",trigger: "blur",},
],
}
};
},
methods: {
/** 编辑 */
edit(row) {
this.reset()
this.query = { id: row.id };
this.urls.currUrl ="face/plan/edit";
this.getData();
this.pageInfo.type="edit"
this.title = "修改人员识别计划信息";
},
/** 新增 */
add(row) {
this.reset()
this.urls.currUrl = "face/plan/add";
this.getData();
this.pageInfo.type="add"
this.title = "新增人员识别计划信息";
},
/** 查看*/
view(row) {
this.reset()
this.query = { id: row.id };
this.urls.currUrl ="face/plan/view";
this.getData();
this.pageInfo.type="view"
this.title = "人员识别计划信息详细";
},
/**取消按钮 */
cancel() {
this.open = false;
},
/**获取数据后弹框 */
afterRender(data) {
this.open = true;
},
afterSubmit(data) {
this.open = false;
this.$emit("ok");
},
// 表单重置
reset() {
this.form = {
indexCode : "",
name : "",
faceGroupIndexCodes : "",
cameraIndexCodes : "",
recognitionResourceIndexCodes : "",
recognitionResourceType : "",
recognitionPlanType : "",
status : "",
available : "",
description : "",
startTime : null,
usingTime : null,
threshold : null,
};
this.resetForm("form");
},
resetForm(refName) {
if (this.$refs[refName]) {
this.$refs[refName].resetFields();
}
},
},
};
</script>
<template>
<div class="page">
<LayoutTable :data="tableData" :config="tableConfig">
</LayoutTable>
<dialog-show ref="dialogform" @ok="getData" />
</div>
</template>
<script>
/** 表单弹出框模式需引入 */
import dialogShow from "./dialogshow";
import table from "@/assets/mixins/table";
export default {
name: "FacePlanList",
components: {
dialogShow
},
mixins: [table],
created() {
},
methods: {
/** 重写新增方法 */
toAdd(row) {
this.$refs.dialogform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
this.$refs.dialogform.edit(row);
},
/** 重写查看方法 */
toView(row) {
this.$refs.dialogform.view(row);
},
},
data() {
return {
config: {
search: [
],
columns: [
{type: "selection", width: 60},
{type: "index",label: "序号",width: 50},
{label: "重点人员计划", prop: "indexCode"},
{label: "名称", prop: "name"},
{label: "人脸分组的唯一标识集合,逗号分割", prop: "faceGroupIndexCodes"},
{label: "人脸分组的唯一标识集合,逗号分割", prop: "cameraIndexCodes"},
{label: "识别资源的唯一标识集合,逗号分割", prop: "recognitionResourceIndexCodes"},
{label: "识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸", prop: "recognitionResourceType"},
{label: "识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划", prop: "recognitionPlanType"},
{label: "状态", prop: "status"},
{label: "是否启用,true:启用,false:禁用", prop: "available"},
{label: "描述", prop: "description"},
{label: "启用时间", prop: "startTime", formatter: this.formatterDate},
{
label: "操作",
width: 240,
formatter: row => {
return (
<table-buttons noAdd row={row} onEdit={this.toEdit} onView={this.toView} onDel={this.toDel} />
);
}
}
]
}
};
}
};
</script>
\ No newline at end of file
<template>
<layout-view>
<el-descriptions :title="title" :column="column" :size="size" :colon="false" border>
<template slot="title">
<i class="el-icon-tickets"></i>
基本详细信息
</template>
<template slot="extra">
<el-button type="primary" @click="$router.go(-1)" size="small">返回</el-button>
</template>
<el-descriptions-item label="重点人员计划" label-class-name="labelClass" content-class-name="contentClass">
{{form.indexCode}}
</el-descriptions-item>
<el-descriptions-item label="名称" label-class-name="labelClass" content-class-name="contentClass">
{{form.name}}
</el-descriptions-item>
<el-descriptions-item label="人脸分组的唯一标识集合,逗号分割" label-class-name="labelClass" content-class-name="contentClass">
{{form.faceGroupIndexCodes}}
</el-descriptions-item>
<el-descriptions-item label="人脸分组的唯一标识集合,逗号分割" label-class-name="labelClass" content-class-name="contentClass">
{{form.cameraIndexCodes}}
</el-descriptions-item>
<el-descriptions-item label="识别资源的唯一标识集合,逗号分割" label-class-name="labelClass" content-class-name="contentClass">
{{form.recognitionResourceIndexCodes}}
</el-descriptions-item>
<el-descriptions-item label="识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸" label-class-name="labelClass" content-class-name="contentClass">
{{form.recognitionResourceType}}
</el-descriptions-item>
<el-descriptions-item label="识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划" label-class-name="labelClass" content-class-name="contentClass">
{{ util_formatters("recognitionPlanType", form.recognitionPlanType) }}
</el-descriptions-item>
<el-descriptions-item label="状态" label-class-name="labelClass" content-class-name="contentClass">
{{form.status}}
</el-descriptions-item>
<el-descriptions-item label="是否启用,true:启用,false:禁用" label-class-name="labelClass" content-class-name="contentClass">
{{form.available}}
</el-descriptions-item>
<el-descriptions-item label="描述" label-class-name="labelClass" content-class-name="contentClass">
{{form.description}}
</el-descriptions-item>
<el-descriptions-item label="启用时间" label-class-name="labelClass" content-class-name="contentClass">
{{ util_formatterDate(form.startTime)}}
</el-descriptions-item>
<el-descriptions-item label="启用时间" label-class-name="labelClass" content-class-name="contentClass">
{{form.usingTime}}
</el-descriptions-item>
<el-descriptions-item label="阈值 0-100" label-class-name="labelClass" content-class-name="contentClass">
{{form.threshold}}
</el-descriptions-item>
</el-descriptions>
</layout-view>
</template>
<script>
import view from "@/assets/mixins/view";
export default {
mixins: [view],
components: {
},
methods: {
},
data() {
return {
size:"small",
column:2,
toString:[
],
toArrays: [
],
toDate: [
]
}
}
}
</script>
<style lang="less">
.labelClass{
width: 200px;
}
.el-descriptions__body{
margin-left: 5px;
margin-right: 5px;
color: #606266;
background-color: #FFF;
}
.contentClass{
width: 600px;
}
</style>
\ No newline at end of file
package com.mortals.xhx.common.code;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划(BLACK_LIST.重点人员识别计划, WHITE_LIST.陌生人识别计划)枚举类
*
* @author zxfei
*/
public enum RecognitionPlanTypeEnum {
BLACK_LIST.重点人员识别计划("BLACK_LIST.重点人员识别计划", "BLACK_LIST.重点人员识别计划"),
WHITE_LIST.陌生人识别计划("WHITE_LIST.陌生人识别计划", "WHITE_LIST.陌生人识别计划");
private String value;
private String desc;
RecognitionPlanTypeEnum(String value, String desc) {
this.value = value;
this.desc = desc;
}
public String getValue() {
return this.value;
}
public String getDesc() {
return this.desc;
}
public static RecognitionPlanTypeEnum getByValue(String value) {
for (RecognitionPlanTypeEnum recognitionPlanTypeEnum : RecognitionPlanTypeEnum.values()) {
if (recognitionPlanTypeEnum.getValue() == value) {
return recognitionPlanTypeEnum;
}
}
return null;
}
/**
* 获取Map集合
*
* @param eItem 不包含项
* @return
*/
public static Map<String, String> getEnumMap(String... eItem) {
Map<String, String> resultMap = new LinkedHashMap<>();
for (RecognitionPlanTypeEnum item : RecognitionPlanTypeEnum.values()) {
try {
boolean hasE = false;
for (String e : eItem) {
if (item.getValue() == e) {
hasE = true;
break;
}
}
if (!hasE) {
resultMap.put(item.getValue() + "", item.getDesc());
}
} catch (Exception ex) {
}
}
return resultMap;
}
}
\ No newline at end of file
......@@ -91,32 +91,6 @@ public final class Constant {
*/
public static final String EXCHANGE_SPLIT = ".";
/**
* 消息类型(激活)
*/
public static final String MESSAGETYPE_ACTIVE = "ACTIVE";
/**
* 消息类型(心跳)
*/
public static final String MESSAGETYPE_HEARTBEAT = "HEART_BEAT";
/**
* 消息类型(upgread)
*/
public static final String MESSAGETYPE_UPGREAD = "UPGREAD";
/**
* 登录path
*/
public static final String PATH_LOGIN = "login/login";
/**
* 树path
*/
public static final String PATH_SITETREE = "site/siteTree";
public static final String DISTRIBUTE_PATH = "eventTypes";
}
package com.mortals.xhx.common.key;
/**
* 参数表对应key定义对应
* @author linlc
*
*/
public class ParamKey {
/** 文件访问的地址 */
......@@ -12,6 +8,9 @@ public class ParamKey {
/** 物料编码长度,默认6 */
public static final String MATERIA_CODE_LENGTH = "iot:base:param:materia:length";
public static final String PARAM_FACE_GROUP = "face_group";
/**
* 系统参数:设备心跳间隔时间(单位:秒,默认值:60秒)
*/
......
......@@ -6,7 +6,12 @@ import com.mortals.framework.ap.GlobalSysInfo;
import com.mortals.framework.common.Rest;
import com.mortals.framework.springcloud.service.IApplicationStartedService;
import com.mortals.framework.util.ThreadPool;
import com.mortals.xhx.common.code.YesNoEnum;
import com.mortals.xhx.common.key.Constant;
import com.mortals.xhx.common.key.ParamKey;
import com.mortals.xhx.module.face.model.FaceGroupEntity;
import com.mortals.xhx.module.face.model.FaceGroupQuery;
import com.mortals.xhx.module.face.service.FaceGroupService;
import com.mortals.xhx.module.hik.event.model.req.EventSubReq;
import com.mortals.xhx.module.hik.event.model.rsp.EventInfo;
import com.mortals.xhx.module.hik.event.service.IHikEventService;
......@@ -17,7 +22,9 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.util.ObjectUtils;
import java.util.Date;
import java.util.List;
......@@ -32,6 +39,9 @@ public class SubEventStartedService implements IApplicationStartedService {
private IHikEventService hikEventService;
@Autowired
private IHikFaceService hikFaceService;
@Autowired
private FaceGroupService faceGroupService;
@Override
public void start() {
......@@ -48,12 +58,33 @@ public class SubEventStartedService implements IApplicationStartedService {
Rest<List<EventInfo>> events = hikEventService.getEvents();
log.info("get events resp==>{}", JSON.toJSONString(events));
log.info("创建人脸分组...");
FaceGroupReq faceGroupReq = new FaceGroupReq();
// faceGroupReq.setName();
// faceGroupReq.setDescription();
Rest<FaceGroupDataInfo> faceGroupDataInfoRest = hikFaceService.faceGroupSingleAdd(faceGroupReq);
//查询本地指定人脸分组 如果没有则添加 并更新
String groupStr = GlobalSysInfo.getParamValue(ParamKey.PARAM_FACE_GROUP, "注册群众");
List<String> groupList = StrUtil.split(groupStr, ",".charAt(0));
for (String group : groupList) {
FaceGroupEntity faceGroupEntity = faceGroupService.selectOne(new FaceGroupQuery().name("注册群众"));
if (ObjectUtils.isEmpty(faceGroupEntity)) {
log.info("创建人脸分组...");
FaceGroupReq faceGroupReq = new FaceGroupReq();
faceGroupReq.setName(group);
faceGroupReq.setDescription(group);
Rest<FaceGroupDataInfo> faceGroupRest = hikFaceService.faceGroupSingleAdd(faceGroupReq);
if (faceGroupRest.getCode() == YesNoEnum.YES.getValue()) {
FaceGroupEntity groupEntity = new FaceGroupEntity();
groupEntity.initAttrValue();
groupEntity.setName(group);
groupEntity.setDescription(group);
groupEntity.setIndexCode(faceGroupRest.getData().getIndexCode());
groupEntity.setCreateTime(new Date());
groupEntity.setCreateUserId(1L);
groupEntity.setCreateUserName("admin");
faceGroupService.save(groupEntity);
}
}
}
}
@Override
......
......@@ -16,6 +16,11 @@ import com.mortals.xhx.common.code.YesNoEnum;
import com.mortals.xhx.common.pdu.RespData;
import com.mortals.xhx.common.pdu.user.UserPdu;
import com.mortals.xhx.feign.user.IUserFeign;
import com.mortals.xhx.module.face.model.FaceGroupEntity;
import com.mortals.xhx.module.face.model.FaceGroupPersonEntity;
import com.mortals.xhx.module.face.model.FaceGroupQuery;
import com.mortals.xhx.module.face.service.FaceGroupPersonService;
import com.mortals.xhx.module.face.service.FaceGroupService;
import com.mortals.xhx.module.hik.face.model.req.face.FaceInfo;
import com.mortals.xhx.module.hik.face.model.req.face.FacePic;
import com.mortals.xhx.module.hik.face.model.req.face.FaceReq;
......@@ -25,6 +30,7 @@ import com.mortals.xhx.module.person.model.PersonEntity;
import com.mortals.xhx.module.person.model.PersonQuery;
import com.mortals.xhx.module.person.service.PersonService;
import lombok.extern.slf4j.Slf4j;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
......@@ -47,10 +53,15 @@ public class SyncUserToHikTaskImpl implements ITaskExcuteService {
private IHikFaceService hikFaceService;
@Autowired
private UploadService uploadService;
@Autowired
private FaceGroupService faceGroupService;
@Autowired
private FaceGroupPersonService faceGroupPersonService;
@Override
public void excuteTask(ITask task) throws AppException {
log.info("同步用户人脸到海康任务");
FaceGroupEntity faceGroup = faceGroupService.selectOne(new FaceGroupQuery().name("注册群众"));
List<PersonEntity> personUnHikList = personService.find(new PersonQuery().inFaceHk(YesNoEnum.NO.getValue()));
if (!ObjectUtils.isEmpty(personUnHikList)) {
for (PersonEntity personEntity : personUnHikList) {
......@@ -70,11 +81,11 @@ public class SyncUserToHikTaskImpl implements ITaskExcuteService {
FacePic facePic = new FacePic();
facePic.setFaceBinaryData(picBase64Data);
faceReq.setFacePic(facePic);
faceReq.setFaceGroupIndexCode(faceGroup.getIndexCode());
Rest<FaceDataInfo> faceDataInfoRest = hikFaceService.faceSingleAdd(faceReq);
if(faceDataInfoRest.getCode()==YesNoEnum.YES.getValue()){
if (faceDataInfoRest.getCode() == YesNoEnum.YES.getValue()) {
personEntity.setInFaceHk(YesNoEnum.YES.getValue());
personEntity.setIndexCode(faceDataInfoRest.getData().getIndexCode());
personEntity.setIfaceGroupIndexCode(faceDataInfoRest.getData().getFaceGroupIndexCode());
personEntity.setUpdateTime(new Date());
......@@ -82,15 +93,17 @@ public class SyncUserToHikTaskImpl implements ITaskExcuteService {
personEntity.setUpdateUserId(1L);
personService.update(personEntity);
FaceGroupPersonEntity faceGroupPersonEntity = new FaceGroupPersonEntity();
faceGroupPersonEntity.initAttrValue();
faceGroupPersonEntity.setFaceGroupId(faceGroup.getId());
faceGroupPersonEntity.setIndexCode(personEntity.getIndexCode());
faceGroupPersonEntity.setCreateTime(new Date());
faceGroupPersonEntity.setCreateUserId(1L);
faceGroupPersonService.save(faceGroupPersonEntity);
//faceGroupPersonService;
}
//log.info("picBase64Data=>{}", picBase64Data);
}
}
// FileUtil.read
......
package com.mortals.xhx.module.face.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.face.model.FaceGroupEntity;
import java.util.List;
/**
* 人脸分组信息Dao
* 人脸分组信息 DAO接口
*
* @author zxfei
* @date 2023-04-15
*/
public interface FaceGroupDao extends ICRUDDao<FaceGroupEntity,Long>{
}
package com.mortals.xhx.module.face.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.face.model.FaceGroupPersonEntity;
import java.util.List;
/**
* 分组人脸信息Dao
* 分组人脸信息 DAO接口
*
* @author zxfei
* @date 2023-04-15
*/
public interface FaceGroupPersonDao extends ICRUDDao<FaceGroupPersonEntity,Long>{
}
package com.mortals.xhx.module.face.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.face.model.FacePlanEntity;
import java.util.List;
/**
* 人员识别计划信息Dao
* 人员识别计划信息 DAO接口
*
* @author zxfei
* @date 2023-04-15
*/
public interface FacePlanDao extends ICRUDDao<FacePlanEntity,Long>{
}
package com.mortals.xhx.module.face.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.face.dao.FaceGroupDao;
import com.mortals.xhx.module.face.model.FaceGroupEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 人脸分组信息DaoImpl DAO接口
*
* @author zxfei
* @date 2023-04-15
*/
@Repository("faceGroupDao")
public class FaceGroupDaoImpl extends BaseCRUDDaoMybatis<FaceGroupEntity,Long> implements FaceGroupDao {
}
package com.mortals.xhx.module.face.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.face.dao.FaceGroupPersonDao;
import com.mortals.xhx.module.face.model.FaceGroupPersonEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 分组人脸信息DaoImpl DAO接口
*
* @author zxfei
* @date 2023-04-15
*/
@Repository("faceGroupPersonDao")
public class FaceGroupPersonDaoImpl extends BaseCRUDDaoMybatis<FaceGroupPersonEntity,Long> implements FaceGroupPersonDao {
}
package com.mortals.xhx.module.face.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.face.dao.FacePlanDao;
import com.mortals.xhx.module.face.model.FacePlanEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 人员识别计划信息DaoImpl DAO接口
*
* @author zxfei
* @date 2023-04-15
*/
@Repository("facePlanDao")
public class FacePlanDaoImpl extends BaseCRUDDaoMybatis<FacePlanEntity,Long> implements FacePlanDao {
}
package com.mortals.xhx.module.face.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.face.model.vo.FaceGroupVo;
/**
* 人脸分组信息实体对象
*
* @author zxfei
* @date 2023-04-15
*/
public class FaceGroupEntity extends FaceGroupVo {
private static final long serialVersionUID = 1L;
/**
* 名称
*/
@Excel(name = "名称")
private String name;
/**
* 描述
*/
@Excel(name = "描述")
private String description;
/**
* 分组唯一标识
*/
@Excel(name = "分组唯一标识")
private String indexCode;
public FaceGroupEntity(){}
/**
* 获取 名称
* @return String
*/
public String getName(){
return name;
}
/**
* 设置 名称
* @param name
*/
public void setName(String name){
this.name = name;
}
/**
* 获取 描述
* @return String
*/
public String getDescription(){
return description;
}
/**
* 设置 描述
* @param description
*/
public void setDescription(String description){
this.description = description;
}
/**
* 获取 分组唯一标识
* @return String
*/
public String getIndexCode(){
return indexCode;
}
/**
* 设置 分组唯一标识
* @param indexCode
*/
public void setIndexCode(String indexCode){
this.indexCode = indexCode;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof FaceGroupEntity) {
FaceGroupEntity tmp = (FaceGroupEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",name:").append(getName());
sb.append(",description:").append(getDescription());
sb.append(",indexCode:").append(getIndexCode());
return sb.toString();
}
public void initAttrValue(){
this.name = "";
this.description = "";
this.indexCode = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.face.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.face.model.vo.FaceGroupPersonVo;
/**
* 分组人脸信息实体对象
*
* @author zxfei
* @date 2023-04-15
*/
public class FaceGroupPersonEntity extends FaceGroupPersonVo {
private static final long serialVersionUID = 1L;
/**
* 人脸分组
*/
private Long faceGroupId;
/**
* 名称
*/
@Excel(name = "名称")
private String name;
/**
* 人脸唯一标识
*/
@Excel(name = "人脸唯一标识")
private String indexCode;
public FaceGroupPersonEntity(){}
/**
* 获取 人脸分组
* @return Long
*/
public Long getFaceGroupId(){
return faceGroupId;
}
/**
* 设置 人脸分组
* @param faceGroupId
*/
public void setFaceGroupId(Long faceGroupId){
this.faceGroupId = faceGroupId;
}
/**
* 获取 名称
* @return String
*/
public String getName(){
return name;
}
/**
* 设置 名称
* @param name
*/
public void setName(String name){
this.name = name;
}
/**
* 获取 人脸唯一标识
* @return String
*/
public String getIndexCode(){
return indexCode;
}
/**
* 设置 人脸唯一标识
* @param indexCode
*/
public void setIndexCode(String indexCode){
this.indexCode = indexCode;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof FaceGroupPersonEntity) {
FaceGroupPersonEntity tmp = (FaceGroupPersonEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",faceGroupId:").append(getFaceGroupId());
sb.append(",name:").append(getName());
sb.append(",indexCode:").append(getIndexCode());
return sb.toString();
}
public void initAttrValue(){
this.faceGroupId = null;
this.name = "";
this.indexCode = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.face.model;
import java.util.List;
import com.mortals.xhx.module.face.model.FaceGroupPersonEntity;
/**
* 分组人脸信息查询对象
*
* @author zxfei
* @date 2023-04-15
*/
public class FaceGroupPersonQuery extends FaceGroupPersonEntity {
/** 开始 主键ID */
private Long idStart;
/** 结束 主键ID */
private Long idEnd;
/** 增加 主键ID */
private Long idIncrement;
/** 主键ID列表 */
private List <Long> idList;
/** 主键ID排除列表 */
private List <Long> idNotList;
/** 开始 人脸分组 */
private Long faceGroupIdStart;
/** 结束 人脸分组 */
private Long faceGroupIdEnd;
/** 增加 人脸分组 */
private Long faceGroupIdIncrement;
/** 人脸分组列表 */
private List <Long> faceGroupIdList;
/** 人脸分组排除列表 */
private List <Long> faceGroupIdNotList;
/** 名称 */
private List<String> nameList;
/** 名称排除列表 */
private List <String> nameNotList;
/** 人脸唯一标识 */
private List<String> indexCodeList;
/** 人脸唯一标识排除列表 */
private List <String> indexCodeNotList;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 创建人ID */
private Long createUserIdStart;
/** 结束 创建人ID */
private Long createUserIdEnd;
/** 增加 创建人ID */
private Long createUserIdIncrement;
/** 创建人ID列表 */
private List <Long> createUserIdList;
/** 创建人ID排除列表 */
private List <Long> createUserIdNotList;
/** 开始 更新时间 */
private String updateTimeStart;
/** 结束 更新时间 */
private String updateTimeEnd;
/** 开始 更新人ID */
private Long updateUserIdStart;
/** 结束 更新人ID */
private Long updateUserIdEnd;
/** 增加 更新人ID */
private Long updateUserIdIncrement;
/** 更新人ID列表 */
private List <Long> updateUserIdList;
/** 更新人ID排除列表 */
private List <Long> updateUserIdNotList;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<FaceGroupPersonQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<FaceGroupPersonQuery> andConditionList;
public FaceGroupPersonQuery(){}
/**
* 获取 开始 主键ID
* @return idStart
*/
public Long getIdStart(){
return this.idStart;
}
/**
* 设置 开始 主键ID
* @param idStart
*/
public void setIdStart(Long idStart){
this.idStart = idStart;
}
/**
* 获取 结束 主键ID
* @return $idEnd
*/
public Long getIdEnd(){
return this.idEnd;
}
/**
* 设置 结束 主键ID
* @param idEnd
*/
public void setIdEnd(Long idEnd){
this.idEnd = idEnd;
}
/**
* 获取 增加 主键ID
* @return idIncrement
*/
public Long getIdIncrement(){
return this.idIncrement;
}
/**
* 设置 增加 主键ID
* @param idIncrement
*/
public void setIdIncrement(Long idIncrement){
this.idIncrement = idIncrement;
}
/**
* 获取 主键ID
* @return idList
*/
public List<Long> getIdList(){
return this.idList;
}
/**
* 设置 主键ID
* @param idList
*/
public void setIdList(List<Long> idList){
this.idList = idList;
}
/**
* 获取 主键ID
* @return idNotList
*/
public List<Long> getIdNotList(){
return this.idNotList;
}
/**
* 设置 主键ID
* @param idNotList
*/
public void setIdNotList(List<Long> idNotList){
this.idNotList = idNotList;
}
/**
* 获取 开始 人脸分组
* @return faceGroupIdStart
*/
public Long getFaceGroupIdStart(){
return this.faceGroupIdStart;
}
/**
* 设置 开始 人脸分组
* @param faceGroupIdStart
*/
public void setFaceGroupIdStart(Long faceGroupIdStart){
this.faceGroupIdStart = faceGroupIdStart;
}
/**
* 获取 结束 人脸分组
* @return $faceGroupIdEnd
*/
public Long getFaceGroupIdEnd(){
return this.faceGroupIdEnd;
}
/**
* 设置 结束 人脸分组
* @param faceGroupIdEnd
*/
public void setFaceGroupIdEnd(Long faceGroupIdEnd){
this.faceGroupIdEnd = faceGroupIdEnd;
}
/**
* 获取 增加 人脸分组
* @return faceGroupIdIncrement
*/
public Long getFaceGroupIdIncrement(){
return this.faceGroupIdIncrement;
}
/**
* 设置 增加 人脸分组
* @param faceGroupIdIncrement
*/
public void setFaceGroupIdIncrement(Long faceGroupIdIncrement){
this.faceGroupIdIncrement = faceGroupIdIncrement;
}
/**
* 获取 人脸分组
* @return faceGroupIdList
*/
public List<Long> getFaceGroupIdList(){
return this.faceGroupIdList;
}
/**
* 设置 人脸分组
* @param faceGroupIdList
*/
public void setFaceGroupIdList(List<Long> faceGroupIdList){
this.faceGroupIdList = faceGroupIdList;
}
/**
* 获取 人脸分组
* @return faceGroupIdNotList
*/
public List<Long> getFaceGroupIdNotList(){
return this.faceGroupIdNotList;
}
/**
* 设置 人脸分组
* @param faceGroupIdNotList
*/
public void setFaceGroupIdNotList(List<Long> faceGroupIdNotList){
this.faceGroupIdNotList = faceGroupIdNotList;
}
/**
* 获取 名称
* @return nameList
*/
public List<String> getNameList(){
return this.nameList;
}
/**
* 设置 名称
* @param nameList
*/
public void setNameList(List<String> nameList){
this.nameList = nameList;
}
/**
* 获取 名称
* @return nameNotList
*/
public List<String> getNameNotList(){
return this.nameNotList;
}
/**
* 设置 名称
* @param nameNotList
*/
public void setNameNotList(List<String> nameNotList){
this.nameNotList = nameNotList;
}
/**
* 获取 人脸唯一标识
* @return indexCodeList
*/
public List<String> getIndexCodeList(){
return this.indexCodeList;
}
/**
* 设置 人脸唯一标识
* @param indexCodeList
*/
public void setIndexCodeList(List<String> indexCodeList){
this.indexCodeList = indexCodeList;
}
/**
* 获取 人脸唯一标识
* @return indexCodeNotList
*/
public List<String> getIndexCodeNotList(){
return this.indexCodeNotList;
}
/**
* 设置 人脸唯一标识
* @param indexCodeNotList
*/
public void setIndexCodeNotList(List<String> indexCodeNotList){
this.indexCodeNotList = indexCodeNotList;
}
/**
* 获取 开始 创建时间
* @return createTimeStart
*/
public String getCreateTimeStart(){
return this.createTimeStart;
}
/**
* 设置 开始 创建时间
* @param createTimeStart
*/
public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart;
}
/**
* 获取 结束 创建时间
* @return createTimeEnd
*/
public String getCreateTimeEnd(){
return this.createTimeEnd;
}
/**
* 设置 结束 创建时间
* @param createTimeEnd
*/
public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd;
}
/**
* 获取 开始 创建人ID
* @return createUserIdStart
*/
public Long getCreateUserIdStart(){
return this.createUserIdStart;
}
/**
* 设置 开始 创建人ID
* @param createUserIdStart
*/
public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
}
/**
* 获取 结束 创建人ID
* @return $createUserIdEnd
*/
public Long getCreateUserIdEnd(){
return this.createUserIdEnd;
}
/**
* 设置 结束 创建人ID
* @param createUserIdEnd
*/
public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
}
/**
* 获取 增加 创建人ID
* @return createUserIdIncrement
*/
public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement;
}
/**
* 设置 增加 创建人ID
* @param createUserIdIncrement
*/
public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
}
/**
* 获取 创建人ID
* @return createUserIdList
*/
public List<Long> getCreateUserIdList(){
return this.createUserIdList;
}
/**
* 设置 创建人ID
* @param createUserIdList
*/
public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
}
/**
* 获取 创建人ID
* @return createUserIdNotList
*/
public List<Long> getCreateUserIdNotList(){
return this.createUserIdNotList;
}
/**
* 设置 创建人ID
* @param createUserIdNotList
*/
public void setCreateUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
}
/**
* 获取 开始 更新时间
* @return updateTimeStart
*/
public String getUpdateTimeStart(){
return this.updateTimeStart;
}
/**
* 设置 开始 更新时间
* @param updateTimeStart
*/
public void setUpdateTimeStart(String updateTimeStart){
this.updateTimeStart = updateTimeStart;
}
/**
* 获取 结束 更新时间
* @return updateTimeEnd
*/
public String getUpdateTimeEnd(){
return this.updateTimeEnd;
}
/**
* 设置 结束 更新时间
* @param updateTimeEnd
*/
public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd;
}
/**
* 获取 开始 更新人ID
* @return updateUserIdStart
*/
public Long getUpdateUserIdStart(){
return this.updateUserIdStart;
}
/**
* 设置 开始 更新人ID
* @param updateUserIdStart
*/
public void setUpdateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
}
/**
* 获取 结束 更新人ID
* @return $updateUserIdEnd
*/
public Long getUpdateUserIdEnd(){
return this.updateUserIdEnd;
}
/**
* 设置 结束 更新人ID
* @param updateUserIdEnd
*/
public void setUpdateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
}
/**
* 获取 增加 更新人ID
* @return updateUserIdIncrement
*/
public Long getUpdateUserIdIncrement(){
return this.updateUserIdIncrement;
}
/**
* 设置 增加 更新人ID
* @param updateUserIdIncrement
*/
public void setUpdateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
}
/**
* 获取 更新人ID
* @return updateUserIdList
*/
public List<Long> getUpdateUserIdList(){
return this.updateUserIdList;
}
/**
* 设置 更新人ID
* @param updateUserIdList
*/
public void setUpdateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
}
/**
* 获取 更新人ID
* @return updateUserIdNotList
*/
public List<Long> getUpdateUserIdNotList(){
return this.updateUserIdNotList;
}
/**
* 设置 更新人ID
* @param updateUserIdNotList
*/
public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
}
/**
* 设置 主键ID
* @param id
*/
public FaceGroupPersonQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 主键ID
* @param idStart
*/
public FaceGroupPersonQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 主键ID
* @param idEnd
*/
public FaceGroupPersonQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 主键ID
* @param idIncrement
*/
public FaceGroupPersonQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 主键ID
* @param idList
*/
public FaceGroupPersonQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 主键ID
* @param idNotList
*/
public FaceGroupPersonQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
}
/**
* 设置 人脸分组
* @param faceGroupId
*/
public FaceGroupPersonQuery faceGroupId(Long faceGroupId){
setFaceGroupId(faceGroupId);
return this;
}
/**
* 设置 开始 人脸分组
* @param faceGroupIdStart
*/
public FaceGroupPersonQuery faceGroupIdStart(Long faceGroupIdStart){
this.faceGroupIdStart = faceGroupIdStart;
return this;
}
/**
* 设置 结束 人脸分组
* @param faceGroupIdEnd
*/
public FaceGroupPersonQuery faceGroupIdEnd(Long faceGroupIdEnd){
this.faceGroupIdEnd = faceGroupIdEnd;
return this;
}
/**
* 设置 增加 人脸分组
* @param faceGroupIdIncrement
*/
public FaceGroupPersonQuery faceGroupIdIncrement(Long faceGroupIdIncrement){
this.faceGroupIdIncrement = faceGroupIdIncrement;
return this;
}
/**
* 设置 人脸分组
* @param faceGroupIdList
*/
public FaceGroupPersonQuery faceGroupIdList(List<Long> faceGroupIdList){
this.faceGroupIdList = faceGroupIdList;
return this;
}
/**
* 设置 人脸分组
* @param faceGroupIdNotList
*/
public FaceGroupPersonQuery faceGroupIdNotList(List<Long> faceGroupIdNotList){
this.faceGroupIdNotList = faceGroupIdNotList;
return this;
}
/**
* 设置 名称
* @param name
*/
public FaceGroupPersonQuery name(String name){
setName(name);
return this;
}
/**
* 设置 名称
* @param nameList
*/
public FaceGroupPersonQuery nameList(List<String> nameList){
this.nameList = nameList;
return this;
}
/**
* 设置 人脸唯一标识
* @param indexCode
*/
public FaceGroupPersonQuery indexCode(String indexCode){
setIndexCode(indexCode);
return this;
}
/**
* 设置 人脸唯一标识
* @param indexCodeList
*/
public FaceGroupPersonQuery indexCodeList(List<String> indexCodeList){
this.indexCodeList = indexCodeList;
return this;
}
/**
* 设置 创建人ID
* @param createUserId
*/
public FaceGroupPersonQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 创建人ID
* @param createUserIdStart
*/
public FaceGroupPersonQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 创建人ID
* @param createUserIdEnd
*/
public FaceGroupPersonQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 创建人ID
* @param createUserIdIncrement
*/
public FaceGroupPersonQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 创建人ID
* @param createUserIdList
*/
public FaceGroupPersonQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 创建人ID
* @param createUserIdNotList
*/
public FaceGroupPersonQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 更新人ID
* @param updateUserId
*/
public FaceGroupPersonQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId);
return this;
}
/**
* 设置 开始 更新人ID
* @param updateUserIdStart
*/
public FaceGroupPersonQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
return this;
}
/**
* 设置 结束 更新人ID
* @param updateUserIdEnd
*/
public FaceGroupPersonQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
return this;
}
/**
* 设置 增加 更新人ID
* @param updateUserIdIncrement
*/
public FaceGroupPersonQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
return this;
}
/**
* 设置 更新人ID
* @param updateUserIdList
*/
public FaceGroupPersonQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
return this;
}
/**
* 设置 更新人ID
* @param updateUserIdNotList
*/
public FaceGroupPersonQuery updateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
*/
public List<FaceGroupPersonQuery> getOrConditionList(){
return this.orConditionList;
}
/**
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @param orConditionList
*/
public void setOrConditionList(List<FaceGroupPersonQuery> orConditionList){
this.orConditionList = orConditionList;
}
/**
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @return andConditionList
*/
public List<FaceGroupPersonQuery> getAndConditionList(){
return this.andConditionList;
}
/**
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @param andConditionList
*/
public void setAndConditionList(List<FaceGroupPersonQuery> andConditionList){
this.andConditionList = andConditionList;
}
}
\ No newline at end of file
package com.mortals.xhx.module.face.model;
import java.util.List;
import com.mortals.xhx.module.face.model.FaceGroupEntity;
/**
* 人脸分组信息查询对象
*
* @author zxfei
* @date 2023-04-15
*/
public class FaceGroupQuery extends FaceGroupEntity {
/** 开始 主键ID */
private Long idStart;
/** 结束 主键ID */
private Long idEnd;
/** 增加 主键ID */
private Long idIncrement;
/** 主键ID列表 */
private List <Long> idList;
/** 主键ID排除列表 */
private List <Long> idNotList;
/** 名称 */
private List<String> nameList;
/** 名称排除列表 */
private List <String> nameNotList;
/** 描述 */
private List<String> descriptionList;
/** 描述排除列表 */
private List <String> descriptionNotList;
/** 分组唯一标识 */
private List<String> indexCodeList;
/** 分组唯一标识排除列表 */
private List <String> indexCodeNotList;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 创建人ID */
private Long createUserIdStart;
/** 结束 创建人ID */
private Long createUserIdEnd;
/** 增加 创建人ID */
private Long createUserIdIncrement;
/** 创建人ID列表 */
private List <Long> createUserIdList;
/** 创建人ID排除列表 */
private List <Long> createUserIdNotList;
/** 开始 更新时间 */
private String updateTimeStart;
/** 结束 更新时间 */
private String updateTimeEnd;
/** 开始 更新人ID */
private Long updateUserIdStart;
/** 结束 更新人ID */
private Long updateUserIdEnd;
/** 增加 更新人ID */
private Long updateUserIdIncrement;
/** 更新人ID列表 */
private List <Long> updateUserIdList;
/** 更新人ID排除列表 */
private List <Long> updateUserIdNotList;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<FaceGroupQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<FaceGroupQuery> andConditionList;
public FaceGroupQuery(){}
/**
* 获取 开始 主键ID
* @return idStart
*/
public Long getIdStart(){
return this.idStart;
}
/**
* 设置 开始 主键ID
* @param idStart
*/
public void setIdStart(Long idStart){
this.idStart = idStart;
}
/**
* 获取 结束 主键ID
* @return $idEnd
*/
public Long getIdEnd(){
return this.idEnd;
}
/**
* 设置 结束 主键ID
* @param idEnd
*/
public void setIdEnd(Long idEnd){
this.idEnd = idEnd;
}
/**
* 获取 增加 主键ID
* @return idIncrement
*/
public Long getIdIncrement(){
return this.idIncrement;
}
/**
* 设置 增加 主键ID
* @param idIncrement
*/
public void setIdIncrement(Long idIncrement){
this.idIncrement = idIncrement;
}
/**
* 获取 主键ID
* @return idList
*/
public List<Long> getIdList(){
return this.idList;
}
/**
* 设置 主键ID
* @param idList
*/
public void setIdList(List<Long> idList){
this.idList = idList;
}
/**
* 获取 主键ID
* @return idNotList
*/
public List<Long> getIdNotList(){
return this.idNotList;
}
/**
* 设置 主键ID
* @param idNotList
*/
public void setIdNotList(List<Long> idNotList){
this.idNotList = idNotList;
}
/**
* 获取 名称
* @return nameList
*/
public List<String> getNameList(){
return this.nameList;
}
/**
* 设置 名称
* @param nameList
*/
public void setNameList(List<String> nameList){
this.nameList = nameList;
}
/**
* 获取 名称
* @return nameNotList
*/
public List<String> getNameNotList(){
return this.nameNotList;
}
/**
* 设置 名称
* @param nameNotList
*/
public void setNameNotList(List<String> nameNotList){
this.nameNotList = nameNotList;
}
/**
* 获取 描述
* @return descriptionList
*/
public List<String> getDescriptionList(){
return this.descriptionList;
}
/**
* 设置 描述
* @param descriptionList
*/
public void setDescriptionList(List<String> descriptionList){
this.descriptionList = descriptionList;
}
/**
* 获取 描述
* @return descriptionNotList
*/
public List<String> getDescriptionNotList(){
return this.descriptionNotList;
}
/**
* 设置 描述
* @param descriptionNotList
*/
public void setDescriptionNotList(List<String> descriptionNotList){
this.descriptionNotList = descriptionNotList;
}
/**
* 获取 分组唯一标识
* @return indexCodeList
*/
public List<String> getIndexCodeList(){
return this.indexCodeList;
}
/**
* 设置 分组唯一标识
* @param indexCodeList
*/
public void setIndexCodeList(List<String> indexCodeList){
this.indexCodeList = indexCodeList;
}
/**
* 获取 分组唯一标识
* @return indexCodeNotList
*/
public List<String> getIndexCodeNotList(){
return this.indexCodeNotList;
}
/**
* 设置 分组唯一标识
* @param indexCodeNotList
*/
public void setIndexCodeNotList(List<String> indexCodeNotList){
this.indexCodeNotList = indexCodeNotList;
}
/**
* 获取 开始 创建时间
* @return createTimeStart
*/
public String getCreateTimeStart(){
return this.createTimeStart;
}
/**
* 设置 开始 创建时间
* @param createTimeStart
*/
public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart;
}
/**
* 获取 结束 创建时间
* @return createTimeEnd
*/
public String getCreateTimeEnd(){
return this.createTimeEnd;
}
/**
* 设置 结束 创建时间
* @param createTimeEnd
*/
public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd;
}
/**
* 获取 开始 创建人ID
* @return createUserIdStart
*/
public Long getCreateUserIdStart(){
return this.createUserIdStart;
}
/**
* 设置 开始 创建人ID
* @param createUserIdStart
*/
public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
}
/**
* 获取 结束 创建人ID
* @return $createUserIdEnd
*/
public Long getCreateUserIdEnd(){
return this.createUserIdEnd;
}
/**
* 设置 结束 创建人ID
* @param createUserIdEnd
*/
public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
}
/**
* 获取 增加 创建人ID
* @return createUserIdIncrement
*/
public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement;
}
/**
* 设置 增加 创建人ID
* @param createUserIdIncrement
*/
public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
}
/**
* 获取 创建人ID
* @return createUserIdList
*/
public List<Long> getCreateUserIdList(){
return this.createUserIdList;
}
/**
* 设置 创建人ID
* @param createUserIdList
*/
public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
}
/**
* 获取 创建人ID
* @return createUserIdNotList
*/
public List<Long> getCreateUserIdNotList(){
return this.createUserIdNotList;
}
/**
* 设置 创建人ID
* @param createUserIdNotList
*/
public void setCreateUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
}
/**
* 获取 开始 更新时间
* @return updateTimeStart
*/
public String getUpdateTimeStart(){
return this.updateTimeStart;
}
/**
* 设置 开始 更新时间
* @param updateTimeStart
*/
public void setUpdateTimeStart(String updateTimeStart){
this.updateTimeStart = updateTimeStart;
}
/**
* 获取 结束 更新时间
* @return updateTimeEnd
*/
public String getUpdateTimeEnd(){
return this.updateTimeEnd;
}
/**
* 设置 结束 更新时间
* @param updateTimeEnd
*/
public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd;
}
/**
* 获取 开始 更新人ID
* @return updateUserIdStart
*/
public Long getUpdateUserIdStart(){
return this.updateUserIdStart;
}
/**
* 设置 开始 更新人ID
* @param updateUserIdStart
*/
public void setUpdateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
}
/**
* 获取 结束 更新人ID
* @return $updateUserIdEnd
*/
public Long getUpdateUserIdEnd(){
return this.updateUserIdEnd;
}
/**
* 设置 结束 更新人ID
* @param updateUserIdEnd
*/
public void setUpdateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
}
/**
* 获取 增加 更新人ID
* @return updateUserIdIncrement
*/
public Long getUpdateUserIdIncrement(){
return this.updateUserIdIncrement;
}
/**
* 设置 增加 更新人ID
* @param updateUserIdIncrement
*/
public void setUpdateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
}
/**
* 获取 更新人ID
* @return updateUserIdList
*/
public List<Long> getUpdateUserIdList(){
return this.updateUserIdList;
}
/**
* 设置 更新人ID
* @param updateUserIdList
*/
public void setUpdateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
}
/**
* 获取 更新人ID
* @return updateUserIdNotList
*/
public List<Long> getUpdateUserIdNotList(){
return this.updateUserIdNotList;
}
/**
* 设置 更新人ID
* @param updateUserIdNotList
*/
public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
}
/**
* 设置 主键ID
* @param id
*/
public FaceGroupQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 主键ID
* @param idStart
*/
public FaceGroupQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 主键ID
* @param idEnd
*/
public FaceGroupQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 主键ID
* @param idIncrement
*/
public FaceGroupQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 主键ID
* @param idList
*/
public FaceGroupQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 主键ID
* @param idNotList
*/
public FaceGroupQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
}
/**
* 设置 名称
* @param name
*/
public FaceGroupQuery name(String name){
setName(name);
return this;
}
/**
* 设置 名称
* @param nameList
*/
public FaceGroupQuery nameList(List<String> nameList){
this.nameList = nameList;
return this;
}
/**
* 设置 描述
* @param description
*/
public FaceGroupQuery description(String description){
setDescription(description);
return this;
}
/**
* 设置 描述
* @param descriptionList
*/
public FaceGroupQuery descriptionList(List<String> descriptionList){
this.descriptionList = descriptionList;
return this;
}
/**
* 设置 分组唯一标识
* @param indexCode
*/
public FaceGroupQuery indexCode(String indexCode){
setIndexCode(indexCode);
return this;
}
/**
* 设置 分组唯一标识
* @param indexCodeList
*/
public FaceGroupQuery indexCodeList(List<String> indexCodeList){
this.indexCodeList = indexCodeList;
return this;
}
/**
* 设置 创建人ID
* @param createUserId
*/
public FaceGroupQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 创建人ID
* @param createUserIdStart
*/
public FaceGroupQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 创建人ID
* @param createUserIdEnd
*/
public FaceGroupQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 创建人ID
* @param createUserIdIncrement
*/
public FaceGroupQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 创建人ID
* @param createUserIdList
*/
public FaceGroupQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 创建人ID
* @param createUserIdNotList
*/
public FaceGroupQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 更新人ID
* @param updateUserId
*/
public FaceGroupQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId);
return this;
}
/**
* 设置 开始 更新人ID
* @param updateUserIdStart
*/
public FaceGroupQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
return this;
}
/**
* 设置 结束 更新人ID
* @param updateUserIdEnd
*/
public FaceGroupQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
return this;
}
/**
* 设置 增加 更新人ID
* @param updateUserIdIncrement
*/
public FaceGroupQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
return this;
}
/**
* 设置 更新人ID
* @param updateUserIdList
*/
public FaceGroupQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
return this;
}
/**
* 设置 更新人ID
* @param updateUserIdNotList
*/
public FaceGroupQuery updateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
*/
public List<FaceGroupQuery> getOrConditionList(){
return this.orConditionList;
}
/**
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @param orConditionList
*/
public void setOrConditionList(List<FaceGroupQuery> orConditionList){
this.orConditionList = orConditionList;
}
/**
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @return andConditionList
*/
public List<FaceGroupQuery> getAndConditionList(){
return this.andConditionList;
}
/**
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @param andConditionList
*/
public void setAndConditionList(List<FaceGroupQuery> andConditionList){
this.andConditionList = andConditionList;
}
}
\ No newline at end of file
package com.mortals.xhx.module.face.model;
import java.util.Date;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.face.model.vo.FacePlanVo;
/**
* 人员识别计划信息实体对象
*
* @author zxfei
* @date 2023-04-15
*/
public class FacePlanEntity extends FacePlanVo {
private static final long serialVersionUID = 1L;
/**
* 重点人员计划
*/
private String indexCode;
/**
* 名称
*/
@Excel(name = "名称")
private String name;
/**
* 人脸分组的唯一标识集合,逗号分割
*/
@Excel(name = "人脸分组的唯一标识集合,逗号分割")
private String faceGroupIndexCodes;
/**
* 人脸分组的唯一标识集合,逗号分割
*/
@Excel(name = "人脸分组的唯一标识集合,逗号分割")
private String cameraIndexCodes;
/**
* 识别资源的唯一标识集合,逗号分割
*/
@Excel(name = "识别资源的唯一标识集合,逗号分割")
private String recognitionResourceIndexCodes;
/**
* 识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸
*/
@Excel(name = "识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸")
private String recognitionResourceType;
/**
* 识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划(BLACK_LIST.重点人员识别计划, WHITE_LIST.陌生人识别计划)
*/
@Excel(name = "识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划", readConverterExp = "BLACK_LIST=重点人员识别计划, WHITE_LIST.陌生人识别计划")
private String recognitionPlanType;
/**
* 状态
*/
@Excel(name = "状态")
private String status;
/**
* 是否启用,true:启用,false:禁用
*/
@Excel(name = "是否启用,true:启用,false:禁用")
private String available;
/**
* 描述
*/
@Excel(name = "描述")
private String description;
/**
* 启用时间
*/
@Excel(name = "启用时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date startTime;
/**
* 启用时间
*/
private Long usingTime;
/**
* 阈值 0-100
*/
private Integer threshold;
public FacePlanEntity(){}
/**
* 获取 重点人员计划
* @return String
*/
public String getIndexCode(){
return indexCode;
}
/**
* 设置 重点人员计划
* @param indexCode
*/
public void setIndexCode(String indexCode){
this.indexCode = indexCode;
}
/**
* 获取 名称
* @return String
*/
public String getName(){
return name;
}
/**
* 设置 名称
* @param name
*/
public void setName(String name){
this.name = name;
}
/**
* 获取 人脸分组的唯一标识集合,逗号分割
* @return String
*/
public String getFaceGroupIndexCodes(){
return faceGroupIndexCodes;
}
/**
* 设置 人脸分组的唯一标识集合,逗号分割
* @param faceGroupIndexCodes
*/
public void setFaceGroupIndexCodes(String faceGroupIndexCodes){
this.faceGroupIndexCodes = faceGroupIndexCodes;
}
/**
* 获取 人脸分组的唯一标识集合,逗号分割
* @return String
*/
public String getCameraIndexCodes(){
return cameraIndexCodes;
}
/**
* 设置 人脸分组的唯一标识集合,逗号分割
* @param cameraIndexCodes
*/
public void setCameraIndexCodes(String cameraIndexCodes){
this.cameraIndexCodes = cameraIndexCodes;
}
/**
* 获取 识别资源的唯一标识集合,逗号分割
* @return String
*/
public String getRecognitionResourceIndexCodes(){
return recognitionResourceIndexCodes;
}
/**
* 设置 识别资源的唯一标识集合,逗号分割
* @param recognitionResourceIndexCodes
*/
public void setRecognitionResourceIndexCodes(String recognitionResourceIndexCodes){
this.recognitionResourceIndexCodes = recognitionResourceIndexCodes;
}
/**
* 获取 识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸
* @return String
*/
public String getRecognitionResourceType(){
return recognitionResourceType;
}
/**
* 设置 识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸
* @param recognitionResourceType
*/
public void setRecognitionResourceType(String recognitionResourceType){
this.recognitionResourceType = recognitionResourceType;
}
/**
* 获取 识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划(BLACK_LIST.重点人员识别计划, WHITE_LIST.陌生人识别计划)
* @return String
*/
public String getRecognitionPlanType(){
return recognitionPlanType;
}
/**
* 设置 识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划(BLACK_LIST.重点人员识别计划, WHITE_LIST.陌生人识别计划)
* @param recognitionPlanType
*/
public void setRecognitionPlanType(String recognitionPlanType){
this.recognitionPlanType = recognitionPlanType;
}
/**
* 获取 状态
* @return String
*/
public String getStatus(){
return status;
}
/**
* 设置 状态
* @param status
*/
public void setStatus(String status){
this.status = status;
}
/**
* 获取 是否启用,true:启用,false:禁用
* @return String
*/
public String getAvailable(){
return available;
}
/**
* 设置 是否启用,true:启用,false:禁用
* @param available
*/
public void setAvailable(String available){
this.available = available;
}
/**
* 获取 描述
* @return String
*/
public String getDescription(){
return description;
}
/**
* 设置 描述
* @param description
*/
public void setDescription(String description){
this.description = description;
}
/**
* 获取 启用时间
* @return Date
*/
public Date getStartTime(){
return startTime;
}
/**
* 设置 启用时间
* @param startTime
*/
public void setStartTime(Date startTime){
this.startTime = startTime;
}
/**
* 获取 启用时间
* @return Long
*/
public Long getUsingTime(){
return usingTime;
}
/**
* 设置 启用时间
* @param usingTime
*/
public void setUsingTime(Long usingTime){
this.usingTime = usingTime;
}
/**
* 获取 阈值 0-100
* @return Integer
*/
public Integer getThreshold(){
return threshold;
}
/**
* 设置 阈值 0-100
* @param threshold
*/
public void setThreshold(Integer threshold){
this.threshold = threshold;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof FacePlanEntity) {
FacePlanEntity tmp = (FacePlanEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",indexCode:").append(getIndexCode());
sb.append(",name:").append(getName());
sb.append(",faceGroupIndexCodes:").append(getFaceGroupIndexCodes());
sb.append(",cameraIndexCodes:").append(getCameraIndexCodes());
sb.append(",recognitionResourceIndexCodes:").append(getRecognitionResourceIndexCodes());
sb.append(",recognitionResourceType:").append(getRecognitionResourceType());
sb.append(",recognitionPlanType:").append(getRecognitionPlanType());
sb.append(",status:").append(getStatus());
sb.append(",available:").append(getAvailable());
sb.append(",description:").append(getDescription());
sb.append(",startTime:").append(getStartTime());
sb.append(",usingTime:").append(getUsingTime());
sb.append(",threshold:").append(getThreshold());
return sb.toString();
}
public void initAttrValue(){
this.indexCode = "";
this.name = "";
this.faceGroupIndexCodes = "";
this.cameraIndexCodes = "";
this.recognitionResourceIndexCodes = "";
this.recognitionResourceType = "";
this.recognitionPlanType = "";
this.status = "";
this.available = "";
this.description = "";
this.startTime = null;
this.usingTime = null;
this.threshold = null;
}
}
\ No newline at end of file
package com.mortals.xhx.module.face.model;
import java.util.Date;
import java.util.List;
import com.mortals.xhx.module.face.model.FacePlanEntity;
/**
* 人员识别计划信息查询对象
*
* @author zxfei
* @date 2023-04-15
*/
public class FacePlanQuery extends FacePlanEntity {
/** 开始 主键ID */
private Long idStart;
/** 结束 主键ID */
private Long idEnd;
/** 增加 主键ID */
private Long idIncrement;
/** 主键ID列表 */
private List <Long> idList;
/** 主键ID排除列表 */
private List <Long> idNotList;
/** 重点人员计划 */
private List<String> indexCodeList;
/** 重点人员计划排除列表 */
private List <String> indexCodeNotList;
/** 名称 */
private List<String> nameList;
/** 名称排除列表 */
private List <String> nameNotList;
/** 人脸分组的唯一标识集合,逗号分割 */
private List<String> faceGroupIndexCodesList;
/** 人脸分组的唯一标识集合,逗号分割排除列表 */
private List <String> faceGroupIndexCodesNotList;
/** 人脸分组的唯一标识集合,逗号分割 */
private List<String> cameraIndexCodesList;
/** 人脸分组的唯一标识集合,逗号分割排除列表 */
private List <String> cameraIndexCodesNotList;
/** 识别资源的唯一标识集合,逗号分割 */
private List<String> recognitionResourceIndexCodesList;
/** 识别资源的唯一标识集合,逗号分割排除列表 */
private List <String> recognitionResourceIndexCodesNotList;
/** 识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸 */
private List<String> recognitionResourceTypeList;
/** 识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸排除列表 */
private List <String> recognitionResourceTypeNotList;
/** 识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划(BLACK_LIST.重点人员识别计划, WHITE_LIST.陌生人识别计划) */
private List<String> recognitionPlanTypeList;
/** 识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划(BLACK_LIST.重点人员识别计划, WHITE_LIST.陌生人识别计划)排除列表 */
private List <String> recognitionPlanTypeNotList;
/** 状态 */
private List<String> statusList;
/** 状态排除列表 */
private List <String> statusNotList;
/** 是否启用,true:启用,false:禁用 */
private List<String> availableList;
/** 是否启用,true:启用,false:禁用排除列表 */
private List <String> availableNotList;
/** 描述 */
private List<String> descriptionList;
/** 描述排除列表 */
private List <String> descriptionNotList;
/** 开始 启用时间 */
private String startTimeStart;
/** 结束 启用时间 */
private String startTimeEnd;
/** 开始 启用时间 */
private Long usingTimeStart;
/** 结束 启用时间 */
private Long usingTimeEnd;
/** 增加 启用时间 */
private Long usingTimeIncrement;
/** 启用时间列表 */
private List <Long> usingTimeList;
/** 启用时间排除列表 */
private List <Long> usingTimeNotList;
/** 开始 阈值 0-100 */
private Integer thresholdStart;
/** 结束 阈值 0-100 */
private Integer thresholdEnd;
/** 增加 阈值 0-100 */
private Integer thresholdIncrement;
/** 阈值 0-100列表 */
private List <Integer> thresholdList;
/** 阈值 0-100排除列表 */
private List <Integer> thresholdNotList;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 创建人ID */
private Long createUserIdStart;
/** 结束 创建人ID */
private Long createUserIdEnd;
/** 增加 创建人ID */
private Long createUserIdIncrement;
/** 创建人ID列表 */
private List <Long> createUserIdList;
/** 创建人ID排除列表 */
private List <Long> createUserIdNotList;
/** 开始 更新时间 */
private String updateTimeStart;
/** 结束 更新时间 */
private String updateTimeEnd;
/** 开始 更新人ID */
private Long updateUserIdStart;
/** 结束 更新人ID */
private Long updateUserIdEnd;
/** 增加 更新人ID */
private Long updateUserIdIncrement;
/** 更新人ID列表 */
private List <Long> updateUserIdList;
/** 更新人ID排除列表 */
private List <Long> updateUserIdNotList;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<FacePlanQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<FacePlanQuery> andConditionList;
public FacePlanQuery(){}
/**
* 获取 开始 主键ID
* @return idStart
*/
public Long getIdStart(){
return this.idStart;
}
/**
* 设置 开始 主键ID
* @param idStart
*/
public void setIdStart(Long idStart){
this.idStart = idStart;
}
/**
* 获取 结束 主键ID
* @return $idEnd
*/
public Long getIdEnd(){
return this.idEnd;
}
/**
* 设置 结束 主键ID
* @param idEnd
*/
public void setIdEnd(Long idEnd){
this.idEnd = idEnd;
}
/**
* 获取 增加 主键ID
* @return idIncrement
*/
public Long getIdIncrement(){
return this.idIncrement;
}
/**
* 设置 增加 主键ID
* @param idIncrement
*/
public void setIdIncrement(Long idIncrement){
this.idIncrement = idIncrement;
}
/**
* 获取 主键ID
* @return idList
*/
public List<Long> getIdList(){
return this.idList;
}
/**
* 设置 主键ID
* @param idList
*/
public void setIdList(List<Long> idList){
this.idList = idList;
}
/**
* 获取 主键ID
* @return idNotList
*/
public List<Long> getIdNotList(){
return this.idNotList;
}
/**
* 设置 主键ID
* @param idNotList
*/
public void setIdNotList(List<Long> idNotList){
this.idNotList = idNotList;
}
/**
* 获取 重点人员计划
* @return indexCodeList
*/
public List<String> getIndexCodeList(){
return this.indexCodeList;
}
/**
* 设置 重点人员计划
* @param indexCodeList
*/
public void setIndexCodeList(List<String> indexCodeList){
this.indexCodeList = indexCodeList;
}
/**
* 获取 重点人员计划
* @return indexCodeNotList
*/
public List<String> getIndexCodeNotList(){
return this.indexCodeNotList;
}
/**
* 设置 重点人员计划
* @param indexCodeNotList
*/
public void setIndexCodeNotList(List<String> indexCodeNotList){
this.indexCodeNotList = indexCodeNotList;
}
/**
* 获取 名称
* @return nameList
*/
public List<String> getNameList(){
return this.nameList;
}
/**
* 设置 名称
* @param nameList
*/
public void setNameList(List<String> nameList){
this.nameList = nameList;
}
/**
* 获取 名称
* @return nameNotList
*/
public List<String> getNameNotList(){
return this.nameNotList;
}
/**
* 设置 名称
* @param nameNotList
*/
public void setNameNotList(List<String> nameNotList){
this.nameNotList = nameNotList;
}
/**
* 获取 人脸分组的唯一标识集合,逗号分割
* @return faceGroupIndexCodesList
*/
public List<String> getFaceGroupIndexCodesList(){
return this.faceGroupIndexCodesList;
}
/**
* 设置 人脸分组的唯一标识集合,逗号分割
* @param faceGroupIndexCodesList
*/
public void setFaceGroupIndexCodesList(List<String> faceGroupIndexCodesList){
this.faceGroupIndexCodesList = faceGroupIndexCodesList;
}
/**
* 获取 人脸分组的唯一标识集合,逗号分割
* @return faceGroupIndexCodesNotList
*/
public List<String> getFaceGroupIndexCodesNotList(){
return this.faceGroupIndexCodesNotList;
}
/**
* 设置 人脸分组的唯一标识集合,逗号分割
* @param faceGroupIndexCodesNotList
*/
public void setFaceGroupIndexCodesNotList(List<String> faceGroupIndexCodesNotList){
this.faceGroupIndexCodesNotList = faceGroupIndexCodesNotList;
}
/**
* 获取 人脸分组的唯一标识集合,逗号分割
* @return cameraIndexCodesList
*/
public List<String> getCameraIndexCodesList(){
return this.cameraIndexCodesList;
}
/**
* 设置 人脸分组的唯一标识集合,逗号分割
* @param cameraIndexCodesList
*/
public void setCameraIndexCodesList(List<String> cameraIndexCodesList){
this.cameraIndexCodesList = cameraIndexCodesList;
}
/**
* 获取 人脸分组的唯一标识集合,逗号分割
* @return cameraIndexCodesNotList
*/
public List<String> getCameraIndexCodesNotList(){
return this.cameraIndexCodesNotList;
}
/**
* 设置 人脸分组的唯一标识集合,逗号分割
* @param cameraIndexCodesNotList
*/
public void setCameraIndexCodesNotList(List<String> cameraIndexCodesNotList){
this.cameraIndexCodesNotList = cameraIndexCodesNotList;
}
/**
* 获取 识别资源的唯一标识集合,逗号分割
* @return recognitionResourceIndexCodesList
*/
public List<String> getRecognitionResourceIndexCodesList(){
return this.recognitionResourceIndexCodesList;
}
/**
* 设置 识别资源的唯一标识集合,逗号分割
* @param recognitionResourceIndexCodesList
*/
public void setRecognitionResourceIndexCodesList(List<String> recognitionResourceIndexCodesList){
this.recognitionResourceIndexCodesList = recognitionResourceIndexCodesList;
}
/**
* 获取 识别资源的唯一标识集合,逗号分割
* @return recognitionResourceIndexCodesNotList
*/
public List<String> getRecognitionResourceIndexCodesNotList(){
return this.recognitionResourceIndexCodesNotList;
}
/**
* 设置 识别资源的唯一标识集合,逗号分割
* @param recognitionResourceIndexCodesNotList
*/
public void setRecognitionResourceIndexCodesNotList(List<String> recognitionResourceIndexCodesNotList){
this.recognitionResourceIndexCodesNotList = recognitionResourceIndexCodesNotList;
}
/**
* 获取 识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸
* @return recognitionResourceTypeList
*/
public List<String> getRecognitionResourceTypeList(){
return this.recognitionResourceTypeList;
}
/**
* 设置 识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸
* @param recognitionResourceTypeList
*/
public void setRecognitionResourceTypeList(List<String> recognitionResourceTypeList){
this.recognitionResourceTypeList = recognitionResourceTypeList;
}
/**
* 获取 识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸
* @return recognitionResourceTypeNotList
*/
public List<String> getRecognitionResourceTypeNotList(){
return this.recognitionResourceTypeNotList;
}
/**
* 设置 识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸
* @param recognitionResourceTypeNotList
*/
public void setRecognitionResourceTypeNotList(List<String> recognitionResourceTypeNotList){
this.recognitionResourceTypeNotList = recognitionResourceTypeNotList;
}
/**
* 获取 识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划(BLACK_LIST.重点人员识别计划, WHITE_LIST.陌生人识别计划)
* @return recognitionPlanTypeList
*/
public List<String> getRecognitionPlanTypeList(){
return this.recognitionPlanTypeList;
}
/**
* 设置 识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划(BLACK_LIST.重点人员识别计划, WHITE_LIST.陌生人识别计划)
* @param recognitionPlanTypeList
*/
public void setRecognitionPlanTypeList(List<String> recognitionPlanTypeList){
this.recognitionPlanTypeList = recognitionPlanTypeList;
}
/**
* 获取 识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划(BLACK_LIST.重点人员识别计划, WHITE_LIST.陌生人识别计划)
* @return recognitionPlanTypeNotList
*/
public List<String> getRecognitionPlanTypeNotList(){
return this.recognitionPlanTypeNotList;
}
/**
* 设置 识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划(BLACK_LIST.重点人员识别计划, WHITE_LIST.陌生人识别计划)
* @param recognitionPlanTypeNotList
*/
public void setRecognitionPlanTypeNotList(List<String> recognitionPlanTypeNotList){
this.recognitionPlanTypeNotList = recognitionPlanTypeNotList;
}
/**
* 获取 状态
* @return statusList
*/
public List<String> getStatusList(){
return this.statusList;
}
/**
* 设置 状态
* @param statusList
*/
public void setStatusList(List<String> statusList){
this.statusList = statusList;
}
/**
* 获取 状态
* @return statusNotList
*/
public List<String> getStatusNotList(){
return this.statusNotList;
}
/**
* 设置 状态
* @param statusNotList
*/
public void setStatusNotList(List<String> statusNotList){
this.statusNotList = statusNotList;
}
/**
* 获取 是否启用,true:启用,false:禁用
* @return availableList
*/
public List<String> getAvailableList(){
return this.availableList;
}
/**
* 设置 是否启用,true:启用,false:禁用
* @param availableList
*/
public void setAvailableList(List<String> availableList){
this.availableList = availableList;
}
/**
* 获取 是否启用,true:启用,false:禁用
* @return availableNotList
*/
public List<String> getAvailableNotList(){
return this.availableNotList;
}
/**
* 设置 是否启用,true:启用,false:禁用
* @param availableNotList
*/
public void setAvailableNotList(List<String> availableNotList){
this.availableNotList = availableNotList;
}
/**
* 获取 描述
* @return descriptionList
*/
public List<String> getDescriptionList(){
return this.descriptionList;
}
/**
* 设置 描述
* @param descriptionList
*/
public void setDescriptionList(List<String> descriptionList){
this.descriptionList = descriptionList;
}
/**
* 获取 描述
* @return descriptionNotList
*/
public List<String> getDescriptionNotList(){
return this.descriptionNotList;
}
/**
* 设置 描述
* @param descriptionNotList
*/
public void setDescriptionNotList(List<String> descriptionNotList){
this.descriptionNotList = descriptionNotList;
}
/**
* 获取 开始 启用时间
* @return startTimeStart
*/
public String getStartTimeStart(){
return this.startTimeStart;
}
/**
* 设置 开始 启用时间
* @param startTimeStart
*/
public void setStartTimeStart(String startTimeStart){
this.startTimeStart = startTimeStart;
}
/**
* 获取 结束 启用时间
* @return startTimeEnd
*/
public String getStartTimeEnd(){
return this.startTimeEnd;
}
/**
* 设置 结束 启用时间
* @param startTimeEnd
*/
public void setStartTimeEnd(String startTimeEnd){
this.startTimeEnd = startTimeEnd;
}
/**
* 获取 开始 启用时间
* @return usingTimeStart
*/
public Long getUsingTimeStart(){
return this.usingTimeStart;
}
/**
* 设置 开始 启用时间
* @param usingTimeStart
*/
public void setUsingTimeStart(Long usingTimeStart){
this.usingTimeStart = usingTimeStart;
}
/**
* 获取 结束 启用时间
* @return $usingTimeEnd
*/
public Long getUsingTimeEnd(){
return this.usingTimeEnd;
}
/**
* 设置 结束 启用时间
* @param usingTimeEnd
*/
public void setUsingTimeEnd(Long usingTimeEnd){
this.usingTimeEnd = usingTimeEnd;
}
/**
* 获取 增加 启用时间
* @return usingTimeIncrement
*/
public Long getUsingTimeIncrement(){
return this.usingTimeIncrement;
}
/**
* 设置 增加 启用时间
* @param usingTimeIncrement
*/
public void setUsingTimeIncrement(Long usingTimeIncrement){
this.usingTimeIncrement = usingTimeIncrement;
}
/**
* 获取 启用时间
* @return usingTimeList
*/
public List<Long> getUsingTimeList(){
return this.usingTimeList;
}
/**
* 设置 启用时间
* @param usingTimeList
*/
public void setUsingTimeList(List<Long> usingTimeList){
this.usingTimeList = usingTimeList;
}
/**
* 获取 启用时间
* @return usingTimeNotList
*/
public List<Long> getUsingTimeNotList(){
return this.usingTimeNotList;
}
/**
* 设置 启用时间
* @param usingTimeNotList
*/
public void setUsingTimeNotList(List<Long> usingTimeNotList){
this.usingTimeNotList = usingTimeNotList;
}
/**
* 获取 开始 阈值 0-100
* @return thresholdStart
*/
public Integer getThresholdStart(){
return this.thresholdStart;
}
/**
* 设置 开始 阈值 0-100
* @param thresholdStart
*/
public void setThresholdStart(Integer thresholdStart){
this.thresholdStart = thresholdStart;
}
/**
* 获取 结束 阈值 0-100
* @return $thresholdEnd
*/
public Integer getThresholdEnd(){
return this.thresholdEnd;
}
/**
* 设置 结束 阈值 0-100
* @param thresholdEnd
*/
public void setThresholdEnd(Integer thresholdEnd){
this.thresholdEnd = thresholdEnd;
}
/**
* 获取 增加 阈值 0-100
* @return thresholdIncrement
*/
public Integer getThresholdIncrement(){
return this.thresholdIncrement;
}
/**
* 设置 增加 阈值 0-100
* @param thresholdIncrement
*/
public void setThresholdIncrement(Integer thresholdIncrement){
this.thresholdIncrement = thresholdIncrement;
}
/**
* 获取 阈值 0-100
* @return thresholdList
*/
public List<Integer> getThresholdList(){
return this.thresholdList;
}
/**
* 设置 阈值 0-100
* @param thresholdList
*/
public void setThresholdList(List<Integer> thresholdList){
this.thresholdList = thresholdList;
}
/**
* 获取 阈值 0-100
* @return thresholdNotList
*/
public List<Integer> getThresholdNotList(){
return this.thresholdNotList;
}
/**
* 设置 阈值 0-100
* @param thresholdNotList
*/
public void setThresholdNotList(List<Integer> thresholdNotList){
this.thresholdNotList = thresholdNotList;
}
/**
* 获取 开始 创建时间
* @return createTimeStart
*/
public String getCreateTimeStart(){
return this.createTimeStart;
}
/**
* 设置 开始 创建时间
* @param createTimeStart
*/
public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart;
}
/**
* 获取 结束 创建时间
* @return createTimeEnd
*/
public String getCreateTimeEnd(){
return this.createTimeEnd;
}
/**
* 设置 结束 创建时间
* @param createTimeEnd
*/
public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd;
}
/**
* 获取 开始 创建人ID
* @return createUserIdStart
*/
public Long getCreateUserIdStart(){
return this.createUserIdStart;
}
/**
* 设置 开始 创建人ID
* @param createUserIdStart
*/
public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
}
/**
* 获取 结束 创建人ID
* @return $createUserIdEnd
*/
public Long getCreateUserIdEnd(){
return this.createUserIdEnd;
}
/**
* 设置 结束 创建人ID
* @param createUserIdEnd
*/
public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
}
/**
* 获取 增加 创建人ID
* @return createUserIdIncrement
*/
public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement;
}
/**
* 设置 增加 创建人ID
* @param createUserIdIncrement
*/
public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
}
/**
* 获取 创建人ID
* @return createUserIdList
*/
public List<Long> getCreateUserIdList(){
return this.createUserIdList;
}
/**
* 设置 创建人ID
* @param createUserIdList
*/
public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
}
/**
* 获取 创建人ID
* @return createUserIdNotList
*/
public List<Long> getCreateUserIdNotList(){
return this.createUserIdNotList;
}
/**
* 设置 创建人ID
* @param createUserIdNotList
*/
public void setCreateUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
}
/**
* 获取 开始 更新时间
* @return updateTimeStart
*/
public String getUpdateTimeStart(){
return this.updateTimeStart;
}
/**
* 设置 开始 更新时间
* @param updateTimeStart
*/
public void setUpdateTimeStart(String updateTimeStart){
this.updateTimeStart = updateTimeStart;
}
/**
* 获取 结束 更新时间
* @return updateTimeEnd
*/
public String getUpdateTimeEnd(){
return this.updateTimeEnd;
}
/**
* 设置 结束 更新时间
* @param updateTimeEnd
*/
public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd;
}
/**
* 获取 开始 更新人ID
* @return updateUserIdStart
*/
public Long getUpdateUserIdStart(){
return this.updateUserIdStart;
}
/**
* 设置 开始 更新人ID
* @param updateUserIdStart
*/
public void setUpdateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
}
/**
* 获取 结束 更新人ID
* @return $updateUserIdEnd
*/
public Long getUpdateUserIdEnd(){
return this.updateUserIdEnd;
}
/**
* 设置 结束 更新人ID
* @param updateUserIdEnd
*/
public void setUpdateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
}
/**
* 获取 增加 更新人ID
* @return updateUserIdIncrement
*/
public Long getUpdateUserIdIncrement(){
return this.updateUserIdIncrement;
}
/**
* 设置 增加 更新人ID
* @param updateUserIdIncrement
*/
public void setUpdateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
}
/**
* 获取 更新人ID
* @return updateUserIdList
*/
public List<Long> getUpdateUserIdList(){
return this.updateUserIdList;
}
/**
* 设置 更新人ID
* @param updateUserIdList
*/
public void setUpdateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
}
/**
* 获取 更新人ID
* @return updateUserIdNotList
*/
public List<Long> getUpdateUserIdNotList(){
return this.updateUserIdNotList;
}
/**
* 设置 更新人ID
* @param updateUserIdNotList
*/
public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
}
/**
* 设置 主键ID
* @param id
*/
public FacePlanQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 主键ID
* @param idStart
*/
public FacePlanQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 主键ID
* @param idEnd
*/
public FacePlanQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 主键ID
* @param idIncrement
*/
public FacePlanQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 主键ID
* @param idList
*/
public FacePlanQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 主键ID
* @param idNotList
*/
public FacePlanQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
}
/**
* 设置 重点人员计划
* @param indexCode
*/
public FacePlanQuery indexCode(String indexCode){
setIndexCode(indexCode);
return this;
}
/**
* 设置 重点人员计划
* @param indexCodeList
*/
public FacePlanQuery indexCodeList(List<String> indexCodeList){
this.indexCodeList = indexCodeList;
return this;
}
/**
* 设置 名称
* @param name
*/
public FacePlanQuery name(String name){
setName(name);
return this;
}
/**
* 设置 名称
* @param nameList
*/
public FacePlanQuery nameList(List<String> nameList){
this.nameList = nameList;
return this;
}
/**
* 设置 人脸分组的唯一标识集合,逗号分割
* @param faceGroupIndexCodes
*/
public FacePlanQuery faceGroupIndexCodes(String faceGroupIndexCodes){
setFaceGroupIndexCodes(faceGroupIndexCodes);
return this;
}
/**
* 设置 人脸分组的唯一标识集合,逗号分割
* @param faceGroupIndexCodesList
*/
public FacePlanQuery faceGroupIndexCodesList(List<String> faceGroupIndexCodesList){
this.faceGroupIndexCodesList = faceGroupIndexCodesList;
return this;
}
/**
* 设置 人脸分组的唯一标识集合,逗号分割
* @param cameraIndexCodes
*/
public FacePlanQuery cameraIndexCodes(String cameraIndexCodes){
setCameraIndexCodes(cameraIndexCodes);
return this;
}
/**
* 设置 人脸分组的唯一标识集合,逗号分割
* @param cameraIndexCodesList
*/
public FacePlanQuery cameraIndexCodesList(List<String> cameraIndexCodesList){
this.cameraIndexCodesList = cameraIndexCodesList;
return this;
}
/**
* 设置 识别资源的唯一标识集合,逗号分割
* @param recognitionResourceIndexCodes
*/
public FacePlanQuery recognitionResourceIndexCodes(String recognitionResourceIndexCodes){
setRecognitionResourceIndexCodes(recognitionResourceIndexCodes);
return this;
}
/**
* 设置 识别资源的唯一标识集合,逗号分割
* @param recognitionResourceIndexCodesList
*/
public FacePlanQuery recognitionResourceIndexCodesList(List<String> recognitionResourceIndexCodesList){
this.recognitionResourceIndexCodesList = recognitionResourceIndexCodesList;
return this;
}
/**
* 设置 识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸
* @param recognitionResourceType
*/
public FacePlanQuery recognitionResourceType(String recognitionResourceType){
setRecognitionResourceType(recognitionResourceType);
return this;
}
/**
* 设置 识别资源类型,SUPER_BRAIN 超脑,FACE_RECOGNITION_SERVER 脸谱,COMPARISON 深眸
* @param recognitionResourceTypeList
*/
public FacePlanQuery recognitionResourceTypeList(List<String> recognitionResourceTypeList){
this.recognitionResourceTypeList = recognitionResourceTypeList;
return this;
}
/**
* 设置 识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划(BLACK_LIST.重点人员识别计划, WHITE_LIST.陌生人识别计划)
* @param recognitionPlanType
*/
public FacePlanQuery recognitionPlanType(String recognitionPlanType){
setRecognitionPlanType(recognitionPlanType);
return this;
}
/**
* 设置 识别计划的类型, BLACK_LIST-重点人员识别计划 WHITE_LIST-陌生人识别计划(BLACK_LIST.重点人员识别计划, WHITE_LIST.陌生人识别计划)
* @param recognitionPlanTypeList
*/
public FacePlanQuery recognitionPlanTypeList(List<String> recognitionPlanTypeList){
this.recognitionPlanTypeList = recognitionPlanTypeList;
return this;
}
/**
* 设置 状态
* @param status
*/
public FacePlanQuery status(String status){
setStatus(status);
return this;
}
/**
* 设置 状态
* @param statusList
*/
public FacePlanQuery statusList(List<String> statusList){
this.statusList = statusList;
return this;
}
/**
* 设置 是否启用,true:启用,false:禁用
* @param available
*/
public FacePlanQuery available(String available){
setAvailable(available);
return this;
}
/**
* 设置 是否启用,true:启用,false:禁用
* @param availableList
*/
public FacePlanQuery availableList(List<String> availableList){
this.availableList = availableList;
return this;
}
/**
* 设置 描述
* @param description
*/
public FacePlanQuery description(String description){
setDescription(description);
return this;
}
/**
* 设置 描述
* @param descriptionList
*/
public FacePlanQuery descriptionList(List<String> descriptionList){
this.descriptionList = descriptionList;
return this;
}
/**
* 设置 启用时间
* @param usingTime
*/
public FacePlanQuery usingTime(Long usingTime){
setUsingTime(usingTime);
return this;
}
/**
* 设置 开始 启用时间
* @param usingTimeStart
*/
public FacePlanQuery usingTimeStart(Long usingTimeStart){
this.usingTimeStart = usingTimeStart;
return this;
}
/**
* 设置 结束 启用时间
* @param usingTimeEnd
*/
public FacePlanQuery usingTimeEnd(Long usingTimeEnd){
this.usingTimeEnd = usingTimeEnd;
return this;
}
/**
* 设置 增加 启用时间
* @param usingTimeIncrement
*/
public FacePlanQuery usingTimeIncrement(Long usingTimeIncrement){
this.usingTimeIncrement = usingTimeIncrement;
return this;
}
/**
* 设置 启用时间
* @param usingTimeList
*/
public FacePlanQuery usingTimeList(List<Long> usingTimeList){
this.usingTimeList = usingTimeList;
return this;
}
/**
* 设置 启用时间
* @param usingTimeNotList
*/
public FacePlanQuery usingTimeNotList(List<Long> usingTimeNotList){
this.usingTimeNotList = usingTimeNotList;
return this;
}
/**
* 设置 阈值 0-100
* @param threshold
*/
public FacePlanQuery threshold(Integer threshold){
setThreshold(threshold);
return this;
}
/**
* 设置 开始 阈值 0-100
* @param thresholdStart
*/
public FacePlanQuery thresholdStart(Integer thresholdStart){
this.thresholdStart = thresholdStart;
return this;
}
/**
* 设置 结束 阈值 0-100
* @param thresholdEnd
*/
public FacePlanQuery thresholdEnd(Integer thresholdEnd){
this.thresholdEnd = thresholdEnd;
return this;
}
/**
* 设置 增加 阈值 0-100
* @param thresholdIncrement
*/
public FacePlanQuery thresholdIncrement(Integer thresholdIncrement){
this.thresholdIncrement = thresholdIncrement;
return this;
}
/**
* 设置 阈值 0-100
* @param thresholdList
*/
public FacePlanQuery thresholdList(List<Integer> thresholdList){
this.thresholdList = thresholdList;
return this;
}
/**
* 设置 阈值 0-100
* @param thresholdNotList
*/
public FacePlanQuery thresholdNotList(List<Integer> thresholdNotList){
this.thresholdNotList = thresholdNotList;
return this;
}
/**
* 设置 创建人ID
* @param createUserId
*/
public FacePlanQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 创建人ID
* @param createUserIdStart
*/
public FacePlanQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 创建人ID
* @param createUserIdEnd
*/
public FacePlanQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 创建人ID
* @param createUserIdIncrement
*/
public FacePlanQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 创建人ID
* @param createUserIdList
*/
public FacePlanQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 创建人ID
* @param createUserIdNotList
*/
public FacePlanQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 更新人ID
* @param updateUserId
*/
public FacePlanQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId);
return this;
}
/**
* 设置 开始 更新人ID
* @param updateUserIdStart
*/
public FacePlanQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
return this;
}
/**
* 设置 结束 更新人ID
* @param updateUserIdEnd
*/
public FacePlanQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
return this;
}
/**
* 设置 增加 更新人ID
* @param updateUserIdIncrement
*/
public FacePlanQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
return this;
}
/**
* 设置 更新人ID
* @param updateUserIdList
*/
public FacePlanQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
return this;
}
/**
* 设置 更新人ID
* @param updateUserIdNotList
*/
public FacePlanQuery updateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
*/
public List<FacePlanQuery> getOrConditionList(){
return this.orConditionList;
}
/**
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @param orConditionList
*/
public void setOrConditionList(List<FacePlanQuery> orConditionList){
this.orConditionList = orConditionList;
}
/**
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @return andConditionList
*/
public List<FacePlanQuery> getAndConditionList(){
return this.andConditionList;
}
/**
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @param andConditionList
*/
public void setAndConditionList(List<FacePlanQuery> andConditionList){
this.andConditionList = andConditionList;
}
}
\ No newline at end of file
package com.mortals.xhx.module.face.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.face.model.FaceGroupPersonEntity;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
/**
* 分组人脸信息视图对象
*
* @author zxfei
* @date 2023-04-15
*/
@Data
public class FaceGroupPersonVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.face.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.face.model.FaceGroupEntity;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
/**
* 人脸分组信息视图对象
*
* @author zxfei
* @date 2023-04-15
*/
@Data
public class FaceGroupVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.face.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.face.model.FacePlanEntity;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
/**
* 人员识别计划信息视图对象
*
* @author zxfei
* @date 2023-04-15
*/
@Data
public class FacePlanVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.face.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.face.model.FaceGroupPersonEntity;
/**
* FaceGroupPersonService
*
* 分组人脸信息 service接口
*
* @author zxfei
* @date 2023-04-15
*/
public interface FaceGroupPersonService extends ICRUDService<FaceGroupPersonEntity,Long>{
}
\ No newline at end of file
package com.mortals.xhx.module.face.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.face.model.FaceGroupEntity;
/**
* FaceGroupService
*
* 人脸分组信息 service接口
*
* @author zxfei
* @date 2023-04-15
*/
public interface FaceGroupService extends ICRUDService<FaceGroupEntity,Long>{
}
\ No newline at end of file
package com.mortals.xhx.module.face.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.face.model.FacePlanEntity;
/**
* FacePlanService
*
* 人员识别计划信息 service接口
*
* @author zxfei
* @date 2023-04-15
*/
public interface FacePlanService extends ICRUDService<FacePlanEntity,Long>{
}
\ No newline at end of file
package com.mortals.xhx.module.face.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.face.dao.FaceGroupPersonDao;
import com.mortals.xhx.module.face.model.FaceGroupPersonEntity;
import com.mortals.xhx.module.face.service.FaceGroupPersonService;
/**
* FaceGroupPersonService
* 分组人脸信息 service实现
*
* @author zxfei
* @date 2023-04-15
*/
@Service("faceGroupPersonService")
public class FaceGroupPersonServiceImpl extends AbstractCRUDServiceImpl<FaceGroupPersonDao, FaceGroupPersonEntity, Long> implements FaceGroupPersonService {
}
\ No newline at end of file
package com.mortals.xhx.module.face.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.face.dao.FaceGroupDao;
import com.mortals.xhx.module.face.model.FaceGroupEntity;
import com.mortals.xhx.module.face.service.FaceGroupService;
/**
* FaceGroupService
* 人脸分组信息 service实现
*
* @author zxfei
* @date 2023-04-15
*/
@Service("faceGroupService")
public class FaceGroupServiceImpl extends AbstractCRUDServiceImpl<FaceGroupDao, FaceGroupEntity, Long> implements FaceGroupService {
}
\ No newline at end of file
package com.mortals.xhx.module.face.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.face.dao.FacePlanDao;
import com.mortals.xhx.module.face.model.FacePlanEntity;
import com.mortals.xhx.module.face.service.FacePlanService;
/**
* FacePlanService
* 人员识别计划信息 service实现
*
* @author zxfei
* @date 2023-04-15
*/
@Service("facePlanService")
public class FacePlanServiceImpl extends AbstractCRUDServiceImpl<FacePlanDao, FacePlanEntity, Long> implements FacePlanService {
}
\ No newline at end of file
package com.mortals.xhx.module.face.web;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.face.model.FaceGroupEntity;
import com.mortals.xhx.module.face.service.FaceGroupService;
import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*;
/**
*
* 人脸分组信息
*
* @author zxfei
* @date 2023-04-15
*/
@RestController
@RequestMapping("face/group")
public class FaceGroupController extends BaseCRUDJsonBodyMappingController<FaceGroupService,FaceGroupEntity,Long> {
@Autowired
private ParamService paramService;
public FaceGroupController(){
super.setModuleDesc( "人脸分组信息");
}
@Override
protected void init(Map<String, Object> model, Context context) {
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.face.web;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.face.model.FaceGroupPersonEntity;
import com.mortals.xhx.module.face.service.FaceGroupPersonService;
import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*;
/**
*
* 分组人脸信息
*
* @author zxfei
* @date 2023-04-15
*/
@RestController
@RequestMapping("face/group/person")
public class FaceGroupPersonController extends BaseCRUDJsonBodyMappingController<FaceGroupPersonService,FaceGroupPersonEntity,Long> {
@Autowired
private ParamService paramService;
public FaceGroupPersonController(){
super.setModuleDesc( "分组人脸信息");
}
@Override
protected void init(Map<String, Object> model, Context context) {
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.face.web;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.face.model.FacePlanEntity;
import com.mortals.xhx.module.face.service.FacePlanService;
import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*;
/**
*
* 人员识别计划信息
*
* @author zxfei
* @date 2023-04-15
*/
@RestController
@RequestMapping("face/plan")
public class FacePlanController extends BaseCRUDJsonBodyMappingController<FacePlanService,FacePlanEntity,Long> {
@Autowired
private ParamService paramService;
public FacePlanController(){
super.setModuleDesc( "人员识别计划信息");
}
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "recognitionPlanType", paramService.getParamBySecondOrganize("FacePlan","recognitionPlanType"));
super.init(model, context);
}
}
\ No newline at end of file
......@@ -56,13 +56,14 @@ public class HikFaceServiceImpl extends AbstractHikService implements IHikFaceSe
String getCamsApi = ARTEMIS_PATH + "/api/frs/v1/face/single/addition";
path.put(protocol, getCamsApi);
try {
//log.info("face single add req=>{}", JSON.toJSONString(faceReq));
String respJson = ArtemisHttpUtil.doPostStringArtemis(config, path, JSON.toJSONString(faceReq), null, null, "application/json");
log.info("face single add resp=>{}", respJson);
Rest<FaceDataInfo> rest = JSON.parseObject(respJson, new TypeReference<Rest<FaceDataInfo>>() {
});
if (rest.getCode() == 0) {
return Rest.ok(rest.getData());
} else {
log.info("face single error resp=>", respJson);
return Rest.fail(rest.getMsg());
}
} catch (Exception e) {
......@@ -138,16 +139,17 @@ public class HikFaceServiceImpl extends AbstractHikService implements IHikFaceSe
@Override
public Rest<FaceGroupDataInfo> faceGroupSingleAdd(FaceGroupReq faceGroupReq) {
ArtemisConfig config = getArtemisConfig();
String getCamsApi = ARTEMIS_PATH + "/api/frs/v1/face/single/addition";
String getCamsApi = ARTEMIS_PATH + "/api/frs/v1/face/group/single/addition";
path.put(protocol, getCamsApi);
try {
log.info("face single req=>{}", JSON.toJSONString(faceGroupReq));
String respJson = ArtemisHttpUtil.doPostStringArtemis(config, path, JSON.toJSONString(faceGroupReq), null, null, "application/json");
log.info("face single resp=>{}", respJson);
Rest<FaceGroupDataInfo> rest = JSON.parseObject(respJson, new TypeReference<Rest<FaceGroupDataInfo>>() {
});
if (rest.getCode() == 0) {
return Rest.ok(rest.getData());
} else {
log.info("face single error resp=>{}", respJson);
return Rest.fail(rest.getMsg());
}
} catch (Exception e) {
......@@ -179,6 +181,7 @@ public class HikFaceServiceImpl extends AbstractHikService implements IHikFaceSe
/**
* 识别计划需要人脸资源
*
* @param recognReq
* @return
*/
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.face.dao.ibatis.FaceGroupDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="FaceGroupEntity" id="FaceGroupEntity-Map">
<id property="id" column="id" />
<result property="name" column="name" />
<result property="description" column="description" />
<result property="indexCode" column="indexCode" />
<result property="createTime" column="createTime" />
<result property="createUserId" column="createUserId" />
<result property="updateTime" column="updateTime" />
<result property="updateUserId" column="updateUserId" />
</resultMap>
<!-- 表所有列 -->
<sql id="_columns">
<trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('name') or colPickMode == 1 and data.containsKey('name')))">
a.name,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('description') or colPickMode == 1 and data.containsKey('description')))">
a.description,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('indexCode') or colPickMode == 1 and data.containsKey('indexCode')))">
a.indexCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="FaceGroupEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_face_group
(name,description,indexCode,createTime,createUserId,updateTime,updateUserId)
VALUES
(#{name},#{description},#{indexCode},#{createTime},#{createUserId},#{updateTime},#{updateUserId})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_face_group
(name,description,indexCode,createTime,createUserId,updateTime,updateUserId)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.name},#{item.description},#{item.indexCode},#{item.createTime},#{item.createUserId},#{item.updateTime},#{item.updateUserId})
</foreach>
</insert>
<!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto">
update mortals_xhx_face_group as a
set
<trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('name')) or (colPickMode==1 and !data.containsKey('name'))">
a.name=#{data.name},
</if>
<if test="(colPickMode==0 and data.containsKey('description')) or (colPickMode==1 and !data.containsKey('description'))">
a.description=#{data.description},
</if>
<if test="(colPickMode==0 and data.containsKey('indexCode')) or (colPickMode==1 and !data.containsKey('indexCode'))">
a.indexCode=#{data.indexCode},
</if>
<if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.createTime=#{data.createTime},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))">
a.createUserId=#{data.createUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserIdIncrement')) or (colPickMode==1 and !data.containsKey('createUserIdIncrement'))">
a.createUserId=ifnull(a.createUserId,0) + #{data.createUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserId')) or (colPickMode==1 and !data.containsKey('updateUserId'))">
a.updateUserId=#{data.updateUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))">
a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</update>
<!-- 批量更新 -->
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_face_group as a
<trim prefix="set" suffixOverrides=",">
<trim prefix="name=(case" suffix="ELSE name end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('name')) or (colPickMode==1 and !item.containsKey('name'))">
when a.id=#{item.id} then #{item.name}
</if>
</foreach>
</trim>
<trim prefix="description=(case" suffix="ELSE description end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('description')) or (colPickMode==1 and !item.containsKey('description'))">
when a.id=#{item.id} then #{item.description}
</if>
</foreach>
</trim>
<trim prefix="indexCode=(case" suffix="ELSE indexCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('indexCode')) or (colPickMode==1 and !item.containsKey('indexCode'))">
when a.id=#{item.id} then #{item.indexCode}
</if>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
<trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</update>
<!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="FaceGroupEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_face_group as a
where a.id=#{condition.id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_face_group as a where a.id=#{condition.id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_face_group where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_face_group where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_face_group where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</delete>
<!-- 根据paramDto删除一批 -->
<delete id="deleteByMap" parameterType="paramDto">
delete a.* from mortals_xhx_face_group as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</delete>
<!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="FaceGroupEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_face_group as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
<include refid="_orderCols_"/>
</select>
<!-- 获取 -->
<select id="getListCount" parameterType="paramDto" resultType="int">
select count(1)
from mortals_xhx_face_group as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</select>
<!-- 条件映射 -->
<sql id="_condition_">
<if test="condition != null and !condition.isEmpty()">
<!-- 条件映射-普通条件 -->
<include refid="_condition_param_">
<property name="_conditionParam_" value="condition"/>
<property name="_conditionType_" value="and"/>
</include>
<!-- 条件映射-集合之间使用AND,集合中元素使用OR-(list[0].1 or list[0].2) and (list[1].3 or list[1].4) -->
<if test="condition.containsKey('andConditionList') and !condition.andConditionList.isEmpty()">
and
<foreach collection="condition.andConditionList" open="(" close=")" index="index" item="andCondition" separator=" and ">
<trim prefixOverrides="or" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="andCondition"/>
<property name="_conditionType_" value="or"/>
</include>
</trim>
</foreach>
</if>
<!-- 条件映射-集合之间使用OR,集合中元素使用AND-(list[0].1 and list[0].2) or (list[1].3 and list[1].4) -->
<if test="condition.containsKey('orConditionList') and !condition.orConditionList.isEmpty()">
and
<foreach collection="condition.orConditionList" open="(" close=")" index="index" item="orCondition" separator=" or ">
<trim prefixOverrides="and" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="orCondition"/>
<property name="_conditionType_" value="and"/>
</include>
</trim>
</foreach>
</if>
</if>
</sql>
<!-- 条件映射-代参数 -->
<sql id="_condition_param_">
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null">
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if>
<if test="conditionParamRef.containsKey('name')">
<if test="conditionParamRef.name != null and conditionParamRef.name != ''">
${_conditionType_} a.name like #{${_conditionParam_}.name}
</if>
<if test="conditionParamRef.name == null">
${_conditionType_} a.name is null
</if>
</if>
<if test="conditionParamRef.containsKey('nameList') and conditionParamRef.nameList.size() > 0">
${_conditionType_} a.name in
<foreach collection="conditionParamRef.nameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('nameNotList') and conditionParamRef.nameNotList.size() > 0">
${_conditionType_} a.name not in
<foreach collection="conditionParamRef.nameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('description')">
<if test="conditionParamRef.description != null and conditionParamRef.description != ''">
${_conditionType_} a.description like #{${_conditionParam_}.description}
</if>
<if test="conditionParamRef.description == null">
${_conditionType_} a.description is null
</if>
</if>
<if test="conditionParamRef.containsKey('descriptionList') and conditionParamRef.descriptionList.size() > 0">
${_conditionType_} a.description in
<foreach collection="conditionParamRef.descriptionList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('descriptionNotList') and conditionParamRef.descriptionNotList.size() > 0">
${_conditionType_} a.description not in
<foreach collection="conditionParamRef.descriptionNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('indexCode')">
<if test="conditionParamRef.indexCode != null and conditionParamRef.indexCode != ''">
${_conditionType_} a.indexCode like #{${_conditionParam_}.indexCode}
</if>
<if test="conditionParamRef.indexCode == null">
${_conditionType_} a.indexCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('indexCodeList') and conditionParamRef.indexCodeList.size() > 0">
${_conditionType_} a.indexCode in
<foreach collection="conditionParamRef.indexCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('indexCodeNotList') and conditionParamRef.indexCodeNotList.size() > 0">
${_conditionType_} a.indexCode not in
<foreach collection="conditionParamRef.indexCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0">
${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null">
${_conditionType_} a.createUserId <![CDATA[ >= ]]> #{${_conditionParam_}.createUserIdStart}
</if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateUserId')">
<if test="conditionParamRef.updateUserId != null ">
${_conditionType_} a.updateUserId = #{${_conditionParam_}.updateUserId}
</if>
<if test="conditionParamRef.updateUserId == null">
${_conditionType_} a.updateUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList') and conditionParamRef.updateUserIdNotList.size() > 0">
${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null">
${_conditionType_} a.updateUserId <![CDATA[ >= ]]> #{${_conditionParam_}.updateUserIdStart}
</if>
<if test="conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null">
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd}
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('name')">
a.name
<if test='orderCol.name != null and "DESC".equalsIgnoreCase(orderCol.name)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('description')">
a.description
<if test='orderCol.description != null and "DESC".equalsIgnoreCase(orderCol.description)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('indexCode')">
a.indexCode
<if test='orderCol.indexCode != null and "DESC".equalsIgnoreCase(orderCol.indexCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateUserId')">
a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
<sql id="_group_by_">
<if test="groupList != null and !groupList.isEmpty()">
GROUP BY
<trim suffixOverrides="," suffix="">
<foreach collection="groupList" open="" close="" index="index" item="item" separator=",">
${item}
</foreach>
</trim>
</if>
</sql>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.face.dao.ibatis.FaceGroupPersonDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="FaceGroupPersonEntity" id="FaceGroupPersonEntity-Map">
<id property="id" column="id" />
<result property="faceGroupId" column="faceGroupId" />
<result property="name" column="name" />
<result property="indexCode" column="indexCode" />
<result property="createTime" column="createTime" />
<result property="createUserId" column="createUserId" />
<result property="updateTime" column="updateTime" />
<result property="updateUserId" column="updateUserId" />
</resultMap>
<!-- 表所有列 -->
<sql id="_columns">
<trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('faceGroupId') or colPickMode == 1 and data.containsKey('faceGroupId')))">
a.faceGroupId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('name') or colPickMode == 1 and data.containsKey('name')))">
a.name,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('indexCode') or colPickMode == 1 and data.containsKey('indexCode')))">
a.indexCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="FaceGroupPersonEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_face_group_person
(faceGroupId,name,indexCode,createTime,createUserId,updateTime,updateUserId)
VALUES
(#{faceGroupId},#{name},#{indexCode},#{createTime},#{createUserId},#{updateTime},#{updateUserId})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_face_group_person
(faceGroupId,name,indexCode,createTime,createUserId,updateTime,updateUserId)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.faceGroupId},#{item.name},#{item.indexCode},#{item.createTime},#{item.createUserId},#{item.updateTime},#{item.updateUserId})
</foreach>
</insert>
<!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto">
update mortals_xhx_face_group_person as a
set
<trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('faceGroupId')) or (colPickMode==1 and !data.containsKey('faceGroupId'))">
a.faceGroupId=#{data.faceGroupId},
</if>
<if test="(colPickMode==0 and data.containsKey('faceGroupIdIncrement')) or (colPickMode==1 and !data.containsKey('faceGroupIdIncrement'))">
a.faceGroupId=ifnull(a.faceGroupId,0) + #{data.faceGroupIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('name')) or (colPickMode==1 and !data.containsKey('name'))">
a.name=#{data.name},
</if>
<if test="(colPickMode==0 and data.containsKey('indexCode')) or (colPickMode==1 and !data.containsKey('indexCode'))">
a.indexCode=#{data.indexCode},
</if>
<if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.createTime=#{data.createTime},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))">
a.createUserId=#{data.createUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserIdIncrement')) or (colPickMode==1 and !data.containsKey('createUserIdIncrement'))">
a.createUserId=ifnull(a.createUserId,0) + #{data.createUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserId')) or (colPickMode==1 and !data.containsKey('updateUserId'))">
a.updateUserId=#{data.updateUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))">
a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</update>
<!-- 批量更新 -->
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_face_group_person as a
<trim prefix="set" suffixOverrides=",">
<trim prefix="faceGroupId=(case" suffix="ELSE faceGroupId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('faceGroupId')) or (colPickMode==1 and !item.containsKey('faceGroupId'))">
when a.id=#{item.id} then #{item.faceGroupId}
</when>
<when test="(colPickMode==0 and item.containsKey('faceGroupIdIncrement')) or (colPickMode==1 and !item.containsKey('faceGroupIdIncrement'))">
when a.id=#{item.id} then ifnull(a.faceGroupId,0) + #{item.faceGroupIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="name=(case" suffix="ELSE name end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('name')) or (colPickMode==1 and !item.containsKey('name'))">
when a.id=#{item.id} then #{item.name}
</if>
</foreach>
</trim>
<trim prefix="indexCode=(case" suffix="ELSE indexCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('indexCode')) or (colPickMode==1 and !item.containsKey('indexCode'))">
when a.id=#{item.id} then #{item.indexCode}
</if>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
<trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</update>
<!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="FaceGroupPersonEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_face_group_person as a
where a.id=#{condition.id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_face_group_person as a where a.id=#{condition.id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_face_group_person where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_face_group_person where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_face_group_person where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</delete>
<!-- 根据paramDto删除一批 -->
<delete id="deleteByMap" parameterType="paramDto">
delete a.* from mortals_xhx_face_group_person as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</delete>
<!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="FaceGroupPersonEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_face_group_person as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
<include refid="_orderCols_"/>
</select>
<!-- 获取 -->
<select id="getListCount" parameterType="paramDto" resultType="int">
select count(1)
from mortals_xhx_face_group_person as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</select>
<!-- 条件映射 -->
<sql id="_condition_">
<if test="condition != null and !condition.isEmpty()">
<!-- 条件映射-普通条件 -->
<include refid="_condition_param_">
<property name="_conditionParam_" value="condition"/>
<property name="_conditionType_" value="and"/>
</include>
<!-- 条件映射-集合之间使用AND,集合中元素使用OR-(list[0].1 or list[0].2) and (list[1].3 or list[1].4) -->
<if test="condition.containsKey('andConditionList') and !condition.andConditionList.isEmpty()">
and
<foreach collection="condition.andConditionList" open="(" close=")" index="index" item="andCondition" separator=" and ">
<trim prefixOverrides="or" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="andCondition"/>
<property name="_conditionType_" value="or"/>
</include>
</trim>
</foreach>
</if>
<!-- 条件映射-集合之间使用OR,集合中元素使用AND-(list[0].1 and list[0].2) or (list[1].3 and list[1].4) -->
<if test="condition.containsKey('orConditionList') and !condition.orConditionList.isEmpty()">
and
<foreach collection="condition.orConditionList" open="(" close=")" index="index" item="orCondition" separator=" or ">
<trim prefixOverrides="and" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="orCondition"/>
<property name="_conditionType_" value="and"/>
</include>
</trim>
</foreach>
</if>
</if>
</sql>
<!-- 条件映射-代参数 -->
<sql id="_condition_param_">
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null">
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if>
<if test="conditionParamRef.containsKey('faceGroupId')">
<if test="conditionParamRef.faceGroupId != null ">
${_conditionType_} a.faceGroupId = #{${_conditionParam_}.faceGroupId}
</if>
<if test="conditionParamRef.faceGroupId == null">
${_conditionType_} a.faceGroupId is null
</if>
</if>
<if test="conditionParamRef.containsKey('faceGroupIdList') and conditionParamRef.faceGroupIdList.size() > 0">
${_conditionType_} a.faceGroupId in
<foreach collection="conditionParamRef.faceGroupIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('faceGroupIdNotList') and conditionParamRef.faceGroupIdNotList.size() > 0">
${_conditionType_} a.faceGroupId not in
<foreach collection="conditionParamRef.faceGroupIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('faceGroupIdStart') and conditionParamRef.faceGroupIdStart != null">
${_conditionType_} a.faceGroupId <![CDATA[ >= ]]> #{${_conditionParam_}.faceGroupIdStart}
</if>
<if test="conditionParamRef.containsKey('faceGroupIdEnd') and conditionParamRef.faceGroupIdEnd != null">
${_conditionType_} a.faceGroupId <![CDATA[ <= ]]> #{${_conditionParam_}.faceGroupIdEnd}
</if>
<if test="conditionParamRef.containsKey('name')">
<if test="conditionParamRef.name != null and conditionParamRef.name != ''">
${_conditionType_} a.name like #{${_conditionParam_}.name}
</if>
<if test="conditionParamRef.name == null">
${_conditionType_} a.name is null
</if>
</if>
<if test="conditionParamRef.containsKey('nameList') and conditionParamRef.nameList.size() > 0">
${_conditionType_} a.name in
<foreach collection="conditionParamRef.nameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('nameNotList') and conditionParamRef.nameNotList.size() > 0">
${_conditionType_} a.name not in
<foreach collection="conditionParamRef.nameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('indexCode')">
<if test="conditionParamRef.indexCode != null and conditionParamRef.indexCode != ''">
${_conditionType_} a.indexCode like #{${_conditionParam_}.indexCode}
</if>
<if test="conditionParamRef.indexCode == null">
${_conditionType_} a.indexCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('indexCodeList') and conditionParamRef.indexCodeList.size() > 0">
${_conditionType_} a.indexCode in
<foreach collection="conditionParamRef.indexCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('indexCodeNotList') and conditionParamRef.indexCodeNotList.size() > 0">
${_conditionType_} a.indexCode not in
<foreach collection="conditionParamRef.indexCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0">
${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null">
${_conditionType_} a.createUserId <![CDATA[ >= ]]> #{${_conditionParam_}.createUserIdStart}
</if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateUserId')">
<if test="conditionParamRef.updateUserId != null ">
${_conditionType_} a.updateUserId = #{${_conditionParam_}.updateUserId}
</if>
<if test="conditionParamRef.updateUserId == null">
${_conditionType_} a.updateUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList') and conditionParamRef.updateUserIdNotList.size() > 0">
${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null">
${_conditionType_} a.updateUserId <![CDATA[ >= ]]> #{${_conditionParam_}.updateUserIdStart}
</if>
<if test="conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null">
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd}
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('faceGroupId')">
a.faceGroupId
<if test='orderCol.faceGroupId != null and "DESC".equalsIgnoreCase(orderCol.faceGroupId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('name')">
a.name
<if test='orderCol.name != null and "DESC".equalsIgnoreCase(orderCol.name)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('indexCode')">
a.indexCode
<if test='orderCol.indexCode != null and "DESC".equalsIgnoreCase(orderCol.indexCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateUserId')">
a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
<sql id="_group_by_">
<if test="groupList != null and !groupList.isEmpty()">
GROUP BY
<trim suffixOverrides="," suffix="">
<foreach collection="groupList" open="" close="" index="index" item="item" separator=",">
${item}
</foreach>
</trim>
</if>
</sql>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.face.dao.ibatis.FacePlanDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="FacePlanEntity" id="FacePlanEntity-Map">
<id property="id" column="id" />
<result property="indexCode" column="indexCode" />
<result property="name" column="name" />
<result property="faceGroupIndexCodes" column="faceGroupIndexCodes" />
<result property="cameraIndexCodes" column="cameraIndexCodes" />
<result property="recognitionResourceIndexCodes" column="recognitionResourceIndexCodes" />
<result property="recognitionResourceType" column="recognitionResourceType" />
<result property="recognitionPlanType" column="recognitionPlanType" />
<result property="status" column="status" />
<result property="available" column="available" />
<result property="description" column="description" />
<result property="startTime" column="startTime" />
<result property="usingTime" column="usingTime" />
<result property="threshold" column="threshold" />
<result property="createTime" column="createTime" />
<result property="createUserId" column="createUserId" />
<result property="updateTime" column="updateTime" />
<result property="updateUserId" column="updateUserId" />
</resultMap>
<!-- 表所有列 -->
<sql id="_columns">
<trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('indexCode') or colPickMode == 1 and data.containsKey('indexCode')))">
a.indexCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('name') or colPickMode == 1 and data.containsKey('name')))">
a.name,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('faceGroupIndexCodes') or colPickMode == 1 and data.containsKey('faceGroupIndexCodes')))">
a.faceGroupIndexCodes,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('cameraIndexCodes') or colPickMode == 1 and data.containsKey('cameraIndexCodes')))">
a.cameraIndexCodes,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('recognitionResourceIndexCodes') or colPickMode == 1 and data.containsKey('recognitionResourceIndexCodes')))">
a.recognitionResourceIndexCodes,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('recognitionResourceType') or colPickMode == 1 and data.containsKey('recognitionResourceType')))">
a.recognitionResourceType,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('recognitionPlanType') or colPickMode == 1 and data.containsKey('recognitionPlanType')))">
a.recognitionPlanType,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('status') or colPickMode == 1 and data.containsKey('status')))">
a.status,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('available') or colPickMode == 1 and data.containsKey('available')))">
a.available,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('description') or colPickMode == 1 and data.containsKey('description')))">
a.description,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('startTime') or colPickMode == 1 and data.containsKey('startTime')))">
a.startTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('usingTime') or colPickMode == 1 and data.containsKey('usingTime')))">
a.usingTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('threshold') or colPickMode == 1 and data.containsKey('threshold')))">
a.threshold,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="FacePlanEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_face_plan
(indexCode,name,faceGroupIndexCodes,cameraIndexCodes,recognitionResourceIndexCodes,recognitionResourceType,recognitionPlanType,status,available,description,startTime,usingTime,threshold,createTime,createUserId,updateTime,updateUserId)
VALUES
(#{indexCode},#{name},#{faceGroupIndexCodes},#{cameraIndexCodes},#{recognitionResourceIndexCodes},#{recognitionResourceType},#{recognitionPlanType},#{status},#{available},#{description},#{startTime},#{usingTime},#{threshold},#{createTime},#{createUserId},#{updateTime},#{updateUserId})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_face_plan
(indexCode,name,faceGroupIndexCodes,cameraIndexCodes,recognitionResourceIndexCodes,recognitionResourceType,recognitionPlanType,status,available,description,startTime,usingTime,threshold,createTime,createUserId,updateTime,updateUserId)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.indexCode},#{item.name},#{item.faceGroupIndexCodes},#{item.cameraIndexCodes},#{item.recognitionResourceIndexCodes},#{item.recognitionResourceType},#{item.recognitionPlanType},#{item.status},#{item.available},#{item.description},#{item.startTime},#{item.usingTime},#{item.threshold},#{item.createTime},#{item.createUserId},#{item.updateTime},#{item.updateUserId})
</foreach>
</insert>
<!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto">
update mortals_xhx_face_plan as a
set
<trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('indexCode')) or (colPickMode==1 and !data.containsKey('indexCode'))">
a.indexCode=#{data.indexCode},
</if>
<if test="(colPickMode==0 and data.containsKey('name')) or (colPickMode==1 and !data.containsKey('name'))">
a.name=#{data.name},
</if>
<if test="(colPickMode==0 and data.containsKey('faceGroupIndexCodes')) or (colPickMode==1 and !data.containsKey('faceGroupIndexCodes'))">
a.faceGroupIndexCodes=#{data.faceGroupIndexCodes},
</if>
<if test="(colPickMode==0 and data.containsKey('cameraIndexCodes')) or (colPickMode==1 and !data.containsKey('cameraIndexCodes'))">
a.cameraIndexCodes=#{data.cameraIndexCodes},
</if>
<if test="(colPickMode==0 and data.containsKey('recognitionResourceIndexCodes')) or (colPickMode==1 and !data.containsKey('recognitionResourceIndexCodes'))">
a.recognitionResourceIndexCodes=#{data.recognitionResourceIndexCodes},
</if>
<if test="(colPickMode==0 and data.containsKey('recognitionResourceType')) or (colPickMode==1 and !data.containsKey('recognitionResourceType'))">
a.recognitionResourceType=#{data.recognitionResourceType},
</if>
<if test="(colPickMode==0 and data.containsKey('recognitionPlanType')) or (colPickMode==1 and !data.containsKey('recognitionPlanType'))">
a.recognitionPlanType=#{data.recognitionPlanType},
</if>
<if test="(colPickMode==0 and data.containsKey('status')) or (colPickMode==1 and !data.containsKey('status'))">
a.status=#{data.status},
</if>
<if test="(colPickMode==0 and data.containsKey('available')) or (colPickMode==1 and !data.containsKey('available'))">
a.available=#{data.available},
</if>
<if test="(colPickMode==0 and data.containsKey('description')) or (colPickMode==1 and !data.containsKey('description'))">
a.description=#{data.description},
</if>
<if test="(colPickMode==0 and data.containsKey('startTime')) or (colPickMode==1 and !data.containsKey('startTime'))">
a.startTime=#{data.startTime},
</if>
<if test="(colPickMode==0 and data.containsKey('usingTime')) or (colPickMode==1 and !data.containsKey('usingTime'))">
a.usingTime=#{data.usingTime},
</if>
<if test="(colPickMode==0 and data.containsKey('usingTimeIncrement')) or (colPickMode==1 and !data.containsKey('usingTimeIncrement'))">
a.usingTime=ifnull(a.usingTime,0) + #{data.usingTimeIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('threshold')) or (colPickMode==1 and !data.containsKey('threshold'))">
a.threshold=#{data.threshold},
</if>
<if test="(colPickMode==0 and data.containsKey('thresholdIncrement')) or (colPickMode==1 and !data.containsKey('thresholdIncrement'))">
a.threshold=ifnull(a.threshold,0) + #{data.thresholdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.createTime=#{data.createTime},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))">
a.createUserId=#{data.createUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserIdIncrement')) or (colPickMode==1 and !data.containsKey('createUserIdIncrement'))">
a.createUserId=ifnull(a.createUserId,0) + #{data.createUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserId')) or (colPickMode==1 and !data.containsKey('updateUserId'))">
a.updateUserId=#{data.updateUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))">
a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</update>
<!-- 批量更新 -->
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_face_plan as a
<trim prefix="set" suffixOverrides=",">
<trim prefix="indexCode=(case" suffix="ELSE indexCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('indexCode')) or (colPickMode==1 and !item.containsKey('indexCode'))">
when a.id=#{item.id} then #{item.indexCode}
</if>
</foreach>
</trim>
<trim prefix="name=(case" suffix="ELSE name end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('name')) or (colPickMode==1 and !item.containsKey('name'))">
when a.id=#{item.id} then #{item.name}
</if>
</foreach>
</trim>
<trim prefix="faceGroupIndexCodes=(case" suffix="ELSE faceGroupIndexCodes end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('faceGroupIndexCodes')) or (colPickMode==1 and !item.containsKey('faceGroupIndexCodes'))">
when a.id=#{item.id} then #{item.faceGroupIndexCodes}
</if>
</foreach>
</trim>
<trim prefix="cameraIndexCodes=(case" suffix="ELSE cameraIndexCodes end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('cameraIndexCodes')) or (colPickMode==1 and !item.containsKey('cameraIndexCodes'))">
when a.id=#{item.id} then #{item.cameraIndexCodes}
</if>
</foreach>
</trim>
<trim prefix="recognitionResourceIndexCodes=(case" suffix="ELSE recognitionResourceIndexCodes end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('recognitionResourceIndexCodes')) or (colPickMode==1 and !item.containsKey('recognitionResourceIndexCodes'))">
when a.id=#{item.id} then #{item.recognitionResourceIndexCodes}
</if>
</foreach>
</trim>
<trim prefix="recognitionResourceType=(case" suffix="ELSE recognitionResourceType end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('recognitionResourceType')) or (colPickMode==1 and !item.containsKey('recognitionResourceType'))">
when a.id=#{item.id} then #{item.recognitionResourceType}
</if>
</foreach>
</trim>
<trim prefix="recognitionPlanType=(case" suffix="ELSE recognitionPlanType end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('recognitionPlanType')) or (colPickMode==1 and !item.containsKey('recognitionPlanType'))">
when a.id=#{item.id} then #{item.recognitionPlanType}
</if>
</foreach>
</trim>
<trim prefix="status=(case" suffix="ELSE status end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('status')) or (colPickMode==1 and !item.containsKey('status'))">
when a.id=#{item.id} then #{item.status}
</if>
</foreach>
</trim>
<trim prefix="available=(case" suffix="ELSE available end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('available')) or (colPickMode==1 and !item.containsKey('available'))">
when a.id=#{item.id} then #{item.available}
</if>
</foreach>
</trim>
<trim prefix="description=(case" suffix="ELSE description end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('description')) or (colPickMode==1 and !item.containsKey('description'))">
when a.id=#{item.id} then #{item.description}
</if>
</foreach>
</trim>
<trim prefix="startTime=(case" suffix="ELSE startTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('startTime')) or (colPickMode==1 and !item.containsKey('startTime'))">
when a.id=#{item.id} then #{item.startTime}
</if>
</foreach>
</trim>
<trim prefix="usingTime=(case" suffix="ELSE usingTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('usingTime')) or (colPickMode==1 and !item.containsKey('usingTime'))">
when a.id=#{item.id} then #{item.usingTime}
</when>
<when test="(colPickMode==0 and item.containsKey('usingTimeIncrement')) or (colPickMode==1 and !item.containsKey('usingTimeIncrement'))">
when a.id=#{item.id} then ifnull(a.usingTime,0) + #{item.usingTimeIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="threshold=(case" suffix="ELSE threshold end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('threshold')) or (colPickMode==1 and !item.containsKey('threshold'))">
when a.id=#{item.id} then #{item.threshold}
</when>
<when test="(colPickMode==0 and item.containsKey('thresholdIncrement')) or (colPickMode==1 and !item.containsKey('thresholdIncrement'))">
when a.id=#{item.id} then ifnull(a.threshold,0) + #{item.thresholdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
<trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</update>
<!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="FacePlanEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_face_plan as a
where a.id=#{condition.id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_face_plan as a where a.id=#{condition.id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_face_plan where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_face_plan where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_face_plan where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</delete>
<!-- 根据paramDto删除一批 -->
<delete id="deleteByMap" parameterType="paramDto">
delete a.* from mortals_xhx_face_plan as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</delete>
<!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="FacePlanEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_face_plan as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
<include refid="_orderCols_"/>
</select>
<!-- 获取 -->
<select id="getListCount" parameterType="paramDto" resultType="int">
select count(1)
from mortals_xhx_face_plan as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</select>
<!-- 条件映射 -->
<sql id="_condition_">
<if test="condition != null and !condition.isEmpty()">
<!-- 条件映射-普通条件 -->
<include refid="_condition_param_">
<property name="_conditionParam_" value="condition"/>
<property name="_conditionType_" value="and"/>
</include>
<!-- 条件映射-集合之间使用AND,集合中元素使用OR-(list[0].1 or list[0].2) and (list[1].3 or list[1].4) -->
<if test="condition.containsKey('andConditionList') and !condition.andConditionList.isEmpty()">
and
<foreach collection="condition.andConditionList" open="(" close=")" index="index" item="andCondition" separator=" and ">
<trim prefixOverrides="or" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="andCondition"/>
<property name="_conditionType_" value="or"/>
</include>
</trim>
</foreach>
</if>
<!-- 条件映射-集合之间使用OR,集合中元素使用AND-(list[0].1 and list[0].2) or (list[1].3 and list[1].4) -->
<if test="condition.containsKey('orConditionList') and !condition.orConditionList.isEmpty()">
and
<foreach collection="condition.orConditionList" open="(" close=")" index="index" item="orCondition" separator=" or ">
<trim prefixOverrides="and" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="orCondition"/>
<property name="_conditionType_" value="and"/>
</include>
</trim>
</foreach>
</if>
</if>
</sql>
<!-- 条件映射-代参数 -->
<sql id="_condition_param_">
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null">
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0">
${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if>
<if test="conditionParamRef.containsKey('indexCode')">
<if test="conditionParamRef.indexCode != null and conditionParamRef.indexCode != ''">
${_conditionType_} a.indexCode like #{${_conditionParam_}.indexCode}
</if>
<if test="conditionParamRef.indexCode == null">
${_conditionType_} a.indexCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('indexCodeList') and conditionParamRef.indexCodeList.size() > 0">
${_conditionType_} a.indexCode in
<foreach collection="conditionParamRef.indexCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('indexCodeNotList') and conditionParamRef.indexCodeNotList.size() > 0">
${_conditionType_} a.indexCode not in
<foreach collection="conditionParamRef.indexCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('name')">
<if test="conditionParamRef.name != null and conditionParamRef.name != ''">
${_conditionType_} a.name like #{${_conditionParam_}.name}
</if>
<if test="conditionParamRef.name == null">
${_conditionType_} a.name is null
</if>
</if>
<if test="conditionParamRef.containsKey('nameList') and conditionParamRef.nameList.size() > 0">
${_conditionType_} a.name in
<foreach collection="conditionParamRef.nameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('nameNotList') and conditionParamRef.nameNotList.size() > 0">
${_conditionType_} a.name not in
<foreach collection="conditionParamRef.nameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('faceGroupIndexCodes')">
<if test="conditionParamRef.faceGroupIndexCodes != null and conditionParamRef.faceGroupIndexCodes != ''">
${_conditionType_} a.faceGroupIndexCodes like #{${_conditionParam_}.faceGroupIndexCodes}
</if>
<if test="conditionParamRef.faceGroupIndexCodes == null">
${_conditionType_} a.faceGroupIndexCodes is null
</if>
</if>
<if test="conditionParamRef.containsKey('faceGroupIndexCodesList') and conditionParamRef.faceGroupIndexCodesList.size() > 0">
${_conditionType_} a.faceGroupIndexCodes in
<foreach collection="conditionParamRef.faceGroupIndexCodesList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('faceGroupIndexCodesNotList') and conditionParamRef.faceGroupIndexCodesNotList.size() > 0">
${_conditionType_} a.faceGroupIndexCodes not in
<foreach collection="conditionParamRef.faceGroupIndexCodesNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('cameraIndexCodes')">
<if test="conditionParamRef.cameraIndexCodes != null and conditionParamRef.cameraIndexCodes != ''">
${_conditionType_} a.cameraIndexCodes like #{${_conditionParam_}.cameraIndexCodes}
</if>
<if test="conditionParamRef.cameraIndexCodes == null">
${_conditionType_} a.cameraIndexCodes is null
</if>
</if>
<if test="conditionParamRef.containsKey('cameraIndexCodesList') and conditionParamRef.cameraIndexCodesList.size() > 0">
${_conditionType_} a.cameraIndexCodes in
<foreach collection="conditionParamRef.cameraIndexCodesList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('cameraIndexCodesNotList') and conditionParamRef.cameraIndexCodesNotList.size() > 0">
${_conditionType_} a.cameraIndexCodes not in
<foreach collection="conditionParamRef.cameraIndexCodesNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('recognitionResourceIndexCodes')">
<if test="conditionParamRef.recognitionResourceIndexCodes != null and conditionParamRef.recognitionResourceIndexCodes != ''">
${_conditionType_} a.recognitionResourceIndexCodes like #{${_conditionParam_}.recognitionResourceIndexCodes}
</if>
<if test="conditionParamRef.recognitionResourceIndexCodes == null">
${_conditionType_} a.recognitionResourceIndexCodes is null
</if>
</if>
<if test="conditionParamRef.containsKey('recognitionResourceIndexCodesList') and conditionParamRef.recognitionResourceIndexCodesList.size() > 0">
${_conditionType_} a.recognitionResourceIndexCodes in
<foreach collection="conditionParamRef.recognitionResourceIndexCodesList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('recognitionResourceIndexCodesNotList') and conditionParamRef.recognitionResourceIndexCodesNotList.size() > 0">
${_conditionType_} a.recognitionResourceIndexCodes not in
<foreach collection="conditionParamRef.recognitionResourceIndexCodesNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('recognitionResourceType')">
<if test="conditionParamRef.recognitionResourceType != null and conditionParamRef.recognitionResourceType != ''">
${_conditionType_} a.recognitionResourceType like #{${_conditionParam_}.recognitionResourceType}
</if>
<if test="conditionParamRef.recognitionResourceType == null">
${_conditionType_} a.recognitionResourceType is null
</if>
</if>
<if test="conditionParamRef.containsKey('recognitionResourceTypeList') and conditionParamRef.recognitionResourceTypeList.size() > 0">
${_conditionType_} a.recognitionResourceType in
<foreach collection="conditionParamRef.recognitionResourceTypeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('recognitionResourceTypeNotList') and conditionParamRef.recognitionResourceTypeNotList.size() > 0">
${_conditionType_} a.recognitionResourceType not in
<foreach collection="conditionParamRef.recognitionResourceTypeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('recognitionPlanType')">
<if test="conditionParamRef.recognitionPlanType != null and conditionParamRef.recognitionPlanType != ''">
${_conditionType_} a.recognitionPlanType like #{${_conditionParam_}.recognitionPlanType}
</if>
<if test="conditionParamRef.recognitionPlanType == null">
${_conditionType_} a.recognitionPlanType is null
</if>
</if>
<if test="conditionParamRef.containsKey('recognitionPlanTypeList') and conditionParamRef.recognitionPlanTypeList.size() > 0">
${_conditionType_} a.recognitionPlanType in
<foreach collection="conditionParamRef.recognitionPlanTypeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('recognitionPlanTypeNotList') and conditionParamRef.recognitionPlanTypeNotList.size() > 0">
${_conditionType_} a.recognitionPlanType not in
<foreach collection="conditionParamRef.recognitionPlanTypeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('status')">
<if test="conditionParamRef.status != null and conditionParamRef.status != ''">
${_conditionType_} a.status like #{${_conditionParam_}.status}
</if>
<if test="conditionParamRef.status == null">
${_conditionType_} a.status is null
</if>
</if>
<if test="conditionParamRef.containsKey('statusList') and conditionParamRef.statusList.size() > 0">
${_conditionType_} a.status in
<foreach collection="conditionParamRef.statusList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('statusNotList') and conditionParamRef.statusNotList.size() > 0">
${_conditionType_} a.status not in
<foreach collection="conditionParamRef.statusNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('available')">
<if test="conditionParamRef.available != null and conditionParamRef.available != ''">
${_conditionType_} a.available like #{${_conditionParam_}.available}
</if>
<if test="conditionParamRef.available == null">
${_conditionType_} a.available is null
</if>
</if>
<if test="conditionParamRef.containsKey('availableList') and conditionParamRef.availableList.size() > 0">
${_conditionType_} a.available in
<foreach collection="conditionParamRef.availableList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('availableNotList') and conditionParamRef.availableNotList.size() > 0">
${_conditionType_} a.available not in
<foreach collection="conditionParamRef.availableNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('description')">
<if test="conditionParamRef.description != null and conditionParamRef.description != ''">
${_conditionType_} a.description like #{${_conditionParam_}.description}
</if>
<if test="conditionParamRef.description == null">
${_conditionType_} a.description is null
</if>
</if>
<if test="conditionParamRef.containsKey('descriptionList') and conditionParamRef.descriptionList.size() > 0">
${_conditionType_} a.description in
<foreach collection="conditionParamRef.descriptionList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('descriptionNotList') and conditionParamRef.descriptionNotList.size() > 0">
${_conditionType_} a.description not in
<foreach collection="conditionParamRef.descriptionNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('startTime')">
<if test="conditionParamRef.startTime != null ">
${_conditionType_} a.startTime = #{${_conditionParam_}.startTime}
</if>
<if test="conditionParamRef.startTime == null">
${_conditionType_} a.startTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('startTimeStart') and conditionParamRef.startTimeStart != null and conditionParamRef.startTimeStart!=''">
${_conditionType_} a.startTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.startTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('startTimeEnd') and conditionParamRef.startTimeEnd != null and conditionParamRef.startTimeEnd!=''">
${_conditionType_} a.startTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.startTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('usingTime')">
<if test="conditionParamRef.usingTime != null ">
${_conditionType_} a.usingTime = #{${_conditionParam_}.usingTime}
</if>
<if test="conditionParamRef.usingTime == null">
${_conditionType_} a.usingTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('usingTimeList') and conditionParamRef.usingTimeList.size() > 0">
${_conditionType_} a.usingTime in
<foreach collection="conditionParamRef.usingTimeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('usingTimeNotList') and conditionParamRef.usingTimeNotList.size() > 0">
${_conditionType_} a.usingTime not in
<foreach collection="conditionParamRef.usingTimeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('usingTimeStart') and conditionParamRef.usingTimeStart != null">
${_conditionType_} a.usingTime <![CDATA[ >= ]]> #{${_conditionParam_}.usingTimeStart}
</if>
<if test="conditionParamRef.containsKey('usingTimeEnd') and conditionParamRef.usingTimeEnd != null">
${_conditionType_} a.usingTime <![CDATA[ <= ]]> #{${_conditionParam_}.usingTimeEnd}
</if>
<if test="conditionParamRef.containsKey('threshold')">
<if test="conditionParamRef.threshold != null ">
${_conditionType_} a.threshold = #{${_conditionParam_}.threshold}
</if>
<if test="conditionParamRef.threshold == null">
${_conditionType_} a.threshold is null
</if>
</if>
<if test="conditionParamRef.containsKey('thresholdList') and conditionParamRef.thresholdList.size() > 0">
${_conditionType_} a.threshold in
<foreach collection="conditionParamRef.thresholdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('thresholdNotList') and conditionParamRef.thresholdNotList.size() > 0">
${_conditionType_} a.threshold not in
<foreach collection="conditionParamRef.thresholdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('thresholdStart') and conditionParamRef.thresholdStart != null">
${_conditionType_} a.threshold <![CDATA[ >= ]]> #{${_conditionParam_}.thresholdStart}
</if>
<if test="conditionParamRef.containsKey('thresholdEnd') and conditionParamRef.thresholdEnd != null">
${_conditionType_} a.threshold <![CDATA[ <= ]]> #{${_conditionParam_}.thresholdEnd}
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0">
${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null">
${_conditionType_} a.createUserId <![CDATA[ >= ]]> #{${_conditionParam_}.createUserIdStart}
</if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateUserId')">
<if test="conditionParamRef.updateUserId != null ">
${_conditionType_} a.updateUserId = #{${_conditionParam_}.updateUserId}
</if>
<if test="conditionParamRef.updateUserId == null">
${_conditionType_} a.updateUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList') and conditionParamRef.updateUserIdNotList.size() > 0">
${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null">
${_conditionType_} a.updateUserId <![CDATA[ >= ]]> #{${_conditionParam_}.updateUserIdStart}
</if>
<if test="conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null">
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd}
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('indexCode')">
a.indexCode
<if test='orderCol.indexCode != null and "DESC".equalsIgnoreCase(orderCol.indexCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('name')">
a.name
<if test='orderCol.name != null and "DESC".equalsIgnoreCase(orderCol.name)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('faceGroupIndexCodes')">
a.faceGroupIndexCodes
<if test='orderCol.faceGroupIndexCodes != null and "DESC".equalsIgnoreCase(orderCol.faceGroupIndexCodes)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('cameraIndexCodes')">
a.cameraIndexCodes
<if test='orderCol.cameraIndexCodes != null and "DESC".equalsIgnoreCase(orderCol.cameraIndexCodes)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('recognitionResourceIndexCodes')">
a.recognitionResourceIndexCodes
<if test='orderCol.recognitionResourceIndexCodes != null and "DESC".equalsIgnoreCase(orderCol.recognitionResourceIndexCodes)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('recognitionResourceType')">
a.recognitionResourceType
<if test='orderCol.recognitionResourceType != null and "DESC".equalsIgnoreCase(orderCol.recognitionResourceType)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('recognitionPlanType')">
a.recognitionPlanType
<if test='orderCol.recognitionPlanType != null and "DESC".equalsIgnoreCase(orderCol.recognitionPlanType)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('status')">
a.status
<if test='orderCol.status != null and "DESC".equalsIgnoreCase(orderCol.status)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('available')">
a.available
<if test='orderCol.available != null and "DESC".equalsIgnoreCase(orderCol.available)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('description')">
a.description
<if test='orderCol.description != null and "DESC".equalsIgnoreCase(orderCol.description)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('startTime')">
a.startTime
<if test='orderCol.startTime != null and "DESC".equalsIgnoreCase(orderCol.startTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('usingTime')">
a.usingTime
<if test='orderCol.usingTime != null and "DESC".equalsIgnoreCase(orderCol.usingTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('threshold')">
a.threshold
<if test='orderCol.threshold != null and "DESC".equalsIgnoreCase(orderCol.threshold)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateUserId')">
a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
<sql id="_group_by_">
<if test="groupList != null and !groupList.isEmpty()">
GROUP BY
<trim suffixOverrides="," suffix="">
<foreach collection="groupList" open="" close="" index="index" item="item" separator=",">
${item}
</foreach>
</trim>
</if>
</sql>
</mapper>
\ No newline at end of file
###登录
POST {{baseUrl}}/login/login
Content-Type: application/json
{
"loginName":"admin",
"password":"admin",
"securityCode":"8888"
}
> {%
client.global.set("SmsSet_id", JSON.parse(response.body).data.id);
client.global.set("authToken", JSON.parse(response.body).data.token);
%}
###人脸分组信息列表
POST {{baseUrl}}/face/group/list
Authorization: {{authToken}}
Content-Type: application/json
{
"page":1,
"size":10
}
###人脸分组信息更新与保存
POST {{baseUrl}}/face/group/save
Authorization: {{authToken}}
Content-Type: application/json
{
"name":"9r8lxq",
"description":"ckl8ht",
"indexCode":"edxnur",
}
> {%
client.global.set("FaceGroup_id", JSON.parse(response.body).data.id);
%}
###人脸分组信息查看
GET {{baseUrl}}/face/group/info?id={{FaceGroup_id}}
Authorization: {{authToken}}
Accept: application/json
###人脸分组信息编辑
GET {{baseUrl}}/face/group/edit?id={{FaceGroup_id}}
Authorization: {{authToken}}
Accept: application/json
###人脸分组信息删除
GET {{baseUrl}}/face/group/delete?id={{FaceGroup_id}}
Authorization: {{authToken}}
Accept: application/json
###登录
POST {{baseUrl}}/login/login
Content-Type: application/json
{
"loginName":"admin",
"password":"admin",
"securityCode":"8888"
}
> {%
client.global.set("SmsSet_id", JSON.parse(response.body).data.id);
client.global.set("authToken", JSON.parse(response.body).data.token);
%}
###分组人脸信息列表
POST {{baseUrl}}/face/group/person/list
Authorization: {{authToken}}
Content-Type: application/json
{
"page":1,
"size":10
}
###分组人脸信息更新与保存
POST {{baseUrl}}/face/group/person/save
Authorization: {{authToken}}
Content-Type: application/json
{
"faceGroupId":497,
"name":"zzcsqf",
"indexCode":"5mgghk",
}
> {%
client.global.set("FaceGroupPerson_id", JSON.parse(response.body).data.id);
%}
###分组人脸信息查看
GET {{baseUrl}}/face/group/person/info?id={{FaceGroupPerson_id}}
Authorization: {{authToken}}
Accept: application/json
###分组人脸信息编辑
GET {{baseUrl}}/face/group/person/edit?id={{FaceGroupPerson_id}}
Authorization: {{authToken}}
Accept: application/json
###分组人脸信息删除
GET {{baseUrl}}/face/group/person/delete?id={{FaceGroupPerson_id}}
Authorization: {{authToken}}
Accept: application/json
###登录
POST {{baseUrl}}/login/login
Content-Type: application/json
{
"loginName":"admin",
"password":"admin",
"securityCode":"8888"
}
> {%
client.global.set("SmsSet_id", JSON.parse(response.body).data.id);
client.global.set("authToken", JSON.parse(response.body).data.token);
%}
###人员识别计划信息列表
POST {{baseUrl}}/face/plan/list
Authorization: {{authToken}}
Content-Type: application/json
{
"page":1,
"size":10
}
###人员识别计划信息更新与保存
POST {{baseUrl}}/face/plan/save
Authorization: {{authToken}}
Content-Type: application/json
{
"indexCode":"nf3w2s",
"name":"b6qi3h",
"faceGroupIndexCodes":"acjc0x",
"cameraIndexCodes":"1532rw",
"recognitionResourceIndexCodes":"26q0i1",
"recognitionResourceType":"346yjx",
"recognitionPlanType":"t3gtzr",
"status":"q7xngu",
"available":"shhdtx",
"description":"517wuv",
"startTime":"1681488000000",
"usingTime":528,
"threshold":377,
}
> {%
client.global.set("FacePlan_id", JSON.parse(response.body).data.id);
%}
###人员识别计划信息查看
GET {{baseUrl}}/face/plan/info?id={{FacePlan_id}}
Authorization: {{authToken}}
Accept: application/json
###人员识别计划信息编辑
GET {{baseUrl}}/face/plan/edit?id={{FacePlan_id}}
Authorization: {{authToken}}
Accept: application/json
###人员识别计划信息删除
GET {{baseUrl}}/face/plan/delete?id={{FacePlan_id}}
Authorization: {{authToken}}
Accept: application/json
......@@ -15,10 +15,10 @@ client.global.set("authToken", JSON.parse(response.body).data.token);
###监测预警记录详细记录列表
POST {{baseUrl}}/monitor/alarm/record/list
Authorization: {{authToken}}
Content-Type: application/json
{
"monitorDevice":"枪%",
"page":1,
"size":10
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment