|
@@ -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
|
+}
|