update 会员组查询接口

This commit is contained in:
2024-01-15 10:38:50 +08:00
parent d37d3612ce
commit af82fc164f
5 changed files with 83 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import com.jsowell.common.core.page.TableDataInfo;
import com.jsowell.common.enums.BusinessType;
import com.jsowell.common.util.poi.ExcelUtil;
import com.jsowell.pile.domain.MemberGroup;
import com.jsowell.pile.dto.MemberGroupDTO;
import com.jsowell.pile.service.MemberGroupService;
import com.jsowell.pile.vo.web.MemberGroupVO;
import org.springframework.beans.factory.annotation.Autowired;
@@ -89,4 +90,30 @@ public class MemberGroupController extends BaseController {
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(memberGroupService.deleteMemberGroupByIds(ids));
}
/**
* 会员组添加会员
*/
@PostMapping("/addMember")
public AjaxResult addMember(@RequestBody MemberGroupDTO dto) {
return toAjax(memberGroupService.addMember(dto));
}
/**
* 查询会员组中会员列表
*/
@PostMapping("/queryMemberList")
public TableDataInfo queryMemberList(@RequestBody MemberGroupDTO dto) {
startPage();
return getDataTable(memberGroupService.queryMemberList(dto));
}
/**
* 查询会员组的订单列表
*/
@PostMapping("/queryOrderList")
public TableDataInfo queryOrderList(@RequestBody MemberGroupDTO dto) {
startPage();
return getDataTable(memberGroupService.queryOrderList(dto));
}
}