|
@@ -10,6 +10,7 @@ import com.ym.mec.biz.service.SysMessageService;
|
|
|
import com.ym.mec.biz.service.SysUserService;
|
|
|
import com.ym.mec.thirdparty.message.MessageSenderPluginContext;
|
|
|
import com.ym.mec.util.date.DateUtil;
|
|
|
+import io.swagger.models.auth.In;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -59,12 +60,12 @@ public class SysSuggestionServiceImpl extends BaseServiceImpl<Long, SysSuggestio
|
|
|
sysSuggestion.setOperatorTime(new Date());
|
|
|
sysSuggestionDao.update(sysSuggestion);
|
|
|
if (sysSuggestion.getFeedbackFlag()) {
|
|
|
- // TODO 发送
|
|
|
+ String notifyUrl = "feedback?id=" + sysSuggestion.getId();
|
|
|
String content = sysConfigDao.findConfigValue("suggestion_feedback_content");
|
|
|
StringBuffer sb = new StringBuffer("[");
|
|
|
sb.append(suggestion.getSuggestionTypeName()).append("]").append(DateUtil.format(suggestion.getCreateTime(),DateUtil.DEFAULT_PATTERN));
|
|
|
sysMessageService.sendMessage(MessageSenderPluginContext.MessageSender.JIGUANG,suggestion.getUserId().intValue(),
|
|
|
- sb.toString(),content,suggestion.getUserId().toString(),null,0,"2","SYSTEM","STUDENT");
|
|
|
+ sb.toString(),content,suggestion.getUserId().toString(),null,0,notifyUrl,"SYSTEM","STUDENT");
|
|
|
}
|
|
|
}
|
|
|
}
|