ws183
2025-04-28 b306d1106b915bb13fd7a02217ae9c65de2fd03d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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);
}