package com.fzzy.igds.io.notify;
|
|
import com.fzzy.igds.constant.OrderRespEnum;
|
import com.fzzy.igds.domain.Depot;
|
import com.fzzy.igds.domain.DepotConf;
|
import com.fzzy.igds.domain.Grain;
|
import com.fzzy.igds.request.ExeBaseRequest;
|
|
/**
|
* @author Andy
|
*/
|
public interface NotifyGrainInvoker {
|
|
|
/**
|
* 粮情解析成功后通知,系统开始执行保存判断等操作
|
*
|
* @param grain 解析后的粮情信息
|
* @param depotConf 仓库配置信息,不可为空
|
* @return 执行异常信息,正常返回NULL
|
*/
|
String analysisSuccess(Grain grain, DepotConf depotConf, Depot depot, boolean isNotifyWeb, ExeBaseRequest request);
|
|
/**
|
* 更新粮情,仅仅粮情信息
|
*
|
* @param grain
|
* @param depot 仓库信息
|
*/
|
String analysisSuccess(Grain grain, Depot depot);
|
|
/**
|
* 更新粮情,仅仅粮情信息
|
*
|
* @param grain
|
* @param request 请求命令信息
|
*/
|
String analysisSuccess(Grain grain, Depot depot, ExeBaseRequest request);
|
|
/**
|
* 更新粮情,仅仅粮情信息
|
*
|
* @param grain
|
* @param request 请求命令信息
|
*/
|
String analysisSuccess(Grain grain, Depot depot, ExeBaseRequest request, DepotConf depotConf);
|
|
|
/**
|
* 直接通知页面
|
*
|
* @param companyId
|
* @param orderResp
|
* @param notifyMsg
|
*/
|
void notifyWeb(String companyId, OrderRespEnum orderResp, String bizType, String notifyMsg);
|
}
|