| | |
| | | package com.product.face.service; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.product.common.lang.StringUtils; |
| | | import com.product.core.cache.util.RedisUtil; |
| | | import com.product.core.exception.BaseException; |
| | |
| | | FaceListEntity face = null; |
| | | if (!StringUtils.isEmpty(faceNumber)) { |
| | | face = (FaceListEntity) RedisUtil.get(FaceConst.FACE_LIST_KEY + ":face-number" + faceNumber); |
| | | } else if (!StringUtils.isEmpty(faceUuid)){ |
| | | face = (FaceListEntity) RedisUtil.get(FaceConst.FACE_LIST_KEY + faceUuid); |
| | | } else if (!StringUtils.isEmpty(faceUuid)) { |
| | | face = JSON.parseObject(JSON.toJSONString(RedisUtil.get(FaceConst.FACE_LIST_KEY + faceUuid)), FaceListEntity.class); |
| | | } |
| | | if (face != null) { |
| | | String tableAlias = null; |