|
@@ -267,11 +267,11 @@ public class GRPCController extends BaseController {
|
|
|
//请求参数
|
|
|
Integer module = chatReq.getModule();//来自那个模块
|
|
|
Date reportDate = chatReq.getReportDate();//如果传过值来了 代表的是工单类型的问答
|
|
|
- if(!Objects.isNull(reportDate) && module != 1){
|
|
|
+ if(Objects.isNull(reportDate) && module == 1){//工单 必须要输入日期
|
|
|
//智能工单需要传入一个时间的参数
|
|
|
try {
|
|
|
outputStream = response.getOutputStream();
|
|
|
- outputStream.write(CHAT_ERROR_MSG.getBytes());
|
|
|
+ outputStream.write(CHAT_GONGDAN_1_ERROR_MSG.getBytes());
|
|
|
outputStream.flush();
|
|
|
} catch (IOException e) {
|
|
|
throw new RuntimeException(e);
|
|
@@ -296,7 +296,7 @@ public class GRPCController extends BaseController {
|
|
|
//没有查询到数据
|
|
|
try {
|
|
|
outputStream = response.getOutputStream();
|
|
|
- outputStream.write(CHAT_GONGDAN_ERROR_MSG.getBytes());
|
|
|
+ outputStream.write(CHAT_GONGDAN_2_ERROR_MSG.getBytes());
|
|
|
outputStream.flush();
|
|
|
} catch (IOException e) {
|
|
|
throw new RuntimeException(e);
|