应付配置的附加费调整

This commit is contained in:
liuminghui
2026-11-18 13:34:00 +08:00
parent ccfb05bf50
commit a72417b2c1
30 changed files with 1338 additions and 107 deletions
@@ -29,6 +29,7 @@ import com.bms.price.domain.ChannelProductMap;
import com.bms.price.domain.PayProduct;
import com.bms.price.domain.PayProductTerm;
import com.bms.price.domain.PaySaveCommand;
import com.bms.price.domain.PaySurcharge;
import com.bms.price.pay.PayDetailExporter;
import com.bms.price.pay.PayChargeMode;
import com.bms.price.pay.PayTemplateWorkbook;
@@ -136,6 +137,24 @@ public class PayProductController extends BaseController
return success(payProductService.saveManual(product));
}
/** 这一版从附加费配置勾选的费用 */
@PreAuthorize("@ss.hasPermi('price:pay:surcharge')")
@GetMapping("/term/{termId}/config-surcharges")
public AjaxResult configSurcharges(@PathVariable Long termId)
{
return success(payProductService.listConfigSurcharges(termId));
}
/** 保存这一版勾选的附加费和计费参数 */
@PreAuthorize("@ss.hasPermi('price:pay:surcharge')")
@Log(title = "应付价卡附加费", businessType = BusinessType.UPDATE)
@PutMapping("/term/{termId}/config-surcharges")
public AjaxResult saveConfigSurcharges(@PathVariable Long termId, @RequestBody List<PaySurcharge> rows)
{
payProductService.saveConfigSurcharges(termId, rows);
return success();
}
@PreAuthorize("@ss.hasPermi('price:pay:query')")
@GetMapping("/{productId}")
public AjaxResult getInfo(@PathVariable Long productId)
@@ -87,6 +87,7 @@ public class SurchargeController extends BaseController
+ " or @ss.hasPermi('price:set:query') or @ss.hasPermi('price:set:add') or @ss.hasPermi('price:set:edit')"
+ " or @ss.hasPermi('price:billing:bill')"
+ " or @ss.hasPermi('price:pay:query') or @ss.hasPermi('price:pay:edit') or @ss.hasPermi('price:pay:import')"
+ " or @ss.hasPermi('price:pay:surcharge')"
+ " or @ss.hasPermi('price:airBill:fee')")
@GetMapping("/options")
public AjaxResult listOptions(PrcSurcharge surcharge)