feat: 新增库存表远程接口 查询库存

This commit is contained in:
luochen 2024-11-08 20:25:52 +08:00
parent f7271b667b
commit e58413015a
2 changed files with 16 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import com.foreverwin.mom.common.core.constant.SecurityConstants;
import com.foreverwin.mom.common.core.util.R;
import com.foreverwin.nlv.wms.entity.WmsInventory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
@ -15,4 +16,9 @@ public interface RemoteWmsInventoryService {
*/
@PostMapping("/wmsInventory/updateInventory")
R<Boolean> remoteInventory(@RequestBody WmsInventory wmsInventory, @RequestHeader(SecurityConstants.FROM) String from);
/**
* 查询
*/
@GetMapping("/wmsInventory/selectById")
R<WmsInventory> selectById(String id,@RequestHeader(SecurityConstants.FROM) String from);
}

View File

@ -113,4 +113,14 @@ public class WmsInventoryController {
return R.ok();
}
/**
* 查询
*/
@ApiOperation(value = "查询", notes = "查询")
@SysLog("查询")
@GetMapping("/selectById")
public R selectById(String id) {
return R.ok(wmsInventoryService.getById(id));
}
}