| | |
| | | package com.jilongda.manage.controller; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.jilongda.common.basic.ApiResult; |
| | | import com.jilongda.manage.model.SecSetting; |
| | | import com.jilongda.manage.model.TFrameWarehousingDetail; |
| | | import com.jilongda.manage.model.TWarehousing; |
| | | import com.jilongda.manage.service.SecSettingService; |
| | | import com.jilongda.manage.vo.TWarehousingVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author 无关风月 |
| | | * @since 2024-12-09 |
| | | */ |
| | | @Api(tags = "低库存警告") |
| | | @RestController |
| | | @RequestMapping("/sec-setting") |
| | | public class SecSettingController { |
| | | |
| | | @Autowired |
| | | private SecSettingService secSettingService; |
| | | |
| | | /** |
| | | * 查询详情 |
| | | */ |
| | | @ApiOperation(value = "低库存警告查询") |
| | | @PostMapping(value = "/getDetailById") |
| | | public ApiResult<SecSetting> getDetailById() { |
| | | return ApiResult.success(secSettingService.getById(1)); |
| | | } |
| | | |
| | | /** |
| | | * 低库存警告修改 |
| | | */ |
| | | @ApiOperation(value = "低库存警告修改") |
| | | @PostMapping(value = "/updateById") |
| | | public ApiResult<String> updateById(@RequestBody SecSetting secSetting) { |
| | | secSettingService.updateById(secSetting); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | } |
| | | |