commit
d17f9a619d
@ -0,0 +1,108 @@
|
||||
package com.ruoyi.web.controller.columns;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.system.domain.columns.SysTeacher;
|
||||
import com.ruoyi.system.service.columns.ISysTeacherService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 员工信息Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-28
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/teacher")
|
||||
public class SysTeacherController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISysTeacherService sysTeacherService;
|
||||
|
||||
/**
|
||||
* 查询员工信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:teacher:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SysTeacher sysTeacher)
|
||||
{
|
||||
startPage();
|
||||
// sysTeacher.setTenantId("2");
|
||||
sysTeacher.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<SysTeacher> list = sysTeacherService.selectSysTeacherList(sysTeacher);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出员工信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:teacher:export')")
|
||||
@Log(title = "员工信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SysTeacher sysTeacher) throws IOException {
|
||||
List<SysTeacher> list = sysTeacherService.selectSysTeacherList(sysTeacher);
|
||||
ExcelUtil<SysTeacher> util = new ExcelUtil<SysTeacher>(SysTeacher.class);
|
||||
util.exportExcel(response, list, "员工信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取员工信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:teacher:query')")
|
||||
@GetMapping(value = "/{userId}")
|
||||
public AjaxResult getInfo(@PathVariable("userId") Long userId)
|
||||
{
|
||||
return AjaxResult.success(sysTeacherService.selectSysTeacherByUserId(userId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增员工信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:teacher:add')")
|
||||
@Log(title = "员工信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SysTeacher sysTeacher)
|
||||
{
|
||||
return toAjax(sysTeacherService.insertSysTeacher(sysTeacher));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改员工信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('system:teacher:edit')")
|
||||
@Log(title = "员工信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SysTeacher sysTeacher)
|
||||
{
|
||||
return toAjax(sysTeacherService.updateSysTeacher(sysTeacher));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除员工信息
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
public AjaxResult remove( @RequestBody Long[] ids) {
|
||||
{
|
||||
return toAjax(sysTeacherService.deleteSysTeacherByUserIds(ids));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,111 @@
|
||||
package com.ruoyi.web.controller.columns;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.system.domain.columns.YjAppreciate;
|
||||
import com.ruoyi.system.service.columns.IYjAppreciateService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 瑜伽欣赏Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/appreciate")
|
||||
public class YjAppreciateController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IYjAppreciateService yjAppreciateService;
|
||||
|
||||
/**
|
||||
* 查询瑜伽欣赏列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:appreciate:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(YjAppreciate yjAppreciate)
|
||||
{
|
||||
startPage();
|
||||
yjAppreciate.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<YjAppreciate> list = yjAppreciateService.selectYjAppreciateList(yjAppreciate);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出瑜伽欣赏列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:appreciate:export')")
|
||||
@Log(title = "瑜伽欣赏", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, YjAppreciate yjAppreciate) throws IOException {
|
||||
List<YjAppreciate> list = yjAppreciateService.selectYjAppreciateList(yjAppreciate);
|
||||
ExcelUtil<YjAppreciate> util = new ExcelUtil<YjAppreciate>(YjAppreciate.class);
|
||||
util.exportExcel(response, list, "瑜伽欣赏数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取瑜伽欣赏详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:appreciate:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
|
||||
return AjaxResult.success(yjAppreciateService.selectYjAppreciateById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增瑜伽欣赏
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:appreciate:add')")
|
||||
@Log(title = "瑜伽欣赏", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody YjAppreciate yjAppreciate)
|
||||
{
|
||||
yjAppreciate.setId(IdWorker.get32UUID());
|
||||
return toAjax(yjAppreciateService.insertYjAppreciate(yjAppreciate));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改瑜伽欣赏
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:appreciate:edit')")
|
||||
@Log(title = "瑜伽欣赏", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody YjAppreciate yjAppreciate)
|
||||
{
|
||||
return toAjax(yjAppreciateService.updateYjAppreciate(yjAppreciate));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除瑜伽欣赏
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:appreciate:remove')")
|
||||
@Log(title = "瑜伽欣赏", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
return toAjax(yjAppreciateService.deleteYjAppreciateByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,110 @@
|
||||
package com.ruoyi.web.controller.columns;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.system.domain.columns.YjHealthy;
|
||||
import com.ruoyi.system.service.columns.IYjHealthyService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 健康饮食Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/healthy")
|
||||
public class YjHealthyController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IYjHealthyService yjHealthyService;
|
||||
|
||||
/**
|
||||
* 查询健康饮食列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:healthy:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(YjHealthy yjHealthy)
|
||||
{
|
||||
startPage();
|
||||
yjHealthy.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<YjHealthy> list = yjHealthyService.selectYjHealthyList(yjHealthy);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出健康饮食列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:healthy:export')")
|
||||
@Log(title = "健康饮食", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, YjHealthy yjHealthy) throws IOException {
|
||||
List<YjHealthy> list = yjHealthyService.selectYjHealthyList(yjHealthy);
|
||||
ExcelUtil<YjHealthy> util = new ExcelUtil<YjHealthy>(YjHealthy.class);
|
||||
util.exportExcel(response, list, "健康饮食数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取健康饮食详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:healthy:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return AjaxResult.success(yjHealthyService.selectYjHealthyById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增健康饮食
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:healthy:add')")
|
||||
@Log(title = "健康饮食", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody YjHealthy yjHealthy)
|
||||
{
|
||||
yjHealthy.setId(IdWorker.get32UUID());
|
||||
return toAjax(yjHealthyService.insertYjHealthy(yjHealthy));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改健康饮食
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:healthy:edit')")
|
||||
@Log(title = "健康饮食", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody YjHealthy yjHealthy)
|
||||
{
|
||||
return toAjax(yjHealthyService.updateYjHealthy(yjHealthy));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除健康饮食
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:healthy:remove')")
|
||||
@Log(title = "健康饮食", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
return toAjax(yjHealthyService.deleteYjHealthyByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,129 @@
|
||||
package com.ruoyi.web.controller.columns;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||
import com.ruoyi.common.core.domain.entity.SysDept;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.system.domain.columns.YjInherit;
|
||||
import com.ruoyi.system.service.ISysDeptService;
|
||||
import com.ruoyi.system.service.columns.IYjInheritService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 瑜伽传承Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/inherit")
|
||||
public class YjInheritController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IYjInheritService yjInheritService;
|
||||
|
||||
|
||||
@Autowired
|
||||
private ISysDeptService iSysDeptService;
|
||||
|
||||
|
||||
|
||||
@PostMapping("/getBase")
|
||||
public AjaxResult getBae()
|
||||
{
|
||||
SysDept sysDept =new SysDept();
|
||||
sysDept.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<SysDept> sysDepts = iSysDeptService.selectDeptList(sysDept);
|
||||
return AjaxResult.success(sysDepts);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询瑜伽传承列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:inherit:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(YjInherit yjInherit)
|
||||
{
|
||||
startPage();
|
||||
yjInherit.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<YjInherit> list = yjInheritService.selectYjInheritList(yjInherit);
|
||||
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出瑜伽传承列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:inherit:export')")
|
||||
@Log(title = "瑜伽传承", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, YjInherit yjInherit) throws IOException {
|
||||
List<YjInherit> list = yjInheritService.selectYjInheritList(yjInherit);
|
||||
ExcelUtil<YjInherit> util = new ExcelUtil<YjInherit>(YjInherit.class);
|
||||
util.exportExcel(response, list, "瑜伽传承数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取瑜伽传承详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:inherit:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return AjaxResult.success(yjInheritService.selectYjInheritById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增瑜伽传承
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:inherit:add')")
|
||||
@Log(title = "瑜伽传承", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody YjInherit yjInherit)
|
||||
{
|
||||
|
||||
yjInherit.setId(IdWorker.get32UUID());
|
||||
return toAjax(yjInheritService.insertYjInherit(yjInherit));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改瑜伽传承
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:inherit:edit')")
|
||||
@Log(title = "瑜伽传承", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody YjInherit yjInherit)
|
||||
{
|
||||
return toAjax(yjInheritService.updateYjInherit(yjInherit));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除瑜伽传承
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:inherit:remove')")
|
||||
@Log(title = "瑜伽传承", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
return toAjax(yjInheritService.deleteYjInheritByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,111 @@
|
||||
package com.ruoyi.web.controller.columns;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.system.domain.columns.YjPracticeMoments;
|
||||
import com.ruoyi.system.service.columns.IYjPracticeMomentsService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/moments")
|
||||
public class YjPracticeMomentsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IYjPracticeMomentsService yjPracticeMomentsService;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:moments:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(YjPracticeMoments yjPracticeMoments)
|
||||
{
|
||||
startPage();
|
||||
yjPracticeMoments.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<YjPracticeMoments> list = yjPracticeMomentsService.selectYjPracticeMomentsList(yjPracticeMoments);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出【请填写功能名称】列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:moments:export')")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, YjPracticeMoments yjPracticeMoments) throws IOException {
|
||||
List<YjPracticeMoments> list = yjPracticeMomentsService.selectYjPracticeMomentsList(yjPracticeMoments);
|
||||
ExcelUtil<YjPracticeMoments> util = new ExcelUtil<YjPracticeMoments>(YjPracticeMoments.class);
|
||||
util.exportExcel(response, list, "【请填写功能名称】数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取【请填写功能名称】详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:moments:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return AjaxResult.success(yjPracticeMomentsService.selectYjPracticeMomentsById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:moments:add')")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody YjPracticeMoments yjPracticeMoments)
|
||||
{
|
||||
|
||||
yjPracticeMoments.setId(IdWorker.get32UUID());
|
||||
return toAjax(yjPracticeMomentsService.insertYjPracticeMoments(yjPracticeMoments));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:moments:edit')")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody YjPracticeMoments yjPracticeMoments)
|
||||
{
|
||||
return toAjax(yjPracticeMomentsService.updateYjPracticeMoments(yjPracticeMoments));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:moments:remove')")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
return toAjax(yjPracticeMomentsService.deleteYjPracticeMomentsByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,113 @@
|
||||
package com.ruoyi.web.controller.columns;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.system.domain.columns.YjSense;
|
||||
import com.ruoyi.system.service.columns.IYjSenseService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 瑜伽常识Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/sense")
|
||||
public class YjSenseController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IYjSenseService yjSenseService;
|
||||
|
||||
/**
|
||||
* 查询瑜伽常识列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sense:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(YjSense yjSense)
|
||||
{
|
||||
startPage();
|
||||
//Long nowTenantId = SecurityUtils.getLoginUser().getNowTenantId();
|
||||
yjSense.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<YjSense> list = yjSenseService.selectYjSenseList(yjSense);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出瑜伽常识列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sense:export')")
|
||||
@Log(title = "瑜伽常识", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, YjSense yjSense) throws IOException {
|
||||
List<YjSense> list = yjSenseService.selectYjSenseList(yjSense);
|
||||
ExcelUtil<YjSense> util = new ExcelUtil<YjSense>(YjSense.class);
|
||||
util.exportExcel(response, list, "瑜伽常识数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取瑜伽常识详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sense:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return AjaxResult.success(yjSenseService.selectYjSenseById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增瑜伽常识
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sense:add')")
|
||||
@Log(title = "瑜伽常识", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody YjSense yjSense)
|
||||
{
|
||||
yjSense.setId(IdWorker.get32UUID());
|
||||
return toAjax(
|
||||
|
||||
yjSenseService.insertYjSense(yjSense));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改瑜伽常识
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sense:edit')")
|
||||
@Log(title = "瑜伽常识", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody YjSense yjSense)
|
||||
{
|
||||
return toAjax(yjSenseService.updateYjSense(yjSense));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除瑜伽常识
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sense:remove')")
|
||||
@Log(title = "瑜伽常识", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
return toAjax(yjSenseService.deleteYjSenseByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,108 @@
|
||||
package com.ruoyi.web.controller.columns;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.system.domain.columns.YjStore;
|
||||
import com.ruoyi.system.service.columns.IYjStoreService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 门店Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/store")
|
||||
public class YjStoreController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IYjStoreService yjStoreService;
|
||||
|
||||
/**
|
||||
* 查询门店列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:store:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(YjStore yjStore)
|
||||
{
|
||||
startPage();
|
||||
yjStore.setTenantId(SecurityUtils.getLoginUser().getNowTenantId());
|
||||
List<YjStore> list = yjStoreService.selectYjStoreList(yjStore);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出门店列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:store:export')")
|
||||
@Log(title = "门店", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, YjStore yjStore) throws IOException {
|
||||
List<YjStore> list = yjStoreService.selectYjStoreList(yjStore);
|
||||
ExcelUtil<YjStore> util = new ExcelUtil<YjStore>(YjStore.class);
|
||||
util.exportExcel(response, list, "门店数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取门店详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:store:query')")
|
||||
@GetMapping(value = "/{deptId}")
|
||||
public AjaxResult getInfo(@PathVariable("deptId") Long deptId)
|
||||
{
|
||||
return AjaxResult.success(yjStoreService.selectYjStoreByDeptId(deptId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增门店
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:store:add')")
|
||||
@Log(title = "门店", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody YjStore yjStore)
|
||||
{
|
||||
return toAjax(yjStoreService.insertYjStore(yjStore));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改门店
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:store:edit')")
|
||||
@Log(title = "门店", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody YjStore yjStore)
|
||||
{
|
||||
return toAjax(yjStoreService.updateYjStore(yjStore));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除门店
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:store:remove')")
|
||||
@Log(title = "门店", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{deptIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] deptIds)
|
||||
{
|
||||
return toAjax(yjStoreService.deleteYjStoreByDeptIds(deptIds));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
package com.ruoyi.system.domain.columns;
|
||||
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 员工信息对象 sys_teacher
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-28
|
||||
*/
|
||||
@Data
|
||||
public class SysTeacher extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 员工id */
|
||||
private Long userId;
|
||||
|
||||
/** 老师名称 */
|
||||
@Excel(name = "老师名称")
|
||||
private String teacherName;
|
||||
|
||||
/** 头像 */
|
||||
@Excel(name = "头像")
|
||||
private String avatarImg;
|
||||
|
||||
/** 教练风采简介 */
|
||||
@Excel(name = "教练风采简介")
|
||||
private String intro;
|
||||
|
||||
/** 教练风采内容 */
|
||||
@Excel(name = "教练风采内容")
|
||||
private String context;
|
||||
|
||||
/** 教练风采相册 */
|
||||
@Excel(name = "教练风采相册")
|
||||
private String url;
|
||||
|
||||
/** 教练风采简短介绍 */
|
||||
@Excel(name = "教练风采简短介绍")
|
||||
private String introduce;
|
||||
|
||||
/** 教练风采状态0 不展示 1展示 */
|
||||
@Excel(name = "教练风采状态0 不展示 1展示")
|
||||
private Integer releases;
|
||||
|
||||
/** 排序 */
|
||||
@Excel(name = "排序")
|
||||
private Long sort;
|
||||
|
||||
private String tenantId;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,157 @@
|
||||
package com.ruoyi.system.domain.columns;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 瑜伽欣赏对象 yj_appreciate
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Data
|
||||
public class YjAppreciate extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private String id;
|
||||
|
||||
/** 标题 */
|
||||
@Excel(name = "标题")
|
||||
private String title;
|
||||
|
||||
/** 封面 */
|
||||
@Excel(name = "封面")
|
||||
private String image;
|
||||
|
||||
/** 阅读量 */
|
||||
@Excel(name = "阅读量")
|
||||
private Long readNum;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
|
||||
/** 内容(富文本) */
|
||||
@Excel(name = "内容", readConverterExp = "富=文本")
|
||||
private String content;
|
||||
|
||||
/** 是否展示 */
|
||||
@Excel(name = "是否展示")
|
||||
private Integer status;
|
||||
|
||||
/** 修改时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date modifyTime;
|
||||
|
||||
/** 门店/校区id */
|
||||
@Excel(name = "门店/校区id")
|
||||
private Long deptId;
|
||||
|
||||
private String tenantId;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
public void setImage(String image)
|
||||
{
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public String getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
public void setReadNum(Long readNum)
|
||||
{
|
||||
this.readNum = readNum;
|
||||
}
|
||||
|
||||
public Long getReadNum()
|
||||
{
|
||||
return readNum;
|
||||
}
|
||||
public void setStartTime(Date startTime)
|
||||
{
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getStartTime()
|
||||
{
|
||||
return startTime;
|
||||
}
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setModifyTime(Date modifyTime)
|
||||
{
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getModifyTime()
|
||||
{
|
||||
return modifyTime;
|
||||
}
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("title", getTitle())
|
||||
.append("image", getImage())
|
||||
.append("readNum", getReadNum())
|
||||
.append("startTime", getStartTime())
|
||||
.append("content", getContent())
|
||||
.append("status", getStatus())
|
||||
.append("modifyTime", getModifyTime())
|
||||
.append("deptId", getDeptId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,158 @@
|
||||
package com.ruoyi.system.domain.columns;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 健康饮食对象 yj_healthy
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Data
|
||||
public class YjHealthy extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private String id;
|
||||
|
||||
/** 标题 */
|
||||
@Excel(name = "标题")
|
||||
private String title;
|
||||
|
||||
/** 封面 */
|
||||
@Excel(name = "封面")
|
||||
private String image;
|
||||
|
||||
/** 阅读量 */
|
||||
@Excel(name = "阅读量")
|
||||
private Long readNum;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
|
||||
/** 内容(富文本) */
|
||||
@Excel(name = "内容", readConverterExp = "富=文本")
|
||||
private String content;
|
||||
|
||||
/** 是否展示 */
|
||||
@Excel(name = "是否展示")
|
||||
private Integer status;
|
||||
|
||||
/** 修改时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date modifyTime;
|
||||
|
||||
/** 门店/校区id */
|
||||
@Excel(name = "门店/校区id")
|
||||
private Long deptId;
|
||||
|
||||
|
||||
private String tenantId;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
public void setImage(String image)
|
||||
{
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public String getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
public void setReadNum(Long readNum)
|
||||
{
|
||||
this.readNum = readNum;
|
||||
}
|
||||
|
||||
public Long getReadNum()
|
||||
{
|
||||
return readNum;
|
||||
}
|
||||
public void setStartTime(Date startTime)
|
||||
{
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getStartTime()
|
||||
{
|
||||
return startTime;
|
||||
}
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setModifyTime(Date modifyTime)
|
||||
{
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getModifyTime()
|
||||
{
|
||||
return modifyTime;
|
||||
}
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("title", getTitle())
|
||||
.append("image", getImage())
|
||||
.append("readNum", getReadNum())
|
||||
.append("startTime", getStartTime())
|
||||
.append("content", getContent())
|
||||
.append("status", getStatus())
|
||||
.append("modifyTime", getModifyTime())
|
||||
.append("deptId", getDeptId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,161 @@
|
||||
package com.ruoyi.system.domain.columns;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 瑜伽传承对象 yj_inherit
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Data
|
||||
public class YjInherit extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
|
||||
private String id;
|
||||
|
||||
/** 标题 */
|
||||
@Excel(name = "标题")
|
||||
private String title;
|
||||
|
||||
/** 封面 */
|
||||
@Excel(name = "封面")
|
||||
private String image;
|
||||
|
||||
/** 阅读量 */
|
||||
@Excel(name = "阅读量")
|
||||
private Long readNum;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
|
||||
/** 内容(富文本) */
|
||||
@Excel(name = "内容", readConverterExp = "富=文本")
|
||||
private String content;
|
||||
|
||||
/** 是否展示 */
|
||||
@Excel(name = "是否展示")
|
||||
private Integer status;
|
||||
|
||||
/** 修改时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date modifyTime;
|
||||
|
||||
/** 门店/校区id */
|
||||
@Excel(name = "门店/校区id")
|
||||
private Long deptId;
|
||||
|
||||
private String tenantId;
|
||||
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
public void setImage(String image)
|
||||
{
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public String getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
public void setReadNum(Long readNum)
|
||||
{
|
||||
this.readNum = readNum;
|
||||
}
|
||||
|
||||
public Long getReadNum()
|
||||
{
|
||||
return readNum;
|
||||
}
|
||||
public void setStartTime(Date startTime)
|
||||
{
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getStartTime()
|
||||
{
|
||||
return startTime;
|
||||
}
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setModifyTime(Date modifyTime)
|
||||
{
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getModifyTime()
|
||||
{
|
||||
return modifyTime;
|
||||
}
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("title", getTitle())
|
||||
.append("image", getImage())
|
||||
.append("readNum", getReadNum())
|
||||
.append("startTime", getStartTime())
|
||||
.append("content", getContent())
|
||||
.append("status", getStatus())
|
||||
.append("modifyTime", getModifyTime())
|
||||
.append("deptId", getDeptId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,156 @@
|
||||
package com.ruoyi.system.domain.columns;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】对象 yj_practice_moments
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Data
|
||||
public class YjPracticeMoments extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private String id;
|
||||
|
||||
/** 标题 */
|
||||
@Excel(name = "标题")
|
||||
private String title;
|
||||
|
||||
/** 封面 */
|
||||
@Excel(name = "封面")
|
||||
private String image;
|
||||
|
||||
/** 阅读量 */
|
||||
@Excel(name = "阅读量")
|
||||
private Long readNum;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
|
||||
/** 内容(富文本) */
|
||||
@Excel(name = "内容", readConverterExp = "富=文本")
|
||||
private String content;
|
||||
|
||||
/** 是否展示 */
|
||||
@Excel(name = "是否展示")
|
||||
private Integer status;
|
||||
|
||||
/** 修改时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date modifyTime;
|
||||
|
||||
/** 门店/校区id */
|
||||
@Excel(name = "门店/校区id")
|
||||
private Long deptId;
|
||||
|
||||
private String tenantId;
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
public void setImage(String image)
|
||||
{
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public String getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
public void setReadNum(Long readNum)
|
||||
{
|
||||
this.readNum = readNum;
|
||||
}
|
||||
|
||||
public Long getReadNum()
|
||||
{
|
||||
return readNum;
|
||||
}
|
||||
public void setStartTime(Date startTime)
|
||||
{
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getStartTime()
|
||||
{
|
||||
return startTime;
|
||||
}
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setModifyTime(Date modifyTime)
|
||||
{
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getModifyTime()
|
||||
{
|
||||
return modifyTime;
|
||||
}
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("title", getTitle())
|
||||
.append("image", getImage())
|
||||
.append("readNum", getReadNum())
|
||||
.append("startTime", getStartTime())
|
||||
.append("content", getContent())
|
||||
.append("status", getStatus())
|
||||
.append("modifyTime", getModifyTime())
|
||||
.append("deptId", getDeptId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,158 @@
|
||||
package com.ruoyi.system.domain.columns;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 瑜伽常识对象 yj_sense
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Data
|
||||
public class YjSense extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private String id;
|
||||
|
||||
/** 标题 */
|
||||
@Excel(name = "标题")
|
||||
private String title;
|
||||
|
||||
/** 封面 */
|
||||
@Excel(name = "封面")
|
||||
private String image;
|
||||
|
||||
/** 阅读量 */
|
||||
@Excel(name = "阅读量")
|
||||
private Long readNum;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date startTime;
|
||||
|
||||
/** 内容(富文本) */
|
||||
@Excel(name = "内容", readConverterExp = "富=文本")
|
||||
private String content;
|
||||
|
||||
/** 是否展示 */
|
||||
@Excel(name = "是否展示")
|
||||
private Integer status;
|
||||
|
||||
/** 修改时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date modifyTime;
|
||||
|
||||
/** 门店/校区id */
|
||||
@Excel(name = "门店/校区id")
|
||||
private Long deptId;
|
||||
|
||||
|
||||
private String tenantId;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
public void setImage(String image)
|
||||
{
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public String getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
public void setReadNum(Long readNum)
|
||||
{
|
||||
this.readNum = readNum;
|
||||
}
|
||||
|
||||
public Long getReadNum()
|
||||
{
|
||||
return readNum;
|
||||
}
|
||||
public void setStartTime(Date startTime)
|
||||
{
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getStartTime()
|
||||
{
|
||||
return startTime;
|
||||
}
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setModifyTime(Date modifyTime)
|
||||
{
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getModifyTime()
|
||||
{
|
||||
return modifyTime;
|
||||
}
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("title", getTitle())
|
||||
.append("image", getImage())
|
||||
.append("readNum", getReadNum())
|
||||
.append("startTime", getStartTime())
|
||||
.append("content", getContent())
|
||||
.append("status", getStatus())
|
||||
.append("modifyTime", getModifyTime())
|
||||
.append("deptId", getDeptId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,127 @@
|
||||
package com.ruoyi.system.domain.columns;
|
||||
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 门店对象 yj_store
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-31
|
||||
*/
|
||||
@Data
|
||||
public class YjStore extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String banner;
|
||||
|
||||
/** 门店名称 */
|
||||
@Excel(name = "门店名称")
|
||||
private String storeName;
|
||||
|
||||
/** 地址 */
|
||||
@Excel(name = "地址")
|
||||
private String address;
|
||||
|
||||
/** 门店电话 */
|
||||
@Excel(name = "门店电话")
|
||||
private String phone;
|
||||
|
||||
/** 创始人/店长简介(富文本) */
|
||||
@Excel(name = "创始人/店长简介", readConverterExp = "富=文本")
|
||||
private String founder;
|
||||
|
||||
/** 企业/门店简介(富文本) */
|
||||
@Excel(name = "企业/门店简介", readConverterExp = "富=文本")
|
||||
private String profile;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long deptId;
|
||||
|
||||
private String tenantId;
|
||||
|
||||
private String deptName;
|
||||
|
||||
public void setBanner(String banner)
|
||||
{
|
||||
this.banner = banner;
|
||||
}
|
||||
|
||||
public String getBanner()
|
||||
{
|
||||
return banner;
|
||||
}
|
||||
public void setStoreName(String storeName)
|
||||
{
|
||||
this.storeName = storeName;
|
||||
}
|
||||
|
||||
public String getStoreName()
|
||||
{
|
||||
return storeName;
|
||||
}
|
||||
public void setAddress(String address)
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
public void setPhone(String phone)
|
||||
{
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getPhone()
|
||||
{
|
||||
return phone;
|
||||
}
|
||||
public void setFounder(String founder)
|
||||
{
|
||||
this.founder = founder;
|
||||
}
|
||||
|
||||
public String getFounder()
|
||||
{
|
||||
return founder;
|
||||
}
|
||||
public void setProfile(String profile)
|
||||
{
|
||||
this.profile = profile;
|
||||
}
|
||||
|
||||
public String getProfile()
|
||||
{
|
||||
return profile;
|
||||
}
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("banner", getBanner())
|
||||
.append("storeName", getStoreName())
|
||||
.append("address", getAddress())
|
||||
.append("phone", getPhone())
|
||||
.append("founder", getFounder())
|
||||
.append("profile", getProfile())
|
||||
.append("deptId", getDeptId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper.colums;
|
||||
|
||||
import com.ruoyi.system.domain.columns.SysTeacher;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 员工信息Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-28
|
||||
*/
|
||||
public interface SysTeacherMapper
|
||||
{
|
||||
/**
|
||||
* 查询员工信息
|
||||
*
|
||||
* @param userId 员工信息主键
|
||||
* @return 员工信息
|
||||
*/
|
||||
public SysTeacher selectSysTeacherByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 查询员工信息列表
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 员工信息集合
|
||||
*/
|
||||
public List<SysTeacher> selectSysTeacherList(SysTeacher sysTeacher);
|
||||
|
||||
/**
|
||||
* 新增员工信息
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysTeacher(SysTeacher sysTeacher);
|
||||
|
||||
/**
|
||||
* 修改员工信息
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysTeacher(SysTeacher sysTeacher);
|
||||
|
||||
/**
|
||||
* 删除员工信息
|
||||
*
|
||||
* @param userId 员工信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 批量删除员工信息
|
||||
*
|
||||
* @param userIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherByUserIds(Long[] userIds);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper.colums;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjAppreciate;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 瑜伽欣赏Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface YjAppreciateMapper
|
||||
{
|
||||
/**
|
||||
* 查询瑜伽欣赏
|
||||
*
|
||||
* @param id 瑜伽欣赏主键
|
||||
* @return 瑜伽欣赏
|
||||
*/
|
||||
public YjAppreciate selectYjAppreciateById(String id);
|
||||
|
||||
/**
|
||||
* 查询瑜伽欣赏列表
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 瑜伽欣赏集合
|
||||
*/
|
||||
public List<YjAppreciate> selectYjAppreciateList(YjAppreciate yjAppreciate);
|
||||
|
||||
/**
|
||||
* 新增瑜伽欣赏
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjAppreciate(YjAppreciate yjAppreciate);
|
||||
|
||||
/**
|
||||
* 修改瑜伽欣赏
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjAppreciate(YjAppreciate yjAppreciate);
|
||||
|
||||
/**
|
||||
* 删除瑜伽欣赏
|
||||
*
|
||||
* @param id 瑜伽欣赏主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjAppreciateById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽欣赏
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjAppreciateByIds(String[] ids);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper.colums;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjHealthy;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 健康饮食Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface YjHealthyMapper
|
||||
{
|
||||
/**
|
||||
* 查询健康饮食
|
||||
*
|
||||
* @param id 健康饮食主键
|
||||
* @return 健康饮食
|
||||
*/
|
||||
public YjHealthy selectYjHealthyById(String id);
|
||||
|
||||
/**
|
||||
* 查询健康饮食列表
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 健康饮食集合
|
||||
*/
|
||||
public List<YjHealthy> selectYjHealthyList(YjHealthy yjHealthy);
|
||||
|
||||
/**
|
||||
* 新增健康饮食
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjHealthy(YjHealthy yjHealthy);
|
||||
|
||||
/**
|
||||
* 修改健康饮食
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjHealthy(YjHealthy yjHealthy);
|
||||
|
||||
/**
|
||||
* 删除健康饮食
|
||||
*
|
||||
* @param id 健康饮食主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjHealthyById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除健康饮食
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjHealthyByIds(String[] ids);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper.colums;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjInherit;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 瑜伽传承Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface YjInheritMapper
|
||||
{
|
||||
/**
|
||||
* 查询瑜伽传承
|
||||
*
|
||||
* @param id 瑜伽传承主键
|
||||
* @return 瑜伽传承
|
||||
*/
|
||||
public YjInherit selectYjInheritById(String id);
|
||||
|
||||
/**
|
||||
* 查询瑜伽传承列表
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 瑜伽传承集合
|
||||
*/
|
||||
public List<YjInherit> selectYjInheritList(YjInherit yjInherit);
|
||||
|
||||
/**
|
||||
* 新增瑜伽传承
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjInherit(YjInherit yjInherit);
|
||||
|
||||
/**
|
||||
* 修改瑜伽传承
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjInherit(YjInherit yjInherit);
|
||||
|
||||
/**
|
||||
* 删除瑜伽传承
|
||||
*
|
||||
* @param id 瑜伽传承主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjInheritById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽传承
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjInheritByIds(String[] ids);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper.colums;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjPracticeMoments;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface YjPracticeMomentsMapper
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public YjPracticeMoments selectYjPracticeMomentsById(String id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<YjPracticeMoments> selectYjPracticeMomentsList(YjPracticeMoments yjPracticeMoments);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjPracticeMoments(YjPracticeMoments yjPracticeMoments);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjPracticeMoments(YjPracticeMoments yjPracticeMoments);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjPracticeMomentsById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjPracticeMomentsByIds(String[] ids);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper.colums;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjSense;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 瑜伽常识Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface YjSenseMapper
|
||||
{
|
||||
/**
|
||||
* 查询瑜伽常识
|
||||
*
|
||||
* @param id 瑜伽常识主键
|
||||
* @return 瑜伽常识
|
||||
*/
|
||||
public YjSense selectYjSenseById(String id);
|
||||
|
||||
/**
|
||||
* 查询瑜伽常识列表
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 瑜伽常识集合
|
||||
*/
|
||||
public List<YjSense> selectYjSenseList(YjSense yjSense);
|
||||
|
||||
/**
|
||||
* 新增瑜伽常识
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjSense(YjSense yjSense);
|
||||
|
||||
/**
|
||||
* 修改瑜伽常识
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjSense(YjSense yjSense);
|
||||
|
||||
/**
|
||||
* 删除瑜伽常识
|
||||
*
|
||||
* @param id 瑜伽常识主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjSenseById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽常识
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjSenseByIds(String[] ids);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper.colums;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjStore;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 门店Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-31
|
||||
*/
|
||||
public interface YjStoreMapper
|
||||
{
|
||||
/**
|
||||
* 查询门店
|
||||
*
|
||||
* @param deptId 门店主键
|
||||
* @return 门店
|
||||
*/
|
||||
public YjStore selectYjStoreByDeptId(Long deptId);
|
||||
|
||||
/**
|
||||
* 查询门店列表
|
||||
*
|
||||
* @param yjStore 门店
|
||||
* @return 门店集合
|
||||
*/
|
||||
public List<YjStore> selectYjStoreList(YjStore yjStore);
|
||||
|
||||
/**
|
||||
* 新增门店
|
||||
*
|
||||
* @param yjStore 门店
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjStore(YjStore yjStore);
|
||||
|
||||
/**
|
||||
* 修改门店
|
||||
*
|
||||
* @param yjStore 门店
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjStore(YjStore yjStore);
|
||||
|
||||
/**
|
||||
* 删除门店
|
||||
*
|
||||
* @param deptId 门店主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjStoreByDeptId(Long deptId);
|
||||
|
||||
/**
|
||||
* 批量删除门店
|
||||
*
|
||||
* @param deptIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjStoreByDeptIds(Long[] deptIds);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.service.columns;
|
||||
|
||||
import com.ruoyi.system.domain.columns.SysTeacher;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 员工信息Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-28
|
||||
*/
|
||||
public interface ISysTeacherService
|
||||
{
|
||||
/**
|
||||
* 查询员工信息
|
||||
*
|
||||
* @param userId 员工信息主键
|
||||
* @return 员工信息
|
||||
*/
|
||||
public SysTeacher selectSysTeacherByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 查询员工信息列表
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 员工信息集合
|
||||
*/
|
||||
public List<SysTeacher> selectSysTeacherList(SysTeacher sysTeacher);
|
||||
|
||||
/**
|
||||
* 新增员工信息
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysTeacher(SysTeacher sysTeacher);
|
||||
|
||||
/**
|
||||
* 修改员工信息
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysTeacher(SysTeacher sysTeacher);
|
||||
|
||||
/**
|
||||
* 批量删除员工信息
|
||||
*
|
||||
* @param userIds 需要删除的员工信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherByUserIds(Long[] userIds);
|
||||
|
||||
/**
|
||||
* 删除员工信息信息
|
||||
*
|
||||
* @param userId 员工信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysTeacherByUserId(Long userId);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.service.columns;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjAppreciate;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 瑜伽欣赏Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface IYjAppreciateService
|
||||
{
|
||||
/**
|
||||
* 查询瑜伽欣赏
|
||||
*
|
||||
* @param id 瑜伽欣赏主键
|
||||
* @return 瑜伽欣赏
|
||||
*/
|
||||
public YjAppreciate selectYjAppreciateById(String id);
|
||||
|
||||
/**
|
||||
* 查询瑜伽欣赏列表
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 瑜伽欣赏集合
|
||||
*/
|
||||
public List<YjAppreciate> selectYjAppreciateList(YjAppreciate yjAppreciate);
|
||||
|
||||
/**
|
||||
* 新增瑜伽欣赏
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjAppreciate(YjAppreciate yjAppreciate);
|
||||
|
||||
/**
|
||||
* 修改瑜伽欣赏
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjAppreciate(YjAppreciate yjAppreciate);
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽欣赏
|
||||
*
|
||||
* @param ids 需要删除的瑜伽欣赏主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjAppreciateByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除瑜伽欣赏信息
|
||||
*
|
||||
* @param id 瑜伽欣赏主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjAppreciateById(String id);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.service.columns;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjHealthy;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 健康饮食Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface IYjHealthyService
|
||||
{
|
||||
/**
|
||||
* 查询健康饮食
|
||||
*
|
||||
* @param id 健康饮食主键
|
||||
* @return 健康饮食
|
||||
*/
|
||||
public YjHealthy selectYjHealthyById(String id);
|
||||
|
||||
/**
|
||||
* 查询健康饮食列表
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 健康饮食集合
|
||||
*/
|
||||
public List<YjHealthy> selectYjHealthyList(YjHealthy yjHealthy);
|
||||
|
||||
/**
|
||||
* 新增健康饮食
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjHealthy(YjHealthy yjHealthy);
|
||||
|
||||
/**
|
||||
* 修改健康饮食
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjHealthy(YjHealthy yjHealthy);
|
||||
|
||||
/**
|
||||
* 批量删除健康饮食
|
||||
*
|
||||
* @param ids 需要删除的健康饮食主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjHealthyByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除健康饮食信息
|
||||
*
|
||||
* @param id 健康饮食主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjHealthyById(String id);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.service.columns;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjInherit;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 瑜伽传承Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface IYjInheritService
|
||||
{
|
||||
/**
|
||||
* 查询瑜伽传承
|
||||
*
|
||||
* @param id 瑜伽传承主键
|
||||
* @return 瑜伽传承
|
||||
*/
|
||||
public YjInherit selectYjInheritById(String id);
|
||||
|
||||
/**
|
||||
* 查询瑜伽传承列表
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 瑜伽传承集合
|
||||
*/
|
||||
public List<YjInherit> selectYjInheritList(YjInherit yjInherit);
|
||||
|
||||
/**
|
||||
* 新增瑜伽传承
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjInherit(YjInherit yjInherit);
|
||||
|
||||
/**
|
||||
* 修改瑜伽传承
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjInherit(YjInherit yjInherit);
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽传承
|
||||
*
|
||||
* @param ids 需要删除的瑜伽传承主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjInheritByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除瑜伽传承信息
|
||||
*
|
||||
* @param id 瑜伽传承主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjInheritById(String id);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.service.columns;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjPracticeMoments;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface IYjPracticeMomentsService
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public YjPracticeMoments selectYjPracticeMomentsById(String id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<YjPracticeMoments> selectYjPracticeMomentsList(YjPracticeMoments yjPracticeMoments);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjPracticeMoments(YjPracticeMoments yjPracticeMoments);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjPracticeMoments(YjPracticeMoments yjPracticeMoments);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjPracticeMomentsByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjPracticeMomentsById(String id);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.service.columns;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjSense;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 瑜伽常识Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
public interface IYjSenseService
|
||||
{
|
||||
/**
|
||||
* 查询瑜伽常识
|
||||
*
|
||||
* @param id 瑜伽常识主键
|
||||
* @return 瑜伽常识
|
||||
*/
|
||||
public YjSense selectYjSenseById(String id);
|
||||
|
||||
/**
|
||||
* 查询瑜伽常识列表
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 瑜伽常识集合
|
||||
*/
|
||||
public List<YjSense> selectYjSenseList(YjSense yjSense);
|
||||
|
||||
/**
|
||||
* 新增瑜伽常识
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjSense(YjSense yjSense);
|
||||
|
||||
/**
|
||||
* 修改瑜伽常识
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjSense(YjSense yjSense);
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽常识
|
||||
*
|
||||
* @param ids 需要删除的瑜伽常识主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjSenseByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除瑜伽常识信息
|
||||
*
|
||||
* @param id 瑜伽常识主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjSenseById(String id);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.service.columns;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjStore;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 门店Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-31
|
||||
*/
|
||||
public interface IYjStoreService
|
||||
{
|
||||
/**
|
||||
* 查询门店
|
||||
*
|
||||
* @param deptId 门店主键
|
||||
* @return 门店
|
||||
*/
|
||||
public YjStore selectYjStoreByDeptId(Long deptId);
|
||||
|
||||
/**
|
||||
* 查询门店列表
|
||||
*
|
||||
* @param yjStore 门店
|
||||
* @return 门店集合
|
||||
*/
|
||||
public List<YjStore> selectYjStoreList(YjStore yjStore);
|
||||
|
||||
/**
|
||||
* 新增门店
|
||||
*
|
||||
* @param yjStore 门店
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertYjStore(YjStore yjStore);
|
||||
|
||||
/**
|
||||
* 修改门店
|
||||
*
|
||||
* @param yjStore 门店
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateYjStore(YjStore yjStore);
|
||||
|
||||
/**
|
||||
* 批量删除门店
|
||||
*
|
||||
* @param deptIds 需要删除的门店主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjStoreByDeptIds(Long[] deptIds);
|
||||
|
||||
/**
|
||||
* 删除门店信息
|
||||
*
|
||||
* @param deptId 门店主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteYjStoreByDeptId(Long deptId);
|
||||
}
|
||||
@ -0,0 +1,98 @@
|
||||
package com.ruoyi.system.service.columns.impl;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.system.domain.columns.SysTeacher;
|
||||
import com.ruoyi.system.mapper.colums.SysTeacherMapper;
|
||||
import com.ruoyi.system.service.columns.ISysTeacherService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 员工信息Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-28
|
||||
*/
|
||||
@Service
|
||||
public class SysTeacherServiceImpl implements ISysTeacherService
|
||||
{
|
||||
@Autowired
|
||||
private SysTeacherMapper sysTeacherMapper;
|
||||
|
||||
/**
|
||||
* 查询员工信息
|
||||
*
|
||||
* @param userId 员工信息主键
|
||||
* @return 员工信息
|
||||
*/
|
||||
@Override
|
||||
public SysTeacher selectSysTeacherByUserId(Long userId)
|
||||
{
|
||||
return sysTeacherMapper.selectSysTeacherByUserId(userId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询员工信息列表
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 员工信息
|
||||
*/
|
||||
@Override
|
||||
public List<SysTeacher> selectSysTeacherList(SysTeacher sysTeacher)
|
||||
{
|
||||
return sysTeacherMapper.selectSysTeacherList(sysTeacher);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增员工信息
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSysTeacher(SysTeacher sysTeacher)
|
||||
{
|
||||
sysTeacher.setCreateTime(LocalDateTime.now());
|
||||
return sysTeacherMapper.insertSysTeacher(sysTeacher);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改员工信息
|
||||
*
|
||||
* @param sysTeacher 员工信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSysTeacher(SysTeacher sysTeacher)
|
||||
{
|
||||
sysTeacher.setUpdateTime(LocalDateTime.now());
|
||||
return sysTeacherMapper.updateSysTeacher(sysTeacher);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除员工信息
|
||||
*
|
||||
* @param userIds 需要删除的员工信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysTeacherByUserIds(Long[] userIds)
|
||||
{
|
||||
return sysTeacherMapper.deleteSysTeacherByUserIds(userIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除员工信息信息
|
||||
*
|
||||
* @param userId 员工信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysTeacherByUserId(Long userId)
|
||||
{
|
||||
return sysTeacherMapper.deleteSysTeacherByUserId(userId);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.system.service.columns.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjAppreciate;
|
||||
import com.ruoyi.system.mapper.colums.YjAppreciateMapper;
|
||||
import com.ruoyi.system.service.columns.IYjAppreciateService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 瑜伽欣赏Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Service
|
||||
public class YjAppreciateServiceImpl implements IYjAppreciateService
|
||||
{
|
||||
@Autowired
|
||||
private YjAppreciateMapper yjAppreciateMapper;
|
||||
|
||||
/**
|
||||
* 查询瑜伽欣赏
|
||||
*
|
||||
* @param id 瑜伽欣赏主键
|
||||
* @return 瑜伽欣赏
|
||||
*/
|
||||
@Override
|
||||
public YjAppreciate selectYjAppreciateById(String id)
|
||||
{
|
||||
return yjAppreciateMapper.selectYjAppreciateById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询瑜伽欣赏列表
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 瑜伽欣赏
|
||||
*/
|
||||
@Override
|
||||
public List<YjAppreciate> selectYjAppreciateList(YjAppreciate yjAppreciate)
|
||||
{
|
||||
return yjAppreciateMapper.selectYjAppreciateList(yjAppreciate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增瑜伽欣赏
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertYjAppreciate(YjAppreciate yjAppreciate)
|
||||
{
|
||||
return yjAppreciateMapper.insertYjAppreciate(yjAppreciate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改瑜伽欣赏
|
||||
*
|
||||
* @param yjAppreciate 瑜伽欣赏
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateYjAppreciate(YjAppreciate yjAppreciate)
|
||||
{
|
||||
return yjAppreciateMapper.updateYjAppreciate(yjAppreciate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽欣赏
|
||||
*
|
||||
* @param ids 需要删除的瑜伽欣赏主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjAppreciateByIds(String[] ids)
|
||||
{
|
||||
return yjAppreciateMapper.deleteYjAppreciateByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除瑜伽欣赏信息
|
||||
*
|
||||
* @param id 瑜伽欣赏主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjAppreciateById(String id)
|
||||
{
|
||||
return yjAppreciateMapper.deleteYjAppreciateById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.system.service.columns.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjHealthy;
|
||||
import com.ruoyi.system.mapper.colums.YjHealthyMapper;
|
||||
import com.ruoyi.system.service.columns.IYjHealthyService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 健康饮食Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Service
|
||||
public class YjHealthyServiceImpl implements IYjHealthyService
|
||||
{
|
||||
@Autowired
|
||||
private YjHealthyMapper yjHealthyMapper;
|
||||
|
||||
/**
|
||||
* 查询健康饮食
|
||||
*
|
||||
* @param id 健康饮食主键
|
||||
* @return 健康饮食
|
||||
*/
|
||||
@Override
|
||||
public YjHealthy selectYjHealthyById(String id)
|
||||
{
|
||||
return yjHealthyMapper.selectYjHealthyById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询健康饮食列表
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 健康饮食
|
||||
*/
|
||||
@Override
|
||||
public List<YjHealthy> selectYjHealthyList(YjHealthy yjHealthy)
|
||||
{
|
||||
return yjHealthyMapper.selectYjHealthyList(yjHealthy);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增健康饮食
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertYjHealthy(YjHealthy yjHealthy)
|
||||
{
|
||||
return yjHealthyMapper.insertYjHealthy(yjHealthy);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改健康饮食
|
||||
*
|
||||
* @param yjHealthy 健康饮食
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateYjHealthy(YjHealthy yjHealthy)
|
||||
{
|
||||
return yjHealthyMapper.updateYjHealthy(yjHealthy);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除健康饮食
|
||||
*
|
||||
* @param ids 需要删除的健康饮食主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjHealthyByIds(String[] ids)
|
||||
{
|
||||
return yjHealthyMapper.deleteYjHealthyByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除健康饮食信息
|
||||
*
|
||||
* @param id 健康饮食主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjHealthyById(String id)
|
||||
{
|
||||
return yjHealthyMapper.deleteYjHealthyById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,94 @@
|
||||
package com.ruoyi.system.service.columns.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjInherit;
|
||||
import com.ruoyi.system.mapper.colums.YjInheritMapper;
|
||||
import com.ruoyi.system.service.columns.IYjInheritService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 瑜伽传承Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Service
|
||||
public class YjInheritServiceImpl implements IYjInheritService
|
||||
{
|
||||
@Autowired
|
||||
private YjInheritMapper yjInheritMapper;
|
||||
|
||||
/**
|
||||
* 查询瑜伽传承
|
||||
*
|
||||
* @param id 瑜伽传承主键
|
||||
* @return 瑜伽传承
|
||||
*/
|
||||
@Override
|
||||
public YjInherit selectYjInheritById(String id)
|
||||
{
|
||||
return yjInheritMapper.selectYjInheritById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询瑜伽传承列表
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 瑜伽传承
|
||||
*/
|
||||
@Override
|
||||
public List<YjInherit> selectYjInheritList(YjInherit yjInherit)
|
||||
{
|
||||
return yjInheritMapper.selectYjInheritList(yjInherit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增瑜伽传承
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertYjInherit(YjInherit yjInherit)
|
||||
{
|
||||
return yjInheritMapper.insertYjInherit(yjInherit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改瑜伽传承
|
||||
*
|
||||
* @param yjInherit 瑜伽传承
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateYjInherit(YjInherit yjInherit)
|
||||
{
|
||||
return yjInheritMapper.updateYjInherit(yjInherit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽传承
|
||||
*
|
||||
* @param ids 需要删除的瑜伽传承主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjInheritByIds(String[] ids)
|
||||
{
|
||||
return yjInheritMapper.deleteYjInheritByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除瑜伽传承信息
|
||||
*
|
||||
* @param id 瑜伽传承主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjInheritById(String id)
|
||||
{
|
||||
return yjInheritMapper.deleteYjInheritById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.system.service.columns.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjPracticeMoments;
|
||||
import com.ruoyi.system.mapper.colums.YjPracticeMomentsMapper;
|
||||
import com.ruoyi.system.service.columns.IYjPracticeMomentsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Service
|
||||
public class YjPracticeMomentsServiceImpl implements IYjPracticeMomentsService
|
||||
{
|
||||
@Autowired
|
||||
private YjPracticeMomentsMapper yjPracticeMomentsMapper;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public YjPracticeMoments selectYjPracticeMomentsById(String id)
|
||||
{
|
||||
return yjPracticeMomentsMapper.selectYjPracticeMomentsById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public List<YjPracticeMoments> selectYjPracticeMomentsList(YjPracticeMoments yjPracticeMoments)
|
||||
{
|
||||
return yjPracticeMomentsMapper.selectYjPracticeMomentsList(yjPracticeMoments);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertYjPracticeMoments(YjPracticeMoments yjPracticeMoments)
|
||||
{
|
||||
return yjPracticeMomentsMapper.insertYjPracticeMoments(yjPracticeMoments);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param yjPracticeMoments 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateYjPracticeMoments(YjPracticeMoments yjPracticeMoments)
|
||||
{
|
||||
return yjPracticeMomentsMapper.updateYjPracticeMoments(yjPracticeMoments);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjPracticeMomentsByIds(String[] ids)
|
||||
{
|
||||
return yjPracticeMomentsMapper.deleteYjPracticeMomentsByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjPracticeMomentsById(String id)
|
||||
{
|
||||
return yjPracticeMomentsMapper.deleteYjPracticeMomentsById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
package com.ruoyi.system.service.columns.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.system.domain.columns.YjSense;
|
||||
import com.ruoyi.system.mapper.colums.YjSenseMapper;
|
||||
import com.ruoyi.system.service.columns.IYjSenseService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 瑜伽常识Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-29
|
||||
*/
|
||||
@Service
|
||||
public class YjSenseServiceImpl implements IYjSenseService
|
||||
{
|
||||
@Autowired
|
||||
private YjSenseMapper yjSenseMapper;
|
||||
|
||||
/**
|
||||
* 查询瑜伽常识
|
||||
*
|
||||
* @param id 瑜伽常识主键
|
||||
* @return 瑜伽常识
|
||||
*/
|
||||
@Override
|
||||
public YjSense selectYjSenseById(String id)
|
||||
{
|
||||
return yjSenseMapper.selectYjSenseById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询瑜伽常识列表
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 瑜伽常识
|
||||
*/
|
||||
@Override
|
||||
public List<YjSense> selectYjSenseList(YjSense yjSense)
|
||||
{
|
||||
return yjSenseMapper.selectYjSenseList(yjSense);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增瑜伽常识
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertYjSense(YjSense yjSense)
|
||||
{
|
||||
return yjSenseMapper.insertYjSense(yjSense);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改瑜伽常识
|
||||
*
|
||||
* @param yjSense 瑜伽常识
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateYjSense(YjSense yjSense)
|
||||
{
|
||||
return yjSenseMapper.updateYjSense(yjSense);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除瑜伽常识
|
||||
*
|
||||
* @param ids 需要删除的瑜伽常识主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjSenseByIds(String[] ids)
|
||||
{
|
||||
return yjSenseMapper.deleteYjSenseByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除瑜伽常识信息
|
||||
*
|
||||
* @param id 瑜伽常识主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteYjSenseById(String id)
|
||||
{
|
||||
return yjSenseMapper.deleteYjSenseById(id);
|
||||
}
|
||||
}
|
||||
@ -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<YjStore> 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);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,122 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.colums.SysTeacherMapper">
|
||||
|
||||
<resultMap type="SysTeacher" id="SysTeacherResult">
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="teacherName" column="teacher_name" />
|
||||
<result property="avatarImg" column="avatar_img" />
|
||||
<result property="intro" column="intro" />
|
||||
<result property="context" column="context" />
|
||||
<result property="url" column="url" />
|
||||
<result property="introduce" column="introduce" />
|
||||
<result property="releases" column="releases" />
|
||||
<result property="sort" column="sort" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysTeacherVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectSysTeacherList" parameterType="SysTeacher" resultMap="SysTeacherResult">
|
||||
<include refid="selectSysTeacherVo"/>
|
||||
<where>
|
||||
<if test="teacherName != null and teacherName != ''"> and teacher_name like concat('%', #{teacherName}, '%')</if>
|
||||
<if test="avatarImg != null and avatarImg != ''"> and avatar_img = #{avatarImg}</if>
|
||||
<if test="intro != null and intro != ''"> and intro = #{intro}</if>
|
||||
<if test="context != null and context != ''"> and context = #{context}</if>
|
||||
<if test="url != null and url != ''"> and url = #{url}</if>
|
||||
<if test="
|
||||
introduce != null and introduce != ''"> and
|
||||
introduce = #{
|
||||
introduce}</if>
|
||||
<if test="releases != null "> and releases = #{releases}</if>
|
||||
<if test="sort != null "> and sort = #{sort}</if>
|
||||
<if test="tenantId != null "> and tenant_id = #{tenantId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSysTeacherByUserId" parameterType="Long" resultMap="SysTeacherResult">
|
||||
<include refid="selectSysTeacherVo"/>
|
||||
where sys_teacher.user_id = #{userId}
|
||||
</select>
|
||||
|
||||
<insert id="insertSysTeacher" parameterType="SysTeacher">
|
||||
insert into sys_teacher
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="teacherName != null and teacherName != ''">teacher_name,</if>
|
||||
<if test="avatarImg != null">avatar_img,</if>
|
||||
<if test="intro != null">intro,</if>
|
||||
<if test="context != null">context,</if>
|
||||
<if test="url != null">url,</if>
|
||||
<if test="
|
||||
introduce != null">
|
||||
introduce,</if>
|
||||
<if test="releases != null">releases,</if>
|
||||
<if test="sort != null">sort,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="teacherName != null and teacherName != ''">#{teacherName},</if>
|
||||
<if test="avatarImg != null">#{avatarImg},</if>
|
||||
<if test="intro != null">#{intro},</if>
|
||||
<if test="context != null">#{context},</if>
|
||||
<if test="url != null">#{url},</if>
|
||||
<if test="
|
||||
introduce != null">#{
|
||||
introduce},</if>
|
||||
<if test="releases != null">#{releases},</if>
|
||||
<if test="sort != null">#{sort},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSysTeacher" parameterType="SysTeacher">
|
||||
update sys_teacher
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="teacherName != null and teacherName != ''">teacher_name = #{teacherName},</if>
|
||||
<if test="avatarImg != null">avatar_img = #{avatarImg},</if>
|
||||
<if test="intro != null">intro = #{intro},</if>
|
||||
<if test="context != null">context = #{context},</if>
|
||||
<if test="url != null">url = #{url},</if>
|
||||
<if test="
|
||||
introduce != null">
|
||||
introduce = #{
|
||||
introduce},</if>
|
||||
<if test="releases != null">releases = #{releases},</if>
|
||||
<if test="sort != null">sort = #{sort},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where user_id = #{userId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSysTeacherByUserId" parameterType="Long">
|
||||
delete from sys_teacher where user_id = #{userId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysTeacherByUserIds" parameterType="String">
|
||||
delete from sys_teacher where user_id in
|
||||
<foreach item="userId" collection="array" open="(" separator="," close=")">
|
||||
#{userId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,105 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.colums.YjAppreciateMapper">
|
||||
|
||||
<resultMap type="YjAppreciate" id="YjAppreciateResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="title" column="title" />
|
||||
<result property="image" column="image" />
|
||||
<result property="readNum" column="read_num" />
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="content" column="content" />
|
||||
<result property="status" column="status" />
|
||||
<result property="modifyTime" column="modify_time" />
|
||||
<result property="deptId" column="dept_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectYjAppreciateVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectYjAppreciateList" parameterType="YjAppreciate" resultMap="YjAppreciateResult">
|
||||
<include refid="selectYjAppreciateVo"/>
|
||||
<where>
|
||||
<if test="title != null and title != ''"> and yj_appreciate.title = #{title}</if>
|
||||
<if test="image != null and image != ''"> and yj_appreciate.image = #{image}</if>
|
||||
<if test="readNum != null "> and yj_appreciate.read_num = #{readNum}</if>
|
||||
<if test="startTime != null "> and yj_appreciate.start_time = #{startTime}</if>
|
||||
<if test="content != null and content != ''"> and yj_appreciate.content = #{content}</if>
|
||||
<if test="status != null "> and yj_appreciate.status = #{status}</if>
|
||||
<if test="modifyTime != null "> and yj_appreciate.modify_time = #{modifyTime}</if>
|
||||
<if test="deptId != null "> and yj_appreciate.dept_id = #{deptId}</if>
|
||||
<if test="tenantId != null "> and sys_dept.tenant_id = #{tenantId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectYjAppreciateById" parameterType="String" resultMap="YjAppreciateResult">
|
||||
<include refid="selectYjAppreciateVo"/>
|
||||
where yj_appreciate.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertYjAppreciate" parameterType="YjAppreciate">
|
||||
insert into yj_appreciate
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="title != null">title,</if>
|
||||
<if test="image != null">image,</if>
|
||||
<if test="readNum != null">read_num,</if>
|
||||
<if test="startTime != null">start_time,</if>
|
||||
<if test="content != null">content,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="modifyTime != null">modify_time,</if>
|
||||
<if test="deptId != null">dept_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="title != null">#{title},</if>
|
||||
<if test="image != null">#{image},</if>
|
||||
<if test="readNum != null">#{readNum},</if>
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="content != null">#{content},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="modifyTime != null">#{modifyTime},</if>
|
||||
<if test="deptId != null">#{deptId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateYjAppreciate" parameterType="YjAppreciate">
|
||||
update yj_appreciate
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="title != null">title = #{title},</if>
|
||||
<if test="image != null">image = #{image},</if>
|
||||
<if test="readNum != null">read_num = #{readNum},</if>
|
||||
<if test="startTime != null">start_time = #{startTime},</if>
|
||||
<if test="content != null">content = #{content},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="modifyTime != null">modify_time = #{modifyTime},</if>
|
||||
<if test="deptId != null">dept_id = #{deptId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteYjAppreciateById" parameterType="String">
|
||||
delete from yj_appreciate where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteYjAppreciateByIds" parameterType="String">
|
||||
delete from yj_appreciate where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,104 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.colums.YjHealthyMapper">
|
||||
|
||||
<resultMap type="YjHealthy" id="YjHealthyResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="title" column="title" />
|
||||
<result property="image" column="image" />
|
||||
<result property="readNum" column="read_num" />
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="content" column="content" />
|
||||
<result property="status" column="status" />
|
||||
<result property="modifyTime" column="modify_time" />
|
||||
<result property="deptId" column="dept_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectYjHealthyVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectYjHealthyList" parameterType="YjHealthy" resultMap="YjHealthyResult">
|
||||
<include refid="selectYjHealthyVo"/>
|
||||
<where>
|
||||
<if test="title != null and title != ''"> and yj_healthy.title = #{title}</if>
|
||||
<if test="image != null and image != ''"> and yj_healthy.image = #{image}</if>
|
||||
<if test="readNum != null "> and yj_healthy.read_num = #{readNum}</if>
|
||||
<if test="startTime != null "> and yj_healthy.start_time = #{startTime}</if>
|
||||
<if test="content != null and content != ''"> and yj_healthy.content = #{content}</if>
|
||||
<if test="status != null "> and yj_healthy.status = #{status}</if>
|
||||
<if test="modifyTime != null "> and yj_healthy.modify_time = #{modifyTime}</if>
|
||||
<if test="deptId != null "> and yj_healthy.dept_id = #{deptId}</if>
|
||||
<if test="tenantId != null "> and sys_dept.tenant_id = #{tenantId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectYjHealthyById" parameterType="String" resultMap="YjHealthyResult">
|
||||
<include refid="selectYjHealthyVo"/>
|
||||
where yj_healthy.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertYjHealthy" parameterType="YjHealthy">
|
||||
insert into yj_healthy
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="title != null">title,</if>
|
||||
<if test="image != null">image,</if>
|
||||
<if test="readNum != null">read_num,</if>
|
||||
<if test="startTime != null">start_time,</if>
|
||||
<if test="content != null">content,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="modifyTime != null">modify_time,</if>
|
||||
<if test="deptId != null">dept_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="title != null">#{title},</if>
|
||||
<if test="image != null">#{image},</if>
|
||||
<if test="readNum != null">#{readNum},</if>
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="content != null">#{content},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="modifyTime != null">#{modifyTime},</if>
|
||||
<if test="deptId != null">#{deptId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateYjHealthy" parameterType="YjHealthy">
|
||||
update yj_healthy
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="title != null">title = #{title},</if>
|
||||
<if test="image != null">image = #{image},</if>
|
||||
<if test="readNum != null">read_num = #{readNum},</if>
|
||||
<if test="startTime != null">start_time = #{startTime},</if>
|
||||
<if test="content != null">content = #{content},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="modifyTime != null">modify_time = #{modifyTime},</if>
|
||||
<if test="deptId != null">dept_id = #{deptId},</if>
|
||||
</trim>
|
||||
where yj_healthy.id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteYjHealthyById" parameterType="String">
|
||||
delete from yj_healthy where yj_healthy.id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteYjHealthyByIds" parameterType="String">
|
||||
delete from yj_healthy where yj_healthy.id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,104 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.colums.YjInheritMapper">
|
||||
|
||||
<resultMap type="YjInherit" id="YjInheritResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="title" column="title" />
|
||||
<result property="image" column="image" />
|
||||
<result property="readNum" column="read_num" />
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="content" column="content" />
|
||||
<result property="status" column="status" />
|
||||
<result property="modifyTime" column="modify_time" />
|
||||
<result property="deptId" column="dept_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectYjInheritVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectYjInheritList" parameterType="YjInherit" resultMap="YjInheritResult">
|
||||
<include refid="selectYjInheritVo"/>
|
||||
<where>
|
||||
<if test="title != null and title != ''"> and yj_inherit.title = #{title}</if>
|
||||
<if test="image != null and image != ''"> and yj_inherit.image = #{image}</if>
|
||||
<if test="readNum != null "> and yj_inherit.read_num = #{readNum}</if>
|
||||
<if test="startTime != null "> and yj_inherit.start_time = #{startTime}</if>
|
||||
<if test="content != null and content != ''"> and yj_inherit.content = #{content}</if>
|
||||
<if test="status != null "> and yj_inherit.status = #{status}</if>
|
||||
<if test="modifyTime != null "> and yj_inherit.modify_time = #{modifyTime}</if>
|
||||
<if test="deptId != null "> and yj_inherit.dept_id = #{deptId}</if>
|
||||
<if test="tenantId != null "> and sys_dept.tenant_id = #{tenantId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectYjInheritById" parameterType="String" resultMap="YjInheritResult">
|
||||
<include refid="selectYjInheritVo"/>
|
||||
where yj_inherit.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertYjInherit" parameterType="YjInherit">
|
||||
insert into yj_inherit
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="title != null">title,</if>
|
||||
<if test="image != null">image,</if>
|
||||
<if test="readNum != null">read_num,</if>
|
||||
<if test="startTime != null">start_time,</if>
|
||||
<if test="content != null">content,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="modifyTime != null">modify_time,</if>
|
||||
<if test="deptId != null">dept_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="title != null">#{title},</if>
|
||||
<if test="image != null">#{image},</if>
|
||||
<if test="readNum != null">#{readNum},</if>
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="content != null">#{content},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="modifyTime != null">#{modifyTime},</if>
|
||||
<if test="deptId != null">#{deptId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateYjInherit" parameterType="YjInherit">
|
||||
update yj_inherit
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="title != null">title = #{title},</if>
|
||||
<if test="image != null">image = #{image},</if>
|
||||
<if test="readNum != null">read_num = #{readNum},</if>
|
||||
<if test="startTime != null">start_time = #{startTime},</if>
|
||||
<if test="content != null">content = #{content},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="modifyTime != null">modify_time = #{modifyTime},</if>
|
||||
<if test="deptId != null">dept_id = #{deptId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteYjInheritById" parameterType="String">
|
||||
delete from yj_inherit where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteYjInheritByIds" parameterType="String">
|
||||
delete from yj_inherit where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,104 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.colums.YjPracticeMomentsMapper">
|
||||
|
||||
<resultMap type="YjPracticeMoments" id="YjPracticeMomentsResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="title" column="title" />
|
||||
<result property="image" column="image" />
|
||||
<result property="readNum" column="read_num" />
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="content" column="content" />
|
||||
<result property="status" column="status" />
|
||||
<result property="modifyTime" column="modify_time" />
|
||||
<result property="deptId" column="dept_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectYjPracticeMomentsVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectYjPracticeMomentsList" parameterType="YjPracticeMoments" resultMap="YjPracticeMomentsResult">
|
||||
<include refid="selectYjPracticeMomentsVo"/>
|
||||
<where>
|
||||
<if test="title != null and title != ''"> and yj_practice_moments.title = #{title}</if>
|
||||
<if test="image != null and image != ''"> and yj_practice_moments.image = #{image}</if>
|
||||
<if test="readNum != null "> and yj_practice_moments.read_num = #{readNum}</if>
|
||||
<if test="startTime != null "> and yj_practice_moments.start_time = #{startTime}</if>
|
||||
<if test="content != null and content != ''"> and yj_practice_moments.content = #{content}</if>
|
||||
<if test="status != null "> and yj_practice_moments.status = #{status}</if>
|
||||
<if test="modifyTime != null "> and yj_practice_moments.modify_time = #{modifyTime}</if>
|
||||
<if test="deptId != null "> and yj_practice_moments.dept_id = #{deptId}</if>
|
||||
<if test="tenantId != null "> and sys_dept.tenant_id = #{tenantId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectYjPracticeMomentsById" parameterType="String" resultMap="YjPracticeMomentsResult">
|
||||
<include refid="selectYjPracticeMomentsVo"/>
|
||||
where yj_practice_moments.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertYjPracticeMoments" parameterType="YjPracticeMoments">
|
||||
insert into yj_practice_moments
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="title != null">title,</if>
|
||||
<if test="image != null">image,</if>
|
||||
<if test="readNum != null">read_num,</if>
|
||||
<if test="startTime != null">start_time,</if>
|
||||
<if test="content != null">content,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="modifyTime != null">modify_time,</if>
|
||||
<if test="deptId != null">dept_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="title != null">#{title},</if>
|
||||
<if test="image != null">#{image},</if>
|
||||
<if test="readNum != null">#{readNum},</if>
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="content != null">#{content},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="modifyTime != null">#{modifyTime},</if>
|
||||
<if test="deptId != null">#{deptId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateYjPracticeMoments" parameterType="YjPracticeMoments">
|
||||
update yj_practice_moments
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="title != null">title = #{title},</if>
|
||||
<if test="image != null">image = #{image},</if>
|
||||
<if test="readNum != null">read_num = #{readNum},</if>
|
||||
<if test="startTime != null">start_time = #{startTime},</if>
|
||||
<if test="content != null">content = #{content},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="modifyTime != null">modify_time = #{modifyTime},</if>
|
||||
<if test="deptId != null">dept_id = #{deptId},</if>
|
||||
</trim>
|
||||
where yj_practice_moments.id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteYjPracticeMomentsById" parameterType="String">
|
||||
delete from yj_practice_moments where yj_practice_moments.id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteYjPracticeMomentsByIds" parameterType="String">
|
||||
delete from yj_practice_moments where yj_practice_moments.id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,104 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.colums.YjSenseMapper">
|
||||
|
||||
<resultMap type="YjSense" id="YjSenseResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="title" column="title" />
|
||||
<result property="image" column="image" />
|
||||
<result property="readNum" column="read_num" />
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="content" column="content" />
|
||||
<result property="status" column="status" />
|
||||
<result property="modifyTime" column="modify_time" />
|
||||
<result property="deptId" column="dept_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectYjSenseVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectYjSenseList" parameterType="YjSense" resultMap="YjSenseResult">
|
||||
<include refid="selectYjSenseVo"/>
|
||||
<where>
|
||||
<if test="title != null and title != ''"> and yj_sense.title = #{title}</if>
|
||||
<if test="image != null and image != ''"> and yj_sense.image = #{image}</if>
|
||||
<if test="readNum != null "> and yj_sense.read_num = #{readNum}</if>
|
||||
<if test="startTime != null "> and yj_sense.start_time = #{startTime}</if>
|
||||
<if test="content != null and content != ''"> and yj_sense.content = #{content}</if>
|
||||
<if test="status != null "> and yj_sense.status = #{status}</if>
|
||||
<if test="modifyTime != null "> and yj_sense.modify_time = #{modifyTime}</if>
|
||||
<if test="deptId != null "> and yj_sense.dept_id = #{deptId}</if>
|
||||
<if test="tenantId != null "> and sys_dept.tenant_id = #{tenantId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectYjSenseById" parameterType="String" resultMap="YjSenseResult">
|
||||
<include refid="selectYjSenseVo"/>
|
||||
where yj_sense.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertYjSense" parameterType="YjSense">
|
||||
insert into yj_sense
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="title != null">title,</if>
|
||||
<if test="image != null">image,</if>
|
||||
<if test="readNum != null">read_num,</if>
|
||||
<if test="startTime != null">start_time,</if>
|
||||
<if test="content != null">content,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="modifyTime != null">modify_time,</if>
|
||||
<if test="deptId != null">dept_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="title != null">#{title},</if>
|
||||
<if test="image != null">#{image},</if>
|
||||
<if test="readNum != null">#{readNum},</if>
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="content != null">#{content},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="modifyTime != null">#{modifyTime},</if>
|
||||
<if test="deptId != null">#{deptId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateYjSense" parameterType="YjSense">
|
||||
update yj_sense
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="title != null">title = #{title},</if>
|
||||
<if test="image != null">image = #{image},</if>
|
||||
<if test="readNum != null">read_num = #{readNum},</if>
|
||||
<if test="startTime != null">start_time = #{startTime},</if>
|
||||
<if test="content != null">content = #{content},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="modifyTime != null">modify_time = #{modifyTime},</if>
|
||||
<if test="deptId != null">dept_id = #{deptId},</if>
|
||||
</trim>
|
||||
where yj_sense.id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteYjSenseById" parameterType="String">
|
||||
delete from yj_sense where yj_sense.id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteYjSenseByIds" parameterType="String">
|
||||
delete from yj_sense where yj_sense.id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,94 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.colums.YjStoreMapper">
|
||||
|
||||
<resultMap type="YjStore" id="YjStoreResult">
|
||||
<result property="banner" column="banner" />
|
||||
<result property="storeName" column="store_name" />
|
||||
<result property="address" column="address" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="founder" column="founder" />
|
||||
<result property="profile" column="profile" />
|
||||
<result property="deptId" column="dept_id" />
|
||||
<result property="deptName" column="dept_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectYjStoreVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectYjStoreList" parameterType="YjStore" resultMap="YjStoreResult">
|
||||
<include refid="selectYjStoreVo"/>
|
||||
<where>
|
||||
<if test="banner != null and banner != ''"> and yj_store.banner = #{banner}</if>
|
||||
<if test="storeName != null and storeName != ''"> and yj_store.store_name like concat('%', #{storeName}, '%')</if>
|
||||
<if test="address != null and address != ''"> and yj_store.address = #{address}</if>
|
||||
<if test="phone != null and phone != ''"> and yj_store.phone = #{phone}</if>
|
||||
<if test="founder != null and founder != ''"> and yj_store.founder = #{founder}</if>
|
||||
<if test="profile != null and profile != ''"> and yj_store.profile = #{profile}</if>
|
||||
<if test="tenantId != null "> and sys_dept.tenant_id = #{tenantId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectYjStoreByDeptId" parameterType="Long" resultMap="YjStoreResult">
|
||||
<include refid="selectYjStoreVo"/>
|
||||
where yj_store.dept_id = #{deptId}
|
||||
</select>
|
||||
|
||||
<insert id="insertYjStore" parameterType="YjStore">
|
||||
insert into yj_store
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="banner != null">banner,</if>
|
||||
<if test="storeName != null and storeName != ''">store_name,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="phone != null">phone,</if>
|
||||
<if test="founder != null">founder,</if>
|
||||
<if test="profile != null">profile,</if>
|
||||
<if test="deptId != null">dept_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="banner != null">#{banner},</if>
|
||||
<if test="storeName != null and storeName != ''">#{storeName},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="phone != null">#{phone},</if>
|
||||
<if test="founder != null">#{founder},</if>
|
||||
<if test="profile != null">#{profile},</if>
|
||||
<if test="deptId != null">#{deptId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateYjStore" parameterType="YjStore">
|
||||
update yj_store
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="banner != null">yj_store.banner = #{banner},</if>
|
||||
<if test="storeName != null and storeName != ''">yj_store.store_name = #{storeName},</if>
|
||||
<if test="address != null">yj_store.address = #{address},</if>
|
||||
<if test="phone != null">yj_store.phone = #{phone},</if>
|
||||
<if test="founder != null">yj_store.founder = #{founder},</if>
|
||||
<if test="profile != null">yj_store.profile = #{profile},</if>
|
||||
</trim>
|
||||
where yj_store.dept_id = #{deptId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteYjStoreByDeptId" parameterType="Long">
|
||||
delete from yj_store where yj_store.dept_id = #{deptId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteYjStoreByDeptIds" parameterType="String">
|
||||
delete from yj_store where yj_store.dept_id in
|
||||
<foreach item="deptId" collection="array" open="(" separator="," close=")">
|
||||
#{deptId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in new issue