| | |
| | | package com.consum.base.controller; |
| | | |
| | | import com.consum.base.BaseController; |
| | | import com.consum.base.pojo.BaseCategoryParam; |
| | | import com.consum.base.pojo.BaseWarehouseParam; |
| | | import com.consum.base.service.BaseCategoryServiceImpl; |
| | | import com.consum.base.service.BaseGoodsTemplateServiceImpl; |
| | | import com.consum.base.service.BaseWarehouseManagerServiceImpl; |
| | | import com.consum.model.po.BaseCategory; |
| | | import com.consum.model.po.BaseWarehouseManager; |
| | | import com.iplatform.model.po.S_user_core; |
| | | import com.walker.db.page.GenericPager; |
| | | import com.walker.infrastructure.utils.StringUtils; |
| | | import com.walker.web.ResponseValue; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * @Description 库管员 |
| | | * @Author 卢庆阳 |
| | | * @Date 2023/10/26 |
| | | * <p> |
| | | * todo 库管员 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/pc/base/warehouse/manager") |
| | |
| | | @PostMapping("/add") |
| | | public ResponseValue add(@RequestBody BaseWarehouseManager baseWarehouseManager) { |
| | | int result = this.baseWarehouseManagerService.add(baseWarehouseManager); |
| | | if (result > 0) return ResponseValue.success(1); |
| | | if (result > 0) { |
| | | return ResponseValue.success(1); |
| | | } |
| | | return ResponseValue.error("新增失败!"); |
| | | } |
| | | } |