use of com.whoiszxl.entity.WarehouseShelf in project shopzz by whoiszxl.
the class WarehouseShelfController method save.
@SaCheckLogin
@PostMapping
@ApiOperation(value = "新增仓库货架", notes = "新增仓库货架", response = ResponseResult.class)
public ResponseResult<Boolean> save(@RequestBody WarehouseShelfSaveCommand warehouseShelfSaveCommand) {
WarehouseShelf warehouse = dozerUtils.map(warehouseShelfSaveCommand, WarehouseShelf.class);
boolean saveFlag = warehouseShelfService.save(warehouse);
return ResponseResult.buildByFlag(saveFlag);
}
use of com.whoiszxl.entity.WarehouseShelf in project shopzz by whoiszxl.
the class WarehouseShelfController method update.
@SaCheckLogin
@PutMapping
@ApiOperation(value = "更新仓库货架", notes = "更新仓库货架", response = ResponseResult.class)
public ResponseResult<Boolean> update(@RequestBody WarehouseShelfUpdateCommand warehouseShelfUpdateCommand) {
WarehouseShelf warehouse = dozerUtils.map(warehouseShelfUpdateCommand, WarehouseShelf.class);
boolean updateFlag = warehouseShelfService.updateById(warehouse);
return ResponseResult.buildByFlag(updateFlag);
}
Aggregations