CZT
2023-07-23 988a25cb2ef013e9493da76c3035bcb5bee0da81
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
package com.ld.igds.wms.service.impl;
 
import com.alibaba.fastjson.JSONObject;
import com.ld.igds.wms.constant.WmsCodeEnum;
import com.ld.igds.wms.constant.WmsConstant;
import com.ld.igds.wms.data.WmsParam;
import com.ld.igds.wms.data.WmsRequest;
import com.ld.igds.wms.data.WmsResponse;
import com.ld.igds.wms.service.WmsService;
import org.springframework.stereotype.Service;
 
/**
 * 1002-出库
 *
 * @author czt
 */
@Service
public class WmsServiceImpl1002 implements WmsService {
 
 
    @Override
    public String getInterfaceId() {
        return WmsConstant.API_WMS_1001;
    }
 
    @SuppressWarnings("unchecked")
    @Override
    public WmsResponse execute(WmsRequest<JSONObject> req){
        //转化请求参数
        WmsParam param = JSONObject.parseObject(req.getData().toString(), WmsParam.class);
 
        //TODO 解析数据
 
        
 
        //请求成功
        return new WmsResponse(WmsCodeEnum.WMS_CODE_0000.getCode(), WmsCodeEnum.WMS_CODE_0000.getMsg());
    }
}