增加套餐绑定用户功能
This commit is contained in:
@@ -27,6 +27,7 @@ import com.bms.common.enums.BusinessType;
|
||||
import com.bms.common.utils.MessageUtils;
|
||||
import com.bms.common.utils.StringUtils;
|
||||
import com.bms.price.domain.PrcCustomerPriceSet;
|
||||
import com.bms.price.domain.PrcPriceSetUser;
|
||||
import com.bms.price.domain.PrcPriceExcelFile;
|
||||
import com.bms.price.domain.PrcPriceSet;
|
||||
import com.bms.price.domain.PrcPriceSetDetail;
|
||||
@@ -386,4 +387,30 @@ public class PriceSetController extends BaseController
|
||||
{
|
||||
return toAjax(priceSetService.deleteCustomerByIds(customerPricesetIds));
|
||||
}
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('price:set:list')")
|
||||
@GetMapping("/viewer/list")
|
||||
public TableDataInfo viewerList(PrcPriceSetUser query)
|
||||
{
|
||||
startPage();
|
||||
List<PrcPriceSetUser> list = priceSetService.selectViewerList(query);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('price:set:edit')")
|
||||
@Log(title = "Package viewer bind", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/viewer")
|
||||
public AjaxResult addViewer(@RequestBody PrcPriceSetUser row)
|
||||
{
|
||||
row.setCreateBy(getUsername());
|
||||
return toAjax(priceSetService.insertViewer(row));
|
||||
}
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('price:set:edit')")
|
||||
@Log(title = "Package viewer bind", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/viewer/{psuIds}")
|
||||
public AjaxResult removeViewer(@PathVariable Long[] psuIds)
|
||||
{
|
||||
return toAjax(priceSetService.deleteViewerByIds(psuIds));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user