package com.ld.igds.io.notify;
|
|
import com.ld.igds.constant.BizType;
|
import com.ld.igds.grain.dto.GrainItemInfo;
|
import com.ld.igds.io.constant.OrderRespEnum;
|
import com.ld.igds.models.Depot;
|
import com.ld.igds.models.DepotConf;
|
import com.ld.igds.models.DicSysConf;
|
import com.ld.igds.models.Grain;
|
import com.ld.igds.order.data.ExeRequest;
|
|
import java.util.List;
|
|
/**
|
* @author Andy
|
*/
|
public interface NotifyGrainInvoker {
|
|
|
/**
|
* 粮情解析成功后通知,系统开始执行保存判断等操作
|
*
|
* @param grain 解析后的粮情信息
|
* @param listGrainItems 解析后采集点信息,如果为 NULL,不执行保存
|
* @param depotConf 仓库配置信息,不可为空
|
* @param sysConf 系统配置信息 ,如果为空,后台自动查询
|
* @return 执行异常信息,正常返回NULL
|
*/
|
String analysisSuccess(Grain grain, List<GrainItemInfo> listGrainItems, DepotConf depotConf,DicSysConf sysConf, boolean isNotifyWeb, ExeRequest exeRequest);
|
|
/**
|
* 更新粮情,仅仅粮情信息
|
* @param grain
|
* @param depot 仓库信息
|
* @param sysConf 系统配置信息 ,如果为空,后台自动查询
|
*/
|
String analysisSuccess(Grain grain, Depot depot, DicSysConf sysConf);
|
|
/**
|
* 更新粮情,仅仅粮情信息
|
* @param grain
|
* @param exeRequest 请求命令信息
|
* @param sysConf 系统配置信息 ,如果为空,后台自动查询
|
*/
|
String analysisSuccess(Grain grain,ExeRequest exeRequest, DicSysConf sysConf);
|
|
/**
|
* 更新粮情,仅仅粮情信息
|
* @param grain
|
* @param exeRequest 请求命令信息
|
* @param sysConf 系统配置信息 ,如果为空,后台自动查询
|
*/
|
String analysisSuccess(Grain grain,ExeRequest exeRequest, DepotConf depotConf, DicSysConf sysConf);
|
|
|
/**
|
* 直接通知页面
|
*
|
* @param companyId
|
* @param orderResp
|
* @param notifyMsg
|
*/
|
void notifyWeb(String companyId, OrderRespEnum orderResp, BizType bizType,String notifyMsg);
|
}
|