| | |
| | | package com.jilongda.manage.controller; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import com.jilongda.common.basic.ApiResult; |
| | | import com.jilongda.manage.dto.SecFeeItemsDTO; |
| | | import com.jilongda.manage.model.SecFeeItems; |
| | | import com.jilongda.manage.model.SecSetting; |
| | | import com.jilongda.manage.service.SecFeeItemsService; |
| | | import com.jilongda.manage.service.SecSettingService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | 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-fee-items") |
| | | public class SecFeeItemsController { |
| | | |
| | | |
| | | @Autowired |
| | | private SecFeeItemsService secFeeItemsService; |
| | | |
| | | /** |
| | | * 收费项设置 |
| | | */ |
| | | @ApiOperation(value = "收费项设置查询列表") |
| | | @PostMapping(value = "/list") |
| | | public ApiResult<List<SecFeeItems>> list() { |
| | | return ApiResult.success(secFeeItemsService.list()); |
| | | } |
| | | |
| | | /** |
| | | * 查询详情 |
| | | */ |
| | | @ApiOperation(value = "收费项设置修改") |
| | | @PostMapping(value = "/updateList") |
| | | public ApiResult<String> updateList(@RequestBody SecFeeItemsDTO dto ) { |
| | | List<SecFeeItems> secFeeItemsList = dto.getSecFeeItemsList(); |
| | | secFeeItemsService.saveOrUpdateBatch(secFeeItemsList); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "收费项设置启用禁用") |
| | | @GetMapping(value = "/upAndDown") |
| | | public ApiResult<Boolean> upAndDown(@RequestParam Long id, |
| | | @RequestParam Integer status) { |
| | | return ApiResult.success(secFeeItemsService.upAndDown(id,status)); |
| | | } |
| | | |
| | | |
| | | } |
| | | |