#
luxiaotao1123
2021-02-25 f4d88d94a86b8a067dfad51d5bc8efaf09a2d616
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
package zy.cloud.wms.manager.service.impl;
 
import com.alibaba.fastjson.JSON;
import com.core.common.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zy.cloud.wms.manager.entity.Node;
import zy.cloud.wms.manager.entity.param.StockInParam;
import zy.cloud.wms.manager.service.NodeService;
import zy.cloud.wms.manager.service.WorkService;
 
/**
 * Created by vincent on 2021/2/25
 */
@Service("workService")
public class WorkServiceImpl implements WorkService {
 
    @Autowired
    private NodeService nodeService;
 
    @Override
    public R stockIn(StockInParam param, Long userId) {
        Node node = nodeService.selectById(param.getNodeId());
        if (node == null) {
            return R.error("货位不存在");
        }
        System.out.println(JSON.toJSONString(param));
        return null;
    }
 
}