Compare commits
9 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
398a5396b7 | 20 hours ago |
|
|
d17f9a619d | 5 days ago |
|
|
bd6fd00f80 | 5 days ago |
|
|
c8d16db586 | 5 days ago |
|
|
a587591c0f | 6 days ago |
|
|
73520984c4 | 6 days ago |
|
|
7de4b04ccf | 6 days ago |
|
|
45786be492 | 7 days ago |
|
|
96278505a8 | 1 week ago |
@ -0,0 +1,108 @@
|
||||
package com.ruoyi.web.controller.columns;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.system.domain.columns.SysTeacher;
|
||||
import com.ruoyi.system.service.columns.ISysTeacherService;
|
||||
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.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 员工信息Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-28
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/teacher")
|
||||
public class SysTeacherController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISysTeacherService sysTeacherService;
|
||||
|
||||
/**
|
||||
* 查询员工信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:teacher:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SysTeacher sysTeacher)
|
||||
{
|
||||
startPage();
|
||||
// sysTeacher.setTenantId("2");
|
||||
sysTeacher.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<SysTeacher> list = sysTeacherService.selectSysTeacherList(sysTeacher);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出员工信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:teacher:export')")
|
||||
@Log(title = "员工信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SysTeacher sysTeacher) throws IOException {
|
||||
List<SysTeacher> list = sysTeacherService.selectSysTeacherList(sysTeacher);
|
||||
ExcelUtil<SysTeacher> util = new ExcelUtil<SysTeacher>(SysTeacher.class);
|
||||
util.exportExcel(response, list, "员工信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取员工信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:teacher:query')")
|
||||
@GetMapping(value = "/{userId}")
|
||||
public AjaxResult getInfo(@PathVariable("userId") Long userId)
|
||||
{
|
||||
return AjaxResult.success(sysTeacherService.selectSysTeacherByUserId(userId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增员工信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:teacher:add')")
|
||||
@Log(title = "员工信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SysTeacher sysTeacher)
|
||||
{
|
||||
return toAjax(sysTeacherService.insertSysTeacher(sysTeacher));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改员工信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:teacher:edit')")
|
||||
@Log(title = "员工信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SysTeacher sysTeacher)
|
||||
{
|
||||
return toAjax(sysTeacherService.updateSysTeacher(sysTeacher));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除员工信息
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
public AjaxResult remove( @RequestBody Long[] ids) {
|
||||
{
|
||||
return toAjax(sysTeacherService.deleteSysTeacherByUserIds(ids));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,111 @@
|
||||
package com.ruoyi.web.controller.columns;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.system.domain.columns.YjAppreciate;
|
||||
import com.ruoyi.system.service.columns.IYjAppreciateService;
|
||||
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.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 瑜伽欣赏Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/appreciate")
|
||||
public class YjAppreciateController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IYjAppreciateService yjAppreciateService;
|
||||
|
||||
/**
|
||||
* 查询瑜伽欣赏列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:appreciate:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(YjAppreciate yjAppreciate)
|
||||
{
|
||||
startPage();
|
||||
yjAppreciate.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<YjAppreciate> list = yjAppreciateService.selectYjAppreciateList(yjAppreciate);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出瑜伽欣赏列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:appreciate:export')")
|
||||
@Log(title = "瑜伽欣赏", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, YjAppreciate yjAppreciate) throws IOException {
|
||||
List<YjAppreciate> list = yjAppreciateService.selectYjAppreciateList(yjAppreciate);
|
||||
ExcelUtil<YjAppreciate> util = new ExcelUtil<YjAppreciate>(YjAppreciate.class);
|
||||
util.exportExcel(response, list, "瑜伽欣赏数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取瑜伽欣赏详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:appreciate:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
|
||||
return AjaxResult.success(yjAppreciateService.selectYjAppreciateById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增瑜伽欣赏
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:appreciate:add')")
|
||||
@Log(title = "瑜伽欣赏", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody YjAppreciate yjAppreciate)
|
||||
{
|
||||
yjAppreciate.setId(IdWorker.get32UUID());
|
||||
return toAjax(yjAppreciateService.insertYjAppreciate(yjAppreciate));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改瑜伽欣赏
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:appreciate:edit')")
|
||||
@Log(title = "瑜伽欣赏", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody YjAppreciate yjAppreciate)
|
||||
{
|
||||
return toAjax(yjAppreciateService.updateYjAppreciate(yjAppreciate));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除瑜伽欣赏
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:appreciate:remove')")
|
||||
@Log(title = "瑜伽欣赏", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
return toAjax(yjAppreciateService.deleteYjAppreciateByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,110 @@
|
||||
package com.ruoyi.web.controller.columns;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.system.domain.columns.YjHealthy;
|
||||
import com.ruoyi.system.service.columns.IYjHealthyService;
|
||||
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.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 健康饮食Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/healthy")
|
||||
public class YjHealthyController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IYjHealthyService yjHealthyService;
|
||||
|
||||
/**
|
||||
* 查询健康饮食列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:healthy:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(YjHealthy yjHealthy)
|
||||
{
|
||||
startPage();
|
||||
yjHealthy.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<YjHealthy> list = yjHealthyService.selectYjHealthyList(yjHealthy);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出健康饮食列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:healthy:export')")
|
||||
@Log(title = "健康饮食", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, YjHealthy yjHealthy) throws IOException {
|
||||
List<YjHealthy> list = yjHealthyService.selectYjHealthyList(yjHealthy);
|
||||
ExcelUtil<YjHealthy> util = new ExcelUtil<YjHealthy>(YjHealthy.class);
|
||||
util.exportExcel(response, list, "健康饮食数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取健康饮食详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:healthy:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return AjaxResult.success(yjHealthyService.selectYjHealthyById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增健康饮食
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:healthy:add')")
|
||||
@Log(title = "健康饮食", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody YjHealthy yjHealthy)
|
||||
{
|
||||
yjHealthy.setId(IdWorker.get32UUID());
|
||||
return toAjax(yjHealthyService.insertYjHealthy(yjHealthy));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改健康饮食
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:healthy:edit')")
|
||||
@Log(title = "健康饮食", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody YjHealthy yjHealthy)
|
||||
{
|
||||
return toAjax(yjHealthyService.updateYjHealthy(yjHealthy));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除健康饮食
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:healthy:remove')")
|
||||
@Log(title = "健康饮食", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
return toAjax(yjHealthyService.deleteYjHealthyByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,129 @@
|
||||
package com.ruoyi.web.controller.columns;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||
import com.ruoyi.common.core.domain.entity.SysDept;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.system.domain.columns.YjInherit;
|
||||
import com.ruoyi.system.service.ISysDeptService;
|
||||
import com.ruoyi.system.service.columns.IYjInheritService;
|
||||
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.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 瑜伽传承Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/inherit")
|
||||
public class YjInheritController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IYjInheritService yjInheritService;
|
||||
|
||||
|
||||
@Autowired
|
||||
private ISysDeptService iSysDeptService;
|
||||
|
||||
|
||||
|
||||
@PostMapping("/getBase")
|
||||
public AjaxResult getBae()
|
||||
{
|
||||
SysDept sysDept =new SysDept();
|
||||
sysDept.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<SysDept> sysDepts = iSysDeptService.selectDeptList(sysDept);
|
||||
return AjaxResult.success(sysDepts);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询瑜伽传承列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:inherit:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(YjInherit yjInherit)
|
||||
{
|
||||
startPage();
|
||||
yjInherit.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<YjInherit> list = yjInheritService.selectYjInheritList(yjInherit);
|
||||
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出瑜伽传承列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:inherit:export')")
|
||||
@Log(title = "瑜伽传承", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, YjInherit yjInherit) throws IOException {
|
||||
List<YjInherit> list = yjInheritService.selectYjInheritList(yjInherit);
|
||||
ExcelUtil<YjInherit> util = new ExcelUtil<YjInherit>(YjInherit.class);
|
||||
util.exportExcel(response, list, "瑜伽传承数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取瑜伽传承详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:inherit:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return AjaxResult.success(yjInheritService.selectYjInheritById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增瑜伽传承
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:inherit:add')")
|
||||
@Log(title = "瑜伽传承", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody YjInherit yjInherit)
|
||||
{
|
||||
|
||||
yjInherit.setId(IdWorker.get32UUID());
|
||||
return toAjax(yjInheritService.insertYjInherit(yjInherit));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改瑜伽传承
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:inherit:edit')")
|
||||
@Log(title = "瑜伽传承", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody YjInherit yjInherit)
|
||||
{
|
||||
return toAjax(yjInheritService.updateYjInherit(yjInherit));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除瑜伽传承
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:inherit:remove')")
|
||||
@Log(title = "瑜伽传承", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
return toAjax(yjInheritService.deleteYjInheritByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,111 @@
|
||||
package com.ruoyi.web.controller.columns;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.system.domain.columns.YjPracticeMoments;
|
||||
import com.ruoyi.system.service.columns.IYjPracticeMomentsService;
|
||||
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.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/moments")
|
||||
public class YjPracticeMomentsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IYjPracticeMomentsService yjPracticeMomentsService;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:moments:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(YjPracticeMoments yjPracticeMoments)
|
||||
{
|
||||
startPage();
|
||||
yjPracticeMoments.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<YjPracticeMoments> list = yjPracticeMomentsService.selectYjPracticeMomentsList(yjPracticeMoments);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出【请填写功能名称】列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:moments:export')")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, YjPracticeMoments yjPracticeMoments) throws IOException {
|
||||
List<YjPracticeMoments> list = yjPracticeMomentsService.selectYjPracticeMomentsList(yjPracticeMoments);
|
||||
ExcelUtil<YjPracticeMoments> util = new ExcelUtil<YjPracticeMoments>(YjPracticeMoments.class);
|
||||
util.exportExcel(response, list, "【请填写功能名称】数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取【请填写功能名称】详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:moments:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return AjaxResult.success(yjPracticeMomentsService.selectYjPracticeMomentsById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:moments:add')")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody YjPracticeMoments yjPracticeMoments)
|
||||
{
|
||||
|
||||
yjPracticeMoments.setId(IdWorker.get32UUID());
|
||||
return toAjax(yjPracticeMomentsService.insertYjPracticeMoments(yjPracticeMoments));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:moments:edit')")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody YjPracticeMoments yjPracticeMoments)
|
||||
{
|
||||
return toAjax(yjPracticeMomentsService.updateYjPracticeMoments(yjPracticeMoments));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:moments:remove')")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
return toAjax(yjPracticeMomentsService.deleteYjPracticeMomentsByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,113 @@
|
||||
package com.ruoyi.web.controller.columns;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.system.domain.columns.YjSense;
|
||||
import com.ruoyi.system.service.columns.IYjSenseService;
|
||||
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.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 瑜伽常识Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/sense")
|
||||
public class YjSenseController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IYjSenseService yjSenseService;
|
||||
|
||||
/**
|
||||
* 查询瑜伽常识列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sense:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(YjSense yjSense)
|
||||
{
|
||||
startPage();
|
||||
//Long nowTenantId = SecurityUtils.getLoginUser().getNowTenantId();
|
||||
yjSense.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<YjSense> list = yjSenseService.selectYjSenseList(yjSense);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出瑜伽常识列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sense:export')")
|
||||
@Log(title = "瑜伽常识", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, YjSense yjSense) throws IOException {
|
||||
List<YjSense> list = yjSenseService.selectYjSenseList(yjSense);
|
||||
ExcelUtil<YjSense> util = new ExcelUtil<YjSense>(YjSense.class);
|
||||
util.exportExcel(response, list, "瑜伽常识数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取瑜伽常识详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sense:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return AjaxResult.success(yjSenseService.selectYjSenseById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增瑜伽常识
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sense:add')")
|
||||
@Log(title = "瑜伽常识", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody YjSense yjSense)
|
||||
{
|
||||
yjSense.setId(IdWorker.get32UUID());
|
||||
return toAjax(
|
||||
|
||||
yjSenseService.insertYjSense(yjSense));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改瑜伽常识
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sense:edit')")
|
||||
@Log(title = "瑜伽常识", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody YjSense yjSense)
|
||||
{
|
||||
return toAjax(yjSenseService.updateYjSense(yjSense));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除瑜伽常识
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sense:remove')")
|
||||
@Log(title = "瑜伽常识", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
return toAjax(yjSenseService.deleteYjSenseByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,108 @@
|
||||
package com.ruoyi.web.controller.columns;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.system.domain.columns.YjStore;
|
||||
import com.ruoyi.system.service.columns.IYjStoreService;
|
||||
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.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 门店Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/store")
|
||||
public class YjStoreController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IYjStoreService yjStoreService;
|
||||
|
||||
/**
|
||||
* 查询门店列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:store:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(YjStore yjStore)
|
||||
{
|
||||
startPage();
|
||||
yjStore.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<YjStore> list = yjStoreService.selectYjStoreList(yjStore);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出门店列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:store:export')")
|
||||
@Log(title = "门店", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, YjStore yjStore) throws IOException {
|
||||
List<YjStore> list = yjStoreService.selectYjStoreList(yjStore);
|
||||
ExcelUtil<YjStore> util = new ExcelUtil<YjStore>(YjStore.class);
|
||||
util.exportExcel(response, list, "门店数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取门店详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:store:query')")
|
||||
@GetMapping(value = "/{deptId}")
|
||||
public AjaxResult getInfo(@PathVariable("deptId") Long deptId)
|
||||
{
|
||||
return AjaxResult.success(yjStoreService.selectYjStoreByDeptId(deptId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增门店
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:store:add')")
|
||||
@Log(title = "门店", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody YjStore yjStore)
|
||||
{
|
||||
return toAjax(yjStoreService.insertYjStore(yjStore));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改门店
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:store:edit')")
|
||||
@Log(title = "门店", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody YjStore yjStore)
|
||||
{
|
||||
return toAjax(yjStoreService.updateYjStore(yjStore));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除门店
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:store:remove')")
|
||||
@Log(title = "门店", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{deptIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] deptIds)
|
||||
{
|
||||
return toAjax(yjStoreService.deleteYjStoreByDeptIds(deptIds));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,86 @@
|
||||
package com.ruoyi.web.controller.mall;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.mall.domain.Brand;
|
||||
import com.ruoyi.mall.domain.query.BrandQuery;
|
||||
import com.ruoyi.mall.service.BrandService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageImpl;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 品牌管理Controller
|
||||
*/
|
||||
@Api(description ="品牌管理接口列表")
|
||||
@RestController
|
||||
@RequestMapping("/pms/brand")
|
||||
public class BrandController extends BaseController {
|
||||
@Autowired
|
||||
private BrandService service;
|
||||
|
||||
@ApiOperation("查询品牌管理列表")
|
||||
@PreAuthorize("@ss.hasPermi('pms:brand:list')")
|
||||
@PostMapping("/list")
|
||||
public ResponseEntity<Page<Brand>> list(@RequestBody BrandQuery query, Pageable page) {
|
||||
List<Brand> list = service.selectList(query, page);
|
||||
return ResponseEntity.ok(new PageImpl<>(list, page, ((com.github.pagehelper.Page)list).getTotal()));
|
||||
}
|
||||
@ApiOperation("所有品牌管理列表")
|
||||
@PreAuthorize("@ss.hasPermi('pms:brand:list')")
|
||||
@PostMapping("/all")
|
||||
public ResponseEntity<List<Brand>> all(@RequestBody BrandQuery query) {
|
||||
return ResponseEntity.ok(service.selectList(query, null));
|
||||
}
|
||||
|
||||
@ApiOperation("导出品牌管理列表")
|
||||
@PreAuthorize("@ss.hasPermi('pms:brand:export')")
|
||||
@Log(title = "品牌管理", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public ResponseEntity<String> export(BrandQuery query) {
|
||||
// List<Brand> list = service.selectList(query, null);
|
||||
// ExcelUtil<BrandVO> util = new ExcelUtil<>(BrandVO.class);
|
||||
// return ResponseEntity.ok(util.writeExcel(convert.dos2vos(list), "品牌管理数据"));
|
||||
return null;
|
||||
}
|
||||
|
||||
@ApiOperation("获取品牌管理详细信息")
|
||||
@PreAuthorize("@ss.hasPermi('pms:brand:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public ResponseEntity<Brand> getInfo(@PathVariable("id") Long id) {
|
||||
return ResponseEntity.ok(service.selectById(id));
|
||||
}
|
||||
|
||||
@ApiOperation("新增品牌管理")
|
||||
@PreAuthorize("@ss.hasPermi('pms:brand:add')")
|
||||
@Log(title = "品牌管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public ResponseEntity<Integer> add(@RequestBody Brand brand) {
|
||||
return ResponseEntity.ok(service.insert(brand));
|
||||
}
|
||||
|
||||
@ApiOperation("修改品牌管理")
|
||||
@PreAuthorize("@ss.hasPermi('pms:brand:edit')")
|
||||
@Log(title = "品牌管理", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public ResponseEntity<Integer> edit(@RequestBody Brand brand) {
|
||||
return ResponseEntity.ok(service.update(brand));
|
||||
}
|
||||
|
||||
@ApiOperation("删除品牌管理")
|
||||
@PreAuthorize("@ss.hasPermi('pms:brand:remove')")
|
||||
@Log(title = "品牌管理", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{id}")
|
||||
public ResponseEntity<Integer> remove(@PathVariable Long id) {
|
||||
return ResponseEntity.ok(service.deleteById(id));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
package com.ruoyi.web.controller.mall;
|
||||
|
||||
|
||||
import com.ruoyi.mall.domain.query.GoodsStatisticsQuery;
|
||||
import com.ruoyi.mall.domain.query.OrderStatisticsQuery;
|
||||
import com.ruoyi.mall.domain.vo.OrderAndAftersaleStatisticsVO;
|
||||
import com.ruoyi.mall.domain.vo.OrderStatisticsVO;
|
||||
import com.ruoyi.mall.domain.vo.ProductTopVO;
|
||||
import com.ruoyi.mall.service.IndexStatisticsService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Slf4j
|
||||
@Api(tags = "管理端,首页统计数据接口")
|
||||
@RestController
|
||||
@RequestMapping("/dev/statistics/index")
|
||||
public class IndexStatisticsManagerController {
|
||||
|
||||
/**
|
||||
* 首页统计
|
||||
*/
|
||||
@Autowired
|
||||
private IndexStatisticsService indexStatisticsService;
|
||||
|
||||
@ApiOperation(value = "获取首页查询热卖商品TOP10")
|
||||
@GetMapping("/goodsStatistics")
|
||||
public ResponseEntity<List<ProductTopVO>> goodsStatistics(@Validated GoodsStatisticsQuery goodsStatisticsQuery) {
|
||||
|
||||
return ResponseEntity.ok(indexStatisticsService.goodsStatistics(goodsStatisticsQuery));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "订单与售后单统计")
|
||||
@GetMapping("/order/aftersale/statistics")
|
||||
public ResponseEntity<OrderAndAftersaleStatisticsVO> orderAndAftersaleStatistics(){
|
||||
return ResponseEntity.ok(indexStatisticsService.orderAndAftersaleStatistics());
|
||||
}
|
||||
|
||||
@ApiOperation(value = "订单信息")
|
||||
@PostMapping("/orderStatistics")
|
||||
public ResponseEntity<List<OrderStatisticsVO>> orderStatistics(@RequestBody OrderStatisticsQuery param) {
|
||||
return ResponseEntity.ok(indexStatisticsService.orderStatistics(param));
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,71 @@
|
||||
package com.ruoyi.web.controller.mall;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.mall.domain.ProductCategory;
|
||||
import com.ruoyi.mall.domain.query.ProductCategoryQuery;
|
||||
import com.ruoyi.mall.domain.vo.ProductCategoryVO;
|
||||
import com.ruoyi.mall.service.ProductCategoryService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品分类Controller
|
||||
*
|
||||
* @author
|
||||
* @date 2022-11-28
|
||||
*/
|
||||
@Api(description ="商品分类接口列表")
|
||||
@RestController
|
||||
@RequestMapping("/pms/productCategory")
|
||||
public class ProductCategoryController extends BaseController {
|
||||
@Autowired
|
||||
private ProductCategoryService service;
|
||||
|
||||
|
||||
@ApiOperation("查询商品分类列表")
|
||||
@PreAuthorize("@ss.hasPermi('pms:productCategory:list')")
|
||||
@PostMapping("/list")
|
||||
public ResponseEntity<List<ProductCategoryVO>> list(@RequestBody ProductCategoryQuery query) {
|
||||
List<ProductCategoryVO> list = service.selectList(query, null);
|
||||
return ResponseEntity.ok(list);
|
||||
}
|
||||
|
||||
@ApiOperation("获取商品分类详细信息")
|
||||
@PreAuthorize("@ss.hasPermi('pms:productCategory:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public ResponseEntity<ProductCategory> getInfo(@PathVariable("id") Long id) {
|
||||
return ResponseEntity.ok(service.selectById(id));
|
||||
}
|
||||
|
||||
@ApiOperation("新增商品分类")
|
||||
@PreAuthorize("@ss.hasPermi('pms:productCategory:add')")
|
||||
@Log(title = "商品分类", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public ResponseEntity<Integer> add(@RequestBody ProductCategory productCategory) {
|
||||
return ResponseEntity.ok(service.insert(productCategory));
|
||||
}
|
||||
|
||||
@ApiOperation("修改商品分类")
|
||||
@PreAuthorize("@ss.hasPermi('pms:productCategory:edit')")
|
||||
@Log(title = "商品分类", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public ResponseEntity<Integer> edit(@RequestBody ProductCategory productCategory) {
|
||||
return ResponseEntity.ok(service.update(productCategory));
|
||||
}
|
||||
|
||||
@ApiOperation("删除商品分类")
|
||||
@PreAuthorize("@ss.hasPermi('pms:productCategory:remove')")
|
||||
@Log(title = "商品分类", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{id}")
|
||||
public ResponseEntity<Integer> remove(@PathVariable Long id) {
|
||||
return ResponseEntity.ok(service.deleteById(id));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,96 @@
|
||||
package com.ruoyi.web.controller.mall;
|
||||
|
||||
import cn.xluobo.business.sc.course.domain.req.ReqSearchScCourse;
|
||||
import cn.xluobo.business.sc.course.domain.resp.course.RespSearchCourse;
|
||||
import cn.xluobo.business.sc.course.service.IScCourseService;
|
||||
import cn.xluobo.core.page.RespPage;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.mall.domain.Product;
|
||||
import com.ruoyi.mall.domain.query.ProductQuery;
|
||||
import com.ruoyi.mall.domain.vo.ProductVO;
|
||||
import com.ruoyi.mall.service.ProductService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageImpl;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品信息Controller
|
||||
*
|
||||
* @author zcc
|
||||
* @date 2022-11-28
|
||||
*/
|
||||
@Api(description ="商品信息接口列表")
|
||||
@RestController
|
||||
@RequestMapping("/pms/product")
|
||||
public class ProductController extends BaseController {
|
||||
@Autowired
|
||||
private ProductService service;
|
||||
@Autowired
|
||||
private IScCourseService courseService;
|
||||
|
||||
@ApiOperation("查询商品信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('pms:product:list')")
|
||||
@PostMapping("/list")
|
||||
public ResponseEntity<Page<Product>> list(@RequestBody ProductQuery query, Pageable page) {
|
||||
// service.getIds(query);
|
||||
List<Product> list = service.selectList(query, page);
|
||||
return ResponseEntity.ok(new PageImpl<>(list, page, ((com.github.pagehelper.Page)list).getTotal()));
|
||||
}
|
||||
|
||||
@ApiOperation("导出商品信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('pms:product:export')")
|
||||
@Log(title = "商品信息", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public ResponseEntity<String> export(ProductQuery query) {
|
||||
// List<Product> list = service.selectList(query, null);
|
||||
// ExcelUtil<ProductVO> util = new ExcelUtil<>(ProductVO.class);
|
||||
// return ResponseEntity.ok(util.writeExcel(convert.dos2vos(list), "商品信息数据"));
|
||||
return null;
|
||||
}
|
||||
|
||||
@ApiOperation("获取商品信息详细信息")
|
||||
@PreAuthorize("@ss.hasPermi('pms:product:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public ResponseEntity<ProductVO> getInfo(@PathVariable("id") Long id) {
|
||||
return ResponseEntity.ok(service.selectById(id));
|
||||
}
|
||||
|
||||
@ApiOperation("新增商品信息")
|
||||
@PreAuthorize("@ss.hasPermi('pms:product:add')")
|
||||
@Log(title = "商品信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public ResponseEntity<Integer> add(@RequestBody ProductVO product) {
|
||||
return ResponseEntity.ok(service.insert(product));
|
||||
}
|
||||
|
||||
@ApiOperation("修改商品信息")
|
||||
@PreAuthorize("@ss.hasPermi('pms:product:edit')")
|
||||
@Log(title = "商品信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public ResponseEntity<Integer> edit(@RequestBody ProductVO product) {
|
||||
return ResponseEntity.ok(service.update(product));
|
||||
}
|
||||
|
||||
@ApiOperation("删除商品信息")
|
||||
@PreAuthorize("@ss.hasPermi('pms:product:remove')")
|
||||
@Log(title = "商品信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{id}")
|
||||
public ResponseEntity<Integer> remove(@PathVariable Long id) {
|
||||
return ResponseEntity.ok(service.deleteById(id));
|
||||
}
|
||||
|
||||
@PostMapping("/courseList")
|
||||
public ResponseEntity<RespPage<RespSearchCourse>> listCourseForProduct(@RequestBody ReqSearchScCourse query){
|
||||
return ResponseEntity.ok(courseService.searchCourse(query));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,92 @@
|
||||
package com.ruoyi.web.controller.system;
|
||||
|
||||
|
||||
import com.ruoyi.common.core.domain.RestResponse;
|
||||
import com.ruoyi.system.domain.SysTenant;
|
||||
import com.ruoyi.system.domain.vo.ReqBusinessAddTenant;
|
||||
import com.ruoyi.system.domain.vo.ReqSearchSysTenant;
|
||||
import com.ruoyi.system.service.SysTenantService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 租户信息 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2019-11-06
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/tenant")
|
||||
public class SysTenantController {
|
||||
|
||||
@Autowired
|
||||
private SysTenantService sysTenantService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param reqSearchSysTenant
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list/searchList")
|
||||
public RestResponse searchList(ReqSearchSysTenant reqSearchSysTenant) {
|
||||
return sysTenantService.searchList(reqSearchSysTenant);
|
||||
}
|
||||
|
||||
/**
|
||||
* 前端select
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list/treeSelect")
|
||||
public RestResponse treeSelect() {
|
||||
return sysTenantService.treeSelect();
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*
|
||||
* @param tenantId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/info/detailById/{tenantId}")
|
||||
public RestResponse detailById(@PathVariable("tenantId") Long tenantId) {
|
||||
return sysTenantService.detailById(tenantId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param reqBusinessAddTenant
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/add/addTenant")
|
||||
public RestResponse addSysTenant(@RequestBody ReqBusinessAddTenant reqBusinessAddTenant) {
|
||||
return sysTenantService.addTenant(reqBusinessAddTenant);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param sysTenant
|
||||
* @return
|
||||
*/
|
||||
@PutMapping("/update/updateTenant")
|
||||
public RestResponse updateTenant(@RequestBody SysTenant sysTenant) {
|
||||
return sysTenantService.updateTenant(sysTenant);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param tenantIds
|
||||
* @return
|
||||
*/
|
||||
@DeleteMapping("/delete/deleteById/{tenantIds}")
|
||||
public RestResponse deleteById(@PathVariable("tenantIds") String[] tenantIds) {
|
||||
return sysTenantService.deleteById(tenantIds);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package com.ruoyi.mall.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseAudit;
|
||||
import lombok.Data;
|
||||
/**
|
||||
* 品牌管理对象 mall_brand
|
||||
*
|
||||
* @author
|
||||
*/
|
||||
|
||||
@Data
|
||||
@TableName("mall_brand")
|
||||
public class Brand extends BaseAudit {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
private Long id;
|
||||
|
||||
|
||||
@Excel(name = "NAME")
|
||||
private String name;
|
||||
|
||||
|
||||
@Excel(name = "SORT")
|
||||
private Integer sort;
|
||||
|
||||
|
||||
@Excel(name = "SHOW_STATUS")
|
||||
private Integer showStatus;
|
||||
|
||||
|
||||
@Excel(name = "品牌logo")
|
||||
private String logo;
|
||||
|
||||
private Long storeId;
|
||||
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.ruoyi.mall.domain.query;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 品牌管理 查询 对象
|
||||
*
|
||||
* @author
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class BrandQuery {
|
||||
|
||||
private String nameLike;
|
||||
|
||||
|
||||
private Integer sort;
|
||||
|
||||
|
||||
private Integer showStatus;
|
||||
|
||||
|
||||
private String logo;
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.ruoyi.mall.domain.vo;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseAudit;
|
||||
import lombok.Data;
|
||||
/**
|
||||
* 品牌管理 数据视图对象
|
||||
*
|
||||
* @author zcc
|
||||
*/
|
||||
@Data
|
||||
public class BrandVO extends BaseAudit {
|
||||
/** ID */
|
||||
private Long id;
|
||||
/** NAME */
|
||||
@Excel(name = "NAME")
|
||||
private String name;
|
||||
/** SORT */
|
||||
@Excel(name = "SORT")
|
||||
private Integer sort;
|
||||
/** SHOW_STATUS */
|
||||
@Excel(name = "SHOW_STATUS")
|
||||
private Integer showStatus;
|
||||
/** 品牌logo */
|
||||
@Excel(name = "品牌logo")
|
||||
private String logo;
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.ruoyi.mall.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
public class OrderAndAftersaleStatisticsVO {
|
||||
/** 待处理售后 */
|
||||
private Integer pendingAftersaleCount;
|
||||
/** 处理中售后 */
|
||||
private Integer processingAftersaleCount;
|
||||
/** 待发货 */
|
||||
private Integer waitDeliveredCount;
|
||||
/** 已发货 */
|
||||
private Integer todayHasDeliveredCount;
|
||||
/** 订单数 */
|
||||
private Integer todayOrderCount;
|
||||
/** 成交额 */
|
||||
private BigDecimal todayTransactionAmount;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.mall.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class OrderStatisticsVO {
|
||||
|
||||
private String date;
|
||||
//订单笔数
|
||||
private Double orderCount;
|
||||
//订单金额
|
||||
private Double orderAmount;
|
||||
private Double numPaidOrders;
|
||||
private Double numPendingOrders;
|
||||
private Double numRefundOrders;
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package com.ruoyi.mall.domain.vo;
|
||||
|
||||
import com.ruoyi.mall.domain.Brand;
|
||||
import com.ruoyi.mall.domain.Product;
|
||||
import com.ruoyi.mall.domain.Sku;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ProductDetailVO {
|
||||
private Product product;
|
||||
private List<Sku> skus;
|
||||
private Brand brand;
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
package com.ruoyi.mall.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ProductTopVO {
|
||||
|
||||
private String productName;
|
||||
private int totalSales;
|
||||
private String pic;
|
||||
private String spData;
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.ruoyi.mall.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.mall.domain.Aftersale;
|
||||
import com.ruoyi.mall.domain.vo.OrderAndAftersaleStatisticsVO;
|
||||
|
||||
public interface AftersaleMapper extends BaseMapper<Aftersale> {
|
||||
|
||||
|
||||
OrderAndAftersaleStatisticsVO statPendingAndProcessing();
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.ruoyi.mall.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.mall.domain.Brand;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 品牌管理Mapper接口
|
||||
*
|
||||
* @author zcc
|
||||
*/
|
||||
public interface BrandMapper extends BaseMapper<Brand> {
|
||||
/**
|
||||
* 查询品牌管理列表
|
||||
*
|
||||
* @param brand 品牌管理
|
||||
* @return 品牌管理集合
|
||||
*/
|
||||
List<Brand> selectByEntity(Brand brand);
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.ruoyi.mall.mapper;
|
||||
|
||||
|
||||
import com.ruoyi.mall.domain.query.GoodsStatisticsQuery;
|
||||
import com.ruoyi.mall.domain.query.OrderStatisticsQuery;
|
||||
import com.ruoyi.mall.domain.vo.OrderStatisticsVO;
|
||||
import com.ruoyi.mall.domain.vo.ProductTopVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IndexStatisticsMapper {
|
||||
|
||||
List<ProductTopVO> goodsSkuStatistics(GoodsStatisticsQuery goodsStatisticsQuery);
|
||||
|
||||
List<ProductTopVO> goodsStatistics(GoodsStatisticsQuery goodsStatisticsQuery);
|
||||
List<OrderStatisticsVO> orderStatistics(OrderStatisticsQuery param);
|
||||
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.mall.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.mall.domain.Order;
|
||||
import com.ruoyi.mall.domain.vo.OrderAndAftersaleStatisticsVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
public interface OrderMapper extends BaseMapper<Order> {
|
||||
|
||||
|
||||
Integer statWaitDelivered();
|
||||
OrderAndAftersaleStatisticsVO statTodayData(@Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);
|
||||
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.ruoyi.mall.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.mall.domain.ProductCategory;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品分类Mapper接口
|
||||
*
|
||||
* @author zcc
|
||||
*/
|
||||
public interface ProductCategoryMapper extends BaseMapper<ProductCategory> {
|
||||
/**
|
||||
* 查询商品分类列表
|
||||
*
|
||||
* @param productCategory 商品分类
|
||||
* @return 商品分类集合
|
||||
*/
|
||||
List<ProductCategory> selectByEntity(ProductCategory productCategory);
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.ruoyi.mall.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.mall.domain.Product;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品信息Mapper接口
|
||||
*
|
||||
* @author zcc
|
||||
*/
|
||||
public interface ProductMapper extends BaseMapper<Product> {
|
||||
/**
|
||||
* 查询商品信息列表
|
||||
*
|
||||
* @param product 商品信息
|
||||
* @return 商品信息集合
|
||||
*/
|
||||
List<Product> selectByEntity(Product product);
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.ruoyi.mall.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.mall.domain.Sku;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* sku信息Mapper接口
|
||||
*
|
||||
* @author zcc
|
||||
*/
|
||||
public interface SkuMapper extends BaseMapper<Sku> {
|
||||
/**
|
||||
* 查询sku信息列表
|
||||
*
|
||||
* @param sku sku信息
|
||||
* @return sku信息集合
|
||||
*/
|
||||
List<Sku> selectByEntity(Sku sku);
|
||||
|
||||
int updateStockById(@Param("skuId")Long skuId, @Param("optDate")LocalDateTime optDate, @Param("quantity")Integer quantity);
|
||||
}
|
||||
@ -0,0 +1,103 @@
|
||||
package com.ruoyi.mall.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.mall.domain.Brand;
|
||||
import com.ruoyi.mall.domain.query.BrandQuery;
|
||||
import com.ruoyi.mall.mapper.BrandMapper;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 品牌管理Service业务层处理
|
||||
*
|
||||
*
|
||||
* @author zcc
|
||||
*/
|
||||
@Service
|
||||
public class BrandService {
|
||||
@Autowired
|
||||
private BrandMapper brandMapper;
|
||||
|
||||
/**
|
||||
* 查询品牌管理
|
||||
*
|
||||
* @param id 品牌管理主键
|
||||
* @return 品牌管理
|
||||
*/
|
||||
public Brand selectById(Long id) {
|
||||
return brandMapper.selectById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询品牌管理列表
|
||||
*
|
||||
* @param query 查询条件
|
||||
* @param page 分页条件
|
||||
* @return 品牌管理
|
||||
*/
|
||||
public List<Brand> selectList(BrandQuery query, Pageable page) {
|
||||
if (page != null) {
|
||||
PageHelper.startPage(page.getPageNumber() + 1, page.getPageSize());
|
||||
}
|
||||
QueryWrapper<Brand> qw = new QueryWrapper<>();
|
||||
String nameLike = query.getNameLike();
|
||||
if (!StringUtils.isEmpty(nameLike)) {
|
||||
qw.like("name", nameLike);
|
||||
}
|
||||
Integer sort = query.getSort();
|
||||
if (sort != null) {
|
||||
qw.eq("sort", sort);
|
||||
}
|
||||
Integer showStatus = query.getShowStatus();
|
||||
if (showStatus != null) {
|
||||
qw.eq("show_status", showStatus);
|
||||
}
|
||||
String logo = query.getLogo();
|
||||
if (!StringUtils.isEmpty(logo)) {
|
||||
qw.eq("logo", logo);
|
||||
}
|
||||
qw.eq("store_id", SecurityUtils.getDeptId());
|
||||
qw.orderByAsc("sort");
|
||||
|
||||
return brandMapper.selectList(qw);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增品牌管理
|
||||
*
|
||||
* @param brand 品牌管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insert(Brand brand) {
|
||||
brand.setCreateTime(LocalDateTime.now());
|
||||
brand.setStoreId(SecurityUtils.getDeptId());
|
||||
return brandMapper.insert(brand);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改品牌管理
|
||||
*
|
||||
* @param brand 品牌管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int update(Brand brand) {
|
||||
return brandMapper.updateById(brand);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除品牌管理信息
|
||||
*
|
||||
* @param id 品牌管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteById(Long id) {
|
||||
return brandMapper.deleteById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
package com.ruoyi.mall.service;
|
||||
|
||||
import com.ruoyi.mall.domain.query.GoodsStatisticsQuery;
|
||||
import com.ruoyi.mall.domain.query.OrderStatisticsQuery;
|
||||
import com.ruoyi.mall.domain.vo.OrderAndAftersaleStatisticsVO;
|
||||
import com.ruoyi.mall.domain.vo.OrderStatisticsVO;
|
||||
import com.ruoyi.mall.domain.vo.ProductTopVO;
|
||||
import com.ruoyi.mall.mapper.AftersaleMapper;
|
||||
import com.ruoyi.mall.mapper.IndexStatisticsMapper;
|
||||
import com.ruoyi.mall.mapper.OrderMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 管理端,首页统计数据Service业务层处理
|
||||
|
||||
*/
|
||||
@Service
|
||||
public class IndexStatisticsService {
|
||||
@Autowired
|
||||
private AftersaleMapper aftersaleMapper;
|
||||
@Autowired
|
||||
private OrderMapper orderMapper;
|
||||
@Autowired
|
||||
private IndexStatisticsMapper indexStatisticsMapper;
|
||||
|
||||
public List<ProductTopVO> goodsStatistics(GoodsStatisticsQuery goodsStatisticsQuery) {
|
||||
if (goodsStatisticsQuery.getStatType() == 1){
|
||||
return indexStatisticsMapper.goodsSkuStatistics(goodsStatisticsQuery);
|
||||
}else {
|
||||
return indexStatisticsMapper.goodsStatistics(goodsStatisticsQuery);
|
||||
}
|
||||
}
|
||||
|
||||
public OrderAndAftersaleStatisticsVO orderAndAftersaleStatistics() {
|
||||
//统计售后
|
||||
OrderAndAftersaleStatisticsVO vo = aftersaleMapper.statPendingAndProcessing();
|
||||
//统计未发货数
|
||||
vo.setWaitDeliveredCount(orderMapper.statWaitDelivered());
|
||||
//统计今日订单数,成交金额,发货数
|
||||
LocalDateTime startTime = LocalDateTime.of(LocalDate.now(), LocalTime.MIN);
|
||||
LocalDateTime endTime = LocalDateTime.of(LocalDate.now(), LocalTime.MAX);
|
||||
OrderAndAftersaleStatisticsVO todayData = orderMapper.statTodayData(startTime, endTime);
|
||||
vo.setTodayOrderCount(todayData.getTodayOrderCount());
|
||||
vo.setTodayHasDeliveredCount(todayData.getTodayHasDeliveredCount());
|
||||
vo.setTodayTransactionAmount(todayData.getTodayTransactionAmount());
|
||||
return vo;
|
||||
}
|
||||
|
||||
public List<OrderStatisticsVO> orderStatistics(OrderStatisticsQuery param) {
|
||||
return indexStatisticsMapper.orderStatistics(param);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
package com.ruoyi.system.domain.columns;
|
||||
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 员工信息对象 sys_teacher
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-28
|
||||
*/
|
||||
@Data
|
||||
public class SysTeacher extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 员工id */
|
||||
private Long userId;
|
||||
|
||||
/** 老师名称 */
|
||||
@Excel(name = "老师名称")
|
||||
private String teacherName;
|
||||
|
||||
/** 头像 */
|
||||
@Excel(name = "头像")
|
||||
private String avatarImg;
|
||||
|
||||
/** 教练风采简介 */
|
||||
@Excel(name = "教练风采简介")
|
||||
private String intro;
|
||||
|
||||
/** 教练风采内容 */
|
||||
@Excel(name = "教练风采内容")
|
||||
private String context;
|
||||
|
||||
/** 教练风采相册 */
|
||||
@Excel(name = "教练风采相册")
|
||||
private String url;
|
||||
|
||||
/** 教练风采简短介绍 */
|
||||
@Excel(name = "教练风采简短介绍")
|
||||
private String introduce;
|
||||
|
||||
/** 教练风采状态0 不展示 1展示 */
|
||||
@Excel(name = "教练风采状态0 不展示 1展示")
|
||||
private Integer releases;
|
||||
|
||||
/** 排序 */
|
||||
@Excel(name = "排序")
|
||||
private Long sort;
|
||||
|
||||
private String tenantId;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,157 @@
|
||||
package com.ruoyi.system.domain.columns;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 瑜伽欣赏对象 yj_appreciate
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Data
|
||||
public class YjAppreciate extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private String id;
|
||||
|
||||
/** 标题 */
|
||||
@Excel(name = "标题")
|
||||
private String title;
|
||||
|
||||
/** 封面 */
|
||||
@Excel(name = "封面")
|
||||
private String image;
|
||||
|
||||
/** 阅读量 */
|
||||
@Excel(name = "阅读量")
|
||||
private Long readNum;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
|
||||
/** 内容(富文本) */
|
||||
@Excel(name = "内容", readConverterExp = "富=文本")
|
||||
private String content;
|
||||
|
||||
/** 是否展示 */
|
||||
@Excel(name = "是否展示")
|
||||
private Integer status;
|
||||
|
||||
/** 修改时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date modifyTime;
|
||||
|
||||
/** 门店/校区id */
|
||||
@Excel(name = "门店/校区id")
|
||||
private Long deptId;
|
||||
|
||||
private String tenantId;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
public void setImage(String image)
|
||||
{
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public String getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
public void setReadNum(Long readNum)
|
||||
{
|
||||
this.readNum = readNum;
|
||||
}
|
||||
|
||||
public Long getReadNum()
|
||||
{
|
||||
return readNum;
|
||||
}
|
||||
public void setStartTime(Date startTime)
|
||||
{
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getStartTime()
|
||||
{
|
||||
return startTime;
|
||||
}
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setModifyTime(Date modifyTime)
|
||||
{
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getModifyTime()
|
||||
{
|
||||
return modifyTime;
|
||||
}
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("title", getTitle())
|
||||
.append("image", getImage())
|
||||
.append("readNum", getReadNum())
|
||||
.append("startTime", getStartTime())
|
||||
.append("content", getContent())
|
||||
.append("status", getStatus())
|
||||
.append("modifyTime", getModifyTime())
|
||||
.append("deptId", getDeptId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,158 @@
|
||||
package com.ruoyi.system.domain.columns;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 健康饮食对象 yj_healthy
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Data
|
||||
public class YjHealthy extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private String id;
|
||||
|
||||
/** 标题 */
|
||||
@Excel(name = "标题")
|
||||
private String title;
|
||||
|
||||
/** 封面 */
|
||||
@Excel(name = "封面")
|
||||
private String image;
|
||||
|
||||
/** 阅读量 */
|
||||
@Excel(name = "阅读量")
|
||||
private Long readNum;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
|
||||
/** 内容(富文本) */
|
||||
@Excel(name = "内容", readConverterExp = "富=文本")
|
||||
private String content;
|
||||
|
||||
/** 是否展示 */
|
||||
@Excel(name = "是否展示")
|
||||
private Integer status;
|
||||
|
||||
/** 修改时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date modifyTime;
|
||||
|
||||
/** 门店/校区id */
|
||||
@Excel(name = "门店/校区id")
|
||||
private Long deptId;
|
||||
|
||||
|
||||
private String tenantId;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
public void setImage(String image)
|
||||
{
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public String getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
public void setReadNum(Long readNum)
|
||||
{
|
||||
this.readNum = readNum;
|
||||
}
|
||||
|
||||
public Long getReadNum()
|
||||
{
|
||||
return readNum;
|
||||
}
|
||||
public void setStartTime(Date startTime)
|
||||
{
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getStartTime()
|
||||
{
|
||||
return startTime;
|
||||
}
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setModifyTime(Date modifyTime)
|
||||
{
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getModifyTime()
|
||||
{
|
||||
return modifyTime;
|
||||
}
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("title", getTitle())
|
||||
.append("image", getImage())
|
||||
.append("readNum", getReadNum())
|
||||
.append("startTime", getStartTime())
|
||||
.append("content", getContent())
|
||||
.append("status", getStatus())
|
||||
.append("modifyTime", getModifyTime())
|
||||
.append("deptId", getDeptId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,161 @@
|
||||
package com.ruoyi.system.domain.columns;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 瑜伽传承对象 yj_inherit
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Data
|
||||
public class YjInherit extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
|
||||
private String id;
|
||||
|
||||
/** 标题 */
|
||||
@Excel(name = "标题")
|
||||
private String title;
|
||||
|
||||
/** 封面 */
|
||||
@Excel(name = "封面")
|
||||
private String image;
|
||||
|
||||
/** 阅读量 */
|
||||
@Excel(name = "阅读量")
|
||||
private Long readNum;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
|
||||
/** 内容(富文本) */
|
||||
@Excel(name = "内容", readConverterExp = "富=文本")
|
||||
private String content;
|
||||
|
||||
/** 是否展示 */
|
||||
@Excel(name = "是否展示")
|
||||
private Integer status;
|
||||
|
||||
/** 修改时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date modifyTime;
|
||||
|
||||
/** 门店/校区id */
|
||||
@Excel(name = "门店/校区id")
|
||||
private Long deptId;
|
||||
|
||||
private String tenantId;
|
||||
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
public void setImage(String image)
|
||||
{
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public String getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
public void setReadNum(Long readNum)
|
||||
{
|
||||
this.readNum = readNum;
|
||||
}
|
||||
|
||||
public Long getReadNum()
|
||||
{
|
||||
return readNum;
|
||||
}
|
||||
public void setStartTime(Date startTime)
|
||||
{
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getStartTime()
|
||||
{
|
||||
return startTime;
|
||||
}
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setModifyTime(Date modifyTime)
|
||||
{
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getModifyTime()
|
||||
{
|
||||
return modifyTime;
|
||||
}
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("title", getTitle())
|
||||
.append("image", getImage())
|
||||
.append("readNum", getReadNum())
|
||||
.append("startTime", getStartTime())
|
||||
.append("content", getContent())
|
||||
.append("status", getStatus())
|
||||
.append("modifyTime", getModifyTime())
|
||||
.append("deptId", getDeptId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,156 @@
|
||||
package com.ruoyi.system.domain.columns;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】对象 yj_practice_moments
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Data
|
||||
public class YjPracticeMoments extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private String id;
|
||||
|
||||
/** 标题 */
|
||||
@Excel(name = "标题")
|
||||
private String title;
|
||||
|
||||
/** 封面 */
|
||||
@Excel(name = "封面")
|
||||
private String image;
|
||||
|
||||
/** 阅读量 */
|
||||
@Excel(name = "阅读量")
|
||||
private Long readNum;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
|
||||
/** 内容(富文本) */
|
||||
@Excel(name = "内容", readConverterExp = "富=文本")
|
||||
private String content;
|
||||
|
||||
/** 是否展示 */
|
||||
@Excel(name = "是否展示")
|
||||
private Integer status;
|
||||
|
||||
/** 修改时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date modifyTime;
|
||||
|
||||
/** 门店/校区id */
|
||||
@Excel(name = "门店/校区id")
|
||||
private Long deptId;
|
||||
|
||||
private String tenantId;
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
public void setImage(String image)
|
||||
{
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public String getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
public void setReadNum(Long readNum)
|
||||
{
|
||||
this.readNum = readNum;
|
||||
}
|
||||
|
||||
public Long getReadNum()
|
||||
{
|
||||
return readNum;
|
||||
}
|
||||
public void setStartTime(Date startTime)
|
||||
{
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getStartTime()
|
||||
{
|
||||
return startTime;
|
||||
}
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setModifyTime(Date modifyTime)
|
||||
{
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getModifyTime()
|
||||
{
|
||||
return modifyTime;
|
||||
}
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("title", getTitle())
|
||||
.append("image", getImage())
|
||||
.append("readNum", getReadNum())
|
||||
.append("startTime", getStartTime())
|
||||
.append("content", getContent())
|
||||
.append("status", getStatus())
|
||||
.append("modifyTime", getModifyTime())
|
||||
.append("deptId", getDeptId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,158 @@
|
||||
package com.ruoyi.system.domain.columns;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 瑜伽常识对象 yj_sense
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Data
|
||||
public class YjSense extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private String id;
|
||||
|
||||
/** 标题 */
|
||||
@Excel(name = "标题")
|
||||
private String title;
|
||||
|
||||
/** 封面 */
|
||||
@Excel(name = "封面")
|
||||
private String image;
|
||||
|
||||
/** 阅读量 */
|
||||
@Excel(name = "阅读量")
|
||||
private Long readNum;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
|
||||
/** 内容(富文本) */
|
||||
@Excel(name = "内容", readConverterExp = "富=文本")
|
||||
private String content;
|
||||
|
||||
/** 是否展示 */
|
||||
@Excel(name = "是否展示")
|
||||
private Integer status;
|
||||
|
||||
/** 修改时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date modifyTime;
|
||||
|
||||
/** 门店/校区id */
|
||||
@Excel(name = "门店/校区id")
|
||||
private Long deptId;
|
||||
|
||||
|
||||
private String tenantId;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
public void setImage(String image)
|
||||
{
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public String getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
public void setReadNum(Long readNum)
|
||||
{
|
||||
this.readNum = readNum;
|
||||
}
|
||||
|
||||
public Long getReadNum()
|
||||
{
|
||||
return readNum;
|
||||
}
|
||||
public void setStartTime(Date startTime)
|
||||
{
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getStartTime()
|
||||
{
|
||||
return startTime;
|
||||
}
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setModifyTime(Date modifyTime)
|
||||
{
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getModifyTime()
|
||||
{
|
||||
return modifyTime;
|
||||
}
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("title", getTitle())
|
||||
.append("image", getImage())
|
||||
.append("readNum", getReadNum())
|
||||
.append("startTime", getStartTime())
|
||||
.append("content", getContent())
|
||||
.append("status", getStatus())
|
||||
.append("modifyTime", getModifyTime())
|
||||
.append("deptId", getDeptId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,127 @@
|
||||
package com.ruoyi.system.domain.columns;
|
||||
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 门店对象 yj_store
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-31
|
||||
*/
|
||||
@Data
|
||||
public class YjStore extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String banner;
|
||||
|
||||
/** 门店名称 */
|
||||
@Excel(name = "门店名称")
|
||||
private String storeName;
|
||||
|
||||
/** 地址 */
|
||||
@Excel(name = "地址")
|
||||
private String address;
|
||||
|
||||
/** 门店电话 */
|
||||
@Excel(name = "门店电话")
|
||||
private String phone;
|
||||
|
||||
/** 创始人/店长简介(富文本) */
|
||||
@Excel(name = "创始人/店长简介", readConverterExp = "富=文本")
|
||||
private String founder;
|
||||
|
||||
/** 企业/门店简介(富文本) */
|
||||
@Excel(name = "企业/门店简介", readConverterExp = "富=文本")
|
||||
private String profile;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long deptId;
|
||||
|
||||
private String tenantId;
|
||||
|
||||
private String deptName;
|
||||
|
||||
public void setBanner(String banner)
|
||||
{
|
||||
this.banner = banner;
|
||||
}
|
||||
|
||||
public String getBanner()
|
||||
{
|
||||
return banner;
|
||||
}
|
||||
public void setStoreName(String storeName)
|
||||
{
|
||||
this.storeName = storeName;
|
||||
}
|
||||
|
||||
public String getStoreName()
|
||||
{
|
||||
return storeName;
|
||||
}
|
||||
public void setAddress(String address)
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
public void setPhone(String phone)
|
||||
{
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getPhone()
|
||||
{
|
||||
return phone;
|
||||
}
|
||||
public void setFounder(String founder)
|
||||
{
|
||||
this.founder = founder;
|
||||
}
|
||||
|
||||
public String getFounder()
|
||||
{
|
||||
return founder;
|
||||
}
|
||||
public void setProfile(String profile)
|
||||
{
|
||||
this.profile = profile;
|
||||
}
|
||||
|
||||
public String getProfile()
|
||||
{
|
||||
return profile;
|
||||
}
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("banner", getBanner())
|
||||
.append("storeName", getStoreName())
|
||||
.append("address", getAddress())
|
||||
.append("phone", getPhone())
|
||||
.append("founder", getFounder())
|
||||
.append("profile", getProfile())
|
||||
.append("deptId", getDeptId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.ruoyi.system.domain.vo;
|
||||
|
||||
import com.ruoyi.common.page.ReqPageBase;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class ReqSearchSysTenant extends ReqPageBase implements Serializable {
|
||||
|
||||
private String tenantName;
|
||||
private String contactName;
|
||||
private String inUse;
|
||||
//过期开始时间
|
||||
private String beginTime;
|
||||
//过期结束
|
||||
private String endTime;
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.system.domain.SysTenant;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 租户信息 Mapper 接口
|
||||
* </p>
|
||||
*/
|
||||
public interface SysTenantMapper extends BaseMapper<SysTenant> {
|
||||
|
||||
/**
|
||||
* 用户租户列表
|
||||
*
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
List<SysTenant> selectUserTenantList(@Param("userId")String userId, @Param("limitTenantUserId")String limitTenantUserId);
|
||||
|
||||
/**
|
||||
* 在用用户所属的租户
|
||||
*
|
||||
* @param userId
|
||||
* @param tenantId
|
||||
* @return
|
||||
*/
|
||||
SysTenant selectInUseUserTenant(@Param("userId")String userId, @Param("tenantId")String tenantId);
|
||||
|
||||
int tenantHaveContent(String tenantId);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper.colums;
|
||||
|
||||
import com.ruoyi.system.domain.columns.SysTeacher;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 员工信息Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-28
|
||||
*/
|
||||
public interface SysTeacherMapper
|
||||
{
|
||||
/**
|
||||
* 查询员工信息
|
||||
*
|
||||
* @param userId 员工信息主键
|
||||
* @return 员工信息
|
||||
*/
|
||||
public SysTeacher selectSysTeacherByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 查询员工信息列表
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 员工信息集合
|
||||
*/
|
||||
public List<SysTeacher> selectSysTeacherList(SysTeacher sysTeacher);
|
||||
|
||||
/**
|
||||
* 新增员工信息
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysTeacher(SysTeacher sysTeacher);
|
||||
|
||||
/**
|
||||
* 修改员工信息
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysTeacher(SysTeacher sysTeacher);
|
||||
|
||||
/**
|
||||
* 删除员工信息
|
||||
*
|
||||
* @param userId 员工信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 批量删除员工信息
|
||||
*
|
||||
* @param userIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherByUserIds(Long[] userIds);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper.colums;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjAppreciate;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 瑜伽欣赏Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface YjAppreciateMapper
|
||||
{
|
||||
/**
|
||||
* 查询瑜伽欣赏
|
||||
*
|
||||
* @param id 瑜伽欣赏主键
|
||||
* @return 瑜伽欣赏
|
||||
*/
|
||||
public YjAppreciate selectYjAppreciateById(String id);
|
||||
|
||||
/**
|
||||
* 查询瑜伽欣赏列表
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 瑜伽欣赏集合
|
||||
*/
|
||||
public List<YjAppreciate> selectYjAppreciateList(YjAppreciate yjAppreciate);
|
||||
|
||||
/**
|
||||
* 新增瑜伽欣赏
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjAppreciate(YjAppreciate yjAppreciate);
|
||||
|
||||
/**
|
||||
* 修改瑜伽欣赏
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjAppreciate(YjAppreciate yjAppreciate);
|
||||
|
||||
/**
|
||||
* 删除瑜伽欣赏
|
||||
*
|
||||
* @param id 瑜伽欣赏主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjAppreciateById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽欣赏
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjAppreciateByIds(String[] ids);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper.colums;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjHealthy;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 健康饮食Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface YjHealthyMapper
|
||||
{
|
||||
/**
|
||||
* 查询健康饮食
|
||||
*
|
||||
* @param id 健康饮食主键
|
||||
* @return 健康饮食
|
||||
*/
|
||||
public YjHealthy selectYjHealthyById(String id);
|
||||
|
||||
/**
|
||||
* 查询健康饮食列表
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 健康饮食集合
|
||||
*/
|
||||
public List<YjHealthy> selectYjHealthyList(YjHealthy yjHealthy);
|
||||
|
||||
/**
|
||||
* 新增健康饮食
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjHealthy(YjHealthy yjHealthy);
|
||||
|
||||
/**
|
||||
* 修改健康饮食
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjHealthy(YjHealthy yjHealthy);
|
||||
|
||||
/**
|
||||
* 删除健康饮食
|
||||
*
|
||||
* @param id 健康饮食主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjHealthyById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除健康饮食
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjHealthyByIds(String[] ids);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper.colums;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjInherit;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 瑜伽传承Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface YjInheritMapper
|
||||
{
|
||||
/**
|
||||
* 查询瑜伽传承
|
||||
*
|
||||
* @param id 瑜伽传承主键
|
||||
* @return 瑜伽传承
|
||||
*/
|
||||
public YjInherit selectYjInheritById(String id);
|
||||
|
||||
/**
|
||||
* 查询瑜伽传承列表
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 瑜伽传承集合
|
||||
*/
|
||||
public List<YjInherit> selectYjInheritList(YjInherit yjInherit);
|
||||
|
||||
/**
|
||||
* 新增瑜伽传承
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjInherit(YjInherit yjInherit);
|
||||
|
||||
/**
|
||||
* 修改瑜伽传承
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjInherit(YjInherit yjInherit);
|
||||
|
||||
/**
|
||||
* 删除瑜伽传承
|
||||
*
|
||||
* @param id 瑜伽传承主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjInheritById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽传承
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjInheritByIds(String[] ids);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper.colums;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjPracticeMoments;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface YjPracticeMomentsMapper
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public YjPracticeMoments selectYjPracticeMomentsById(String id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<YjPracticeMoments> selectYjPracticeMomentsList(YjPracticeMoments yjPracticeMoments);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjPracticeMoments(YjPracticeMoments yjPracticeMoments);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjPracticeMoments(YjPracticeMoments yjPracticeMoments);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjPracticeMomentsById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjPracticeMomentsByIds(String[] ids);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper.colums;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjSense;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 瑜伽常识Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface YjSenseMapper
|
||||
{
|
||||
/**
|
||||
* 查询瑜伽常识
|
||||
*
|
||||
* @param id 瑜伽常识主键
|
||||
* @return 瑜伽常识
|
||||
*/
|
||||
public YjSense selectYjSenseById(String id);
|
||||
|
||||
/**
|
||||
* 查询瑜伽常识列表
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 瑜伽常识集合
|
||||
*/
|
||||
public List<YjSense> selectYjSenseList(YjSense yjSense);
|
||||
|
||||
/**
|
||||
* 新增瑜伽常识
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjSense(YjSense yjSense);
|
||||
|
||||
/**
|
||||
* 修改瑜伽常识
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjSense(YjSense yjSense);
|
||||
|
||||
/**
|
||||
* 删除瑜伽常识
|
||||
*
|
||||
* @param id 瑜伽常识主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjSenseById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽常识
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjSenseByIds(String[] ids);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper.colums;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjStore;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 门店Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-31
|
||||
*/
|
||||
public interface YjStoreMapper
|
||||
{
|
||||
/**
|
||||
* 查询门店
|
||||
*
|
||||
* @param deptId 门店主键
|
||||
* @return 门店
|
||||
*/
|
||||
public YjStore selectYjStoreByDeptId(Long deptId);
|
||||
|
||||
/**
|
||||
* 查询门店列表
|
||||
*
|
||||
* @param yjStore 门店
|
||||
* @return 门店集合
|
||||
*/
|
||||
public List<YjStore> selectYjStoreList(YjStore yjStore);
|
||||
|
||||
/**
|
||||
* 新增门店
|
||||
*
|
||||
* @param yjStore 门店
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjStore(YjStore yjStore);
|
||||
|
||||
/**
|
||||
* 修改门店
|
||||
*
|
||||
* @param yjStore 门店
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjStore(YjStore yjStore);
|
||||
|
||||
/**
|
||||
* 删除门店
|
||||
*
|
||||
* @param deptId 门店主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjStoreByDeptId(Long deptId);
|
||||
|
||||
/**
|
||||
* 批量删除门店
|
||||
*
|
||||
* @param deptIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjStoreByDeptIds(Long[] deptIds);
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.common.core.domain.RestResponse;
|
||||
import com.ruoyi.system.domain.SysTenant;
|
||||
import com.ruoyi.system.domain.vo.ReqBusinessAddTenant;
|
||||
import com.ruoyi.system.domain.vo.ReqSearchSysTenant;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface SysTenantService extends IService<SysTenant> {
|
||||
|
||||
/**
|
||||
* 用户租户列表
|
||||
* @param userId
|
||||
* @param limitTenantUserId
|
||||
* @return
|
||||
*/
|
||||
List<SysTenant> selectUserTenantList(String userId, String limitTenantUserId);
|
||||
|
||||
/**
|
||||
* 校验用户所属租户是否在用生效
|
||||
* @param userId
|
||||
* @param tenantId
|
||||
* @return
|
||||
*/
|
||||
boolean checkUserTenantInUse(String userId,String tenantId);
|
||||
|
||||
RestResponse searchList(ReqSearchSysTenant reqSearchSysTenant);
|
||||
RestResponse treeSelect();
|
||||
RestResponse detailById(Long tenantId);
|
||||
RestResponse addTenant(ReqBusinessAddTenant reqBusinessAddTenant);
|
||||
RestResponse updateTenant(SysTenant sysTenant);
|
||||
RestResponse deleteById(String[] tenantIds);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.service.columns;
|
||||
|
||||
import com.ruoyi.system.domain.columns.SysTeacher;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 员工信息Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-28
|
||||
*/
|
||||
public interface ISysTeacherService
|
||||
{
|
||||
/**
|
||||
* 查询员工信息
|
||||
*
|
||||
* @param userId 员工信息主键
|
||||
* @return 员工信息
|
||||
*/
|
||||
public SysTeacher selectSysTeacherByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 查询员工信息列表
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 员工信息集合
|
||||
*/
|
||||
public List<SysTeacher> selectSysTeacherList(SysTeacher sysTeacher);
|
||||
|
||||
/**
|
||||
* 新增员工信息
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysTeacher(SysTeacher sysTeacher);
|
||||
|
||||
/**
|
||||
* 修改员工信息
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysTeacher(SysTeacher sysTeacher);
|
||||
|
||||
/**
|
||||
* 批量删除员工信息
|
||||
*
|
||||
* @param userIds 需要删除的员工信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherByUserIds(Long[] userIds);
|
||||
|
||||
/**
|
||||
* 删除员工信息信息
|
||||
*
|
||||
* @param userId 员工信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherByUserId(Long userId);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.service.columns;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjAppreciate;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 瑜伽欣赏Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface IYjAppreciateService
|
||||
{
|
||||
/**
|
||||
* 查询瑜伽欣赏
|
||||
*
|
||||
* @param id 瑜伽欣赏主键
|
||||
* @return 瑜伽欣赏
|
||||
*/
|
||||
public YjAppreciate selectYjAppreciateById(String id);
|
||||
|
||||
/**
|
||||
* 查询瑜伽欣赏列表
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 瑜伽欣赏集合
|
||||
*/
|
||||
public List<YjAppreciate> selectYjAppreciateList(YjAppreciate yjAppreciate);
|
||||
|
||||
/**
|
||||
* 新增瑜伽欣赏
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjAppreciate(YjAppreciate yjAppreciate);
|
||||
|
||||
/**
|
||||
* 修改瑜伽欣赏
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjAppreciate(YjAppreciate yjAppreciate);
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽欣赏
|
||||
*
|
||||
* @param ids 需要删除的瑜伽欣赏主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjAppreciateByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除瑜伽欣赏信息
|
||||
*
|
||||
* @param id 瑜伽欣赏主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjAppreciateById(String id);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.service.columns;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjHealthy;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 健康饮食Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface IYjHealthyService
|
||||
{
|
||||
/**
|
||||
* 查询健康饮食
|
||||
*
|
||||
* @param id 健康饮食主键
|
||||
* @return 健康饮食
|
||||
*/
|
||||
public YjHealthy selectYjHealthyById(String id);
|
||||
|
||||
/**
|
||||
* 查询健康饮食列表
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 健康饮食集合
|
||||
*/
|
||||
public List<YjHealthy> selectYjHealthyList(YjHealthy yjHealthy);
|
||||
|
||||
/**
|
||||
* 新增健康饮食
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjHealthy(YjHealthy yjHealthy);
|
||||
|
||||
/**
|
||||
* 修改健康饮食
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjHealthy(YjHealthy yjHealthy);
|
||||
|
||||
/**
|
||||
* 批量删除健康饮食
|
||||
*
|
||||
* @param ids 需要删除的健康饮食主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjHealthyByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除健康饮食信息
|
||||
*
|
||||
* @param id 健康饮食主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjHealthyById(String id);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.service.columns;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjInherit;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 瑜伽传承Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface IYjInheritService
|
||||
{
|
||||
/**
|
||||
* 查询瑜伽传承
|
||||
*
|
||||
* @param id 瑜伽传承主键
|
||||
* @return 瑜伽传承
|
||||
*/
|
||||
public YjInherit selectYjInheritById(String id);
|
||||
|
||||
/**
|
||||
* 查询瑜伽传承列表
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 瑜伽传承集合
|
||||
*/
|
||||
public List<YjInherit> selectYjInheritList(YjInherit yjInherit);
|
||||
|
||||
/**
|
||||
* 新增瑜伽传承
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjInherit(YjInherit yjInherit);
|
||||
|
||||
/**
|
||||
* 修改瑜伽传承
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjInherit(YjInherit yjInherit);
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽传承
|
||||
*
|
||||
* @param ids 需要删除的瑜伽传承主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjInheritByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除瑜伽传承信息
|
||||
*
|
||||
* @param id 瑜伽传承主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjInheritById(String id);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.service.columns;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjPracticeMoments;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface IYjPracticeMomentsService
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public YjPracticeMoments selectYjPracticeMomentsById(String id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<YjPracticeMoments> selectYjPracticeMomentsList(YjPracticeMoments yjPracticeMoments);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjPracticeMoments(YjPracticeMoments yjPracticeMoments);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjPracticeMoments(YjPracticeMoments yjPracticeMoments);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjPracticeMomentsByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjPracticeMomentsById(String id);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.service.columns;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjSense;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 瑜伽常识Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface IYjSenseService
|
||||
{
|
||||
/**
|
||||
* 查询瑜伽常识
|
||||
*
|
||||
* @param id 瑜伽常识主键
|
||||
* @return 瑜伽常识
|
||||
*/
|
||||
public YjSense selectYjSenseById(String id);
|
||||
|
||||
/**
|
||||
* 查询瑜伽常识列表
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 瑜伽常识集合
|
||||
*/
|
||||
public List<YjSense> selectYjSenseList(YjSense yjSense);
|
||||
|
||||
/**
|
||||
* 新增瑜伽常识
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjSense(YjSense yjSense);
|
||||
|
||||
/**
|
||||
* 修改瑜伽常识
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjSense(YjSense yjSense);
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽常识
|
||||
*
|
||||
* @param ids 需要删除的瑜伽常识主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjSenseByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除瑜伽常识信息
|
||||
*
|
||||
* @param id 瑜伽常识主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjSenseById(String id);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.service.columns;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjStore;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 门店Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-31
|
||||
*/
|
||||
public interface IYjStoreService
|
||||
{
|
||||
/**
|
||||
* 查询门店
|
||||
*
|
||||
* @param deptId 门店主键
|
||||
* @return 门店
|
||||
*/
|
||||
public YjStore selectYjStoreByDeptId(Long deptId);
|
||||
|
||||
/**
|
||||
* 查询门店列表
|
||||
*
|
||||
* @param yjStore 门店
|
||||
* @return 门店集合
|
||||
*/
|
||||
public List<YjStore> selectYjStoreList(YjStore yjStore);
|
||||
|
||||
/**
|
||||
* 新增门店
|
||||
*
|
||||
* @param yjStore 门店
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjStore(YjStore yjStore);
|
||||
|
||||
/**
|
||||
* 修改门店
|
||||
*
|
||||
* @param yjStore 门店
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjStore(YjStore yjStore);
|
||||
|
||||
/**
|
||||
* 批量删除门店
|
||||
*
|
||||
* @param deptIds 需要删除的门店主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjStoreByDeptIds(Long[] deptIds);
|
||||
|
||||
/**
|
||||
* 删除门店信息
|
||||
*
|
||||
* @param deptId 门店主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjStoreByDeptId(Long deptId);
|
||||
}
|
||||
@ -0,0 +1,98 @@
|
||||
package com.ruoyi.system.service.columns.impl;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.system.domain.columns.SysTeacher;
|
||||
import com.ruoyi.system.mapper.colums.SysTeacherMapper;
|
||||
import com.ruoyi.system.service.columns.ISysTeacherService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 员工信息Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-28
|
||||
*/
|
||||
@Service
|
||||
public class SysTeacherServiceImpl implements ISysTeacherService
|
||||
{
|
||||
@Autowired
|
||||
private SysTeacherMapper sysTeacherMapper;
|
||||
|
||||
/**
|
||||
* 查询员工信息
|
||||
*
|
||||
* @param userId 员工信息主键
|
||||
* @return 员工信息
|
||||
*/
|
||||
@Override
|
||||
public SysTeacher selectSysTeacherByUserId(Long userId)
|
||||
{
|
||||
return sysTeacherMapper.selectSysTeacherByUserId(userId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询员工信息列表
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 员工信息
|
||||
*/
|
||||
@Override
|
||||
public List<SysTeacher> selectSysTeacherList(SysTeacher sysTeacher)
|
||||
{
|
||||
return sysTeacherMapper.selectSysTeacherList(sysTeacher);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增员工信息
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSysTeacher(SysTeacher sysTeacher)
|
||||
{
|
||||
sysTeacher.setCreateTime(LocalDateTime.now());
|
||||
return sysTeacherMapper.insertSysTeacher(sysTeacher);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改员工信息
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSysTeacher(SysTeacher sysTeacher)
|
||||
{
|
||||
sysTeacher.setUpdateTime(LocalDateTime.now());
|
||||
return sysTeacherMapper.updateSysTeacher(sysTeacher);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除员工信息
|
||||
*
|
||||
* @param userIds 需要删除的员工信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysTeacherByUserIds(Long[] userIds)
|
||||
{
|
||||
return sysTeacherMapper.deleteSysTeacherByUserIds(userIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除员工信息信息
|
||||
*
|
||||
* @param userId 员工信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysTeacherByUserId(Long userId)
|
||||
{
|
||||
return sysTeacherMapper.deleteSysTeacherByUserId(userId);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.system.service.columns.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjAppreciate;
|
||||
import com.ruoyi.system.mapper.colums.YjAppreciateMapper;
|
||||
import com.ruoyi.system.service.columns.IYjAppreciateService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 瑜伽欣赏Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Service
|
||||
public class YjAppreciateServiceImpl implements IYjAppreciateService
|
||||
{
|
||||
@Autowired
|
||||
private YjAppreciateMapper yjAppreciateMapper;
|
||||
|
||||
/**
|
||||
* 查询瑜伽欣赏
|
||||
*
|
||||
* @param id 瑜伽欣赏主键
|
||||
* @return 瑜伽欣赏
|
||||
*/
|
||||
@Override
|
||||
public YjAppreciate selectYjAppreciateById(String id)
|
||||
{
|
||||
return yjAppreciateMapper.selectYjAppreciateById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询瑜伽欣赏列表
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 瑜伽欣赏
|
||||
*/
|
||||
@Override
|
||||
public List<YjAppreciate> selectYjAppreciateList(YjAppreciate yjAppreciate)
|
||||
{
|
||||
return yjAppreciateMapper.selectYjAppreciateList(yjAppreciate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增瑜伽欣赏
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertYjAppreciate(YjAppreciate yjAppreciate)
|
||||
{
|
||||
return yjAppreciateMapper.insertYjAppreciate(yjAppreciate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改瑜伽欣赏
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateYjAppreciate(YjAppreciate yjAppreciate)
|
||||
{
|
||||
return yjAppreciateMapper.updateYjAppreciate(yjAppreciate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽欣赏
|
||||
*
|
||||
* @param ids 需要删除的瑜伽欣赏主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjAppreciateByIds(String[] ids)
|
||||
{
|
||||
return yjAppreciateMapper.deleteYjAppreciateByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除瑜伽欣赏信息
|
||||
*
|
||||
* @param id 瑜伽欣赏主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjAppreciateById(String id)
|
||||
{
|
||||
return yjAppreciateMapper.deleteYjAppreciateById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.system.service.columns.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjHealthy;
|
||||
import com.ruoyi.system.mapper.colums.YjHealthyMapper;
|
||||
import com.ruoyi.system.service.columns.IYjHealthyService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 健康饮食Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Service
|
||||
public class YjHealthyServiceImpl implements IYjHealthyService
|
||||
{
|
||||
@Autowired
|
||||
private YjHealthyMapper yjHealthyMapper;
|
||||
|
||||
/**
|
||||
* 查询健康饮食
|
||||
*
|
||||
* @param id 健康饮食主键
|
||||
* @return 健康饮食
|
||||
*/
|
||||
@Override
|
||||
public YjHealthy selectYjHealthyById(String id)
|
||||
{
|
||||
return yjHealthyMapper.selectYjHealthyById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询健康饮食列表
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 健康饮食
|
||||
*/
|
||||
@Override
|
||||
public List<YjHealthy> selectYjHealthyList(YjHealthy yjHealthy)
|
||||
{
|
||||
return yjHealthyMapper.selectYjHealthyList(yjHealthy);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增健康饮食
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertYjHealthy(YjHealthy yjHealthy)
|
||||
{
|
||||
return yjHealthyMapper.insertYjHealthy(yjHealthy);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改健康饮食
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateYjHealthy(YjHealthy yjHealthy)
|
||||
{
|
||||
return yjHealthyMapper.updateYjHealthy(yjHealthy);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除健康饮食
|
||||
*
|
||||
* @param ids 需要删除的健康饮食主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjHealthyByIds(String[] ids)
|
||||
{
|
||||
return yjHealthyMapper.deleteYjHealthyByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除健康饮食信息
|
||||
*
|
||||
* @param id 健康饮食主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjHealthyById(String id)
|
||||
{
|
||||
return yjHealthyMapper.deleteYjHealthyById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,94 @@
|
||||
package com.ruoyi.system.service.columns.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjInherit;
|
||||
import com.ruoyi.system.mapper.colums.YjInheritMapper;
|
||||
import com.ruoyi.system.service.columns.IYjInheritService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 瑜伽传承Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Service
|
||||
public class YjInheritServiceImpl implements IYjInheritService
|
||||
{
|
||||
@Autowired
|
||||
private YjInheritMapper yjInheritMapper;
|
||||
|
||||
/**
|
||||
* 查询瑜伽传承
|
||||
*
|
||||
* @param id 瑜伽传承主键
|
||||
* @return 瑜伽传承
|
||||
*/
|
||||
@Override
|
||||
public YjInherit selectYjInheritById(String id)
|
||||
{
|
||||
return yjInheritMapper.selectYjInheritById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询瑜伽传承列表
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 瑜伽传承
|
||||
*/
|
||||
@Override
|
||||
public List<YjInherit> selectYjInheritList(YjInherit yjInherit)
|
||||
{
|
||||
return yjInheritMapper.selectYjInheritList(yjInherit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增瑜伽传承
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertYjInherit(YjInherit yjInherit)
|
||||
{
|
||||
return yjInheritMapper.insertYjInherit(yjInherit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改瑜伽传承
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateYjInherit(YjInherit yjInherit)
|
||||
{
|
||||
return yjInheritMapper.updateYjInherit(yjInherit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽传承
|
||||
*
|
||||
* @param ids 需要删除的瑜伽传承主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjInheritByIds(String[] ids)
|
||||
{
|
||||
return yjInheritMapper.deleteYjInheritByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除瑜伽传承信息
|
||||
*
|
||||
* @param id 瑜伽传承主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjInheritById(String id)
|
||||
{
|
||||
return yjInheritMapper.deleteYjInheritById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.system.service.columns.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjPracticeMoments;
|
||||
import com.ruoyi.system.mapper.colums.YjPracticeMomentsMapper;
|
||||
import com.ruoyi.system.service.columns.IYjPracticeMomentsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Service
|
||||
public class YjPracticeMomentsServiceImpl implements IYjPracticeMomentsService
|
||||
{
|
||||
@Autowired
|
||||
private YjPracticeMomentsMapper yjPracticeMomentsMapper;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public YjPracticeMoments selectYjPracticeMomentsById(String id)
|
||||
{
|
||||
return yjPracticeMomentsMapper.selectYjPracticeMomentsById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public List<YjPracticeMoments> selectYjPracticeMomentsList(YjPracticeMoments yjPracticeMoments)
|
||||
{
|
||||
return yjPracticeMomentsMapper.selectYjPracticeMomentsList(yjPracticeMoments);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertYjPracticeMoments(YjPracticeMoments yjPracticeMoments)
|
||||
{
|
||||
return yjPracticeMomentsMapper.insertYjPracticeMoments(yjPracticeMoments);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateYjPracticeMoments(YjPracticeMoments yjPracticeMoments)
|
||||
{
|
||||
return yjPracticeMomentsMapper.updateYjPracticeMoments(yjPracticeMoments);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjPracticeMomentsByIds(String[] ids)
|
||||
{
|
||||
return yjPracticeMomentsMapper.deleteYjPracticeMomentsByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjPracticeMomentsById(String id)
|
||||
{
|
||||
return yjPracticeMomentsMapper.deleteYjPracticeMomentsById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.system.service.columns.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjSense;
|
||||
import com.ruoyi.system.mapper.colums.YjSenseMapper;
|
||||
import com.ruoyi.system.service.columns.IYjSenseService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 瑜伽常识Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Service
|
||||
public class YjSenseServiceImpl implements IYjSenseService
|
||||
{
|
||||
@Autowired
|
||||
private YjSenseMapper yjSenseMapper;
|
||||
|
||||
/**
|
||||
* 查询瑜伽常识
|
||||
*
|
||||
* @param id 瑜伽常识主键
|
||||
* @return 瑜伽常识
|
||||
*/
|
||||
@Override
|
||||
public YjSense selectYjSenseById(String id)
|
||||
{
|
||||
return yjSenseMapper.selectYjSenseById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询瑜伽常识列表
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 瑜伽常识
|
||||
*/
|
||||
@Override
|
||||
public List<YjSense> selectYjSenseList(YjSense yjSense)
|
||||
{
|
||||
return yjSenseMapper.selectYjSenseList(yjSense);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增瑜伽常识
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertYjSense(YjSense yjSense)
|
||||
{
|
||||
return yjSenseMapper.insertYjSense(yjSense);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改瑜伽常识
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateYjSense(YjSense yjSense)
|
||||
{
|
||||
return yjSenseMapper.updateYjSense(yjSense);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽常识
|
||||
*
|
||||
* @param ids 需要删除的瑜伽常识主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjSenseByIds(String[] ids)
|
||||
{
|
||||
return yjSenseMapper.deleteYjSenseByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除瑜伽常识信息
|
||||
*
|
||||
* @param id 瑜伽常识主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjSenseById(String id)
|
||||
{
|
||||
return yjSenseMapper.deleteYjSenseById(id);
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue