Parcourir la source

Merge branch 'develop' of http://git.ycjcjy.com/fuxingfan/smartCommunity into develop

傅行帆 il y a 6 ans
Parent
révision
f0a0363edd

CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/TaFaceController.java → CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/FaceController.java Voir le fichier

@@ -4,7 +4,8 @@ import com.community.commom.mode.ResponseBean;
4 4
 import com.community.commom.session.UserElement;
5 5
 import com.community.huiju.model.TaAgreement;
6 6
 import com.community.huiju.model.TaFace;
7
-import com.community.huiju.service.TaFaceServicel;
7
+import com.community.huiju.service.FaceServicel;
8
+import com.community.huiju.service.FaceServicel;
8 9
 import io.swagger.annotations.*;
9 10
 import org.apache.commons.lang3.StringUtils;
10 11
 import org.springframework.beans.factory.annotation.Autowired;
@@ -21,13 +22,12 @@ import javax.servlet.http.HttpSession;
21 22
 @RefreshScope
22 23
 @RequestMapping("/")
23 24
 @Api(value = "人脸相关API", description = "人脸相关API")
24
-public class TaFaceController {
25
+public class FaceController {
25 26
     @Autowired
26
-    private TaFaceServicel faceServicel;
27
+    private FaceServicel faceServicel;
27 28
 
28 29
     @ApiOperation(value = "添加人脸图片", notes = "添加人脸图片")
29 30
     @ApiImplicitParams({
30
-//            @ApiImplicitParam(paramType = "query",dataType = "String",name = "faceImg",value = "上传的图片"),
31 31
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
32 32
     })
33 33
     @RequestMapping(value = "/addFace",method = RequestMethod.POST)
@@ -42,7 +42,6 @@ public class TaFaceController {
42 42
 
43 43
     @ApiOperation(value = "修改人脸图片", notes = "修改人脸图片")
44 44
     @ApiImplicitParams({
45
-    /*        @ApiImplicitParam(paramType = "query",dataType = "String",name = "faceImg",value = "上传的图片"),*/
46 45
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
47 46
     })
48 47
     @RequestMapping(value = "/upDateFace",method = RequestMethod.PUT)

+ 3
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java Voir le fichier

@@ -162,7 +162,9 @@ public class SocialController {
162 162
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
163 163
     })
164 164
     @RequestMapping(value = "/addTransaction", method = RequestMethod.POST)
165
-    public ResponseBean addTransaction(@RequestBody String paramets, HttpSession session) throws IOException {
165
+    @ResponseBody
166
+    public ResponseBean addTransaction(@RequestBody String paramets, HttpSession session)throws IOException{
167
+
166 168
         ResponseBean responseBean = new ResponseBean();
167 169
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
168 170
         Integer userId = userElement.getId();

CODE/smart-community/app-api/src/main/java/com/community/huiju/service/TaFaceServicel.java → CODE/smart-community/app-api/src/main/java/com/community/huiju/service/FaceServicel.java Voir le fichier

@@ -4,7 +4,7 @@ package com.community.huiju.service;
4 4
 import com.community.commom.mode.ResponseBean;
5 5
 import org.springframework.web.multipart.MultipartFile;
6 6
 
7
-public interface TaFaceServicel {
7
+public interface FaceServicel {
8 8
     /**
9 9
      * 添加人脸
10 10
      * @param userId

+ 2
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/SocialServiceI.java Voir le fichier

@@ -71,7 +71,8 @@ public interface SocialServiceI {
71 71
 	/**
72 72
 	 * 添加二手租赁帖子
73 73
 	 */
74
-    ResponseBean addAllTransaction(Integer userId, String paramets) throws IOException;
74
+    ResponseBean addAllTransaction(Integer userId, String paramets)throws IOException;
75
+
75 76
 
76 77
 	/**
77 78
 	 * 获取当前用户发布所有的帖子

CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaFaceServicelimpl.java → CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/FaceServicelimpl.java Voir le fichier

@@ -12,7 +12,7 @@ import com.community.huiju.model.TaFace;
12 12
 import com.community.huiju.model.TaSysRole;
13 13
 import com.community.huiju.model.TaUser;
14 14
 import com.community.huiju.service.ImageServiceI;
15
-import com.community.huiju.service.TaFaceServicel;
15
+import com.community.huiju.service.FaceServicel;
16 16
 import org.springframework.beans.factory.annotation.Autowired;
17 17
 import org.springframework.stereotype.Service;
18 18
 import org.springframework.web.multipart.MultipartFile;
@@ -21,7 +21,7 @@ import java.io.IOException;
21 21
 import java.util.Date;
22 22
 
23 23
 @Service
24
-public class TaFaceServicelimpl implements TaFaceServicel {
24
+public class FaceServicelimpl implements FaceServicel {
25 25
 
26 26
 
27 27
     @Autowired

+ 0
- 3
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java Voir le fichier

@@ -229,9 +229,7 @@ public class SocialServiceImpl implements SocialServiceI {
229 229
     @Transactional
230 230
     @Override
231 231
     public ResponseBean addAllTransaction(Integer userId, String paramets) throws IOException {
232
-
233 232
         ResponseBean response = new ResponseBean();
234
-
235 233
         JSONObject jsonObject = JSONObject.parseObject(paramets);
236 234
         String transactionTitle = (String) jsonObject.get("title");
237 235
         String transactionContent = (String) jsonObject.get("content");
@@ -272,7 +270,6 @@ public class SocialServiceImpl implements SocialServiceI {
272 270
         if (Constant.EFFECTIVE.equals(taUser.getStatus()) && (Constant.RELATION.equals(sysRole.getRoleName()) || Constant.TENANT.equals(sysRole.getRoleName()) || Constant.OWNER.equals(sysRole.getRoleName()))){
273 271
             tpTransactionMapper.insertSelective(tpTransaction);
274 272
             insertTdImage(tpTransaction, imageUrl, userId);
275
-
276 273
             TpTransaction tpTransaction1=tpTransactionMapper.getById(tpTransaction.getId());
277 274
             response.addSuccess(tpTransaction1);
278 275
             return response;