feat: 新增库存表远程接口 查询库存
This commit is contained in:
parent
f7271b667b
commit
e58413015a
@ -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);
|
||||
}
|
||||
|
||||
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user