|
@@ -6,8 +6,10 @@ import com.community.commom.session.UserElement;
|
6
|
6
|
import com.community.huiju.dao.TpBillInvoiceMapper;
|
7
|
7
|
import com.community.huiju.dao.TpBillMapper;
|
8
|
8
|
import com.community.huiju.dao.TpMessageMapper;
|
|
9
|
+import com.community.huiju.dao.TpTicketMapper;
|
9
|
10
|
import com.community.huiju.model.TpBill;
|
10
|
11
|
import com.community.huiju.model.TpMessage;
|
|
12
|
+import com.community.huiju.model.TpTicket;
|
11
|
13
|
import com.community.huiju.service.MessageServiceI;
|
12
|
14
|
import com.github.pagehelper.Page;
|
13
|
15
|
import com.github.pagehelper.PageHelper;
|
|
@@ -32,6 +34,9 @@ public class MessageServiceImpl implements MessageServiceI {
|
32
|
34
|
|
33
|
35
|
@Autowired
|
34
|
36
|
private TpBillMapper tpBillMapper;
|
|
37
|
+
|
|
38
|
+ @Autowired
|
|
39
|
+ private TpTicketMapper tpTicketMapper;
|
35
|
40
|
|
36
|
41
|
/**
|
37
|
42
|
* 获取消息数量
|
|
@@ -72,6 +77,13 @@ public class MessageServiceImpl implements MessageServiceI {
|
72
|
77
|
tpMessage.setContent(tpMessage.getMessageContent());
|
73
|
78
|
tpMessage.setMessageContent("");
|
74
|
79
|
}
|
|
80
|
+ // 查询工单是否待评价,如果为待评价把Content改为工单的标题
|
|
81
|
+ TpTicket tpTicket= tpTicketMapper.selectByPrimaryKey(tpMessage.getTicketId());
|
|
82
|
+ if (null != tpTicket) {
|
|
83
|
+ if (!"".equals(tpMessage.getTicketId()) && "5".equals(tpTicket.getStatus())) {
|
|
84
|
+ tpMessage.setContent(tpTicket.getTicketTitle());
|
|
85
|
+ }
|
|
86
|
+ }
|
75
|
87
|
if (!StringUtils.isEmpty(tpMessage.getMessageDetailUrl())){
|
76
|
88
|
Integer id = getMessageIdByType(tpMessage);
|
77
|
89
|
tpMessage.setMessageDetailUrl(tpMessage.getMessageDetailUrl() + "&id=" + id);
|