diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/SysTeacherController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/SysTeacherController.java new file mode 100644 index 0000000..bb1ec7b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/SysTeacherController.java @@ -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 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 list = sysTeacherService.selectSysTeacherList(sysTeacher); + ExcelUtil util = new ExcelUtil(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)); + } + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjAppreciateController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjAppreciateController.java new file mode 100644 index 0000000..a9e7ca3 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjAppreciateController.java @@ -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 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 list = yjAppreciateService.selectYjAppreciateList(yjAppreciate); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjHealthyController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjHealthyController.java new file mode 100644 index 0000000..f1556e8 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjHealthyController.java @@ -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 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 list = yjHealthyService.selectYjHealthyList(yjHealthy); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjInheritController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjInheritController.java new file mode 100644 index 0000000..ca7ae6e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjInheritController.java @@ -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 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 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 list = yjInheritService.selectYjInheritList(yjInherit); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjPracticeMomentsController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjPracticeMomentsController.java new file mode 100644 index 0000000..c85ff51 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjPracticeMomentsController.java @@ -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 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 list = yjPracticeMomentsService.selectYjPracticeMomentsList(yjPracticeMoments); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjSenseController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjSenseController.java new file mode 100644 index 0000000..fae516e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjSenseController.java @@ -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 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 list = yjSenseService.selectYjSenseList(yjSense); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjStoreController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjStoreController.java new file mode 100644 index 0000000..7cc9ed1 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/columns/YjStoreController.java @@ -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 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 list = yjStoreService.selectYjStoreList(yjStore); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java index f1ce3ad..b684d96 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java @@ -44,7 +44,7 @@ public class CommonController @Operation(summary = "上传文件", description = "上传文件,上传后返回文件url") @PostMapping("/file/upload") public RestResponse uploadFile(@RequestParam("file") MultipartFile file) { - return new RestResponse().setData(fileService.uploadFile(file)); + return new RestResponse().setSuccess(true).setCode(200).setData(fileService.uploadFile(file)); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java index 5c0875d..e434779 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java @@ -60,6 +60,17 @@ public class SysUserController extends BaseController return getDataTable(list); } + /** + * 获取用户列表 + */ + @GetMapping("/listAll") + public TableDataInfo listAll(SysUser user) + { +// startPage(); + List list = userService.selectUserList(user); + return getDataTable(list); + } + @Log(title = "用户管理", businessType = BusinessType.EXPORT) @PreAuthorize("@ss.hasPermi('system:user:export')") @GetMapping("/export") diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index b0d8aaa..2a5fdc1 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -151,7 +151,7 @@ xss: # 过滤开关 enabled: true # 排除链接(多个用逗号分隔) - excludes: /system/notice + excludes: /system/notice,/system/teacher,/system/inherit,/system/appreciate,/system/healthy,/system/moments,/system/sense,/system/store # 匹配链接 urlPatterns: /system/*,/monitor/*,/tool/* extra: diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java index 0edae6c..9b4b60a 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java @@ -85,6 +85,7 @@ public class BaseController TableDataInfo rspData = new TableDataInfo(); rspData.setCode(HttpStatus.SUCCESS); rspData.setMsg("查询成功"); + System.out.println("list = " + list); rspData.setRows(list); rspData.setTotal(new PageInfo(list).getTotal()); return rspData; diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/RestResponse.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/RestResponse.java index 89895c0..3ead2e0 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/RestResponse.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/RestResponse.java @@ -12,6 +12,7 @@ public class RestResponse extends HashMap { RestResponse restResponse = new RestResponse(); restResponse.setSuccess(true); restResponse.setMessage(message); + restResponse.setCode(200); return restResponse; } @@ -27,7 +28,10 @@ public class RestResponse extends HashMap { if (success != null) put("success", success); return this; } - + public RestResponse setCode(Integer success) { + if (success != null) put("code", success); + return this; + } public RestResponse setMessage(String message) { if (message != null) put("message", message); return this; diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java index 476ed69..3460dbe 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java @@ -1,6 +1,7 @@ package com.ruoyi.common.core.domain.entity; import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Data; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; @@ -15,6 +16,7 @@ import java.util.List; * * @author ruoyi */ +@Data public class SysDept extends BaseEntity { private static final long serialVersionUID = 1L; @@ -53,6 +55,9 @@ public class SysDept extends BaseEntity /** 父部门名称 */ private String parentName; + // + private String tenantId; + /** 子部门 */ private List children = new ArrayList(); diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/db/SshTunnelConfig.java b/ruoyi-common/src/main/java/com/ruoyi/common/db/SshTunnelConfig.java index abf55a6..607a159 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/db/SshTunnelConfig.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/db/SshTunnelConfig.java @@ -11,21 +11,21 @@ import javax.annotation.PreDestroy; public class SshTunnelConfig { private Session session; - @Value("${ssh.host}") + //@Value("${ssh.host}") private String sshHost="62.234.183.14"; - @Value("${ssh.port}") + // @Value("${ssh.port}") private int sshPort=22; - @Value("${ssh.user}") + // @Value("${ssh.user}") private String sshUser="root"; - @Value("${ssh.identity}") - private String sshIdentity="E:/yoga-app-manager/private_key/runpeng20250915.pem"; + // @Value("${ssh.identity}") + private String sshIdentity="D:\\rpkj\\yoga-app-manager\\private_key\\runpeng20250915.pem"; - @Value("${ssh.remote.db.host}") + // @Value("${ssh.remote.db.host}") private String remoteDbHost="127.0.0.1"; - @Value("${ssh.local.port}") + // @Value("${ssh.local.port}") private int localPort=32768; - @Value("${ssh.remote.db.port}") + // @Value("${ssh.remote.db.port}") private int remoteDbPort=19116; public void createSshTunnel() throws Exception { diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/SysTeacher.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/SysTeacher.java new file mode 100644 index 0000000..6f08564 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/SysTeacher.java @@ -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; + + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjAppreciate.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjAppreciate.java new file mode 100644 index 0000000..ae15b57 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjAppreciate.java @@ -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(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjHealthy.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjHealthy.java new file mode 100644 index 0000000..b745357 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjHealthy.java @@ -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(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjInherit.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjInherit.java new file mode 100644 index 0000000..f3348c3 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjInherit.java @@ -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(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjPracticeMoments.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjPracticeMoments.java new file mode 100644 index 0000000..15a1af4 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjPracticeMoments.java @@ -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(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjSense.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjSense.java new file mode 100644 index 0000000..2e40e4d --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjSense.java @@ -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(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjStore.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjStore.java new file mode 100644 index 0000000..2a5bf12 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/columns/YjStore.java @@ -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(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/SysTeacherMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/SysTeacherMapper.java new file mode 100644 index 0000000..328227f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/SysTeacherMapper.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjAppreciateMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjAppreciateMapper.java new file mode 100644 index 0000000..47d8607 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjAppreciateMapper.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjHealthyMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjHealthyMapper.java new file mode 100644 index 0000000..e91cf60 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjHealthyMapper.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjInheritMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjInheritMapper.java new file mode 100644 index 0000000..c94e2fa --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjInheritMapper.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjPracticeMomentsMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjPracticeMomentsMapper.java new file mode 100644 index 0000000..641734d --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjPracticeMomentsMapper.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjSenseMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjSenseMapper.java new file mode 100644 index 0000000..6a5908c --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjSenseMapper.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjStoreMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjStoreMapper.java new file mode 100644 index 0000000..5d68678 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/colums/YjStoreMapper.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/ISysTeacherService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/ISysTeacherService.java new file mode 100644 index 0000000..387eed0 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/ISysTeacherService.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjAppreciateService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjAppreciateService.java new file mode 100644 index 0000000..e7465fd --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjAppreciateService.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjHealthyService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjHealthyService.java new file mode 100644 index 0000000..af4f53a --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjHealthyService.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjInheritService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjInheritService.java new file mode 100644 index 0000000..2e2eb3f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjInheritService.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjPracticeMomentsService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjPracticeMomentsService.java new file mode 100644 index 0000000..33b5a80 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjPracticeMomentsService.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjSenseService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjSenseService.java new file mode 100644 index 0000000..3b7ba27 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjSenseService.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjStoreService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjStoreService.java new file mode 100644 index 0000000..a39754d --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/IYjStoreService.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/SysTeacherServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/SysTeacherServiceImpl.java new file mode 100644 index 0000000..a69c7e3 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/SysTeacherServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjAppreciateServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjAppreciateServiceImpl.java new file mode 100644 index 0000000..5ba5904 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjAppreciateServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjHealthyServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjHealthyServiceImpl.java new file mode 100644 index 0000000..b05b4cb --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjHealthyServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjInheritServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjInheritServiceImpl.java new file mode 100644 index 0000000..bf76709 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjInheritServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjPracticeMomentsServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjPracticeMomentsServiceImpl.java new file mode 100644 index 0000000..c4236f7 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjPracticeMomentsServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjSenseServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjSenseServiceImpl.java new file mode 100644 index 0000000..d05cedd --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjSenseServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjStoreServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjStoreServiceImpl.java new file mode 100644 index 0000000..7df3915 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/columns/impl/YjStoreServiceImpl.java @@ -0,0 +1,95 @@ +package com.ruoyi.system.service.columns.impl; + +import java.util.List; + +import com.ruoyi.system.domain.columns.YjStore; +import com.ruoyi.system.mapper.colums.YjStoreMapper; +import com.ruoyi.system.service.columns.IYjStoreService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + + +/** + * 门店Service业务层处理 + * + * @author ruoyi + * @date 2025-10-31 + */ +@Service +public class YjStoreServiceImpl implements IYjStoreService +{ + @Autowired + private YjStoreMapper yjStoreMapper; + + /** + * 查询门店 + * + * @param deptId 门店主键 + * @return 门店 + */ + @Override + public YjStore selectYjStoreByDeptId(Long deptId) + { + return yjStoreMapper.selectYjStoreByDeptId(deptId); + } + + /** + * 查询门店列表 + * + * @param yjStore 门店 + * @return 门店 + */ + @Override + public List selectYjStoreList(YjStore yjStore) + { + return yjStoreMapper.selectYjStoreList(yjStore); + } + + /** + * 新增门店 + * + * @param yjStore 门店 + * @return 结果 + */ + @Override + public int insertYjStore(YjStore yjStore) + { + return yjStoreMapper.insertYjStore(yjStore); + } + + /** + * 修改门店 + * + * @param yjStore 门店 + * @return 结果 + */ + @Override + public int updateYjStore(YjStore yjStore) + { + return yjStoreMapper.updateYjStore(yjStore); + } + + /** + * 批量删除门店 + * + * @param deptIds 需要删除的门店主键 + * @return 结果 + */ + @Override + public int deleteYjStoreByDeptIds(Long[] deptIds) + { + return yjStoreMapper.deleteYjStoreByDeptIds(deptIds); + } + + /** + * 删除门店信息 + * + * @param deptId 门店主键 + * @return 结果 + */ + @Override + public int deleteYjStoreByDeptId(Long deptId) + { + return yjStoreMapper.deleteYjStoreByDeptId(deptId); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/colums/SysTeacherMapper.xml b/ruoyi-system/src/main/resources/mapper/colums/SysTeacherMapper.xml new file mode 100644 index 0000000..53424e3 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/colums/SysTeacherMapper.xml @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + select sys_teacher.user_id, teacher_name, avatar_img, intro, context, url, +introduce, releases, sort, sys_teacher.create_by, sys_teacher.create_time, sys_teacher.update_by, sys_teacher.update_time from sys_teacher join sys_user on + sys_teacher.user_id =sys_user.user_id + + + + + + + + insert into sys_teacher + + user_id, + teacher_name, + avatar_img, + intro, + context, + url, + +introduce, + releases, + sort, + create_by, + create_time, + update_by, + update_time, + + + #{userId}, + #{teacherName}, + #{avatarImg}, + #{intro}, + #{context}, + #{url}, + #{ +introduce}, + #{releases}, + #{sort}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update sys_teacher + + teacher_name = #{teacherName}, + avatar_img = #{avatarImg}, + intro = #{intro}, + context = #{context}, + url = #{url}, + +introduce = #{ +introduce}, + releases = #{releases}, + sort = #{sort}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where user_id = #{userId} + + + + delete from sys_teacher where user_id = #{userId} + + + + delete from sys_teacher where user_id in + + #{userId} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/colums/YjAppreciateMapper.xml b/ruoyi-system/src/main/resources/mapper/colums/YjAppreciateMapper.xml new file mode 100644 index 0000000..301c0c5 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/colums/YjAppreciateMapper.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + select + yj_appreciate.id, + yj_appreciate.title, + yj_appreciate.image, + yj_appreciate.read_num, + yj_appreciate.start_time, + yj_appreciate.content, + yj_appreciate.status, + yj_appreciate.modify_time, + yj_appreciate.dept_id + from yj_appreciate + left join sys_dept on yj_appreciate.dept_id = sys_dept.dept_id + + + + + + + + insert into yj_appreciate + + id, + title, + image, + read_num, + start_time, + content, + status, + modify_time, + dept_id, + + + #{id}, + #{title}, + #{image}, + #{readNum}, + #{startTime}, + #{content}, + #{status}, + #{modifyTime}, + #{deptId}, + + + + + update yj_appreciate + + title = #{title}, + image = #{image}, + read_num = #{readNum}, + start_time = #{startTime}, + content = #{content}, + status = #{status}, + modify_time = #{modifyTime}, + dept_id = #{deptId}, + + where id = #{id} + + + + delete from yj_appreciate where id = #{id} + + + + delete from yj_appreciate where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/colums/YjHealthyMapper.xml b/ruoyi-system/src/main/resources/mapper/colums/YjHealthyMapper.xml new file mode 100644 index 0000000..321141a --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/colums/YjHealthyMapper.xml @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + select + yj_healthy.id, + yj_healthy.title, + yj_healthy.image, + yj_healthy.read_num, + yj_healthy.start_time, + yj_healthy.content, + yj_healthy.status, + yj_healthy.modify_time, + yj_healthy.dept_id + from yj_healthy left join sys_dept on yj_healthy.dept_id = sys_dept.dept_id + + + + + + + + insert into yj_healthy + + id, + title, + image, + read_num, + start_time, + content, + status, + modify_time, + dept_id, + + + #{id}, + #{title}, + #{image}, + #{readNum}, + #{startTime}, + #{content}, + #{status}, + #{modifyTime}, + #{deptId}, + + + + + update yj_healthy + + title = #{title}, + image = #{image}, + read_num = #{readNum}, + start_time = #{startTime}, + content = #{content}, + status = #{status}, + modify_time = #{modifyTime}, + dept_id = #{deptId}, + + where yj_healthy.id = #{id} + + + + delete from yj_healthy where yj_healthy.id = #{id} + + + + delete from yj_healthy where yj_healthy.id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/colums/YjInheritMapper.xml b/ruoyi-system/src/main/resources/mapper/colums/YjInheritMapper.xml new file mode 100644 index 0000000..045bf88 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/colums/YjInheritMapper.xml @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + select + yj_inherit.id, + yj_inherit.title, + yj_inherit.image, + yj_inherit.read_num, + yj_inherit.start_time, + yj_inherit.content, + yj_inherit.status, + yj_inherit.modify_time, + yj_inherit.dept_id + from yj_inherit left join sys_dept on yj_inherit.dept_id = sys_dept.dept_id + + + + + + + + insert into yj_inherit + + id, + title, + image, + read_num, + start_time, + content, + status, + modify_time, + dept_id, + + + #{id}, + #{title}, + #{image}, + #{readNum}, + #{startTime}, + #{content}, + #{status}, + #{modifyTime}, + #{deptId}, + + + + + update yj_inherit + + title = #{title}, + image = #{image}, + read_num = #{readNum}, + start_time = #{startTime}, + content = #{content}, + status = #{status}, + modify_time = #{modifyTime}, + dept_id = #{deptId}, + + where id = #{id} + + + + delete from yj_inherit where id = #{id} + + + + delete from yj_inherit where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/colums/YjPracticeMomentsMapper.xml b/ruoyi-system/src/main/resources/mapper/colums/YjPracticeMomentsMapper.xml new file mode 100644 index 0000000..7f3e9ca --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/colums/YjPracticeMomentsMapper.xml @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + select + yj_practice_moments.id, + yj_practice_moments.title, + yj_practice_moments.image, + yj_practice_moments.read_num, + yj_practice_moments.start_time, + yj_practice_moments.content, + yj_practice_moments.status, + yj_practice_moments.modify_time, + yj_practice_moments.dept_id + from yj_practice_moments left join sys_dept on yj_practice_moments.dept_id = sys_dept.dept_id + + + + + + + + insert into yj_practice_moments + + id, + title, + image, + read_num, + start_time, + content, + status, + modify_time, + dept_id, + + + #{id}, + #{title}, + #{image}, + #{readNum}, + #{startTime}, + #{content}, + #{status}, + #{modifyTime}, + #{deptId}, + + + + + update yj_practice_moments + + title = #{title}, + image = #{image}, + read_num = #{readNum}, + start_time = #{startTime}, + content = #{content}, + status = #{status}, + modify_time = #{modifyTime}, + dept_id = #{deptId}, + + where yj_practice_moments.id = #{id} + + + + delete from yj_practice_moments where yj_practice_moments.id = #{id} + + + + delete from yj_practice_moments where yj_practice_moments.id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/colums/YjSenseMapper.xml b/ruoyi-system/src/main/resources/mapper/colums/YjSenseMapper.xml new file mode 100644 index 0000000..90b5888 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/colums/YjSenseMapper.xml @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + select + yj_sense.id, + yj_sense.title, + yj_sense.image, + yj_sense.read_num, + yj_sense.start_time, + yj_sense.content, + yj_sense.status, + yj_sense.modify_time, + yj_sense.dept_id + from yj_sense left join sys_dept on yj_sense.dept_id = sys_dept.dept_id + + + + + + + + insert into yj_sense + + id, + title, + image, + read_num, + start_time, + content, + status, + modify_time, + dept_id, + + + #{id}, + #{title}, + #{image}, + #{readNum}, + #{startTime}, + #{content}, + #{status}, + #{modifyTime}, + #{deptId}, + + + + + update yj_sense + + title = #{title}, + image = #{image}, + read_num = #{readNum}, + start_time = #{startTime}, + content = #{content}, + status = #{status}, + modify_time = #{modifyTime}, + dept_id = #{deptId}, + + where yj_sense.id = #{id} + + + + delete from yj_sense where yj_sense.id = #{id} + + + + delete from yj_sense where yj_sense.id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/colums/YjStoreMapper.xml b/ruoyi-system/src/main/resources/mapper/colums/YjStoreMapper.xml new file mode 100644 index 0000000..3709fba --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/colums/YjStoreMapper.xml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + select + yj_store.banner, + yj_store.store_name, + yj_store.address, + yj_store.phone, + yj_store.founder, + yj_store.profile, + yj_store.dept_id, + sys_dept.dept_name + from yj_store left join sys_dept on yj_store.dept_id = sys_dept.dept_id + + + + + + + + insert into yj_store + + banner, + store_name, + address, + phone, + founder, + profile, + dept_id, + + + #{banner}, + #{storeName}, + #{address}, + #{phone}, + #{founder}, + #{profile}, + #{deptId}, + + + + + update yj_store + + yj_store.banner = #{banner}, + yj_store.store_name = #{storeName}, + yj_store.address = #{address}, + yj_store.phone = #{phone}, + yj_store.founder = #{founder}, + yj_store.profile = #{profile}, + + where yj_store.dept_id = #{deptId} + + + + delete from yj_store where yj_store.dept_id = #{deptId} + + + + delete from yj_store where yj_store.dept_id in + + #{deptId} + + + \ No newline at end of file