zouxuan 1 rok temu
rodzic
commit
c3135012bf

+ 0 - 5
mec-application/src/main/java/com/ym/mec/web/controller/school/SchoolSysSuggestionController.java

@@ -2,22 +2,17 @@ package com.ym.mec.web.controller.school;
 
 import com.ym.mec.auth.api.entity.SysUser;
 import com.ym.mec.biz.dal.entity.SysSuggestion;
-import com.ym.mec.biz.dal.entity.SysSuggestionType;
 import com.ym.mec.biz.dal.page.SysSuggestionQueryInfo;
 import com.ym.mec.biz.service.SysSuggestionService;
-import com.ym.mec.biz.service.SysSuggestionTypeService;
 import com.ym.mec.biz.service.SysUserService;
 import com.ym.mec.common.controller.BaseController;
 import com.ym.mec.common.entity.HttpResponseResult;
-import com.ym.mec.common.tenant.TenantContextHolder;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
-import java.util.List;
-
 @Api(tags = "意见反馈")
 @RestController
 @RequestMapping("${app-config.url.web:}/suggestion")

+ 6 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/SysSuggestionServiceImpl.java

@@ -52,7 +52,12 @@ public class SysSuggestionServiceImpl extends BaseServiceImpl<Long, SysSuggestio
 		sysSuggestion.setOperatorTime(new Date());
 		sysSuggestionDao.update(sysSuggestion);
 		if (sysSuggestion.getFeedbackFlag()) {
-			String notifyUrl = "feedback?id=" + sysSuggestion.getId();
+			String notifyUrl;
+			if("SCHOOL".equals(suggestion.getClientType())){
+				notifyUrl = "{\"pageTag\":\"courseTable\",\"action\":\"app\",\"url\":\"\"}";
+			}else {
+				notifyUrl = "feedback?id=" + sysSuggestion.getId();
+			}
 			Map<Integer,String> userMap = new HashMap<>(1);
 			userMap.put(suggestion.getUserId().intValue(),suggestion.getUserId().toString());
 			sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, MessageTypeEnum.PUSH_SUGGESTION_FEEDBACK_CONTENT,