v8:修改小程序人员注册未加入人员类型bug
This commit is contained in:
parent
1651e392cc
commit
ef3a9002b7
|
@ -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<TenLabelEntity>()
|
||||||
|
.eq("type",tenPerson.getPersonType())
|
||||||
|
.eq("tenant_id",tenPerson.getTenantId()));
|
||||||
|
if(labelEntity!=null){
|
||||||
|
tenPerson.setLabelId(labelEntity.getLabelId().intValue());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int res = tenPersonService.save(tenPerson);
|
int res = tenPersonService.save(tenPerson);
|
||||||
if (res==2) {
|
if (res==2) {
|
||||||
return R.error("照片未检测到人脸");
|
return R.error("照片未检测到人脸");
|
||||||
|
|
|
@ -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 lat varchar(50) DEFAULT '' COMMENT '纬度';
|
||||||
alter table ten_device ADD COLUMN lon 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 ADD COLUMN dept_id bigint(20) COMMENT '部门id';
|
||||||
alter table ten_person ALTER COLUMN person_type SET DEFAULT 5000;
|
alter table ten_person ALTER COLUMN person_type SET DEFAULT 5000;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue