| | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | @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; |
| | | } |
| | | |
| | | } |