提交 f7df8f15 authored 作者: yangqi's avatar yangqi

1

上级 baa016ad
...@@ -5,7 +5,6 @@ import cn.lefull.common.response.ApiResponse; ...@@ -5,7 +5,6 @@ import cn.lefull.common.response.ApiResponse;
import cn.lefull.interaction.pageresp.Pagination; import cn.lefull.interaction.pageresp.Pagination;
import cn.lefull.interaction.vo.face.EquipmentListVO; import cn.lefull.interaction.vo.face.EquipmentListVO;
import cn.lefull.service.lisa.EquipmentService; import cn.lefull.service.lisa.EquipmentService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
......
...@@ -140,9 +140,26 @@ public class EquipmentServiceImpl implements EquipmentService { ...@@ -140,9 +140,26 @@ public class EquipmentServiceImpl implements EquipmentService {
entity.setIdCard(idCard); entity.setIdCard(idCard);
entity.setImgUrl(imgUrl); entity.setImgUrl(imgUrl);
entity.setOperatorEmployeeId(employeeId); entity.setOperatorEmployeeId(employeeId);
entityMapper.addEntity(entity); int id = entityMapper.addEntity(entity);
String dbName = this.getFaceDbName(apartmentId);
String entityId = this.getEntityId(id);
String labels = this.getLabels(identity);
faceService.addFace(dbName, entityId, labels);
}
private String getLabels(Byte identity)
{
//1其它 2内部员工 3外卖员 4快递员 5在住租客 6访客 7保洁人员 8维修人员'
switch (identity){
case 1 : return "其它";
case 2 : return "内部员工";
case 3 : return "外卖员";
case 4 : return "快递员";
case 5 : return "在住租客";
case 6 : return "保洁人员";
case 7 : return "维修人员";
}
return "";
} }
private void addAliFaceEntity(String dbName, String entityId, String labels) throws Exception { private void addAliFaceEntity(String dbName, String entityId, String labels) throws Exception {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论