dingxin 6 vuotta sitten
vanhempi
commit
1ce1e8c736

+ 8
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java Näytä tiedosto

@@ -210,6 +210,14 @@ public class SocialController {
210 210
             socialServiceI.accessTicket(communityId, tpTicket, ticketId);
211 211
             return responseBean;
212 212
         }
213
+    @RequestMapping(value = "/ubDateAllTransaction",method = RequestMethod.PUT)
214
+    public ResponseBean ubdateTransaction( HttpSession session, TpTransaction tpTransaction) {
215
+        ResponseBean responseBean = new ResponseBean();
216
+        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
217
+        Integer userId = userElement.getId();
218
+        ResponseBean response = socialServiceI.updateTransaction(tpTransaction, userId);
219
+        return response;
220
+    }
213 221
 
214 222
     }
215 223
 

+ 1
- 8
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/SocialServiceI.java Näytä tiedosto

@@ -74,13 +74,6 @@ public interface SocialServiceI {
74 74
 	 */
75 75
 	ResponseBean stopTpTicketRecord(Integer communityId, Integer ticketId);
76 76
 
77
-	/**
78
-	 * 修改报修内容
79
-	 * @param ticketId
80
-	 * @param tpTicket
81
-	 */
82
-	void updateTicketContent(Integer ticketId, TpTicket tpTicket);
83
-
84 77
 	/**
85 78
 	 * 添加二手租赁帖子
86 79
 	 */
@@ -99,7 +92,7 @@ public interface SocialServiceI {
99 92
 	 * @param userId
100 93
 	 * @return
101 94
 	 */
102
-	ResponseBean ubdateTransaction(TpTransaction tpTransaction,Integer userId);
95
+	ResponseBean updateTransaction(TpTransaction tpTransaction,Integer userId);
103 96
 	void updateTicketContent(Integer ticketId, TpTicket tpTicket, String type);
104 97
 
105 98
 	/**

+ 4
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java Näytä tiedosto

@@ -280,7 +280,7 @@ public class SocialServiceImpl implements SocialServiceI {
280 280
     }
281 281
 
282 282
     @Override
283
-    public ResponseBean ubdateTransaction(TpTransaction tpTransaction,Integer userId) {
283
+    public ResponseBean updateTransaction(TpTransaction tpTransaction,Integer userId) {
284 284
         ResponseBean response = new ResponseBean();
285 285
         TaUser user = taUserMapper.selectByPrimaryKey(userId);
286 286
         tpTransaction.setCommunityId(user.getCommunityId());
@@ -294,6 +294,8 @@ public class SocialServiceImpl implements SocialServiceI {
294 294
         response.addSuccess("修改成功");
295 295
         return response;
296 296
     }
297
+
298
+    @Override
297 299
     public void accessTicket(Integer communityId, TpTicket tpTicket, String ticketId) {
298 300
         //修改工单内容和评分
299 301
         tpTicket.setId(Integer.valueOf(ticketId));
@@ -330,6 +332,7 @@ public class SocialServiceImpl implements SocialServiceI {
330 332
         responseBean.addSuccess("报名成功");
331 333
         return responseBean;
332 334
     }
335
+
333 336
     @Transactional
334 337
     @Override
335 338
     public TpTransaction findUsedDetails(Integer activityId, Integer communityId, Integer userId) {

+ 19
- 22
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TicketServiceImpl.java Näytä tiedosto

@@ -45,9 +45,6 @@ public class TicketServiceImpl implements ITicketService {
45 45
     @Autowired
46 46
     private TaUserMapper taUserMapper;
47 47
 
48
-    @Autowired
49
-    private TaUserMapper taUserMapper;
50
-
51 48
     @Override
52 49
     public ResponseBean getList(TpTicket tpTicket, Integer pageNum, Integer pageSize) {
53 50
 
@@ -203,23 +200,23 @@ public class TicketServiceImpl implements ITicketService {
203 200
         response.addSuccess("新增成功");
204 201
         return response;
205 202
     }
206
-        /**
207
-         * 回复工单
208
-         * @param tpTicketRecordComment
209
-         * @return
210
-         */
211
-        @Override
212
-        public Integer updateTicketsReply(TpTicketRecordComment tpTicketRecordComment){
213
-            Integer userId = 1;
214
-            //查询用户名
215
-            TaUser taUser = taUserMapper.selectByPrimaryKey(userId);
216
-
217
-            tpTicketRecordComment.setUserName(taUser.getUserName());
218
-            tpTicketRecordComment.setParentId(tpTicketRecordComment.getTicketRecordCommentId());
219
-            tpTicketRecordComment.setUuid(userId);
220
-            tpTicketRecordComment.setUserType(Constant.TICKET_USER_TYPE);
221
-            tpTicketRecordComment.setCreateDate(new Date());
222
-            //插入回复数据
223
-            return tpTicketRecordCommentMapper.insertSelective(tpTicketRecordComment);
224
-        }
203
+    /**
204
+     * 回复工单
205
+     * @param tpTicketRecordComment
206
+     * @return
207
+     */
208
+    @Override
209
+    public Integer updateTicketsReply(TpTicketRecordComment tpTicketRecordComment) {
210
+        Integer userId = 1;
211
+        //查询用户名
212
+        TaUser taUser = taUserMapper.selectByPrimaryKey(userId);
213
+        
214
+        tpTicketRecordComment.setUserName(taUser.getUserName());
215
+        tpTicketRecordComment.setParentId(tpTicketRecordComment.getTicketRecordCommentId());
216
+        tpTicketRecordComment.setUuid(userId);
217
+        tpTicketRecordComment.setUserType(Constant.TICKET_USER_TYPE);
218
+        tpTicketRecordComment.setCreateDate(new Date());
219
+        //插入回复数据
220
+        return tpTicketRecordCommentMapper.insertSelective(tpTicketRecordComment);
225 221
     }
222
+}

BIN
文档/需求/app接口需求-第二版.xlsx Näytä tiedosto