魏超 6 anni fa
parent
commit
11e99337fb

+ 4
- 3
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java Vedi File

@@ -192,12 +192,13 @@ public class SocialController {
192 192
             @ApiImplicitParam(paramType = "query", dataType = "integer", name = "ticketId", value = "二手租赁帖子Id")
193 193
     })
194 194
     @RequestMapping(value = "/ubDateAllTransaction",method = RequestMethod.PUT)
195
-    public ResponseBean ubdateTransaction( HttpSession session, TpTransaction tpTransaction){
195
+    public ResponseBean ubdateTransaction( HttpSession session, TpTransaction tpTransaction) {
196 196
         ResponseBean responseBean = new ResponseBean();
197 197
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
198
-        Integer userId=userElement.getId();
199
-        ResponseBean response=socialServiceI.ubdateTransaction(tpTransaction,userId);
198
+        Integer userId = userElement.getId();
199
+        ResponseBean response = socialServiceI.updateTransaction(tpTransaction, userId);
200 200
         return response;
201
+    }
201 202
 
202 203
     @ApiOperation(value = "评价工单内容以及评分", notes = "评价工单内容以及评分")
203 204
     @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),

+ 1
- 8
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/SocialServiceI.java Vedi File

@@ -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
 	/**

+ 5
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java Vedi File

@@ -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());
@@ -293,6 +293,9 @@ public class SocialServiceImpl implements SocialServiceI {
293 293
         tpTransactionMapper.updateByPrimaryKey(tpTransaction);
294 294
         response.addSuccess("修改成功");
295 295
         return response;
296
+    }
297
+
298
+    @Override
296 299
     public void accessTicket(Integer communityId, TpTicket tpTicket, String ticketId) {
297 300
         //修改工单内容和评分
298 301
         tpTicket.setId(Integer.valueOf(ticketId));
@@ -329,6 +332,7 @@ public class SocialServiceImpl implements SocialServiceI {
329 332
         responseBean.addSuccess("报名成功");
330 333
         return responseBean;
331 334
     }
335
+
332 336
     @Transactional
333 337
     @Override
334 338
     public TpTransaction findUsedDetails(Integer activityId, Integer communityId, Integer userId) {

+ 4
- 7
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TicketServiceImpl.java Vedi File

@@ -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
 
@@ -180,7 +177,7 @@ public class TicketServiceImpl implements ITicketService {
180 177
     @Override
181 178
     public ResponseBean addAiTicketService(Integer userId, TpTicket tpTicket) {
182 179
         ResponseBean response = new ResponseBean();
183
-        TaUser user=taUserMapper.selectByPrimaryKey(userId);
180
+        TaUser user = taUserMapper.selectByPrimaryKey(userId);
184 181
         tpTicket.setCommunityId(user.getCommunityId());
185 182
         tpTicket.setTaUserId(userId);
186 183
         tpTicket.setTpUserId(userId);
@@ -189,9 +186,9 @@ public class TicketServiceImpl implements ITicketService {
189 186
         tpTicket.setUpdateUser(userId);
190 187
         tpTicket.setUpdateDate(new Date());
191 188
         tpTicketMapper.insert(tpTicket);
192
-        TpTicketRecord  tpTicketRecord=new TpTicketRecord();
189
+        TpTicketRecord tpTicketRecord = new TpTicketRecord();
193 190
         //获取当前插入的信息,维护工单记录表
194
-        TpTicket tpTicketReco=tpTicketMapper.getById(userId,user.getCommunityId());
191
+        TpTicket tpTicketReco = tpTicketMapper.getById(userId, user.getCommunityId());
195 192
         tpTicketRecord.setCommunityId(user.getCommunityId());
196 193
         tpTicketRecord.setTicketId(tpTicketReco.getId());
197 194
         tpTicketRecord.setCreateUser(userId);
@@ -199,7 +196,7 @@ public class TicketServiceImpl implements ITicketService {
199 196
         tpTicketRecordMapper.insert(tpTicketRecord);
200 197
         response.addSuccess("新增成功");
201 198
         return response;
202
-    
199
+    }
203 200
     /**
204 201
      * 回复工单
205 202
      * @param tpTicketRecordComment