From ef3a9002b70130710dcc58b45c6be151a064d835 Mon Sep 17 00:00:00 2001 From: gaoben Date: Thu, 21 Sep 2023 13:41:57 +0800 Subject: [PATCH] =?UTF-8?q?v8:=E4=BF=AE=E6=94=B9=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E4=BA=BA=E5=91=98=E6=B3=A8=E5=86=8C=E6=9C=AA=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E4=BA=BA=E5=91=98=E7=B1=BB=E5=9E=8Bbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/app/controller/AppApiController.java | 10 ++++++++++ version8.txt | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/shapelight-admin/src/main/java/net/shapelight/modules/app/controller/AppApiController.java b/shapelight-admin/src/main/java/net/shapelight/modules/app/controller/AppApiController.java index a644112..ac051e5 100644 --- a/shapelight-admin/src/main/java/net/shapelight/modules/app/controller/AppApiController.java +++ b/shapelight-admin/src/main/java/net/shapelight/modules/app/controller/AppApiController.java @@ -165,6 +165,16 @@ public class AppApiController { } } + tenPerson.setPersonType(5000); + if(tenPerson.getPersonType() == 5000 || tenPerson.getPersonType() == 5001 || tenPerson.getPersonType() == 5002){ + TenLabelEntity labelEntity = tenLabelService.getOne(new QueryWrapper() + .eq("type",tenPerson.getPersonType()) + .eq("tenant_id",tenPerson.getTenantId())); + if(labelEntity!=null){ + tenPerson.setLabelId(labelEntity.getLabelId().intValue()); + } + } + int res = tenPersonService.save(tenPerson); if (res==2) { return R.error("照片未检测到人脸"); diff --git a/version8.txt b/version8.txt index e069d57..3b643cd 100644 --- a/version8.txt +++ b/version8.txt @@ -49,7 +49,7 @@ alter table ten_device ADD COLUMN app_language tinyint(1) DEFAULT 0 COMMENT 'app alter table ten_device ADD COLUMN lat varchar(50) DEFAULT '' COMMENT '纬度'; alter table ten_device ADD COLUMN lon varchar(50) DEFAULT '' COMMENT '经度'; -alter table ten_person ADD COLUMN thd_feature varchar(1024) COMMENT '3d特征'; +alter table ten_person ADD COLUMN thd_feature varchar(10240) COMMENT '3d特征'; alter table ten_person ADD COLUMN dept_id bigint(20) COMMENT '部门id'; alter table ten_person ALTER COLUMN person_type SET DEFAULT 5000;