From 09a87096183a48cb61f317cf2915a1b293ecdd6c Mon Sep 17 00:00:00 2001 From: Lemon Date: Fri, 13 Sep 2024 15:40:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=20=E5=90=8E=E7=AE=A1?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=BF=90=E8=90=A5=E5=95=86--=E5=88=86?= =?UTF-8?q?=E6=B6=A6=E4=BA=BA=E9=85=8D=E7=BD=AE=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...rofitMerchantMemberRelationController.java | 98 +++++++ .../src/api/pile/shareprofitRelation.js | 44 +++ .../pile/shareprofit/{ => group}/index.vue | 0 .../views/pile/shareprofit/relation/index.vue | 260 ++++++++++++++++++ 4 files changed, 402 insertions(+) create mode 100644 jsowell-admin/src/main/java/com/jsowell/web/controller/pile/ShareprofitMerchantMemberRelationController.java create mode 100644 jsowell-ui/src/api/pile/shareprofitRelation.js rename jsowell-ui/src/views/pile/shareprofit/{ => group}/index.vue (100%) create mode 100644 jsowell-ui/src/views/pile/shareprofit/relation/index.vue diff --git a/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/ShareprofitMerchantMemberRelationController.java b/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/ShareprofitMerchantMemberRelationController.java new file mode 100644 index 000000000..c3ac92f6a --- /dev/null +++ b/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/ShareprofitMerchantMemberRelationController.java @@ -0,0 +1,98 @@ +package com.jsowell.web.controller.pile; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; + +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.jsowell.common.annotation.Log; +import com.jsowell.common.core.controller.BaseController; +import com.jsowell.common.core.domain.AjaxResult; +import com.jsowell.common.enums.BusinessType; +import com.jsowell.pile.domain.shareprofit.ShareprofitMerchantMemberRelation; +import com.jsowell.pile.service.IShareprofitMerchantMemberRelationService; +import com.jsowell.common.util.poi.ExcelUtil; +import com.jsowell.common.core.page.TableDataInfo; + +/** + * 运营商--分润人关系Controller + * + * @author jsowell + * @date 2024-09-13 + */ +@RestController +@RequestMapping("/pile/shareprofitRelation") +public class ShareprofitMerchantMemberRelationController extends BaseController { + @Autowired + private IShareprofitMerchantMemberRelationService shareprofitMerchantMemberRelationService; + + /** + * 查询运营商--分润人关系列表 + */ + @PreAuthorize("@ss.hasPermi('pile:shareprofitRelation:list')") + @GetMapping("/list") + public TableDataInfo list(ShareprofitMerchantMemberRelation shareprofitMerchantMemberRelation) { + startPage(); + List list = shareprofitMerchantMemberRelationService.selectShareprofitMerchantMemberRelationList(shareprofitMerchantMemberRelation); + return getDataTable(list); + } + + /** + * 导出运营商--分润人关系列表 + */ + @PreAuthorize("@ss.hasPermi('pile:shareprofitRelation:export')") + @Log(title = "运营商--分润人关系", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, ShareprofitMerchantMemberRelation shareprofitMerchantMemberRelation) { + List list = shareprofitMerchantMemberRelationService.selectShareprofitMerchantMemberRelationList(shareprofitMerchantMemberRelation); + ExcelUtil util = new ExcelUtil(ShareprofitMerchantMemberRelation.class); + util.exportExcel(response, list, "运营商--分润人关系数据"); + } + + /** + * 获取运营商--分润人关系详细信息 + */ + @PreAuthorize("@ss.hasPermi('pile:shareprofitRelation:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) { + return AjaxResult.success(shareprofitMerchantMemberRelationService.selectShareprofitMerchantMemberRelationById(id)); + } + + /** + * 新增运营商--分润人关系 + */ + @PreAuthorize("@ss.hasPermi('pile:shareprofitRelation:add')") + @Log(title = "运营商--分润人关系", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody ShareprofitMerchantMemberRelation shareprofitMerchantMemberRelation) { + return toAjax(shareprofitMerchantMemberRelationService.insertShareprofitMerchantMemberRelation(shareprofitMerchantMemberRelation)); + } + + /** + * 修改运营商--分润人关系 + */ + @PreAuthorize("@ss.hasPermi('pile:shareprofitRelation:edit')") + @Log(title = "运营商--分润人关系", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody ShareprofitMerchantMemberRelation shareprofitMerchantMemberRelation) { + return toAjax(shareprofitMerchantMemberRelationService.updateShareprofitMerchantMemberRelation(shareprofitMerchantMemberRelation)); + } + + /** + * 删除运营商--分润人关系 + */ + @PreAuthorize("@ss.hasPermi('pile:shareprofitRelation:remove')") + @Log(title = "运营商--分润人关系", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { + return toAjax(shareprofitMerchantMemberRelationService.deleteShareprofitMerchantMemberRelationByIds(ids)); + } +} diff --git a/jsowell-ui/src/api/pile/shareprofitRelation.js b/jsowell-ui/src/api/pile/shareprofitRelation.js new file mode 100644 index 000000000..644868b82 --- /dev/null +++ b/jsowell-ui/src/api/pile/shareprofitRelation.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询运营商--分润人关系列表 +export function listRelation(query) { + return request({ + url: '/pile/shareprofitRelation/list', + method: 'get', + params: query + }) +} + +// 查询运营商--分润人关系详细 +export function getRelation(id) { + return request({ + url: '/pile/shareprofitRelation/' + id, + method: 'get' + }) +} + +// 新增运营商--分润人关系 +export function addRelation(data) { + return request({ + url: '/pile/shareprofitRelation', + method: 'post', + data: data + }) +} + +// 修改运营商--分润人关系 +export function updateRelation(data) { + return request({ + url: '/pile/shareprofitRelation', + method: 'put', + data: data + }) +} + +// 删除运营商--分润人关系 +export function delRelation(id) { + return request({ + url: '/pile/shareprofitRelation/' + id, + method: 'delete' + }) +} diff --git a/jsowell-ui/src/views/pile/shareprofit/index.vue b/jsowell-ui/src/views/pile/shareprofit/group/index.vue similarity index 100% rename from jsowell-ui/src/views/pile/shareprofit/index.vue rename to jsowell-ui/src/views/pile/shareprofit/group/index.vue diff --git a/jsowell-ui/src/views/pile/shareprofit/relation/index.vue b/jsowell-ui/src/views/pile/shareprofit/relation/index.vue new file mode 100644 index 000000000..d7652e946 --- /dev/null +++ b/jsowell-ui/src/views/pile/shareprofit/relation/index.vue @@ -0,0 +1,260 @@ + + +