客户批量绑定价格套餐
This commit is contained in:
+14
@@ -15,6 +15,7 @@ import com.bms.common.core.controller.BaseController;
|
||||
import com.bms.common.core.domain.AjaxResult;
|
||||
import com.bms.common.enums.BusinessType;
|
||||
import com.bms.customer.customerinfo.domain.BmsCustomerPriceSet;
|
||||
import com.bms.customer.customerinfo.domain.BmsCustomerPriceSetBatch;
|
||||
import com.bms.customer.customerinfo.domain.BmsPriceSetOption;
|
||||
import com.bms.customer.customerinfo.service.IBmsCustomerPriceSetService;
|
||||
|
||||
@@ -65,6 +66,19 @@ public class BmsCustomerPriceSetController extends BaseController
|
||||
return toAjax(customerPriceSetService.saveBind(bind));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量绑定套餐(客户管理列表勾选多个客户;一个客户仅一个套餐,已绑定可选择覆盖或跳过)
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('customersupplier:customerinfo:edit')")
|
||||
@Log(title = "客户套餐批量绑定", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/bind/batch")
|
||||
public AjaxResult batchBind(@RequestBody BmsCustomerPriceSetBatch req)
|
||||
{
|
||||
req.setCreateBy(getUsername());
|
||||
req.setUpdateBy(getUsername());
|
||||
return success(customerPriceSetService.batchBind(req));
|
||||
}
|
||||
|
||||
/**
|
||||
* 解绑客户套餐
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user