|
@@ -89,9 +89,9 @@ public class GRPCController extends BaseController {
|
|
|
String sessionId = IdUtils.simpleUUID();
|
|
|
String feedback = chatReq.getFeedback();
|
|
|
String simulate = chatReq.getSimulate();
|
|
|
- Integer type = chatReq.getType();
|
|
|
- if(Objects.isNull(type))
|
|
|
- throw new RuntimeException("请输入问答类型【决策还是仿真预测】");
|
|
|
+ int type = 3;//仿真预测
|
|
|
+ if(StringUtils.isBlank(simulate) || "{}".equals(simulate))
|
|
|
+ type = 1;//决策
|
|
|
String warningId = String.valueOf(chatReq.getWarningId());
|
|
|
//决策请求的业务参数
|
|
|
// List<HashMap<String, Object>> list = this.xinyiIndustryMapper.selectLast10RecordsForDecision();
|