Merge remote-tracking branch 'origin/master'

master
xiaoning 5 days ago
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));
}
}

@ -44,7 +44,7 @@ public class CommonController
@Operation(summary = "上传文件", description = "上传文件上传后返回文件url") @Operation(summary = "上传文件", description = "上传文件上传后返回文件url")
@PostMapping("/file/upload") @PostMapping("/file/upload")
public RestResponse uploadFile(@RequestParam("file") MultipartFile file) { public RestResponse uploadFile(@RequestParam("file") MultipartFile file) {
return new RestResponse().setData(fileService.uploadFile(file)); return new RestResponse().setSuccess(true).setCode(200).setData(fileService.uploadFile(file));
} }

@ -60,6 +60,17 @@ public class SysUserController extends BaseController
return getDataTable(list); return getDataTable(list);
} }
/**
*
*/
@GetMapping("/listAll")
public TableDataInfo listAll(SysUser user)
{
// startPage();
List<SysUser> list = userService.selectUserList(user);
return getDataTable(list);
}
@Log(title = "用户管理", businessType = BusinessType.EXPORT) @Log(title = "用户管理", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('system:user:export')") @PreAuthorize("@ss.hasPermi('system:user:export')")
@GetMapping("/export") @GetMapping("/export")

@ -151,7 +151,7 @@ xss:
# 过滤开关 # 过滤开关
enabled: true enabled: true
# 排除链接(多个用逗号分隔) # 排除链接(多个用逗号分隔)
excludes: /system/notice excludes: /system/notice,/system/teacher,/system/inherit,/system/appreciate,/system/healthy,/system/moments,/system/sense,/system/store
# 匹配链接 # 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/* urlPatterns: /system/*,/monitor/*,/tool/*
extra: extra:

@ -85,6 +85,7 @@ public class BaseController
TableDataInfo rspData = new TableDataInfo(); TableDataInfo rspData = new TableDataInfo();
rspData.setCode(HttpStatus.SUCCESS); rspData.setCode(HttpStatus.SUCCESS);
rspData.setMsg("查询成功"); rspData.setMsg("查询成功");
System.out.println("list = " + list);
rspData.setRows(list); rspData.setRows(list);
rspData.setTotal(new PageInfo(list).getTotal()); rspData.setTotal(new PageInfo(list).getTotal());
return rspData; return rspData;

@ -12,6 +12,7 @@ public class RestResponse extends HashMap<String, Object> {
RestResponse restResponse = new RestResponse(); RestResponse restResponse = new RestResponse();
restResponse.setSuccess(true); restResponse.setSuccess(true);
restResponse.setMessage(message); restResponse.setMessage(message);
restResponse.setCode(200);
return restResponse; return restResponse;
} }
@ -27,7 +28,10 @@ public class RestResponse extends HashMap<String, Object> {
if (success != null) put("success", success); if (success != null) put("success", success);
return this; return this;
} }
public RestResponse setCode(Integer success) {
if (success != null) put("code", success);
return this;
}
public RestResponse setMessage(String message) { public RestResponse setMessage(String message) {
if (message != null) put("message", message); if (message != null) put("message", message);
return this; return this;

@ -1,6 +1,7 @@
package com.ruoyi.common.core.domain.entity; package com.ruoyi.common.core.domain.entity;
import com.ruoyi.common.core.domain.BaseEntity; import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
@ -15,6 +16,7 @@ import java.util.List;
* *
* @author ruoyi * @author ruoyi
*/ */
@Data
public class SysDept extends BaseEntity public class SysDept extends BaseEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -53,6 +55,9 @@ public class SysDept extends BaseEntity
/** 父部门名称 */ /** 父部门名称 */
private String parentName; private String parentName;
//
private String tenantId;
/** 子部门 */ /** 子部门 */
private List<SysDept> children = new ArrayList<SysDept>(); private List<SysDept> children = new ArrayList<SysDept>();

@ -11,21 +11,21 @@ import javax.annotation.PreDestroy;
public class SshTunnelConfig { public class SshTunnelConfig {
private Session session; private Session session;
@Value("${ssh.host}") //@Value("${ssh.host}")
private String sshHost="62.234.183.14"; private String sshHost="62.234.183.14";
@Value("${ssh.port}") // @Value("${ssh.port}")
private int sshPort=22; private int sshPort=22;
@Value("${ssh.user}") // @Value("${ssh.user}")
private String sshUser="root"; private String sshUser="root";
@Value("${ssh.identity}") // @Value("${ssh.identity}")
private String sshIdentity="E:/yoga-app-manager/private_key/runpeng20250915.pem"; private String sshIdentity="D:\\rpkj\\yoga-app-manager\\private_key\\runpeng20250915.pem";
@Value("${ssh.remote.db.host}") // @Value("${ssh.remote.db.host}")
private String remoteDbHost="127.0.0.1"; private String remoteDbHost="127.0.0.1";
@Value("${ssh.local.port}") // @Value("${ssh.local.port}")
private int localPort=32768; private int localPort=32768;
@Value("${ssh.remote.db.port}") // @Value("${ssh.remote.db.port}")
private int remoteDbPort=19116; private int remoteDbPort=19116;
public void createSshTunnel() throws Exception { public void createSshTunnel() throws Exception {

@ -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…
Cancel
Save