mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
删除废弃代码
This commit is contained in:
@@ -1,112 +0,0 @@
|
||||
package com.jsowell.web.controller.pile;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.pile.vo.web.ShareprofitGroupVO;
|
||||
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.ShareprofitGroup;
|
||||
import com.jsowell.pile.service.IShareprofitGroupService;
|
||||
import com.jsowell.common.util.poi.ExcelUtil;
|
||||
import com.jsowell.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 运营商分润组Controller
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2024-09-12
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pile/shareprofitGroup")
|
||||
public class ShareprofitGroupController extends BaseController {
|
||||
@Autowired
|
||||
private IShareprofitGroupService shareprofitGroupService;
|
||||
|
||||
/**
|
||||
* 查询运营商分润组列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pile:shareprofitGroup:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ShareprofitGroup shareprofitGroup) {
|
||||
startPage();
|
||||
List<ShareprofitGroup> list = shareprofitGroupService.selectShareprofitGroupList(shareprofitGroup);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询运营商分润组列表 new
|
||||
*/
|
||||
@PostMapping("/getShareprofitGroupList")
|
||||
public RestApiResponse<?> getShareprofitGroupList(@RequestBody ShareprofitGroup shareprofitGroup) {
|
||||
RestApiResponse<?> response = null;
|
||||
startPage();
|
||||
List<ShareprofitGroupVO> list = shareprofitGroupService.getShareprofitGroupVOList(shareprofitGroup);
|
||||
response = new RestApiResponse<>(list);
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出运营商分润组列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pile:shareprofitGroup:export')")
|
||||
@Log(title = "运营商分润组", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ShareprofitGroup shareprofitGroup) {
|
||||
List<ShareprofitGroup> list = shareprofitGroupService.selectShareprofitGroupList(shareprofitGroup);
|
||||
ExcelUtil<ShareprofitGroup> util = new ExcelUtil<ShareprofitGroup>(ShareprofitGroup.class);
|
||||
util.exportExcel(response, list, "运营商分润组数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取运营商分润组详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pile:shareprofitGroup:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(shareprofitGroupService.selectShareprofitGroupById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增运营商分润组
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pile:shareprofitGroup:add')")
|
||||
@Log(title = "运营商分润组", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ShareprofitGroup shareprofitGroup) {
|
||||
return toAjax(shareprofitGroupService.insertShareprofitGroup(shareprofitGroup));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改运营商分润组
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pile:shareprofitGroup:edit')")
|
||||
@Log(title = "运营商分润组", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ShareprofitGroup shareprofitGroup) {
|
||||
return toAjax(shareprofitGroupService.updateShareprofitGroup(shareprofitGroup));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除运营商分润组
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pile:shareprofitGroup:remove')")
|
||||
@Log(title = "运营商分润组", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(shareprofitGroupService.deleteShareprofitGroupByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -1,98 +0,0 @@
|
||||
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<ShareprofitMerchantMemberRelation> 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<ShareprofitMerchantMemberRelation> list = shareprofitMerchantMemberRelationService.selectShareprofitMerchantMemberRelationList(shareprofitMerchantMemberRelation);
|
||||
ExcelUtil<ShareprofitMerchantMemberRelation> util = new ExcelUtil<ShareprofitMerchantMemberRelation>(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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user