|
@ -400,5 +400,48 @@ public class MedicineDeviceEndpoint extends EnvelopRestEndpoint {
|
|
|
return success(deviceService.selectById(deviceId));
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = BaseRequestMapping.BaseDevice.updateMediicinecabineInventory)
|
|
|
@ApiOperation(value = "更换商品,或者设定商品" , notes="更换商品,或者设定商品")
|
|
|
public Envelop updateMediicinecabineInventory(
|
|
|
@ApiParam(name = "id", value = "货道id", required = true)
|
|
|
@RequestParam(value = "id", required = true) String id,
|
|
|
@ApiParam(name = "drugId", value = "药品id", required = true)
|
|
|
@RequestParam(value = "drugId", required = true) String drugId,
|
|
|
@ApiParam(name = "qty", value = "库存", required = true)
|
|
|
@RequestParam(value = "qty", required = true) String qty) throws Exception {
|
|
|
return success(deviceService.updateMediicinecabineInventoryById(id,drugId,qty));
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = BaseRequestMapping.BaseDevice.selectMediicinecabineInventoryById)
|
|
|
@ApiOperation(value = "根据货道id获取单个货道详情" , notes="根据货道id获取单个货道详情")
|
|
|
public Envelop selectMediicinecabineInventoryById(
|
|
|
@ApiParam(name = "id", value = "货道id", required = true)
|
|
|
@RequestParam(value = "id", required = true) String id) throws Exception {
|
|
|
return success(deviceService.selectMediicinecabineInventoryById(id));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 矫正库存\ 更新容量 \下架商品
|
|
|
* @param id 货到id
|
|
|
* @param qty 库存
|
|
|
* @param cargoCapacity 容量
|
|
|
* @param status 下架状态0
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
@PostMapping(value = BaseRequestMapping.BaseDevice.updateMediicinecabineInventoryInfoById)
|
|
|
@ApiOperation(value = "矫正库存\\ 更新容量 \\下架商品" , notes="矫正库存\\ 更新容量 \\下架商品")
|
|
|
public Envelop updateMediicinecabineInventoryInfoById(
|
|
|
@ApiParam(name = "id", value = "货道id", required = true)
|
|
|
@RequestParam(value = "id", required = true) String id,
|
|
|
@ApiParam(name = "qty", value = "库存", required = true)
|
|
|
@RequestParam(value = "qty", required = false) String qty,
|
|
|
@ApiParam(name = "cargoCapacity", value = "容量", required = true)
|
|
|
@RequestParam(value = "cargoCapacity", required = false) String cargoCapacity,
|
|
|
@ApiParam(name = "status", value = "下架状态0", required = true)
|
|
|
@RequestParam(value = "status", required = false) String status) throws Exception {
|
|
|
return success(deviceService.updateMediicinecabineInventoryInfoById(id,qty,cargoCapacity,status));
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|