#
luxiaotao1123
2021-02-25 f4d88d94a86b8a067dfad51d5bc8efaf09a2d616
src/main/java/zy/cloud/wms/manager/service/impl/WorkServiceImpl.java
@@ -1,8 +1,12 @@
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;
/**
@@ -11,10 +15,17 @@
@Service("workService")
public class WorkServiceImpl implements WorkService {
    @Autowired
    private NodeService nodeService;
    @Override
    public String stockIn(StockInParam param, Long userId) {
    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;
    }
}