提交附加费配置功能

This commit is contained in:
wuweihua
2026-09-07 16:50:59 +08:00
parent ea2bc6f33e
commit 3994bd7998
13 changed files with 947 additions and 0 deletions
@@ -50,6 +50,18 @@ public class BmsRegionController extends BaseController
return getDataTable(list);
}
/**
* 获取国家下拉选项列表(仅启用状态)
*/
@GetMapping("/optionselect")
public AjaxResult optionselect()
{
BmsRegion query = new BmsRegion();
query.setStatus("0");
List<BmsRegion> list = regionService.selectRegionList(query);
return success(list);
}
/**
* 导出区域列表
*/
@@ -0,0 +1,76 @@
package com.ruoyi.web.controller.price;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.price.domain.PrcSurcharge;
import com.ruoyi.price.service.IPrcSurchargeService;
/**
* 附加费配置
*
* @author ruoyi
*/
@RestController
@RequestMapping("/price/surcharge")
public class SurchargeController extends BaseController
{
@Autowired
private IPrcSurchargeService surchargeService;
@PreAuthorize("@ss.hasPermi('price:surcharge:list')")
@GetMapping("/list")
public TableDataInfo list(PrcSurcharge surcharge)
{
startPage();
List<PrcSurcharge> list = surchargeService.selectPrcSurchargeList(surcharge);
return getDataTable(list);
}
@PreAuthorize("@ss.hasPermi('price:surcharge:query')")
@GetMapping("/{scId}")
public AjaxResult getInfo(@PathVariable Long scId)
{
return success(surchargeService.selectPrcSurchargeById(scId));
}
@PreAuthorize("@ss.hasPermi('price:surcharge:add')")
@Log(title = "附加费配置", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@Validated @RequestBody PrcSurcharge surcharge)
{
surcharge.setCreateBy(getUsername());
return toAjax(surchargeService.insertPrcSurcharge(surcharge));
}
@PreAuthorize("@ss.hasPermi('price:surcharge:edit')")
@Log(title = "附加费配置", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@Validated @RequestBody PrcSurcharge surcharge)
{
surcharge.setUpdateBy(getUsername());
return toAjax(surchargeService.updatePrcSurcharge(surcharge));
}
@PreAuthorize("@ss.hasPermi('price:surcharge:remove')")
@Log(title = "附加费配置", businessType = BusinessType.DELETE)
@DeleteMapping("/{scIds}")
public AjaxResult remove(@PathVariable Long[] scIds)
{
return toAjax(surchargeService.deletePrcSurchargeByIds(scIds));
}
}