|
@@ -1,6 +1,4 @@
|
1
|
1
|
package com.community.huiju.service.impl;
|
2
|
|
-
|
3
|
|
-import com.alibaba.fastjson.JSONArray;
|
4
|
2
|
import com.alibaba.fastjson.JSONObject;
|
5
|
3
|
import com.community.commom.ailiyun.AESDecode;
|
6
|
4
|
import com.community.commom.constant.Constant;
|
|
@@ -18,11 +16,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
18
|
16
|
import org.springframework.stereotype.Service;
|
19
|
17
|
import org.springframework.transaction.annotation.Transactional;
|
20
|
18
|
import org.springframework.web.multipart.MultipartFile;
|
21
|
|
-
|
22
|
19
|
import java.io.IOException;
|
23
|
20
|
import java.util.Date;
|
24
|
|
-import java.util.HashMap;
|
25
|
|
-import java.util.Map;
|
26
|
21
|
|
27
|
22
|
@Service("faceServicel")
|
28
|
23
|
@Transactional
|
|
@@ -181,4 +176,18 @@ public class FaceServicelimpl implements FaceServiceI {
|
181
|
176
|
}
|
182
|
177
|
|
183
|
178
|
|
|
179
|
+ @Override
|
|
180
|
+ public ResponseBean getTaFaceByUserId(Integer userId) {
|
|
181
|
+ ResponseBean responseBean= new ResponseBean();
|
|
182
|
+ TaFace face = taFaceMapper.getByUserId(userId);
|
|
183
|
+ if (null!= face){
|
|
184
|
+ responseBean.addSuccess(face);
|
|
185
|
+ return responseBean;
|
|
186
|
+ }
|
|
187
|
+ responseBean.addError("当前用户暂无人脸图片");
|
|
188
|
+ return responseBean;
|
|
189
|
+
|
|
190
|
+ }
|
|
191
|
+
|
|
192
|
+
|
184
|
193
|
}
|