| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.system.domain.TFoundationConfig; |
| | | import com.ruoyi.system.domain.TFoundationPerson; |
| | | import com.ruoyi.system.domain.TShop; |
| | |
| | | /** |
| | | * 添加基础设置管理 |
| | | */ |
| | | @Log(title = "基础设置-添加基础设置", businessType = BusinessType.INSERT) |
| | | @ApiOperation( value = "添加基础设置") |
| | | @PostMapping(value = "/add") |
| | | public AjaxResult<Boolean> add(@RequestBody TFoundationPersonBatchDTO dto) { |
| | |
| | | /** |
| | | * 修改基础设置 |
| | | */ |
| | | @Log(title = "基础设置-修改基础设置", businessType = BusinessType.UPDATE) |
| | | @ApiOperation( value = "修改基础设置") |
| | | @PostMapping(value = "/update") |
| | | public AjaxResult<Boolean> update(@RequestBody TFoundationPersonBatchDTO dto) { |
| | |
| | | @GetMapping(value = "/getDetailById") |
| | | public AjaxResult<List<TFoundationPersonVO>> getDetailByMealType(@RequestParam("mealType") Integer mealType) { |
| | | // 查询基础设置 |
| | | List<TFoundationPersonVO> foundationPersonVOS = foundationPersonService.getSetList(); |
| | | List<TFoundationPersonVO> foundationPersonVOS = foundationPersonService.getPersonList(); |
| | | List<TFoundationPersonVO> collect = foundationPersonVOS.stream().filter(e -> Objects.equals(e.getMealType(), mealType)).collect(Collectors.toList()); |
| | | for (TFoundationPersonVO foundationPersonVO : collect) { |
| | | List<TFoundationConfig> list = foundationConfigService.list(Wrappers.lambdaQuery(TFoundationConfig.class) |
| | |
| | | /** |
| | | * 删除基础设置 |
| | | */ |
| | | @Log(title = "基础设置-删除基础设置", businessType = BusinessType.DELETE) |
| | | @ApiOperation( value = "删除基础设置") |
| | | @DeleteMapping(value = "/deleteById") |
| | | public AjaxResult<Boolean> deleteById(@RequestParam("id") Long id) { |