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;