177个文件已删除
42个文件已修改
212个文件已添加
New file |
| | |
| | | package com.hrt.system.controller.sys; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.hrt.system.domain.poji.sys.SysConfig; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.hrt.common.core.utils.poi.ExcelUtil; |
| | | import com.hrt.common.core.web.controller.BaseController; |
| | | import com.hrt.common.core.web.domain.AjaxResult; |
| | | import com.hrt.common.core.web.page.TableDataInfo; |
| | | import com.hrt.common.log.annotation.Log; |
| | | import com.hrt.common.log.enums.BusinessType; |
| | | import com.hrt.common.security.annotation.RequiresPermissions; |
| | | import com.hrt.common.security.utils.SecurityUtils; |
| | | import com.hrt.system.service.sys.ISysConfigService; |
| | | |
| | | /** |
| | | * 参数配置 信息操作处理 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/config") |
| | | public class SysConfigController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysConfigService configService; |
| | | |
| | | /** |
| | | * 获取参数配置列表 |
| | | */ |
| | | @RequiresPermissions("system:config:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysConfig config) |
| | | { |
| | | startPage(); |
| | | List<SysConfig> list = configService.selectConfigList(config); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | @Log(title = "参数管理", businessType = BusinessType.EXPORT) |
| | | @RequiresPermissions("system:config:export") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysConfig config) |
| | | { |
| | | List<SysConfig> list = configService.selectConfigList(config); |
| | | ExcelUtil<SysConfig> util = new ExcelUtil<SysConfig>(SysConfig.class); |
| | | util.exportExcel(response, list, "参数数据"); |
| | | } |
| | | |
| | | /** |
| | | * 根据参数编号获取详细信息 |
| | | */ |
| | | @GetMapping(value = "/{configId}") |
| | | public AjaxResult getInfo(@PathVariable Long configId) |
| | | { |
| | | return success(configService.selectConfigById(configId)); |
| | | } |
| | | |
| | | /** |
| | | * 根据参数键名查询参数值 |
| | | */ |
| | | @GetMapping(value = "/configKey/{configKey}") |
| | | public AjaxResult getConfigKey(@PathVariable String configKey) |
| | | { |
| | | return success(configService.selectConfigByKey(configKey)); |
| | | } |
| | | |
| | | /** |
| | | * 新增参数配置 |
| | | */ |
| | | @RequiresPermissions("system:config:add") |
| | | @Log(title = "参数管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody SysConfig config) |
| | | { |
| | | if (!configService.checkConfigKeyUnique(config)) |
| | | { |
| | | return error("新增参数'" + config.getConfigName() + "'失败,参数键名已存在"); |
| | | } |
| | | config.setCreateBy(SecurityUtils.getUsername()); |
| | | return toAjax(configService.insertConfig(config)); |
| | | } |
| | | |
| | | /** |
| | | * 修改参数配置 |
| | | */ |
| | | @RequiresPermissions("system:config:edit") |
| | | @Log(title = "参数管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody SysConfig config) |
| | | { |
| | | if (!configService.checkConfigKeyUnique(config)) |
| | | { |
| | | return error("修改参数'" + config.getConfigName() + "'失败,参数键名已存在"); |
| | | } |
| | | config.setUpdateBy(SecurityUtils.getUsername()); |
| | | return toAjax(configService.updateConfig(config)); |
| | | } |
| | | |
| | | /** |
| | | * 删除参数配置 |
| | | */ |
| | | @RequiresPermissions("system:config:remove") |
| | | @Log(title = "参数管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{configIds}") |
| | | public AjaxResult remove(@PathVariable Long[] configIds) |
| | | { |
| | | configService.deleteConfigByIds(configIds); |
| | | return success(); |
| | | } |
| | | |
| | | /** |
| | | * 刷新参数缓存 |
| | | */ |
| | | @RequiresPermissions("system:config:remove") |
| | | @Log(title = "参数管理", businessType = BusinessType.CLEAN) |
| | | @DeleteMapping("/refreshCache") |
| | | public AjaxResult refreshCache() |
| | | { |
| | | configService.resetConfigCache(); |
| | | return success(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.controller.sys; |
| | | |
| | | import java.util.List; |
| | | import org.apache.commons.lang3.ArrayUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.hrt.common.core.constant.UserConstants; |
| | | import com.hrt.common.core.utils.StringUtils; |
| | | import com.hrt.common.core.web.controller.BaseController; |
| | | import com.hrt.common.core.web.domain.AjaxResult; |
| | | import com.hrt.common.log.annotation.Log; |
| | | import com.hrt.common.log.enums.BusinessType; |
| | | import com.hrt.common.security.annotation.RequiresPermissions; |
| | | import com.hrt.common.security.utils.SecurityUtils; |
| | | import com.hrt.system.api.domain.SysDept; |
| | | import com.hrt.system.service.user.ISysDeptService; |
| | | |
| | | /** |
| | | * 部门信息 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/dept") |
| | | public class SysDeptController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysDeptService deptService; |
| | | |
| | | /** |
| | | * 获取部门列表 |
| | | */ |
| | | @RequiresPermissions("system:dept:list") |
| | | @GetMapping("/list") |
| | | public AjaxResult list(SysDept dept) |
| | | { |
| | | List<SysDept> depts = deptService.selectDeptList(dept); |
| | | return success(depts); |
| | | } |
| | | |
| | | /** |
| | | * 查询部门列表(排除节点) |
| | | */ |
| | | @RequiresPermissions("system:dept:list") |
| | | @GetMapping("/list/exclude/{deptId}") |
| | | public AjaxResult excludeChild(@PathVariable(value = "deptId", required = false) Long deptId) |
| | | { |
| | | List<SysDept> depts = deptService.selectDeptList(new SysDept()); |
| | | depts.removeIf(d -> d.getDeptId().intValue() == deptId || ArrayUtils.contains(StringUtils.split(d.getAncestors(), ","), deptId + "")); |
| | | return success(depts); |
| | | } |
| | | |
| | | /** |
| | | * 根据部门编号获取详细信息 |
| | | */ |
| | | @RequiresPermissions("system:dept:query") |
| | | @GetMapping(value = "/{deptId}") |
| | | public AjaxResult getInfo(@PathVariable Long deptId) |
| | | { |
| | | deptService.checkDeptDataScope(deptId); |
| | | return success(deptService.selectDeptById(deptId)); |
| | | } |
| | | |
| | | /** |
| | | * 新增部门 |
| | | */ |
| | | @RequiresPermissions("system:dept:add") |
| | | @Log(title = "部门管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody SysDept dept) |
| | | { |
| | | if (!deptService.checkDeptNameUnique(dept)) |
| | | { |
| | | return error("新增部门'" + dept.getDeptName() + "'失败,部门名称已存在"); |
| | | } |
| | | dept.setCreateBy(SecurityUtils.getUsername()); |
| | | return toAjax(deptService.insertDept(dept)); |
| | | } |
| | | |
| | | /** |
| | | * 修改部门 |
| | | */ |
| | | @RequiresPermissions("system:dept:edit") |
| | | @Log(title = "部门管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody SysDept dept) |
| | | { |
| | | Long deptId = dept.getDeptId(); |
| | | deptService.checkDeptDataScope(deptId); |
| | | if (!deptService.checkDeptNameUnique(dept)) |
| | | { |
| | | return error("修改部门'" + dept.getDeptName() + "'失败,部门名称已存在"); |
| | | } |
| | | else if (dept.getParentId().equals(deptId)) |
| | | { |
| | | return error("修改部门'" + dept.getDeptName() + "'失败,上级部门不能是自己"); |
| | | } |
| | | else if (StringUtils.equals(UserConstants.DEPT_DISABLE, dept.getStatus()) && deptService.selectNormalChildrenDeptById(deptId) > 0) |
| | | { |
| | | return error("该部门包含未停用的子部门!"); |
| | | } |
| | | dept.setUpdateBy(SecurityUtils.getUsername()); |
| | | return toAjax(deptService.updateDept(dept)); |
| | | } |
| | | |
| | | /** |
| | | * 删除部门 |
| | | */ |
| | | @RequiresPermissions("system:dept:remove") |
| | | @Log(title = "部门管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{deptId}") |
| | | public AjaxResult remove(@PathVariable Long deptId) |
| | | { |
| | | if (deptService.hasChildByDeptId(deptId)) |
| | | { |
| | | return warn("存在下级部门,不允许删除"); |
| | | } |
| | | if (deptService.checkDeptExistUser(deptId)) |
| | | { |
| | | return warn("部门存在用户,不允许删除"); |
| | | } |
| | | deptService.checkDeptDataScope(deptId); |
| | | return toAjax(deptService.deleteDeptById(deptId)); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.controller.sys; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.hrt.common.core.utils.StringUtils; |
| | | import com.hrt.common.core.utils.poi.ExcelUtil; |
| | | import com.hrt.common.core.web.controller.BaseController; |
| | | import com.hrt.common.core.web.domain.AjaxResult; |
| | | import com.hrt.common.core.web.page.TableDataInfo; |
| | | import com.hrt.common.log.annotation.Log; |
| | | import com.hrt.common.log.enums.BusinessType; |
| | | import com.hrt.common.security.annotation.RequiresPermissions; |
| | | import com.hrt.common.security.utils.SecurityUtils; |
| | | import com.hrt.system.api.domain.SysDictData; |
| | | import com.hrt.system.service.sys.ISysDictDataService; |
| | | import com.hrt.system.service.sys.ISysDictTypeService; |
| | | |
| | | /** |
| | | * 数据字典信息 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/dict/data") |
| | | public class SysDictDataController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysDictDataService dictDataService; |
| | | |
| | | @Autowired |
| | | private ISysDictTypeService dictTypeService; |
| | | |
| | | @RequiresPermissions("system:dict:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysDictData dictData) |
| | | { |
| | | startPage(); |
| | | List<SysDictData> list = dictDataService.selectDictDataList(dictData); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | @Log(title = "字典数据", businessType = BusinessType.EXPORT) |
| | | @RequiresPermissions("system:dict:export") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysDictData dictData) |
| | | { |
| | | List<SysDictData> list = dictDataService.selectDictDataList(dictData); |
| | | ExcelUtil<SysDictData> util = new ExcelUtil<SysDictData>(SysDictData.class); |
| | | util.exportExcel(response, list, "字典数据"); |
| | | } |
| | | |
| | | /** |
| | | * 查询字典数据详细 |
| | | */ |
| | | @RequiresPermissions("system:dict:query") |
| | | @GetMapping(value = "/{dictCode}") |
| | | public AjaxResult getInfo(@PathVariable Long dictCode) |
| | | { |
| | | return success(dictDataService.selectDictDataById(dictCode)); |
| | | } |
| | | |
| | | /** |
| | | * 根据字典类型查询字典数据信息 |
| | | */ |
| | | @GetMapping(value = "/type/{dictType}") |
| | | public AjaxResult dictType(@PathVariable String dictType) |
| | | { |
| | | List<SysDictData> data = dictTypeService.selectDictDataByType(dictType); |
| | | if (StringUtils.isNull(data)) |
| | | { |
| | | data = new ArrayList<SysDictData>(); |
| | | } |
| | | return success(data); |
| | | } |
| | | |
| | | /** |
| | | * 新增字典类型 |
| | | */ |
| | | @RequiresPermissions("system:dict:add") |
| | | @Log(title = "字典数据", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody SysDictData dict) |
| | | { |
| | | dict.setCreateBy(SecurityUtils.getUsername()); |
| | | return toAjax(dictDataService.insertDictData(dict)); |
| | | } |
| | | |
| | | /** |
| | | * 修改保存字典类型 |
| | | */ |
| | | @RequiresPermissions("system:dict:edit") |
| | | @Log(title = "字典数据", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody SysDictData dict) |
| | | { |
| | | dict.setUpdateBy(SecurityUtils.getUsername()); |
| | | return toAjax(dictDataService.updateDictData(dict)); |
| | | } |
| | | |
| | | /** |
| | | * 删除字典类型 |
| | | */ |
| | | @RequiresPermissions("system:dict:remove") |
| | | @Log(title = "字典类型", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{dictCodes}") |
| | | public AjaxResult remove(@PathVariable Long[] dictCodes) |
| | | { |
| | | dictDataService.deleteDictDataByIds(dictCodes); |
| | | return success(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.controller.sys; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.hrt.common.core.utils.poi.ExcelUtil; |
| | | import com.hrt.common.core.web.controller.BaseController; |
| | | import com.hrt.common.core.web.domain.AjaxResult; |
| | | import com.hrt.common.core.web.page.TableDataInfo; |
| | | import com.hrt.common.log.annotation.Log; |
| | | import com.hrt.common.log.enums.BusinessType; |
| | | import com.hrt.common.security.annotation.RequiresPermissions; |
| | | import com.hrt.common.security.utils.SecurityUtils; |
| | | import com.hrt.system.api.domain.SysDictType; |
| | | import com.hrt.system.service.sys.ISysDictTypeService; |
| | | |
| | | /** |
| | | * 数据字典信息 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/dict/type") |
| | | public class SysDictTypeController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysDictTypeService dictTypeService; |
| | | |
| | | @RequiresPermissions("system:dict:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysDictType dictType) |
| | | { |
| | | startPage(); |
| | | List<SysDictType> list = dictTypeService.selectDictTypeList(dictType); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | @Log(title = "字典类型", businessType = BusinessType.EXPORT) |
| | | @RequiresPermissions("system:dict:export") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysDictType dictType) |
| | | { |
| | | List<SysDictType> list = dictTypeService.selectDictTypeList(dictType); |
| | | ExcelUtil<SysDictType> util = new ExcelUtil<SysDictType>(SysDictType.class); |
| | | util.exportExcel(response, list, "字典类型"); |
| | | } |
| | | |
| | | /** |
| | | * 查询字典类型详细 |
| | | */ |
| | | @RequiresPermissions("system:dict:query") |
| | | @GetMapping(value = "/{dictId}") |
| | | public AjaxResult getInfo(@PathVariable Long dictId) |
| | | { |
| | | return success(dictTypeService.selectDictTypeById(dictId)); |
| | | } |
| | | |
| | | /** |
| | | * 新增字典类型 |
| | | */ |
| | | @RequiresPermissions("system:dict:add") |
| | | @Log(title = "字典类型", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody SysDictType dict) |
| | | { |
| | | if (!dictTypeService.checkDictTypeUnique(dict)) |
| | | { |
| | | return error("新增字典'" + dict.getDictName() + "'失败,字典类型已存在"); |
| | | } |
| | | dict.setCreateBy(SecurityUtils.getUsername()); |
| | | return toAjax(dictTypeService.insertDictType(dict)); |
| | | } |
| | | |
| | | /** |
| | | * 修改字典类型 |
| | | */ |
| | | @RequiresPermissions("system:dict:edit") |
| | | @Log(title = "字典类型", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody SysDictType dict) |
| | | { |
| | | if (!dictTypeService.checkDictTypeUnique(dict)) |
| | | { |
| | | return error("修改字典'" + dict.getDictName() + "'失败,字典类型已存在"); |
| | | } |
| | | dict.setUpdateBy(SecurityUtils.getUsername()); |
| | | return toAjax(dictTypeService.updateDictType(dict)); |
| | | } |
| | | |
| | | /** |
| | | * 删除字典类型 |
| | | */ |
| | | @RequiresPermissions("system:dict:remove") |
| | | @Log(title = "字典类型", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{dictIds}") |
| | | public AjaxResult remove(@PathVariable Long[] dictIds) |
| | | { |
| | | dictTypeService.deleteDictTypeByIds(dictIds); |
| | | return success(); |
| | | } |
| | | |
| | | /** |
| | | * 刷新字典缓存 |
| | | */ |
| | | @RequiresPermissions("system:dict:remove") |
| | | @Log(title = "字典类型", businessType = BusinessType.CLEAN) |
| | | @DeleteMapping("/refreshCache") |
| | | public AjaxResult refreshCache() |
| | | { |
| | | dictTypeService.resetDictCache(); |
| | | return success(); |
| | | } |
| | | |
| | | /** |
| | | * 获取字典选择框列表 |
| | | */ |
| | | @GetMapping("/optionselect") |
| | | public AjaxResult optionselect() |
| | | { |
| | | List<SysDictType> dictTypes = dictTypeService.selectDictTypeAll(); |
| | | return success(dictTypes); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.controller.sys; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.hrt.common.core.constant.CacheConstants; |
| | | import com.hrt.common.core.utils.poi.ExcelUtil; |
| | | import com.hrt.common.core.web.controller.BaseController; |
| | | import com.hrt.common.core.web.domain.AjaxResult; |
| | | import com.hrt.common.core.web.page.TableDataInfo; |
| | | import com.hrt.common.log.annotation.Log; |
| | | import com.hrt.common.log.enums.BusinessType; |
| | | import com.hrt.common.redis.service.RedisService; |
| | | import com.hrt.common.security.annotation.InnerAuth; |
| | | import com.hrt.common.security.annotation.RequiresPermissions; |
| | | import com.hrt.system.api.domain.SysLogininfor; |
| | | import com.hrt.system.service.user.ISysLogininforService; |
| | | |
| | | /** |
| | | * 系统访问记录 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/logininfor") |
| | | public class SysLogininforController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysLogininforService logininforService; |
| | | |
| | | @Autowired |
| | | private RedisService redisService; |
| | | |
| | | @RequiresPermissions("system:logininfor:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysLogininfor logininfor) |
| | | { |
| | | startPage(); |
| | | List<SysLogininfor> list = logininforService.selectLogininforList(logininfor); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | @Log(title = "登录日志", businessType = BusinessType.EXPORT) |
| | | @RequiresPermissions("system:logininfor:export") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysLogininfor logininfor) |
| | | { |
| | | List<SysLogininfor> list = logininforService.selectLogininforList(logininfor); |
| | | ExcelUtil<SysLogininfor> util = new ExcelUtil<SysLogininfor>(SysLogininfor.class); |
| | | util.exportExcel(response, list, "登录日志"); |
| | | } |
| | | |
| | | @RequiresPermissions("system:logininfor:remove") |
| | | @Log(title = "登录日志", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{infoIds}") |
| | | public AjaxResult remove(@PathVariable Long[] infoIds) |
| | | { |
| | | return toAjax(logininforService.deleteLogininforByIds(infoIds)); |
| | | } |
| | | |
| | | @RequiresPermissions("system:logininfor:remove") |
| | | @Log(title = "登录日志", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/clean") |
| | | public AjaxResult clean() |
| | | { |
| | | logininforService.cleanLogininfor(); |
| | | return success(); |
| | | } |
| | | |
| | | @RequiresPermissions("system:logininfor:unlock") |
| | | @Log(title = "账户解锁", businessType = BusinessType.OTHER) |
| | | @GetMapping("/unlock/{userName}") |
| | | public AjaxResult unlock(@PathVariable("userName") String userName) |
| | | { |
| | | redisService.deleteObject(CacheConstants.PWD_ERR_CNT_KEY + userName); |
| | | return success(); |
| | | } |
| | | |
| | | @InnerAuth |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SysLogininfor logininfor) |
| | | { |
| | | return toAjax(logininforService.insertLogininfor(logininfor)); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.controller.sys; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.hrt.system.domain.poji.user.SysMenu; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.hrt.common.core.constant.UserConstants; |
| | | import com.hrt.common.core.utils.StringUtils; |
| | | import com.hrt.common.core.web.controller.BaseController; |
| | | import com.hrt.common.core.web.domain.AjaxResult; |
| | | import com.hrt.common.log.annotation.Log; |
| | | import com.hrt.common.log.enums.BusinessType; |
| | | import com.hrt.common.security.annotation.RequiresPermissions; |
| | | import com.hrt.common.security.utils.SecurityUtils; |
| | | import com.hrt.system.service.user.ISysMenuService; |
| | | |
| | | /** |
| | | * 菜单信息 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/menu") |
| | | public class SysMenuController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysMenuService menuService; |
| | | |
| | | /** |
| | | * 获取菜单列表 |
| | | */ |
| | | @RequiresPermissions("system:menu:list") |
| | | @GetMapping("/list") |
| | | public AjaxResult list(SysMenu menu) |
| | | { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | List<SysMenu> menus = menuService.selectMenuList(menu, userId); |
| | | return success(menus); |
| | | } |
| | | |
| | | /** |
| | | * 根据菜单编号获取详细信息 |
| | | */ |
| | | @RequiresPermissions("system:menu:query") |
| | | @GetMapping(value = "/{menuId}") |
| | | public AjaxResult getInfo(@PathVariable Long menuId) |
| | | { |
| | | return success(menuService.selectMenuById(menuId)); |
| | | } |
| | | |
| | | /** |
| | | * 获取菜单下拉树列表 |
| | | */ |
| | | @GetMapping("/treeselect") |
| | | public AjaxResult treeselect(SysMenu menu) |
| | | { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | List<SysMenu> menus = menuService.selectMenuList(menu, userId); |
| | | return success(menuService.buildMenuTreeSelect(menus)); |
| | | } |
| | | |
| | | /** |
| | | * 加载对应角色菜单列表树 |
| | | */ |
| | | @GetMapping(value = "/roleMenuTreeselect/{roleId}") |
| | | public AjaxResult roleMenuTreeselect(@PathVariable("roleId") Long roleId) |
| | | { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | List<SysMenu> menus = menuService.selectMenuList(userId); |
| | | AjaxResult ajax = AjaxResult.success(); |
| | | ajax.put("checkedKeys", menuService.selectMenuListByRoleId(roleId)); |
| | | ajax.put("menus", menuService.buildMenuTreeSelect(menus)); |
| | | return ajax; |
| | | } |
| | | |
| | | /** |
| | | * 新增菜单 |
| | | */ |
| | | @RequiresPermissions("system:menu:add") |
| | | @Log(title = "菜单管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody SysMenu menu) |
| | | { |
| | | if (!menuService.checkMenuNameUnique(menu)) |
| | | { |
| | | return error("新增菜单'" + menu.getMenuName() + "'失败,菜单名称已存在"); |
| | | } |
| | | else if (UserConstants.YES_FRAME.equals(menu.getIsFrame()) && !StringUtils.ishttp(menu.getPath())) |
| | | { |
| | | return error("新增菜单'" + menu.getMenuName() + "'失败,地址必须以http(s)://开头"); |
| | | } |
| | | menu.setCreateBy(SecurityUtils.getUsername()); |
| | | return toAjax(menuService.insertMenu(menu)); |
| | | } |
| | | |
| | | /** |
| | | * 修改菜单 |
| | | */ |
| | | @RequiresPermissions("system:menu:edit") |
| | | @Log(title = "菜单管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody SysMenu menu) |
| | | { |
| | | if (!menuService.checkMenuNameUnique(menu)) |
| | | { |
| | | return error("修改菜单'" + menu.getMenuName() + "'失败,菜单名称已存在"); |
| | | } |
| | | else if (UserConstants.YES_FRAME.equals(menu.getIsFrame()) && !StringUtils.ishttp(menu.getPath())) |
| | | { |
| | | return error("修改菜单'" + menu.getMenuName() + "'失败,地址必须以http(s)://开头"); |
| | | } |
| | | else if (menu.getMenuId().equals(menu.getParentId())) |
| | | { |
| | | return error("修改菜单'" + menu.getMenuName() + "'失败,上级菜单不能选择自己"); |
| | | } |
| | | menu.setUpdateBy(SecurityUtils.getUsername()); |
| | | return toAjax(menuService.updateMenu(menu)); |
| | | } |
| | | |
| | | /** |
| | | * 删除菜单 |
| | | */ |
| | | @RequiresPermissions("system:menu:remove") |
| | | @Log(title = "菜单管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{menuId}") |
| | | public AjaxResult remove(@PathVariable("menuId") Long menuId) |
| | | { |
| | | if (menuService.hasChildByMenuId(menuId)) |
| | | { |
| | | return warn("存在子菜单,不允许删除"); |
| | | } |
| | | if (menuService.checkMenuExistRole(menuId)) |
| | | { |
| | | return warn("菜单已分配,不允许删除"); |
| | | } |
| | | return toAjax(menuService.deleteMenuById(menuId)); |
| | | } |
| | | |
| | | /** |
| | | * 获取路由信息 |
| | | * |
| | | * @return 路由信息 |
| | | */ |
| | | @GetMapping("getRouters") |
| | | public AjaxResult getRouters() |
| | | { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | List<SysMenu> menus = menuService.selectMenuTreeByUserId(userId); |
| | | return success(menuService.buildMenus(menus)); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.controller.sys; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.hrt.system.domain.poji.sys.SysNotice; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.hrt.common.core.web.controller.BaseController; |
| | | import com.hrt.common.core.web.domain.AjaxResult; |
| | | import com.hrt.common.core.web.page.TableDataInfo; |
| | | import com.hrt.common.log.annotation.Log; |
| | | import com.hrt.common.log.enums.BusinessType; |
| | | import com.hrt.common.security.annotation.RequiresPermissions; |
| | | import com.hrt.common.security.utils.SecurityUtils; |
| | | import com.hrt.system.service.sys.ISysNoticeService; |
| | | |
| | | /** |
| | | * 公告 信息操作处理 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/notice") |
| | | public class SysNoticeController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysNoticeService noticeService; |
| | | |
| | | /** |
| | | * 获取通知公告列表 |
| | | */ |
| | | @RequiresPermissions("system:notice:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysNotice notice) |
| | | { |
| | | startPage(); |
| | | List<SysNotice> list = noticeService.selectNoticeList(notice); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 根据通知公告编号获取详细信息 |
| | | */ |
| | | @RequiresPermissions("system:notice:query") |
| | | @GetMapping(value = "/{noticeId}") |
| | | public AjaxResult getInfo(@PathVariable Long noticeId) |
| | | { |
| | | return success(noticeService.selectNoticeById(noticeId)); |
| | | } |
| | | |
| | | /** |
| | | * 新增通知公告 |
| | | */ |
| | | @RequiresPermissions("system:notice:add") |
| | | @Log(title = "通知公告", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody SysNotice notice) |
| | | { |
| | | notice.setCreateBy(SecurityUtils.getUsername()); |
| | | return toAjax(noticeService.insertNotice(notice)); |
| | | } |
| | | |
| | | /** |
| | | * 修改通知公告 |
| | | */ |
| | | @RequiresPermissions("system:notice:edit") |
| | | @Log(title = "通知公告", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody SysNotice notice) |
| | | { |
| | | notice.setUpdateBy(SecurityUtils.getUsername()); |
| | | return toAjax(noticeService.updateNotice(notice)); |
| | | } |
| | | |
| | | /** |
| | | * 删除通知公告 |
| | | */ |
| | | @RequiresPermissions("system:notice:remove") |
| | | @Log(title = "通知公告", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{noticeIds}") |
| | | public AjaxResult remove(@PathVariable Long[] noticeIds) |
| | | { |
| | | return toAjax(noticeService.deleteNoticeByIds(noticeIds)); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.controller.sys; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.hrt.common.core.utils.poi.ExcelUtil; |
| | | import com.hrt.common.core.web.controller.BaseController; |
| | | import com.hrt.common.core.web.domain.AjaxResult; |
| | | import com.hrt.common.core.web.page.TableDataInfo; |
| | | import com.hrt.common.log.annotation.Log; |
| | | import com.hrt.common.log.enums.BusinessType; |
| | | import com.hrt.common.security.annotation.InnerAuth; |
| | | import com.hrt.common.security.annotation.RequiresPermissions; |
| | | import com.hrt.system.api.domain.SysOperLog; |
| | | import com.hrt.system.service.user.ISysOperLogService; |
| | | |
| | | /** |
| | | * 操作日志记录 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/operlog") |
| | | public class SysOperlogController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysOperLogService operLogService; |
| | | |
| | | @RequiresPermissions("system:operlog:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysOperLog operLog) |
| | | { |
| | | startPage(); |
| | | List<SysOperLog> list = operLogService.selectOperLogList(operLog); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | @Log(title = "操作日志", businessType = BusinessType.EXPORT) |
| | | @RequiresPermissions("system:operlog:export") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysOperLog operLog) |
| | | { |
| | | List<SysOperLog> list = operLogService.selectOperLogList(operLog); |
| | | ExcelUtil<SysOperLog> util = new ExcelUtil<SysOperLog>(SysOperLog.class); |
| | | util.exportExcel(response, list, "操作日志"); |
| | | } |
| | | |
| | | @Log(title = "操作日志", businessType = BusinessType.DELETE) |
| | | @RequiresPermissions("system:operlog:remove") |
| | | @DeleteMapping("/{operIds}") |
| | | public AjaxResult remove(@PathVariable Long[] operIds) |
| | | { |
| | | return toAjax(operLogService.deleteOperLogByIds(operIds)); |
| | | } |
| | | |
| | | @RequiresPermissions("system:operlog:remove") |
| | | @Log(title = "操作日志", businessType = BusinessType.CLEAN) |
| | | @DeleteMapping("/clean") |
| | | public AjaxResult clean() |
| | | { |
| | | operLogService.cleanOperLog(); |
| | | return success(); |
| | | } |
| | | |
| | | @InnerAuth |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SysOperLog operLog) |
| | | { |
| | | return toAjax(operLogService.insertOperlog(operLog)); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.controller.sys; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.hrt.system.domain.poji.user.SysPost; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.hrt.common.core.utils.poi.ExcelUtil; |
| | | import com.hrt.common.core.web.controller.BaseController; |
| | | import com.hrt.common.core.web.domain.AjaxResult; |
| | | import com.hrt.common.core.web.page.TableDataInfo; |
| | | import com.hrt.common.log.annotation.Log; |
| | | import com.hrt.common.log.enums.BusinessType; |
| | | import com.hrt.common.security.annotation.RequiresPermissions; |
| | | import com.hrt.common.security.utils.SecurityUtils; |
| | | import com.hrt.system.service.user.ISysPostService; |
| | | |
| | | /** |
| | | * 岗位信息操作处理 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/post") |
| | | public class SysPostController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysPostService postService; |
| | | |
| | | /** |
| | | * 获取岗位列表 |
| | | */ |
| | | @RequiresPermissions("system:post:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysPost post) |
| | | { |
| | | startPage(); |
| | | List<SysPost> list = postService.selectPostList(post); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | @Log(title = "岗位管理", businessType = BusinessType.EXPORT) |
| | | @RequiresPermissions("system:post:export") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysPost post) |
| | | { |
| | | List<SysPost> list = postService.selectPostList(post); |
| | | ExcelUtil<SysPost> util = new ExcelUtil<SysPost>(SysPost.class); |
| | | util.exportExcel(response, list, "岗位数据"); |
| | | } |
| | | |
| | | /** |
| | | * 根据岗位编号获取详细信息 |
| | | */ |
| | | @RequiresPermissions("system:post:query") |
| | | @GetMapping(value = "/{postId}") |
| | | public AjaxResult getInfo(@PathVariable Long postId) |
| | | { |
| | | return success(postService.selectPostById(postId)); |
| | | } |
| | | |
| | | /** |
| | | * 新增岗位 |
| | | */ |
| | | @RequiresPermissions("system:post:add") |
| | | @Log(title = "岗位管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody SysPost post) |
| | | { |
| | | if (!postService.checkPostNameUnique(post)) |
| | | { |
| | | return error("新增岗位'" + post.getPostName() + "'失败,岗位名称已存在"); |
| | | } |
| | | else if (!postService.checkPostCodeUnique(post)) |
| | | { |
| | | return error("新增岗位'" + post.getPostName() + "'失败,岗位编码已存在"); |
| | | } |
| | | post.setCreateBy(SecurityUtils.getUsername()); |
| | | return toAjax(postService.insertPost(post)); |
| | | } |
| | | |
| | | /** |
| | | * 修改岗位 |
| | | */ |
| | | @RequiresPermissions("system:post:edit") |
| | | @Log(title = "岗位管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody SysPost post) |
| | | { |
| | | if (!postService.checkPostNameUnique(post)) |
| | | { |
| | | return error("修改岗位'" + post.getPostName() + "'失败,岗位名称已存在"); |
| | | } |
| | | else if (!postService.checkPostCodeUnique(post)) |
| | | { |
| | | return error("修改岗位'" + post.getPostName() + "'失败,岗位编码已存在"); |
| | | } |
| | | post.setUpdateBy(SecurityUtils.getUsername()); |
| | | return toAjax(postService.updatePost(post)); |
| | | } |
| | | |
| | | /** |
| | | * 删除岗位 |
| | | */ |
| | | @RequiresPermissions("system:post:remove") |
| | | @Log(title = "岗位管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{postIds}") |
| | | public AjaxResult remove(@PathVariable Long[] postIds) |
| | | { |
| | | return toAjax(postService.deletePostByIds(postIds)); |
| | | } |
| | | |
| | | /** |
| | | * 获取岗位选择框列表 |
| | | */ |
| | | @GetMapping("/optionselect") |
| | | public AjaxResult optionselect() |
| | | { |
| | | List<SysPost> posts = postService.selectPostAll(); |
| | | return success(posts); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.controller.sys; |
| | | |
| | | import java.util.Arrays; |
| | | 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.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import com.hrt.common.core.domain.R; |
| | | import com.hrt.common.core.utils.StringUtils; |
| | | import com.hrt.common.core.utils.file.FileTypeUtils; |
| | | import com.hrt.common.core.utils.file.MimeTypeUtils; |
| | | import com.hrt.common.core.web.controller.BaseController; |
| | | import com.hrt.common.core.web.domain.AjaxResult; |
| | | import com.hrt.common.log.annotation.Log; |
| | | import com.hrt.common.log.enums.BusinessType; |
| | | import com.hrt.common.security.service.TokenService; |
| | | import com.hrt.common.security.utils.SecurityUtils; |
| | | import com.hrt.system.api.RemoteFileService; |
| | | import com.hrt.system.api.domain.SysFile; |
| | | import com.hrt.system.api.domain.SysUser; |
| | | import com.hrt.system.api.model.LoginUser; |
| | | import com.hrt.system.service.user.ISysUserService; |
| | | |
| | | /** |
| | | * 个人信息 业务处理 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/user/profile") |
| | | public class SysProfileController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysUserService userService; |
| | | |
| | | @Autowired |
| | | private TokenService tokenService; |
| | | |
| | | @Autowired |
| | | private RemoteFileService remoteFileService; |
| | | |
| | | /** |
| | | * 个人信息 |
| | | */ |
| | | @GetMapping |
| | | public AjaxResult profile() |
| | | { |
| | | String username = SecurityUtils.getUsername(); |
| | | SysUser user = userService.selectUserByUserName(username); |
| | | AjaxResult ajax = AjaxResult.success(user); |
| | | ajax.put("roleGroup", userService.selectUserRoleGroup(username)); |
| | | ajax.put("postGroup", userService.selectUserPostGroup(username)); |
| | | return ajax; |
| | | } |
| | | |
| | | /** |
| | | * 修改用户 |
| | | */ |
| | | @Log(title = "个人信息", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult updateProfile(@RequestBody SysUser user) |
| | | { |
| | | LoginUser loginUser = SecurityUtils.getLoginUser(); |
| | | SysUser sysUser = loginUser.getSysUser(); |
| | | user.setUserName(sysUser.getUserName()); |
| | | if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(user)) |
| | | { |
| | | return error("修改用户'" + user.getUserName() + "'失败,手机号码已存在"); |
| | | } |
| | | else if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(user)) |
| | | { |
| | | return error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在"); |
| | | } |
| | | user.setUserId(sysUser.getUserId()); |
| | | user.setPassword(null); |
| | | user.setAvatar(null); |
| | | user.setDeptId(null); |
| | | if (userService.updateUserProfile(user) > 0) |
| | | { |
| | | // 更新缓存用户信息 |
| | | loginUser.getSysUser().setNickName(user.getNickName()); |
| | | loginUser.getSysUser().setPhonenumber(user.getPhonenumber()); |
| | | loginUser.getSysUser().setEmail(user.getEmail()); |
| | | loginUser.getSysUser().setSex(user.getSex()); |
| | | tokenService.setLoginUser(loginUser); |
| | | return success(); |
| | | } |
| | | return error("修改个人信息异常,请联系管理员"); |
| | | } |
| | | |
| | | /** |
| | | * 重置密码 |
| | | */ |
| | | @Log(title = "个人信息", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/updatePwd") |
| | | public AjaxResult updatePwd(String oldPassword, String newPassword) |
| | | { |
| | | String username = SecurityUtils.getUsername(); |
| | | SysUser user = userService.selectUserByUserName(username); |
| | | String password = user.getPassword(); |
| | | if (!SecurityUtils.matchesPassword(oldPassword, password)) |
| | | { |
| | | return error("修改密码失败,旧密码错误"); |
| | | } |
| | | if (SecurityUtils.matchesPassword(newPassword, password)) |
| | | { |
| | | return error("新密码不能与旧密码相同"); |
| | | } |
| | | if (userService.resetUserPwd(username, SecurityUtils.encryptPassword(newPassword)) > 0) |
| | | { |
| | | // 更新缓存用户密码 |
| | | LoginUser loginUser = SecurityUtils.getLoginUser(); |
| | | loginUser.getSysUser().setPassword(SecurityUtils.encryptPassword(newPassword)); |
| | | tokenService.setLoginUser(loginUser); |
| | | return success(); |
| | | } |
| | | return error("修改密码异常,请联系管理员"); |
| | | } |
| | | |
| | | /** |
| | | * 头像上传 |
| | | */ |
| | | @Log(title = "用户头像", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/avatar") |
| | | public AjaxResult avatar(@RequestParam("avatarfile") MultipartFile file) |
| | | { |
| | | if (!file.isEmpty()) |
| | | { |
| | | LoginUser loginUser = SecurityUtils.getLoginUser(); |
| | | String extension = FileTypeUtils.getExtension(file); |
| | | if (!StringUtils.equalsAnyIgnoreCase(extension, MimeTypeUtils.IMAGE_EXTENSION)) |
| | | { |
| | | return error("文件格式不正确,请上传" + Arrays.toString(MimeTypeUtils.IMAGE_EXTENSION) + "格式"); |
| | | } |
| | | R<SysFile> fileResult = remoteFileService.upload(file); |
| | | if (StringUtils.isNull(fileResult) || StringUtils.isNull(fileResult.getData())) |
| | | { |
| | | return error("文件服务异常,请联系管理员"); |
| | | } |
| | | String url = fileResult.getData().getUrl(); |
| | | if (userService.updateUserAvatar(loginUser.getUsername(), url)) |
| | | { |
| | | AjaxResult ajax = AjaxResult.success(); |
| | | ajax.put("imgUrl", url); |
| | | // 更新缓存用户头像 |
| | | loginUser.getSysUser().setAvatar(url); |
| | | tokenService.setLoginUser(loginUser); |
| | | return ajax; |
| | | } |
| | | } |
| | | return error("上传图片异常,请联系管理员"); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.controller.sys; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.hrt.system.domain.poji.user.SysUserRole; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.hrt.common.core.utils.poi.ExcelUtil; |
| | | import com.hrt.common.core.web.controller.BaseController; |
| | | import com.hrt.common.core.web.domain.AjaxResult; |
| | | import com.hrt.common.core.web.page.TableDataInfo; |
| | | import com.hrt.common.log.annotation.Log; |
| | | import com.hrt.common.log.enums.BusinessType; |
| | | import com.hrt.common.security.annotation.RequiresPermissions; |
| | | import com.hrt.common.security.utils.SecurityUtils; |
| | | import com.hrt.system.api.domain.SysDept; |
| | | import com.hrt.system.api.domain.SysRole; |
| | | import com.hrt.system.api.domain.SysUser; |
| | | import com.hrt.system.service.user.ISysDeptService; |
| | | import com.hrt.system.service.user.ISysRoleService; |
| | | import com.hrt.system.service.user.ISysUserService; |
| | | |
| | | /** |
| | | * 角色信息 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/role") |
| | | public class SysRoleController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysRoleService roleService; |
| | | |
| | | @Autowired |
| | | private ISysUserService userService; |
| | | |
| | | @Autowired |
| | | private ISysDeptService deptService; |
| | | |
| | | @RequiresPermissions("system:role:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysRole role) |
| | | { |
| | | startPage(); |
| | | List<SysRole> list = roleService.selectRoleList(role); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | @Log(title = "角色管理", businessType = BusinessType.EXPORT) |
| | | @RequiresPermissions("system:role:export") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysRole role) |
| | | { |
| | | List<SysRole> list = roleService.selectRoleList(role); |
| | | ExcelUtil<SysRole> util = new ExcelUtil<SysRole>(SysRole.class); |
| | | util.exportExcel(response, list, "角色数据"); |
| | | } |
| | | |
| | | /** |
| | | * 根据角色编号获取详细信息 |
| | | */ |
| | | @RequiresPermissions("system:role:query") |
| | | @GetMapping(value = "/{roleId}") |
| | | public AjaxResult getInfo(@PathVariable Long roleId) |
| | | { |
| | | roleService.checkRoleDataScope(roleId); |
| | | return success(roleService.selectRoleById(roleId)); |
| | | } |
| | | |
| | | /** |
| | | * 新增角色 |
| | | */ |
| | | @RequiresPermissions("system:role:add") |
| | | @Log(title = "角色管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody SysRole role) |
| | | { |
| | | if (!roleService.checkRoleNameUnique(role)) |
| | | { |
| | | return error("新增角色'" + role.getRoleName() + "'失败,角色名称已存在"); |
| | | } |
| | | else if (!roleService.checkRoleKeyUnique(role)) |
| | | { |
| | | return error("新增角色'" + role.getRoleName() + "'失败,角色权限已存在"); |
| | | } |
| | | role.setCreateBy(SecurityUtils.getUsername()); |
| | | return toAjax(roleService.insertRole(role)); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 修改保存角色 |
| | | */ |
| | | @RequiresPermissions("system:role:edit") |
| | | @Log(title = "角色管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody SysRole role) |
| | | { |
| | | roleService.checkRoleAllowed(role); |
| | | roleService.checkRoleDataScope(role.getRoleId()); |
| | | if (!roleService.checkRoleNameUnique(role)) |
| | | { |
| | | return error("修改角色'" + role.getRoleName() + "'失败,角色名称已存在"); |
| | | } |
| | | else if (!roleService.checkRoleKeyUnique(role)) |
| | | { |
| | | return error("修改角色'" + role.getRoleName() + "'失败,角色权限已存在"); |
| | | } |
| | | role.setUpdateBy(SecurityUtils.getUsername()); |
| | | return toAjax(roleService.updateRole(role)); |
| | | } |
| | | |
| | | /** |
| | | * 修改保存数据权限 |
| | | */ |
| | | @RequiresPermissions("system:role:edit") |
| | | @Log(title = "角色管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/dataScope") |
| | | public AjaxResult dataScope(@RequestBody SysRole role) |
| | | { |
| | | roleService.checkRoleAllowed(role); |
| | | roleService.checkRoleDataScope(role.getRoleId()); |
| | | return toAjax(roleService.authDataScope(role)); |
| | | } |
| | | |
| | | /** |
| | | * 状态修改 |
| | | */ |
| | | @RequiresPermissions("system:role:edit") |
| | | @Log(title = "角色管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/changeStatus") |
| | | public AjaxResult changeStatus(@RequestBody SysRole role) |
| | | { |
| | | roleService.checkRoleAllowed(role); |
| | | roleService.checkRoleDataScope(role.getRoleId()); |
| | | role.setUpdateBy(SecurityUtils.getUsername()); |
| | | return toAjax(roleService.updateRoleStatus(role)); |
| | | } |
| | | |
| | | /** |
| | | * 删除角色 |
| | | */ |
| | | @RequiresPermissions("system:role:remove") |
| | | @Log(title = "角色管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{roleIds}") |
| | | public AjaxResult remove(@PathVariable Long[] roleIds) |
| | | { |
| | | return toAjax(roleService.deleteRoleByIds(roleIds)); |
| | | } |
| | | |
| | | /** |
| | | * 获取角色选择框列表 |
| | | */ |
| | | @RequiresPermissions("system:role:query") |
| | | @GetMapping("/optionselect") |
| | | public AjaxResult optionselect() |
| | | { |
| | | return success(roleService.selectRoleAll()); |
| | | } |
| | | /** |
| | | * 查询已分配用户角色列表 |
| | | */ |
| | | @RequiresPermissions("system:role:list") |
| | | @GetMapping("/authUser/allocatedList") |
| | | public TableDataInfo allocatedList(SysUser user) |
| | | { |
| | | startPage(); |
| | | List<SysUser> list = userService.selectAllocatedList(user); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 查询未分配用户角色列表 |
| | | */ |
| | | @RequiresPermissions("system:role:list") |
| | | @GetMapping("/authUser/unallocatedList") |
| | | public TableDataInfo unallocatedList(SysUser user) |
| | | { |
| | | startPage(); |
| | | List<SysUser> list = userService.selectUnallocatedList(user); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 取消授权用户 |
| | | */ |
| | | @RequiresPermissions("system:role:edit") |
| | | @Log(title = "角色管理", businessType = BusinessType.GRANT) |
| | | @PutMapping("/authUser/cancel") |
| | | public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole) |
| | | { |
| | | return toAjax(roleService.deleteAuthUser(userRole)); |
| | | } |
| | | |
| | | /** |
| | | * 批量取消授权用户 |
| | | */ |
| | | @RequiresPermissions("system:role:edit") |
| | | @Log(title = "角色管理", businessType = BusinessType.GRANT) |
| | | @PutMapping("/authUser/cancelAll") |
| | | public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds) |
| | | { |
| | | return toAjax(roleService.deleteAuthUsers(roleId, userIds)); |
| | | } |
| | | |
| | | /** |
| | | * 批量选择用户授权 |
| | | */ |
| | | @RequiresPermissions("system:role:edit") |
| | | @Log(title = "角色管理", businessType = BusinessType.GRANT) |
| | | @PutMapping("/authUser/selectAll") |
| | | public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds) |
| | | { |
| | | roleService.checkRoleDataScope(roleId); |
| | | return toAjax(roleService.insertAuthUsers(roleId, userIds)); |
| | | } |
| | | |
| | | /** |
| | | * 获取对应角色部门树列表 |
| | | */ |
| | | @RequiresPermissions("system:role:query") |
| | | @GetMapping(value = "/deptTree/{roleId}") |
| | | public AjaxResult deptTree(@PathVariable("roleId") Long roleId) |
| | | { |
| | | AjaxResult ajax = AjaxResult.success(); |
| | | ajax.put("checkedKeys", deptService.selectDeptListByRoleId(roleId)); |
| | | ajax.put("depts", deptService.selectDeptTreeList(new SysDept())); |
| | | return ajax; |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.controller.sys; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | import java.util.stream.Collectors; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.ArrayUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import com.hrt.common.core.domain.R; |
| | | import com.hrt.common.core.utils.StringUtils; |
| | | import com.hrt.common.core.utils.poi.ExcelUtil; |
| | | import com.hrt.common.core.web.controller.BaseController; |
| | | import com.hrt.common.core.web.domain.AjaxResult; |
| | | import com.hrt.common.core.web.page.TableDataInfo; |
| | | import com.hrt.common.log.annotation.Log; |
| | | import com.hrt.common.log.enums.BusinessType; |
| | | import com.hrt.common.security.annotation.InnerAuth; |
| | | import com.hrt.common.security.annotation.RequiresPermissions; |
| | | import com.hrt.common.security.utils.SecurityUtils; |
| | | import com.hrt.system.api.domain.SysDept; |
| | | import com.hrt.system.api.domain.SysRole; |
| | | import com.hrt.system.api.domain.SysUser; |
| | | import com.hrt.system.api.model.LoginUser; |
| | | import com.hrt.system.service.sys.ISysConfigService; |
| | | import com.hrt.system.service.user.ISysDeptService; |
| | | import com.hrt.system.service.user.ISysPermissionService; |
| | | import com.hrt.system.service.user.ISysPostService; |
| | | import com.hrt.system.service.user.ISysRoleService; |
| | | import com.hrt.system.service.user.ISysUserService; |
| | | |
| | | /** |
| | | * 用户信息 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/user") |
| | | @Api("获取用户信息") |
| | | public class SysUserController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysUserService userService; |
| | | |
| | | @Autowired |
| | | private ISysRoleService roleService; |
| | | |
| | | @Autowired |
| | | private ISysDeptService deptService; |
| | | |
| | | @Autowired |
| | | private ISysPostService postService; |
| | | |
| | | @Autowired |
| | | private ISysPermissionService permissionService; |
| | | |
| | | @Autowired |
| | | private ISysConfigService configService; |
| | | |
| | | @GetMapping("/test") |
| | | public AjaxResult list() |
| | | { |
| | | SysUser sysUser = userService.selectUserByUserName("admin"); |
| | | return AjaxResult.success(sysUser); |
| | | } |
| | | |
| | | /** |
| | | * 获取用户列表 |
| | | */ |
| | | @RequiresPermissions("system:user:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysUser user) |
| | | { |
| | | startPage(); |
| | | List<SysUser> list = userService.selectUserList(user); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | @Log(title = "用户管理", businessType = BusinessType.EXPORT) |
| | | @RequiresPermissions("system:user:export") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysUser user) |
| | | { |
| | | List<SysUser> list = userService.selectUserList(user); |
| | | ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class); |
| | | util.exportExcel(response, list, "用户数据"); |
| | | } |
| | | |
| | | @Log(title = "用户管理", businessType = BusinessType.IMPORT) |
| | | @RequiresPermissions("system:user:import") |
| | | @PostMapping("/importData") |
| | | public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception |
| | | { |
| | | ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class); |
| | | List<SysUser> userList = util.importExcel(file.getInputStream()); |
| | | String operName = SecurityUtils.getUsername(); |
| | | String message = userService.importUser(userList, updateSupport, operName); |
| | | return success(message); |
| | | } |
| | | |
| | | @PostMapping("/importTemplate") |
| | | public void importTemplate(HttpServletResponse response) throws IOException |
| | | { |
| | | ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class); |
| | | util.importTemplateExcel(response, "用户数据"); |
| | | } |
| | | |
| | | /** |
| | | * 获取当前用户信息 |
| | | */ |
| | | @InnerAuth |
| | | @GetMapping("/info/{username}") |
| | | @ApiOperation("获取当前用户信息") |
| | | public R<LoginUser> info(@PathVariable("username") String username) |
| | | { |
| | | SysUser sysUser = userService.selectUserByUserName(username); |
| | | if (StringUtils.isNull(sysUser)) |
| | | { |
| | | return R.fail("用户名或密码错误"); |
| | | } |
| | | // 角色集合 |
| | | Set<String> roles = permissionService.getRolePermission(sysUser); |
| | | // 权限集合 |
| | | Set<String> permissions = permissionService.getMenuPermission(sysUser); |
| | | LoginUser sysUserVo = new LoginUser(); |
| | | sysUserVo.setSysUser(sysUser); |
| | | sysUserVo.setRoles(roles); |
| | | sysUserVo.setPermissions(permissions); |
| | | return R.ok(sysUserVo); |
| | | } |
| | | |
| | | /** |
| | | * 注册用户信息 |
| | | */ |
| | | @InnerAuth |
| | | @PostMapping("/register") |
| | | public R<Boolean> register(@RequestBody SysUser sysUser) |
| | | { |
| | | String username = sysUser.getUserName(); |
| | | if (!("true".equals(configService.selectConfigByKey("sys.account.registerUser")))) |
| | | { |
| | | return R.fail("当前系统没有开启注册功能!"); |
| | | } |
| | | if (!userService.checkUserNameUnique(sysUser)) |
| | | { |
| | | return R.fail("保存用户'" + username + "'失败,注册账号已存在"); |
| | | } |
| | | return R.ok(userService.registerUser(sysUser)); |
| | | } |
| | | |
| | | /** |
| | | * 获取用户信息 |
| | | * |
| | | * @return 用户信息 |
| | | */ |
| | | @GetMapping("getInfo") |
| | | public AjaxResult getInfo() |
| | | { |
| | | SysUser user = userService.selectUserById(SecurityUtils.getUserId()); |
| | | // 角色集合 |
| | | Set<String> roles = permissionService.getRolePermission(user); |
| | | // 权限集合 |
| | | Set<String> permissions = permissionService.getMenuPermission(user); |
| | | AjaxResult ajax = AjaxResult.success(); |
| | | ajax.put("user", user); |
| | | ajax.put("roles", roles); |
| | | ajax.put("permissions", permissions); |
| | | return ajax; |
| | | } |
| | | |
| | | /** |
| | | * 根据用户编号获取详细信息 |
| | | */ |
| | | @RequiresPermissions("system:user:query") |
| | | @GetMapping(value = { "/", "/{userId}" }) |
| | | public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId) |
| | | { |
| | | userService.checkUserDataScope(userId); |
| | | AjaxResult ajax = AjaxResult.success(); |
| | | List<SysRole> roles = roleService.selectRoleAll(); |
| | | ajax.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); |
| | | ajax.put("posts", postService.selectPostAll()); |
| | | if (StringUtils.isNotNull(userId)) |
| | | { |
| | | SysUser sysUser = userService.selectUserById(userId); |
| | | ajax.put(AjaxResult.DATA_TAG, sysUser); |
| | | ajax.put("postIds", postService.selectPostListByUserId(userId)); |
| | | ajax.put("roleIds", sysUser.getRoles().stream().map(SysRole::getRoleId).collect(Collectors.toList())); |
| | | } |
| | | return ajax; |
| | | } |
| | | |
| | | /** |
| | | * 新增用户 |
| | | */ |
| | | @RequiresPermissions("system:user:add") |
| | | @Log(title = "用户管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody SysUser user) |
| | | { |
| | | if (!userService.checkUserNameUnique(user)) |
| | | { |
| | | return error("新增用户'" + user.getUserName() + "'失败,登录账号已存在"); |
| | | } |
| | | else if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(user)) |
| | | { |
| | | return error("新增用户'" + user.getUserName() + "'失败,手机号码已存在"); |
| | | } |
| | | else if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(user)) |
| | | { |
| | | return error("新增用户'" + user.getUserName() + "'失败,邮箱账号已存在"); |
| | | } |
| | | user.setCreateBy(SecurityUtils.getUsername()); |
| | | user.setPassword(SecurityUtils.encryptPassword(user.getPassword())); |
| | | return toAjax(userService.insertUser(user)); |
| | | } |
| | | |
| | | /** |
| | | * 修改用户 |
| | | */ |
| | | @RequiresPermissions("system:user:edit") |
| | | @Log(title = "用户管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody SysUser user) |
| | | { |
| | | userService.checkUserAllowed(user); |
| | | userService.checkUserDataScope(user.getUserId()); |
| | | if (!userService.checkUserNameUnique(user)) |
| | | { |
| | | return error("修改用户'" + user.getUserName() + "'失败,登录账号已存在"); |
| | | } |
| | | else if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(user)) |
| | | { |
| | | return error("修改用户'" + user.getUserName() + "'失败,手机号码已存在"); |
| | | } |
| | | else if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(user)) |
| | | { |
| | | return error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在"); |
| | | } |
| | | user.setUpdateBy(SecurityUtils.getUsername()); |
| | | return toAjax(userService.updateUser(user)); |
| | | } |
| | | |
| | | /** |
| | | * 删除用户 |
| | | */ |
| | | @RequiresPermissions("system:user:remove") |
| | | @Log(title = "用户管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{userIds}") |
| | | public AjaxResult remove(@PathVariable Long[] userIds) |
| | | { |
| | | if (ArrayUtils.contains(userIds, SecurityUtils.getUserId())) |
| | | { |
| | | return error("当前用户不能删除"); |
| | | } |
| | | return toAjax(userService.deleteUserByIds(userIds)); |
| | | } |
| | | |
| | | /** |
| | | * 重置密码 |
| | | */ |
| | | @RequiresPermissions("system:user:edit") |
| | | @Log(title = "用户管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/resetPwd") |
| | | public AjaxResult resetPwd(@RequestBody SysUser user) |
| | | { |
| | | userService.checkUserAllowed(user); |
| | | userService.checkUserDataScope(user.getUserId()); |
| | | user.setPassword(SecurityUtils.encryptPassword(user.getPassword())); |
| | | user.setUpdateBy(SecurityUtils.getUsername()); |
| | | return toAjax(userService.resetPwd(user)); |
| | | } |
| | | |
| | | /** |
| | | * 状态修改 |
| | | */ |
| | | @RequiresPermissions("system:user:edit") |
| | | @Log(title = "用户管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/changeStatus") |
| | | public AjaxResult changeStatus(@RequestBody SysUser user) |
| | | { |
| | | userService.checkUserAllowed(user); |
| | | userService.checkUserDataScope(user.getUserId()); |
| | | user.setUpdateBy(SecurityUtils.getUsername()); |
| | | return toAjax(userService.updateUserStatus(user)); |
| | | } |
| | | |
| | | /** |
| | | * 根据用户编号获取授权角色 |
| | | */ |
| | | @RequiresPermissions("system:user:query") |
| | | @GetMapping("/authRole/{userId}") |
| | | public AjaxResult authRole(@PathVariable("userId") Long userId) |
| | | { |
| | | AjaxResult ajax = AjaxResult.success(); |
| | | SysUser user = userService.selectUserById(userId); |
| | | List<SysRole> roles = roleService.selectRolesByUserId(userId); |
| | | ajax.put("user", user); |
| | | ajax.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); |
| | | return ajax; |
| | | } |
| | | |
| | | /** |
| | | * 用户授权角色 |
| | | */ |
| | | @RequiresPermissions("system:user:edit") |
| | | @Log(title = "用户管理", businessType = BusinessType.GRANT) |
| | | @PutMapping("/authRole") |
| | | public AjaxResult insertAuthRole(Long userId, Long[] roleIds) |
| | | { |
| | | userService.checkUserDataScope(userId); |
| | | userService.insertUserAuth(userId, roleIds); |
| | | return success(); |
| | | } |
| | | |
| | | /** |
| | | * 获取部门树列表 |
| | | */ |
| | | @RequiresPermissions("system:user:list") |
| | | @GetMapping("/deptTree") |
| | | public AjaxResult deptTree(SysDept dept) |
| | | { |
| | | return success(deptService.selectDeptTreeList(dept)); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.controller.sys; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | import com.hrt.system.domain.poji.user.SysUserOnline; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.hrt.common.core.constant.CacheConstants; |
| | | import com.hrt.common.core.utils.StringUtils; |
| | | import com.hrt.common.core.web.controller.BaseController; |
| | | import com.hrt.common.core.web.domain.AjaxResult; |
| | | import com.hrt.common.core.web.page.TableDataInfo; |
| | | import com.hrt.common.log.annotation.Log; |
| | | import com.hrt.common.log.enums.BusinessType; |
| | | import com.hrt.common.redis.service.RedisService; |
| | | import com.hrt.common.security.annotation.RequiresPermissions; |
| | | import com.hrt.system.api.model.LoginUser; |
| | | import com.hrt.system.service.user.ISysUserOnlineService; |
| | | |
| | | /** |
| | | * 在线用户监控 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/online") |
| | | public class SysUserOnlineController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysUserOnlineService userOnlineService; |
| | | |
| | | @Autowired |
| | | private RedisService redisService; |
| | | |
| | | @RequiresPermissions("monitor:online:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(String ipaddr, String userName) |
| | | { |
| | | Collection<String> keys = redisService.keys(CacheConstants.LOGIN_TOKEN_KEY + "*"); |
| | | List<SysUserOnline> userOnlineList = new ArrayList<SysUserOnline>(); |
| | | for (String key : keys) |
| | | { |
| | | LoginUser user = redisService.getCacheObject(key); |
| | | if (StringUtils.isNotEmpty(ipaddr) && StringUtils.isNotEmpty(userName)) |
| | | { |
| | | userOnlineList.add(userOnlineService.selectOnlineByInfo(ipaddr, userName, user)); |
| | | } |
| | | else if (StringUtils.isNotEmpty(ipaddr)) |
| | | { |
| | | userOnlineList.add(userOnlineService.selectOnlineByIpaddr(ipaddr, user)); |
| | | } |
| | | else if (StringUtils.isNotEmpty(userName)) |
| | | { |
| | | userOnlineList.add(userOnlineService.selectOnlineByUserName(userName, user)); |
| | | } |
| | | else |
| | | { |
| | | userOnlineList.add(userOnlineService.loginUserToUserOnline(user)); |
| | | } |
| | | } |
| | | Collections.reverse(userOnlineList); |
| | | userOnlineList.removeAll(Collections.singleton(null)); |
| | | return getDataTable(userOnlineList); |
| | | } |
| | | |
| | | /** |
| | | * 强退用户 |
| | | */ |
| | | @RequiresPermissions("monitor:online:forceLogout") |
| | | @Log(title = "在线用户", businessType = BusinessType.FORCE) |
| | | @DeleteMapping("/{tokenId}") |
| | | public AjaxResult forceLogout(@PathVariable String tokenId) |
| | | { |
| | | redisService.deleteObject(CacheConstants.LOGIN_TOKEN_KEY + tokenId); |
| | | return success(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.coupon; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_coupon") |
| | | public class Coupon extends Model<Coupon> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 优惠券id |
| | | */ |
| | | @TableId("coupon_id") |
| | | private String couponId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 优惠券类型1.满减2.折扣3.代金4.商品 |
| | | */ |
| | | @TableField("coupon_type") |
| | | private Integer couponType; |
| | | /** |
| | | * 优惠券状态-1删除0禁用1启用 |
| | | */ |
| | | @TableField("coupon_status") |
| | | private Integer couponStatus; |
| | | /** |
| | | * 优惠券名称 |
| | | */ |
| | | @TableField("coupon_name") |
| | | private String couponName; |
| | | /** |
| | | * 发送类型1.手动领取2.全部用户3.会员用户4非会员用户5自定义 |
| | | */ |
| | | @TableField("send_type") |
| | | private Integer sendType; |
| | | /** |
| | | * 发送时间类型1立即2定时 |
| | | */ |
| | | @TableField("send_time_type") |
| | | private Integer sendTimeType; |
| | | /** |
| | | * 发送时间 |
| | | */ |
| | | @TableField("send_time") |
| | | private Date sendTime; |
| | | /** |
| | | * 门槛金额 |
| | | */ |
| | | @TableField("money_threshold") |
| | | private BigDecimal moneyThreshold; |
| | | /** |
| | | * 折扣金额 |
| | | */ |
| | | @TableField("dicount_money") |
| | | private BigDecimal dicountMoney; |
| | | /** |
| | | * 折扣百分比 |
| | | */ |
| | | @TableField("discout_percent") |
| | | private BigDecimal discoutPercent; |
| | | /** |
| | | * 使用范围1.全场2.指定商品 |
| | | */ |
| | | @TableField("use_scope") |
| | | private Integer useScope; |
| | | /** |
| | | * 有效期类型 |
| | | */ |
| | | @TableField("valid_time_type") |
| | | private Integer validTimeType; |
| | | /** |
| | | * 有效开始时间 |
| | | */ |
| | | @TableField("valid_start_time") |
| | | private Date validStartTime; |
| | | /** |
| | | * 有效截止时间 |
| | | */ |
| | | @TableField("valid_end_time") |
| | | private Date validEndTime; |
| | | /** |
| | | * 有效期 |
| | | */ |
| | | @TableField("valid_day") |
| | | private Integer validDay; |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | @TableField("create_user_id") |
| | | private Long createUserId; |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | @TableField("update_user_id") |
| | | private Long updateUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.couponId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.coupon; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券商品关联 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_coupon_rel_goods") |
| | | public class CouponRelGoods extends Model<CouponRelGoods> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 优惠券id |
| | | */ |
| | | @TableField("coupon_id") |
| | | private String couponId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.coupon; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券用户关联 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_coupon_rel_user") |
| | | public class CouponRelUser extends Model<CouponRelUser> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 优惠券id |
| | | */ |
| | | @TableField("coupon_id") |
| | | private String couponId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.coupon; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_coupon_total") |
| | | public class CouponTotal extends Model<CouponTotal> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 优惠券id |
| | | */ |
| | | @TableId("coupon_id") |
| | | private String couponId; |
| | | /** |
| | | * 优惠券发放数量 |
| | | */ |
| | | @TableField("send_count") |
| | | private Integer sendCount; |
| | | /** |
| | | * 优惠券发放人数 |
| | | */ |
| | | @TableField("send_user_count") |
| | | private Integer sendUserCount; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.couponId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.goods; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品表 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_goods") |
| | | public class Goods extends Model<Goods> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableId(value = "goods_id", type = IdType.AUTO) |
| | | private String goodsId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private String delFlag; |
| | | /** |
| | | * 商品状态-1删除1上架2下架 |
| | | */ |
| | | @TableField("goods_status") |
| | | private Integer goodsStatus; |
| | | /** |
| | | * 商品类型1周期2服务3体验4单品 |
| | | */ |
| | | @TableField("goods_type") |
| | | private Integer goodsType; |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | @TableField("create_user_id") |
| | | private Long createUserId; |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | @TableField("update_user_id") |
| | | private Long updateUserId; |
| | | /** |
| | | * 商品分类id |
| | | */ |
| | | @TableField("goods_class_id") |
| | | private Integer goodsClassId; |
| | | /** |
| | | * 商品名称 |
| | | */ |
| | | @TableField("goods_name") |
| | | private String goodsName; |
| | | /** |
| | | * 周期次数标记0否1是 |
| | | */ |
| | | @TableField("cycle_num_flag") |
| | | private Integer cycleNumFlag; |
| | | /** |
| | | * 服务次数 |
| | | */ |
| | | @TableField("service_num") |
| | | private Integer serviceNum; |
| | | /** |
| | | * 商品简介 |
| | | */ |
| | | @TableField("goods_introduction") |
| | | private String goodsIntroduction; |
| | | /** |
| | | * 建议售价 |
| | | */ |
| | | @TableField("sales_price") |
| | | private BigDecimal salesPrice; |
| | | /** |
| | | * 最低售价 |
| | | */ |
| | | @TableField("mininum_price") |
| | | private BigDecimal mininumPrice; |
| | | /** |
| | | * 订金标记0否1是 |
| | | */ |
| | | @TableField("subscription_flag") |
| | | private Integer subscriptionFlag; |
| | | /** |
| | | * 订金 |
| | | */ |
| | | private BigDecimal subscription; |
| | | /** |
| | | * 商品详情 |
| | | */ |
| | | @TableField("goods_detail") |
| | | private String goodsDetail; |
| | | /** |
| | | * 是否推荐0否1是 |
| | | */ |
| | | @TableField("recommend_flag") |
| | | private Integer recommendFlag; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.goodsId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.goods; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品图片 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_goods_file") |
| | | public class GoodsFile extends Model<GoodsFile> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | /** |
| | | * 图片类型1封面2视频3banner |
| | | */ |
| | | @TableField("file_type") |
| | | private Integer fileType; |
| | | /** |
| | | * 图片地址 |
| | | */ |
| | | @TableField("file_url") |
| | | private String fileUrl; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.goods; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品调理问题 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_goods_rel_nurse") |
| | | public class GoodsRelNurse extends Model<GoodsRelNurse> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | /** |
| | | * 调理问题id |
| | | */ |
| | | @TableField("nurse_id") |
| | | private Long nurseId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.goods; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品标签 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_goods_rel_tag") |
| | | public class GoodsRelTag extends Model<GoodsRelTag> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | @TableField("tag_id") |
| | | private Long tagId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.goods; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_goods_total") |
| | | public class GoodsTotal extends Model<GoodsTotal> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId("goods_id") |
| | | private String goodsId; |
| | | /** |
| | | * 购买次数统计 |
| | | */ |
| | | @TableField("buy_count") |
| | | private Integer buyCount; |
| | | /** |
| | | * 购买数量统计 |
| | | */ |
| | | @TableField("buy_num_count") |
| | | private Integer buyNumCount; |
| | | /** |
| | | * 购买人数统计 |
| | | */ |
| | | @TableField("buy_user_count") |
| | | private Integer buyUserCount; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.goodsId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.member; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员档案信息 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_member_archive") |
| | | public class MemberArchive extends Model<MemberArchive> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 字段id |
| | | */ |
| | | @TableField("field_id") |
| | | private Long fieldId; |
| | | /** |
| | | * 值 |
| | | */ |
| | | @TableField("field_value") |
| | | private String fieldValue; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.member; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 档案字段 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_member_archive_fields") |
| | | public class MemberArchiveFields extends Model<MemberArchiveFields> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private String delFlag; |
| | | /** |
| | | * 字段名称 |
| | | */ |
| | | @TableField("field_name") |
| | | private String fieldName; |
| | | /** |
| | | * 字段类型1.文字输入2.数字输入3.字母输入4.无限制输入5.年月日选择6.选项 |
| | | */ |
| | | @TableField("field_type") |
| | | private Integer fieldType; |
| | | /** |
| | | * 是否必填0否1是 |
| | | */ |
| | | @TableField("required_flag") |
| | | private Integer requiredFlag; |
| | | /** |
| | | * 字段排序 |
| | | */ |
| | | @TableField("field_sort") |
| | | private String fieldSort; |
| | | /** |
| | | * 输入提示 |
| | | */ |
| | | @TableField("input_tip") |
| | | private String inputTip; |
| | | /** |
| | | * 选项集合 |
| | | */ |
| | | @TableField("option_values") |
| | | private String optionValues; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.member; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_user_coupon") |
| | | public class UserCoupon extends Model<UserCoupon> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 优惠券id |
| | | */ |
| | | @TableField("coupon_id") |
| | | private String couponId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 优惠券类型1.满减2.折扣3.代金4.商品 |
| | | */ |
| | | @TableField("coupon_type") |
| | | private Integer couponType; |
| | | /** |
| | | * 优惠券状态-1删除0已过期1已领取2已使用 |
| | | */ |
| | | @TableField("coupon_status") |
| | | private Integer couponStatus; |
| | | /** |
| | | * 优惠券名称 |
| | | */ |
| | | @TableField("coupon_name") |
| | | private String couponName; |
| | | /** |
| | | * 发送类型1.手动领取2.全部用户3.会员用户4非会员用户5自定义 |
| | | */ |
| | | @TableField("send_type") |
| | | private Integer sendType; |
| | | /** |
| | | * 发送时间类型1立即2定时 |
| | | */ |
| | | @TableField("send_time_type") |
| | | private Integer sendTimeType; |
| | | /** |
| | | * 发送时间 |
| | | */ |
| | | @TableField("send_time") |
| | | private Date sendTime; |
| | | /** |
| | | * 门槛金额 |
| | | */ |
| | | @TableField("money_threshold") |
| | | private BigDecimal moneyThreshold; |
| | | /** |
| | | * 折扣金额 |
| | | */ |
| | | @TableField("dicount_money") |
| | | private BigDecimal dicountMoney; |
| | | /** |
| | | * 折扣百分比 |
| | | */ |
| | | @TableField("discout_percent") |
| | | private BigDecimal discoutPercent; |
| | | /** |
| | | * 使用范围1.全场2.指定商品 |
| | | */ |
| | | @TableField("use_scope") |
| | | private Integer useScope; |
| | | /** |
| | | * 有效期类型 |
| | | */ |
| | | @TableField("valid_time_type") |
| | | private Integer validTimeType; |
| | | /** |
| | | * 有效开始时间 |
| | | */ |
| | | @TableField("valid_start_time") |
| | | private Date validStartTime; |
| | | /** |
| | | * 有效截止时间 |
| | | */ |
| | | @TableField("valid_end_time") |
| | | private Date validEndTime; |
| | | /** |
| | | * 有效期 |
| | | */ |
| | | @TableField("valid_day") |
| | | private Integer validDay; |
| | | /** |
| | | * 获取时间 |
| | | */ |
| | | @TableField("receive_time") |
| | | private Date receiveTime; |
| | | /** |
| | | * 使用时间 |
| | | */ |
| | | @TableField("user_time") |
| | | private Date userTime; |
| | | /** |
| | | * 使用有效期 |
| | | */ |
| | | @TableField("deadline_time") |
| | | private Date deadlineTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.order; |
| | | |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_consumer_goods") |
| | | public class ConsumerGoods extends Model<ConsumerGoods> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 服务id |
| | | */ |
| | | @TableId("consumer_goods_id") |
| | | private String consumerGoodsId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 服务状态-1删除1未完成2完成 |
| | | */ |
| | | @TableField("service_status") |
| | | private Integer serviceStatus; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 订单id |
| | | */ |
| | | @TableField("order_id") |
| | | private String orderId; |
| | | /** |
| | | * 订单商品id |
| | | */ |
| | | @TableField("order_goods_id") |
| | | private String orderGoodsId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | /** |
| | | * 商品名称 |
| | | */ |
| | | @TableField("goods_name") |
| | | private String goodsName; |
| | | /** |
| | | * 周期标记 |
| | | */ |
| | | @TableField("cycle_num_flag") |
| | | private Integer cycleNumFlag; |
| | | /** |
| | | * 服务次数 |
| | | */ |
| | | @TableField("service_num") |
| | | private Integer serviceNum; |
| | | /** |
| | | * 消耗次数 |
| | | */ |
| | | @TableField("used_num") |
| | | private Integer usedNum; |
| | | /** |
| | | * 完成时间 |
| | | */ |
| | | @TableField("complete_time") |
| | | private Date completeTime; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 使用时间 |
| | | */ |
| | | @TableField("use_time") |
| | | private String useTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.consumerGoodsId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.order; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 订单 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_order") |
| | | public class Order extends Model<Order> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 订单id |
| | | */ |
| | | @TableId("order_id") |
| | | private String orderId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 订单状态-1.删除0.已取消1.待支付2.待核销3.已完成 |
| | | */ |
| | | @TableField("order_status") |
| | | private Integer orderStatus; |
| | | /** |
| | | * 订单编号 |
| | | */ |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | /** |
| | | * 订单来源1.商城2.秒杀活动3.线下创建 |
| | | */ |
| | | @TableField("order_from") |
| | | private Integer orderFrom; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 购买用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 订单金额 |
| | | */ |
| | | @TableField("order_money") |
| | | private BigDecimal orderMoney; |
| | | /** |
| | | * 优惠券金额 |
| | | */ |
| | | @TableField("coupon_money") |
| | | private BigDecimal couponMoney; |
| | | /** |
| | | * 优惠金额 |
| | | */ |
| | | @TableField("discount_money") |
| | | private BigDecimal discountMoney; |
| | | /** |
| | | * 应收金额 |
| | | */ |
| | | @TableField("receivable_money") |
| | | private BigDecimal receivableMoney; |
| | | /** |
| | | * 支付类型1.全款2.订金 |
| | | */ |
| | | @TableField("pay_type") |
| | | private Integer payType; |
| | | /** |
| | | * 支付金额 |
| | | */ |
| | | @TableField("pay_money") |
| | | private BigDecimal payMoney; |
| | | /** |
| | | * 线上支付金额 |
| | | */ |
| | | @TableField("online_pay_money") |
| | | private BigDecimal onlinePayMoney; |
| | | /** |
| | | * 线下支付金额 |
| | | */ |
| | | @TableField("offline_pay_money") |
| | | private BigDecimal offlinePayMoney; |
| | | /** |
| | | * 订单备注 |
| | | */ |
| | | @TableField("order_remark") |
| | | private String orderRemark; |
| | | /** |
| | | * 商品信息 |
| | | */ |
| | | @TableField("goods_info") |
| | | private String goodsInfo; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 支付时间 |
| | | */ |
| | | @TableField("pay_time") |
| | | private Date payTime; |
| | | /** |
| | | * 核销时间 |
| | | */ |
| | | @TableField("use_time") |
| | | private Date useTime; |
| | | /** |
| | | * 取消时间 |
| | | */ |
| | | @TableField("cancel_time") |
| | | private Date cancelTime; |
| | | /** |
| | | * 核销用户id |
| | | */ |
| | | @TableField("use_user_id") |
| | | private Long useUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.orderId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.order; |
| | | |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 订单商品 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_order_goods") |
| | | public class OrderGoods extends Model<OrderGoods> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 订单商品id |
| | | */ |
| | | @TableId("order_goods_id") |
| | | private String orderGoodsId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 订单id |
| | | */ |
| | | @TableField("order_id") |
| | | private String orderId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | /** |
| | | * 购买数量 |
| | | */ |
| | | @TableField("buy_num") |
| | | private Integer buyNum; |
| | | /** |
| | | * 优惠券id |
| | | */ |
| | | @TableField("coupon_id") |
| | | private String couponId; |
| | | /** |
| | | * 商品售价 |
| | | */ |
| | | @TableField("goods_price") |
| | | private BigDecimal goodsPrice; |
| | | /** |
| | | * 商品总价 |
| | | */ |
| | | @TableField("goods_total_money") |
| | | private BigDecimal goodsTotalMoney; |
| | | /** |
| | | * 商品应收金额 |
| | | */ |
| | | @TableField("goods_receivable_money") |
| | | private BigDecimal goodsReceivableMoney; |
| | | /** |
| | | * 周期次数标记 |
| | | */ |
| | | @TableField("cycle_num_flag") |
| | | private Integer cycleNumFlag; |
| | | /** |
| | | * 服务次数 |
| | | */ |
| | | @TableField("service_num") |
| | | private Integer serviceNum; |
| | | /** |
| | | * 商品类型1周期2服务3体验4单品 |
| | | */ |
| | | @TableField("goods_type") |
| | | private Integer goodsType; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.orderGoodsId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.order; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 购物车 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shopping_cart") |
| | | public class ShoppingCart extends Model<ShoppingCart> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记0否1是 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | /** |
| | | * 购买数量 |
| | | */ |
| | | @TableField("buy_num") |
| | | private Integer buyNum; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.order; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务记录 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_user_service_record") |
| | | public class UserServiceRecord extends Model<UserServiceRecord> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 服务id |
| | | */ |
| | | @TableField("consumer_goods_ids") |
| | | private String consumerGoodsIds; |
| | | /** |
| | | * 服务名称 |
| | | */ |
| | | @TableField("consumer_goods_names") |
| | | private String consumerGoodsNames; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 服务类型1.周期2.服务3.体验 |
| | | */ |
| | | @TableField("service_type") |
| | | private Integer serviceType; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.shop; |
| | | |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员跟进任务 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_member_task") |
| | | public class MemberTask extends Model<MemberTask> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId("task_id") |
| | | private String taskId; |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | @TableField("task_date") |
| | | private Date taskDate; |
| | | @TableField("task_content") |
| | | private String taskContent; |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.taskId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.shop; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员跟进任务记录 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_member_task_record") |
| | | public class MemberTaskRecord extends Model<MemberTaskRecord> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | @TableField("task_id") |
| | | private Long taskId; |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | @TableField("follow_type") |
| | | private Integer followType; |
| | | @TableField("call_time") |
| | | private Date callTime; |
| | | @TableField("follow_content") |
| | | private String followContent; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.shop; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户表 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop") |
| | | public class Shop extends Model<Shop> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableId(value = "shop_id", type = IdType.AUTO) |
| | | private Long shopId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private String delFlag; |
| | | /** |
| | | * 商户状态-1删除0冻结1正常2终止合作 |
| | | */ |
| | | @TableField("shop_status") |
| | | private Integer shopStatus; |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | @TableField("create_user_id") |
| | | private Long createUserId; |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | @TableField("update_user_id") |
| | | private Long updateUserId; |
| | | /** |
| | | * 商户名称 |
| | | */ |
| | | @TableField("shop_name") |
| | | private String shopName; |
| | | /** |
| | | * 商户编号 |
| | | */ |
| | | @TableField("shop_number") |
| | | private String shopNumber; |
| | | /** |
| | | * 商户类型1.经销商2.代理商 |
| | | */ |
| | | @TableField("shop_type") |
| | | private Integer shopType; |
| | | /** |
| | | * 营业开始时间 |
| | | */ |
| | | @TableField("business_start_time") |
| | | private String businessStartTime; |
| | | /** |
| | | * 营业结束时间 |
| | | */ |
| | | @TableField("business_end_time") |
| | | private String businessEndTime; |
| | | /** |
| | | * 店主姓名 |
| | | */ |
| | | @TableField("shopowner_name") |
| | | private String shopownerName; |
| | | /** |
| | | * 店主联系方式 |
| | | */ |
| | | @TableField("shopowner_phone") |
| | | private String shopownerPhone; |
| | | /** |
| | | * 签约时间 |
| | | */ |
| | | @TableField("sign_time") |
| | | private Date signTime; |
| | | /** |
| | | * 签约区域 |
| | | */ |
| | | @TableField("sign_area_code") |
| | | private String signAreaCode; |
| | | /** |
| | | * 商户服务电话 |
| | | */ |
| | | @TableField("shop_service_phone") |
| | | private String shopServicePhone; |
| | | /** |
| | | * 归属员工 |
| | | */ |
| | | @TableField("belong_user_id") |
| | | private Long belongUserId; |
| | | /** |
| | | * 归属经销商 |
| | | */ |
| | | @TableField("belong_shop_id") |
| | | private Long belongShopId; |
| | | /** |
| | | * 扶持能力1.有2.没有 |
| | | */ |
| | | @TableField("supporting_capacity_flag") |
| | | private Integer supportingCapacityFlag; |
| | | /** |
| | | * 店面操作人数1.1人2.1人以上 |
| | | */ |
| | | @TableField("operation_person_flag") |
| | | private Integer operationPersonFlag; |
| | | /** |
| | | * 执行力1.强2.弱 |
| | | */ |
| | | @TableField("executive_force_flag") |
| | | private Integer executiveForceFlag; |
| | | /** |
| | | * 格局1.大2.小 |
| | | */ |
| | | @TableField("pattern_flag") |
| | | private Integer patternFlag; |
| | | /** |
| | | * 人脉1.宽2.窄 |
| | | */ |
| | | @TableField("connection_flag") |
| | | private Integer connectionFlag; |
| | | /** |
| | | * 经济能力1.强2.差 |
| | | */ |
| | | @TableField("economic_ability_flag") |
| | | private Integer economicAbilityFlag; |
| | | /** |
| | | * 与合作商关系1.好2.差 |
| | | */ |
| | | @TableField("relation_partner") |
| | | private Integer relationPartner; |
| | | /** |
| | | * 曾从事事业 |
| | | */ |
| | | @TableField("business_history") |
| | | private String businessHistory; |
| | | /** |
| | | * 店铺地址省code |
| | | */ |
| | | @TableField("shop_province_code") |
| | | private String shopProvinceCode; |
| | | /** |
| | | * 店铺地址市code |
| | | */ |
| | | @TableField("shop_city_code") |
| | | private String shopCityCode; |
| | | /** |
| | | * 店铺地址区code |
| | | */ |
| | | @TableField("shop_area_code") |
| | | private String shopAreaCode; |
| | | /** |
| | | * 店铺区域全称 |
| | | */ |
| | | @TableField("shop_area_name") |
| | | private String shopAreaName; |
| | | /** |
| | | * 店铺详细地址 |
| | | */ |
| | | @TableField("shop_address") |
| | | private String shopAddress; |
| | | /** |
| | | * 店铺经度 |
| | | */ |
| | | @TableField("shop_longitude") |
| | | private String shopLongitude; |
| | | /** |
| | | * 店铺维度 |
| | | */ |
| | | @TableField("shop_latitude") |
| | | private String shopLatitude; |
| | | /** |
| | | * 店铺详情 |
| | | */ |
| | | @TableField("shop_detail") |
| | | private String shopDetail; |
| | | /** |
| | | * 营销功能1开2关 |
| | | */ |
| | | @TableField("marketing_function_flag") |
| | | private Integer marketingFunctionFlag; |
| | | /** |
| | | * 领券1开2关 |
| | | */ |
| | | @TableField("platform_coupon_flag") |
| | | private Integer platformCouponFlag; |
| | | /** |
| | | * 生日卡1开2关 |
| | | */ |
| | | @TableField("platform_birthday_flag") |
| | | private Integer platformBirthdayFlag; |
| | | /** |
| | | * 店铺设置状态 |
| | | */ |
| | | @TableField("shop_custom_status") |
| | | private String shopCustomStatus; |
| | | /** |
| | | * 推荐人 |
| | | */ |
| | | @TableField("recommend_person") |
| | | private String recommendPerson; |
| | | /** |
| | | * 合作截止时间 |
| | | */ |
| | | @TableField("cooperation_end_time") |
| | | private Date cooperationEndTime; |
| | | /** |
| | | * 合作开始时间 |
| | | */ |
| | | @TableField("cooperation_start_time") |
| | | private Date cooperationStartTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.shopId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.shop; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户图片 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop_file") |
| | | public class ShopFile extends Model<ShopFile> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 文件类型1.封面2.图片 |
| | | */ |
| | | @TableField("file_type") |
| | | private Integer fileType; |
| | | /** |
| | | * 文件地址 |
| | | */ |
| | | @TableField("file_url") |
| | | private String fileUrl; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.shop; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户定制商品 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop_goods") |
| | | public class ShopGoods extends Model<ShopGoods> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | /** |
| | | * 商户售价 |
| | | */ |
| | | @TableField("sales_price") |
| | | private BigDecimal salesPrice; |
| | | /** |
| | | * 商户服务次数 |
| | | */ |
| | | @TableField("service_time") |
| | | private Integer serviceTime; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | /** |
| | | * 更新用户id |
| | | */ |
| | | @TableField("update_user_id") |
| | | private Long updateUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.shop; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户营销 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop_marketing") |
| | | public class ShopMarketing extends Model<ShopMarketing> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "shop_id", type = IdType.AUTO) |
| | | private Long shopId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 店铺生日活动开关1开2关 |
| | | */ |
| | | @TableField("shop_birthday_flag") |
| | | private Integer shopBirthdayFlag; |
| | | /** |
| | | * 领卷活动次数 |
| | | */ |
| | | @TableField("shop_coupon_count") |
| | | private Integer shopCouponCount; |
| | | /** |
| | | * 营销活动总计 |
| | | */ |
| | | @TableField("shop_marketing_total") |
| | | private Integer shopMarketingTotal; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.shopId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.shop; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户标签 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop_rel_tag") |
| | | public class ShopRelTag extends Model<ShopRelTag> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 标签id |
| | | */ |
| | | @TableField("tag_id") |
| | | private Long tagId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.shop; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户关联员工 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop_rel_user") |
| | | public class ShopRelUser extends Model<ShopRelUser> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 用户手机 |
| | | */ |
| | | @TableField("user_mobile") |
| | | private String userMobile; |
| | | /** |
| | | * 用户部门id |
| | | */ |
| | | @TableField("user_dept_id") |
| | | private Long userDeptId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.shop; |
| | | |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户跟进任务 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop_task") |
| | | public class ShopTask extends Model<ShopTask> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId("task_id") |
| | | private String taskId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 跟进类型id |
| | | */ |
| | | @TableField("follow_type_id") |
| | | private Long followTypeId; |
| | | /** |
| | | * 跟进内容 |
| | | */ |
| | | @TableField("follow_content") |
| | | private String followContent; |
| | | /** |
| | | * 下次跟进时间 |
| | | */ |
| | | @TableField("next_follow_date") |
| | | private Date nextFollowDate; |
| | | /** |
| | | * 任务标题 |
| | | */ |
| | | @TableField("task_title") |
| | | private String taskTitle; |
| | | /** |
| | | * 紧急情况id |
| | | */ |
| | | @TableField("emergency_state_id") |
| | | private Integer emergencyStateId; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.taskId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.shop; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户员工转移记录 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop_transfer_record") |
| | | public class ShopTransferRecord extends Model<ShopTransferRecord> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 转移前用户id |
| | | */ |
| | | @TableField("before_user_id") |
| | | private Long beforeUserId; |
| | | /** |
| | | * 转移后用户id |
| | | */ |
| | | @TableField("after_user_id") |
| | | private Long afterUserId; |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @TableField("transfer_remark") |
| | | private String transferRemark; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.shop; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 跟进附件 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_task_file") |
| | | public class TaskFile extends Model<TaskFile> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 跟进id |
| | | */ |
| | | @TableField("follow_id") |
| | | private Long followId; |
| | | /** |
| | | * 跟进来源1商户2客户 |
| | | */ |
| | | @TableField("follow_from") |
| | | private Integer followFrom; |
| | | /** |
| | | * 文件地址 |
| | | */ |
| | | @TableField("file_url") |
| | | private String fileUrl; |
| | | /** |
| | | * 文件类型1.图片2.视频3.音频 |
| | | */ |
| | | @TableField("file_type") |
| | | private Integer fileType; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.sys; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 协议 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_agreement") |
| | | public class Agreement extends Model<Agreement> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 协议id |
| | | */ |
| | | @TableId(value = "agreement_id", type = IdType.AUTO) |
| | | private Long agreementId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private String delFlag; |
| | | /** |
| | | * 协议类型 |
| | | */ |
| | | @TableField("agreement_type") |
| | | private Integer agreementType; |
| | | /** |
| | | * 协议内容 |
| | | */ |
| | | @TableField("agreement_content") |
| | | private String agreementContent; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 创建用户id |
| | | */ |
| | | @TableField("create_user_id") |
| | | private Long createUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.agreementId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.sys; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * banner |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_banner") |
| | | public class Banner extends Model<Banner> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * banner id |
| | | */ |
| | | @TableId(value = "banner_id", type = IdType.AUTO) |
| | | private Long bannerId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * banner位置1.小程序首页 |
| | | */ |
| | | @TableField("banner_position") |
| | | private Integer bannerPosition; |
| | | /** |
| | | * banner图片地址 |
| | | */ |
| | | @TableField("banner_url") |
| | | private String bannerUrl; |
| | | /** |
| | | * 链接类型1.外部2.内部3.无 |
| | | */ |
| | | @TableField("target_type") |
| | | private String targetType; |
| | | /** |
| | | * 链接类型1.手动输入2.选择已有 |
| | | */ |
| | | @TableField("link_type") |
| | | private Integer linkType; |
| | | /** |
| | | * 链接地址 |
| | | */ |
| | | @TableField("link_url") |
| | | private String linkUrl; |
| | | /** |
| | | * 跳转类型1.门店详情2.秒杀活动3领券中心4.商城列表5.关于洪瑞堂 |
| | | */ |
| | | @TableField("jump_type") |
| | | private String jumpType; |
| | | /** |
| | | * 跳转id |
| | | */ |
| | | @TableField("jump_id") |
| | | private String jumpId; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | @TableField("create_user_id") |
| | | private Long createUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.bannerId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.sys; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 系统配置 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_custome_config") |
| | | public class CustomeConfig extends Model<CustomeConfig> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | @TableField("del_flag") |
| | | private String delFlag; |
| | | private Integer type; |
| | | private String key; |
| | | private String name; |
| | | private String value; |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.sys; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 弹窗 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_pop") |
| | | public class Pop extends Model<Pop> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "pop_id", type = IdType.AUTO) |
| | | private Long popId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 弹窗排序 |
| | | */ |
| | | @TableField("pop_sort") |
| | | private Integer popSort; |
| | | /** |
| | | * 弹窗图片地址 |
| | | */ |
| | | @TableField("pop_url") |
| | | private String popUrl; |
| | | /** |
| | | * 展示开始时间 |
| | | */ |
| | | @TableField("show_start_time") |
| | | private Date showStartTime; |
| | | /** |
| | | * 展示结束时间 |
| | | */ |
| | | @TableField("show_end_time") |
| | | private Date showEndTime; |
| | | /** |
| | | * 对象类型1.外链2.内链3.无 |
| | | */ |
| | | @TableField("target_type") |
| | | private Integer targetType; |
| | | /** |
| | | * 链接地址 |
| | | */ |
| | | @TableField("link_url") |
| | | private String linkUrl; |
| | | /** |
| | | * 跳转活动id |
| | | */ |
| | | @TableField("jump_id") |
| | | private String jumpId; |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | @TableField("create_user_id") |
| | | private Long createUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.popId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.sys; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 快速入口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_quick_entry") |
| | | public class QuickEntry extends Model<QuickEntry> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "entry_id", type = IdType.AUTO) |
| | | private Long entryId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 入口排序 |
| | | */ |
| | | @TableField("entry_sort") |
| | | private Integer entrySort; |
| | | /** |
| | | * 入口图片地址 |
| | | */ |
| | | @TableField("entry_url") |
| | | private String entryUrl; |
| | | /** |
| | | * 入口名称 |
| | | */ |
| | | @TableField("entry_name") |
| | | private String entryName; |
| | | /** |
| | | * 对象类型1.外链2.内链3.无 |
| | | */ |
| | | @TableField("target_type") |
| | | private Integer targetType; |
| | | /** |
| | | * 链接地址 |
| | | */ |
| | | @TableField("link_url") |
| | | private String linkUrl; |
| | | /** |
| | | * 跳转活动id |
| | | */ |
| | | @TableField("jump_id") |
| | | private String jumpId; |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | @TableField("create_user_id") |
| | | private Long createUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.entryId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.sys; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 分类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_sys_classification") |
| | | public class SysClassification extends Model<SysClassification> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 分类id |
| | | */ |
| | | @TableId(value = "class_id", type = IdType.AUTO) |
| | | private Integer classId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 分类类型 |
| | | */ |
| | | @TableField("class_type") |
| | | private Integer classType; |
| | | /** |
| | | * 分类名字 |
| | | */ |
| | | @TableField("class_name") |
| | | private String className; |
| | | /** |
| | | * 分类排序 |
| | | */ |
| | | @TableField("class_sort") |
| | | private Integer classSort; |
| | | /** |
| | | * 关联数量 |
| | | */ |
| | | @TableField("realtion_num") |
| | | private Integer realtionNum; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.classId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.sys; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Size; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.hrt.common.core.annotation.Excel; |
| | | import com.hrt.common.core.annotation.Excel.ColumnType; |
| | | import com.hrt.common.core.web.domain.BaseEntity; |
| | | |
| | | /** |
| | | * 参数配置表 sys_config |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public class SysConfig extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 参数主键 */ |
| | | @Excel(name = "参数主键", cellType = ColumnType.NUMERIC) |
| | | private Long configId; |
| | | |
| | | /** 参数名称 */ |
| | | @Excel(name = "参数名称") |
| | | private String configName; |
| | | |
| | | /** 参数键名 */ |
| | | @Excel(name = "参数键名") |
| | | private String configKey; |
| | | |
| | | /** 参数键值 */ |
| | | @Excel(name = "参数键值") |
| | | private String configValue; |
| | | |
| | | /** 系统内置(Y是 N否) */ |
| | | @Excel(name = "系统内置", readConverterExp = "Y=是,N=否") |
| | | private String configType; |
| | | |
| | | public Long getConfigId() |
| | | { |
| | | return configId; |
| | | } |
| | | |
| | | public void setConfigId(Long configId) |
| | | { |
| | | this.configId = configId; |
| | | } |
| | | |
| | | @NotBlank(message = "参数名称不能为空") |
| | | @Size(min = 0, max = 100, message = "参数名称不能超过100个字符") |
| | | public String getConfigName() |
| | | { |
| | | return configName; |
| | | } |
| | | |
| | | public void setConfigName(String configName) |
| | | { |
| | | this.configName = configName; |
| | | } |
| | | |
| | | @NotBlank(message = "参数键名长度不能为空") |
| | | @Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符") |
| | | public String getConfigKey() |
| | | { |
| | | return configKey; |
| | | } |
| | | |
| | | public void setConfigKey(String configKey) |
| | | { |
| | | this.configKey = configKey; |
| | | } |
| | | |
| | | @NotBlank(message = "参数键值不能为空") |
| | | @Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符") |
| | | public String getConfigValue() |
| | | { |
| | | return configValue; |
| | | } |
| | | |
| | | public void setConfigValue(String configValue) |
| | | { |
| | | this.configValue = configValue; |
| | | } |
| | | |
| | | public String getConfigType() |
| | | { |
| | | return configType; |
| | | } |
| | | |
| | | public void setConfigType(String configType) |
| | | { |
| | | this.configType = configType; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("configId", getConfigId()) |
| | | .append("configName", getConfigName()) |
| | | .append("configKey", getConfigKey()) |
| | | .append("configValue", getConfigValue()) |
| | | .append("configType", getConfigType()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("remark", getRemark()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.sys; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Size; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.hrt.common.core.web.domain.BaseEntity; |
| | | import com.hrt.common.core.xss.Xss; |
| | | |
| | | /** |
| | | * 通知公告表 sys_notice |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public class SysNotice extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 公告ID */ |
| | | private Long noticeId; |
| | | |
| | | /** 公告标题 */ |
| | | private String noticeTitle; |
| | | |
| | | /** 公告类型(1通知 2公告) */ |
| | | private String noticeType; |
| | | |
| | | /** 公告内容 */ |
| | | private String noticeContent; |
| | | |
| | | /** 公告状态(0正常 1关闭) */ |
| | | private String status; |
| | | |
| | | public Long getNoticeId() |
| | | { |
| | | return noticeId; |
| | | } |
| | | |
| | | public void setNoticeId(Long noticeId) |
| | | { |
| | | this.noticeId = noticeId; |
| | | } |
| | | |
| | | public void setNoticeTitle(String noticeTitle) |
| | | { |
| | | this.noticeTitle = noticeTitle; |
| | | } |
| | | |
| | | @Xss(message = "公告标题不能包含脚本字符") |
| | | @NotBlank(message = "公告标题不能为空") |
| | | @Size(min = 0, max = 50, message = "公告标题不能超过50个字符") |
| | | public String getNoticeTitle() |
| | | { |
| | | return noticeTitle; |
| | | } |
| | | |
| | | public void setNoticeType(String noticeType) |
| | | { |
| | | this.noticeType = noticeType; |
| | | } |
| | | |
| | | public String getNoticeType() |
| | | { |
| | | return noticeType; |
| | | } |
| | | |
| | | public void setNoticeContent(String noticeContent) |
| | | { |
| | | this.noticeContent = noticeContent; |
| | | } |
| | | |
| | | public String getNoticeContent() |
| | | { |
| | | return noticeContent; |
| | | } |
| | | |
| | | public void setStatus(String status) |
| | | { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus() |
| | | { |
| | | return status; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("noticeId", getNoticeId()) |
| | | .append("noticeTitle", getNoticeTitle()) |
| | | .append("noticeType", getNoticeType()) |
| | | .append("noticeContent", getNoticeContent()) |
| | | .append("status", getStatus()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("remark", getRemark()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.sys; |
| | | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 系统标签 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_sys_tag") |
| | | public class SysTag extends Model<SysTag> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 标签id |
| | | */ |
| | | @TableId(value = "tag_id", type = IdType.AUTO) |
| | | private Long tagId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 标签类型1.用户2.合作商 |
| | | */ |
| | | @TableField("tag_type") |
| | | private Integer tagType; |
| | | /** |
| | | * 标签名称 |
| | | */ |
| | | @TableField("tag_name") |
| | | private String tagName; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 同步标记0否1是 |
| | | */ |
| | | @TableField("sys_flag") |
| | | private Integer sysFlag; |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.tagId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.user; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.hrt.common.core.web.domain.BaseEntity; |
| | | |
| | | /** |
| | | * 菜单权限表 sys_menu |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public class SysMenu extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 菜单ID */ |
| | | private Long menuId; |
| | | |
| | | /** 菜单名称 */ |
| | | private String menuName; |
| | | |
| | | /** 父菜单名称 */ |
| | | private String parentName; |
| | | |
| | | /** 父菜单ID */ |
| | | private Long parentId; |
| | | |
| | | /** 显示顺序 */ |
| | | private Integer orderNum; |
| | | |
| | | /** 路由地址 */ |
| | | private String path; |
| | | |
| | | /** 组件路径 */ |
| | | private String component; |
| | | |
| | | /** 路由参数 */ |
| | | private String query; |
| | | |
| | | /** 是否为外链(0是 1否) */ |
| | | private String isFrame; |
| | | |
| | | /** 是否缓存(0缓存 1不缓存) */ |
| | | private String isCache; |
| | | |
| | | /** 类型(M目录 C菜单 F按钮) */ |
| | | private String menuType; |
| | | |
| | | /** 显示状态(0显示 1隐藏) */ |
| | | private String visible; |
| | | |
| | | /** 菜单状态(0正常 1停用) */ |
| | | private String status; |
| | | |
| | | /** 权限字符串 */ |
| | | private String perms; |
| | | |
| | | /** 菜单图标 */ |
| | | private String icon; |
| | | |
| | | /** 子菜单 */ |
| | | private List<SysMenu> children = new ArrayList<SysMenu>(); |
| | | |
| | | public Long getMenuId() |
| | | { |
| | | return menuId; |
| | | } |
| | | |
| | | public void setMenuId(Long menuId) |
| | | { |
| | | this.menuId = menuId; |
| | | } |
| | | |
| | | @NotBlank(message = "菜单名称不能为空") |
| | | @Size(min = 0, max = 50, message = "菜单名称长度不能超过50个字符") |
| | | public String getMenuName() |
| | | { |
| | | return menuName; |
| | | } |
| | | |
| | | public void setMenuName(String menuName) |
| | | { |
| | | this.menuName = menuName; |
| | | } |
| | | |
| | | public String getParentName() |
| | | { |
| | | return parentName; |
| | | } |
| | | |
| | | public void setParentName(String parentName) |
| | | { |
| | | this.parentName = parentName; |
| | | } |
| | | |
| | | public Long getParentId() |
| | | { |
| | | return parentId; |
| | | } |
| | | |
| | | public void setParentId(Long parentId) |
| | | { |
| | | this.parentId = parentId; |
| | | } |
| | | |
| | | @NotNull(message = "显示顺序不能为空") |
| | | public Integer getOrderNum() |
| | | { |
| | | return orderNum; |
| | | } |
| | | |
| | | public void setOrderNum(Integer orderNum) |
| | | { |
| | | this.orderNum = orderNum; |
| | | } |
| | | |
| | | @Size(min = 0, max = 200, message = "路由地址不能超过200个字符") |
| | | public String getPath() |
| | | { |
| | | return path; |
| | | } |
| | | |
| | | public void setPath(String path) |
| | | { |
| | | this.path = path; |
| | | } |
| | | |
| | | @Size(min = 0, max = 200, message = "组件路径不能超过255个字符") |
| | | public String getComponent() |
| | | { |
| | | return component; |
| | | } |
| | | |
| | | public void setComponent(String component) |
| | | { |
| | | this.component = component; |
| | | } |
| | | |
| | | public String getQuery() |
| | | { |
| | | return query; |
| | | } |
| | | |
| | | public void setQuery(String query) |
| | | { |
| | | this.query = query; |
| | | } |
| | | |
| | | public String getIsFrame() |
| | | { |
| | | return isFrame; |
| | | } |
| | | |
| | | public void setIsFrame(String isFrame) |
| | | { |
| | | this.isFrame = isFrame; |
| | | } |
| | | |
| | | public String getIsCache() |
| | | { |
| | | return isCache; |
| | | } |
| | | |
| | | public void setIsCache(String isCache) |
| | | { |
| | | this.isCache = isCache; |
| | | } |
| | | |
| | | @NotBlank(message = "菜单类型不能为空") |
| | | public String getMenuType() |
| | | { |
| | | return menuType; |
| | | } |
| | | |
| | | public void setMenuType(String menuType) |
| | | { |
| | | this.menuType = menuType; |
| | | } |
| | | |
| | | public String getVisible() |
| | | { |
| | | return visible; |
| | | } |
| | | |
| | | public void setVisible(String visible) |
| | | { |
| | | this.visible = visible; |
| | | } |
| | | |
| | | public String getStatus() |
| | | { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(String status) |
| | | { |
| | | this.status = status; |
| | | } |
| | | |
| | | @Size(min = 0, max = 100, message = "权限标识长度不能超过100个字符") |
| | | public String getPerms() |
| | | { |
| | | return perms; |
| | | } |
| | | |
| | | public void setPerms(String perms) |
| | | { |
| | | this.perms = perms; |
| | | } |
| | | |
| | | public String getIcon() |
| | | { |
| | | return icon; |
| | | } |
| | | |
| | | public void setIcon(String icon) |
| | | { |
| | | this.icon = icon; |
| | | } |
| | | |
| | | public List<SysMenu> getChildren() |
| | | { |
| | | return children; |
| | | } |
| | | |
| | | public void setChildren(List<SysMenu> children) |
| | | { |
| | | this.children = children; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("menuId", getMenuId()) |
| | | .append("menuName", getMenuName()) |
| | | .append("parentId", getParentId()) |
| | | .append("orderNum", getOrderNum()) |
| | | .append("path", getPath()) |
| | | .append("component", getComponent()) |
| | | .append("isFrame", getIsFrame()) |
| | | .append("IsCache", getIsCache()) |
| | | .append("menuType", getMenuType()) |
| | | .append("visible", getVisible()) |
| | | .append("status ", getStatus()) |
| | | .append("perms", getPerms()) |
| | | .append("icon", getIcon()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("remark", getRemark()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.user; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.hrt.common.core.annotation.Excel; |
| | | import com.hrt.common.core.annotation.Excel.ColumnType; |
| | | import com.hrt.common.core.web.domain.BaseEntity; |
| | | |
| | | /** |
| | | * 岗位表 sys_post |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public class SysPost extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 岗位序号 */ |
| | | @Excel(name = "岗位序号", cellType = ColumnType.NUMERIC) |
| | | private Long postId; |
| | | |
| | | /** 岗位编码 */ |
| | | @Excel(name = "岗位编码") |
| | | private String postCode; |
| | | |
| | | /** 岗位名称 */ |
| | | @Excel(name = "岗位名称") |
| | | private String postName; |
| | | |
| | | /** 岗位排序 */ |
| | | @Excel(name = "岗位排序") |
| | | private Integer postSort; |
| | | |
| | | /** 状态(0正常 1停用) */ |
| | | @Excel(name = "状态", readConverterExp = "0=正常,1=停用") |
| | | private String status; |
| | | |
| | | /** 用户是否存在此岗位标识 默认不存在 */ |
| | | private boolean flag = false; |
| | | |
| | | public Long getPostId() |
| | | { |
| | | return postId; |
| | | } |
| | | |
| | | public void setPostId(Long postId) |
| | | { |
| | | this.postId = postId; |
| | | } |
| | | |
| | | @NotBlank(message = "岗位编码不能为空") |
| | | @Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符") |
| | | public String getPostCode() |
| | | { |
| | | return postCode; |
| | | } |
| | | |
| | | public void setPostCode(String postCode) |
| | | { |
| | | this.postCode = postCode; |
| | | } |
| | | |
| | | @NotBlank(message = "岗位名称不能为空") |
| | | @Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符") |
| | | public String getPostName() |
| | | { |
| | | return postName; |
| | | } |
| | | |
| | | public void setPostName(String postName) |
| | | { |
| | | this.postName = postName; |
| | | } |
| | | |
| | | @NotNull(message = "显示顺序不能为空") |
| | | public Integer getPostSort() |
| | | { |
| | | return postSort; |
| | | } |
| | | |
| | | public void setPostSort(Integer postSort) |
| | | { |
| | | this.postSort = postSort; |
| | | } |
| | | |
| | | public String getStatus() |
| | | { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(String status) |
| | | { |
| | | this.status = status; |
| | | } |
| | | |
| | | public boolean isFlag() |
| | | { |
| | | return flag; |
| | | } |
| | | |
| | | public void setFlag(boolean flag) |
| | | { |
| | | this.flag = flag; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("postId", getPostId()) |
| | | .append("postCode", getPostCode()) |
| | | .append("postName", getPostName()) |
| | | .append("postSort", getPostSort()) |
| | | .append("status", getStatus()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("remark", getRemark()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.user; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | /** |
| | | * 角色和部门关联 sys_role_dept |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public class SysRoleDept |
| | | { |
| | | /** 角色ID */ |
| | | private Long roleId; |
| | | |
| | | /** 部门ID */ |
| | | private Long deptId; |
| | | |
| | | public Long getRoleId() |
| | | { |
| | | return roleId; |
| | | } |
| | | |
| | | public void setRoleId(Long roleId) |
| | | { |
| | | this.roleId = roleId; |
| | | } |
| | | |
| | | public Long getDeptId() |
| | | { |
| | | return deptId; |
| | | } |
| | | |
| | | public void setDeptId(Long deptId) |
| | | { |
| | | this.deptId = deptId; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("roleId", getRoleId()) |
| | | .append("deptId", getDeptId()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.user; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | /** |
| | | * 角色和菜单关联 sys_role_menu |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public class SysRoleMenu |
| | | { |
| | | /** 角色ID */ |
| | | private Long roleId; |
| | | |
| | | /** 菜单ID */ |
| | | private Long menuId; |
| | | |
| | | public Long getRoleId() |
| | | { |
| | | return roleId; |
| | | } |
| | | |
| | | public void setRoleId(Long roleId) |
| | | { |
| | | this.roleId = roleId; |
| | | } |
| | | |
| | | public Long getMenuId() |
| | | { |
| | | return menuId; |
| | | } |
| | | |
| | | public void setMenuId(Long menuId) |
| | | { |
| | | this.menuId = menuId; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("roleId", getRoleId()) |
| | | .append("menuId", getMenuId()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.user; |
| | | |
| | | /** |
| | | * 当前在线会话 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public class SysUserOnline |
| | | { |
| | | /** 会话编号 */ |
| | | private String tokenId; |
| | | |
| | | /** 用户名称 */ |
| | | private String userName; |
| | | |
| | | /** 登录IP地址 */ |
| | | private String ipaddr; |
| | | |
| | | /** 登录地址 */ |
| | | private String loginLocation; |
| | | |
| | | /** 浏览器类型 */ |
| | | private String browser; |
| | | |
| | | /** 操作系统 */ |
| | | private String os; |
| | | |
| | | /** 登录时间 */ |
| | | private Long loginTime; |
| | | |
| | | public String getTokenId() |
| | | { |
| | | return tokenId; |
| | | } |
| | | |
| | | public void setTokenId(String tokenId) |
| | | { |
| | | this.tokenId = tokenId; |
| | | } |
| | | |
| | | public String getUserName() |
| | | { |
| | | return userName; |
| | | } |
| | | |
| | | public void setUserName(String userName) |
| | | { |
| | | this.userName = userName; |
| | | } |
| | | |
| | | public String getIpaddr() |
| | | { |
| | | return ipaddr; |
| | | } |
| | | |
| | | public void setIpaddr(String ipaddr) |
| | | { |
| | | this.ipaddr = ipaddr; |
| | | } |
| | | |
| | | public String getLoginLocation() |
| | | { |
| | | return loginLocation; |
| | | } |
| | | |
| | | public void setLoginLocation(String loginLocation) |
| | | { |
| | | this.loginLocation = loginLocation; |
| | | } |
| | | |
| | | public String getBrowser() |
| | | { |
| | | return browser; |
| | | } |
| | | |
| | | public void setBrowser(String browser) |
| | | { |
| | | this.browser = browser; |
| | | } |
| | | |
| | | public String getOs() |
| | | { |
| | | return os; |
| | | } |
| | | |
| | | public void setOs(String os) |
| | | { |
| | | this.os = os; |
| | | } |
| | | |
| | | public Long getLoginTime() |
| | | { |
| | | return loginTime; |
| | | } |
| | | |
| | | public void setLoginTime(Long loginTime) |
| | | { |
| | | this.loginTime = loginTime; |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.user; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | /** |
| | | * 用户和岗位关联 sys_user_post |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public class SysUserPost |
| | | { |
| | | /** 用户ID */ |
| | | private Long userId; |
| | | |
| | | /** 岗位ID */ |
| | | private Long postId; |
| | | |
| | | public Long getUserId() |
| | | { |
| | | return userId; |
| | | } |
| | | |
| | | public void setUserId(Long userId) |
| | | { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public Long getPostId() |
| | | { |
| | | return postId; |
| | | } |
| | | |
| | | public void setPostId(Long postId) |
| | | { |
| | | this.postId = postId; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("userId", getUserId()) |
| | | .append("postId", getPostId()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.hrt.system.domain.poji.user; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | /** |
| | | * 用户和角色关联 sys_user_role |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public class SysUserRole |
| | | { |
| | | /** 用户ID */ |
| | | private Long userId; |
| | | |
| | | /** 角色ID */ |
| | | private Long roleId; |
| | | |
| | | public Long getUserId() |
| | | { |
| | | return userId; |
| | | } |
| | | |
| | | public void setUserId(Long userId) |
| | | { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public Long getRoleId() |
| | | { |
| | | return roleId; |
| | | } |
| | | |
| | | public void setRoleId(Long roleId) |
| | | { |
| | | this.roleId = roleId; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("userId", getUserId()) |
| | | .append("roleId", getRoleId()) |
| | | .toString(); |
| | | } |
| | | } |
| | |
| | | import java.util.stream.Collectors; |
| | | import com.fasterxml.jackson.annotation.JsonInclude; |
| | | import com.hrt.system.api.domain.SysDept; |
| | | import com.hrt.system.domain.poji.SysMenu; |
| | | import com.hrt.system.domain.poji.user.SysMenu; |
| | | |
| | | /** |
| | | * Treeselect树结构实体类 |
New file |
| | |
| | | package com.hrt.system.mapper.coupon; |
| | | |
| | | import com.hrt.system.domain.poji.coupon.Coupon; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | public interface CouponMapper extends BaseMapper<Coupon> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.coupon; |
| | | |
| | | import com.hrt.system.domain.poji.coupon.CouponRelGoods; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券商品关联 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | public interface CouponRelGoodsMapper extends BaseMapper<CouponRelGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.coupon; |
| | | |
| | | import com.hrt.system.domain.poji.coupon.CouponRelUser; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券用户关联 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | public interface CouponRelUserMapper extends BaseMapper<CouponRelUser> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.coupon; |
| | | |
| | | import com.hrt.system.domain.poji.coupon.CouponTotal; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | public interface CouponTotalMapper extends BaseMapper<CouponTotal> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.goods; |
| | | |
| | | import com.hrt.system.domain.poji.goods.GoodsFile; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品图片 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface GoodsFileMapper extends BaseMapper<GoodsFile> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.goods; |
| | | |
| | | import com.hrt.system.domain.poji.goods.Goods; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品表 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface GoodsMapper extends BaseMapper<Goods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.goods; |
| | | |
| | | import com.hrt.system.domain.poji.goods.GoodsRelNurse; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品调理问题 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface GoodsRelNurseMapper extends BaseMapper<GoodsRelNurse> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.goods; |
| | | |
| | | import com.hrt.system.domain.poji.goods.GoodsRelTag; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品标签 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface GoodsRelTagMapper extends BaseMapper<GoodsRelTag> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.goods; |
| | | |
| | | import com.hrt.system.domain.poji.goods.GoodsTotal; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | public interface GoodsTotalMapper extends BaseMapper<GoodsTotal> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.member; |
| | | |
| | | import com.hrt.system.domain.poji.member.MemberArchiveFields; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 档案字段 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface MemberArchiveFieldsMapper extends BaseMapper<MemberArchiveFields> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.member; |
| | | |
| | | import com.hrt.system.domain.poji.member.MemberArchive; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员档案信息 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface MemberArchiveMapper extends BaseMapper<MemberArchive> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.member; |
| | | |
| | | import com.hrt.system.domain.poji.member.UserCoupon; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | public interface UserCouponMapper extends BaseMapper<UserCoupon> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.order; |
| | | |
| | | import com.hrt.system.domain.poji.order.ConsumerGoods; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ConsumerGoodsMapper extends BaseMapper<ConsumerGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.order; |
| | | |
| | | import com.hrt.system.domain.poji.order.OrderGoods; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 订单商品 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface OrderGoodsMapper extends BaseMapper<OrderGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.order; |
| | | |
| | | import com.hrt.system.domain.poji.order.Order; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 订单 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface OrderMapper extends BaseMapper<Order> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.order; |
| | | |
| | | import com.hrt.system.domain.poji.order.ShoppingCart; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 购物车 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.order; |
| | | |
| | | import com.hrt.system.domain.poji.order.UserServiceRecord; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务记录 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface UserServiceRecordMapper extends BaseMapper<UserServiceRecord> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.MemberTask; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员跟进任务 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface MemberTaskMapper extends BaseMapper<MemberTask> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.MemberTaskRecord; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员跟进任务记录 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface MemberTaskRecordMapper extends BaseMapper<MemberTaskRecord> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.ShopFile; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户图片 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopFileMapper extends BaseMapper<ShopFile> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.ShopGoods; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户定制商品 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopGoodsMapper extends BaseMapper<ShopGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.Shop; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户表 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopMapper extends BaseMapper<Shop> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.ShopMarketing; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户营销 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopMarketingMapper extends BaseMapper<ShopMarketing> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.ShopRelTag; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户标签 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopRelTagMapper extends BaseMapper<ShopRelTag> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.ShopRelUser; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户关联员工 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopRelUserMapper extends BaseMapper<ShopRelUser> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.ShopTask; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户跟进任务 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopTaskMapper extends BaseMapper<ShopTask> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.ShopTransferRecord; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户员工转移记录 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopTransferRecordMapper extends BaseMapper<ShopTransferRecord> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.TaskFile; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 跟进附件 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface TaskFileMapper extends BaseMapper<TaskFile> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.sys; |
| | | |
| | | import com.hrt.system.domain.poji.sys.Agreement; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 协议 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface AgreementMapper extends BaseMapper<Agreement> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.sys; |
| | | |
| | | import com.hrt.system.domain.poji.sys.Banner; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * banner Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface BannerMapper extends BaseMapper<Banner> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.sys; |
| | | |
| | | import com.hrt.system.domain.poji.sys.CustomeConfig; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 系统配置 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface CustomeConfigMapper extends BaseMapper<CustomeConfig> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.sys; |
| | | |
| | | import com.hrt.system.domain.poji.sys.Pop; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 弹窗 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface PopMapper extends BaseMapper<Pop> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.sys; |
| | | |
| | | import com.hrt.system.domain.poji.sys.QuickEntry; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 快速入口 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface QuickEntryMapper extends BaseMapper<QuickEntry> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.sys; |
| | | |
| | | import com.hrt.system.domain.poji.sys.SysClassification; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 分类 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | public interface SysClassificationMapper extends BaseMapper<SysClassification> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.hrt.system.domain.poji.sys.SysConfig; |
| | | |
| | | /** |
| | | * 参数配置 数据层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface SysConfigMapper extends BaseMapper<SysConfig> |
| | | { |
| | | /** |
| | | * 查询参数配置信息 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 参数配置信息 |
| | | */ |
| | | public SysConfig selectConfig(SysConfig config); |
| | | |
| | | /** |
| | | * 通过ID查询配置 |
| | | * |
| | | * @param configId 参数ID |
| | | * @return 参数配置信息 |
| | | */ |
| | | public SysConfig selectConfigById(Long configId); |
| | | |
| | | /** |
| | | * 查询参数配置列表 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 参数配置集合 |
| | | */ |
| | | public List<SysConfig> selectConfigList(SysConfig config); |
| | | |
| | | /** |
| | | * 根据键名查询参数配置信息 |
| | | * |
| | | * @param configKey 参数键名 |
| | | * @return 参数配置信息 |
| | | */ |
| | | public SysConfig checkConfigKeyUnique(String configKey); |
| | | |
| | | /** |
| | | * 新增参数配置 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertConfig(SysConfig config); |
| | | |
| | | /** |
| | | * 修改参数配置 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateConfig(SysConfig config); |
| | | |
| | | /** |
| | | * 删除参数配置 |
| | | * |
| | | * @param configId 参数ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteConfigById(Long configId); |
| | | |
| | | /** |
| | | * 批量删除参数信息 |
| | | * |
| | | * @param configIds 需要删除的参数ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteConfigByIds(Long[] configIds); |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import com.hrt.system.api.domain.SysDictData; |
| | | |
| | | /** |
| | | * 字典表 数据层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface SysDictDataMapper extends BaseMapper<SysDictData> |
| | | { |
| | | /** |
| | | * 根据条件分页查询字典数据 |
| | | * |
| | | * @param dictData 字典数据信息 |
| | | * @return 字典数据集合信息 |
| | | */ |
| | | public List<SysDictData> selectDictDataList(SysDictData dictData); |
| | | |
| | | /** |
| | | * 根据字典类型查询字典数据 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 字典数据集合信息 |
| | | */ |
| | | public List<SysDictData> selectDictDataByType(String dictType); |
| | | |
| | | /** |
| | | * 根据字典类型和字典键值查询字典数据信息 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @param dictValue 字典键值 |
| | | * @return 字典标签 |
| | | */ |
| | | public String selectDictLabel(@Param("dictType") String dictType, @Param("dictValue") String dictValue); |
| | | |
| | | /** |
| | | * 根据字典数据ID查询信息 |
| | | * |
| | | * @param dictCode 字典数据ID |
| | | * @return 字典数据 |
| | | */ |
| | | public SysDictData selectDictDataById(Long dictCode); |
| | | |
| | | /** |
| | | * 查询字典数据 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 字典数据 |
| | | */ |
| | | public int countDictDataByType(String dictType); |
| | | |
| | | /** |
| | | * 通过字典ID删除字典数据信息 |
| | | * |
| | | * @param dictCode 字典数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteDictDataById(Long dictCode); |
| | | |
| | | /** |
| | | * 批量删除字典数据信息 |
| | | * |
| | | * @param dictCodes 需要删除的字典数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteDictDataByIds(Long[] dictCodes); |
| | | |
| | | /** |
| | | * 新增字典数据信息 |
| | | * |
| | | * @param dictData 字典数据信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertDictData(SysDictData dictData); |
| | | |
| | | /** |
| | | * 修改字典数据信息 |
| | | * |
| | | * @param dictData 字典数据信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDictData(SysDictData dictData); |
| | | |
| | | /** |
| | | * 同步修改字典类型 |
| | | * |
| | | * @param oldDictType 旧字典类型 |
| | | * @param newDictType 新旧字典类型 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType); |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.hrt.system.api.domain.SysDictData; |
| | | import com.hrt.system.api.domain.SysDictType; |
| | | |
| | | /** |
| | | * 字典表 数据层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface SysDictTypeMapper extends BaseMapper<SysDictType> |
| | | { |
| | | /** |
| | | * 根据条件分页查询字典类型 |
| | | * |
| | | * @param dictType 字典类型信息 |
| | | * @return 字典类型集合信息 |
| | | */ |
| | | public List<SysDictType> selectDictTypeList(SysDictType dictType); |
| | | |
| | | /** |
| | | * 根据所有字典类型 |
| | | * |
| | | * @return 字典类型集合信息 |
| | | */ |
| | | public List<SysDictType> selectDictTypeAll(); |
| | | |
| | | /** |
| | | * 根据字典类型ID查询信息 |
| | | * |
| | | * @param dictId 字典类型ID |
| | | * @return 字典类型 |
| | | */ |
| | | public SysDictType selectDictTypeById(Long dictId); |
| | | |
| | | /** |
| | | * 根据字典类型查询信息 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 字典类型 |
| | | */ |
| | | public SysDictType selectDictTypeByType(String dictType); |
| | | |
| | | /** |
| | | * 通过字典ID删除字典信息 |
| | | * |
| | | * @param dictId 字典ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteDictTypeById(Long dictId); |
| | | |
| | | /** |
| | | * 批量删除字典类型信息 |
| | | * |
| | | * @param dictIds 需要删除的字典ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteDictTypeByIds(Long[] dictIds); |
| | | |
| | | /** |
| | | * 新增字典类型信息 |
| | | * |
| | | * @param dictType 字典类型信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertDictType(SysDictType dictType); |
| | | |
| | | /** |
| | | * 修改字典类型信息 |
| | | * |
| | | * @param dictType 字典类型信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDictType(SysDictType dictType); |
| | | |
| | | /** |
| | | * 校验字典类型称是否唯一 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 结果 |
| | | */ |
| | | public SysDictType checkDictTypeUnique(String dictType); |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.hrt.system.domain.poji.sys.SysNotice; |
| | | |
| | | /** |
| | | * 通知公告表 数据层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface SysNoticeMapper extends BaseMapper<SysNotice> |
| | | { |
| | | /** |
| | | * 查询公告信息 |
| | | * |
| | | * @param noticeId 公告ID |
| | | * @return 公告信息 |
| | | */ |
| | | public SysNotice selectNoticeById(Long noticeId); |
| | | |
| | | /** |
| | | * 查询公告列表 |
| | | * |
| | | * @param notice 公告信息 |
| | | * @return 公告集合 |
| | | */ |
| | | public List<SysNotice> selectNoticeList(SysNotice notice); |
| | | |
| | | /** |
| | | * 新增公告 |
| | | * |
| | | * @param notice 公告信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertNotice(SysNotice notice); |
| | | |
| | | /** |
| | | * 修改公告 |
| | | * |
| | | * @param notice 公告信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateNotice(SysNotice notice); |
| | | |
| | | /** |
| | | * 批量删除公告 |
| | | * |
| | | * @param noticeId 公告ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteNoticeById(Long noticeId); |
| | | |
| | | /** |
| | | * 批量删除公告信息 |
| | | * |
| | | * @param noticeIds 需要删除的公告ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteNoticeByIds(Long[] noticeIds); |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.sys; |
| | | |
| | | import com.hrt.system.domain.poji.sys.SysTag; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 系统标签 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface SysTagMapper extends BaseMapper<SysTag> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.hrt.system.api.domain.SysDictType; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import com.hrt.system.api.domain.SysDept; |
| | | |
| | | /** |
| | | * 部门管理 数据层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface SysDeptMapper extends BaseMapper<SysDept> |
| | | { |
| | | /** |
| | | * 查询部门管理数据 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 部门信息集合 |
| | | */ |
| | | public List<SysDept> selectDeptList(SysDept dept); |
| | | |
| | | /** |
| | | * 根据角色ID查询部门树信息 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @param deptCheckStrictly 部门树选择项是否关联显示 |
| | | * @return 选中部门列表 |
| | | */ |
| | | public List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly); |
| | | |
| | | /** |
| | | * 根据部门ID查询信息 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 部门信息 |
| | | */ |
| | | public SysDept selectDeptById(Long deptId); |
| | | |
| | | /** |
| | | * 根据ID查询所有子部门 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 部门列表 |
| | | */ |
| | | public List<SysDept> selectChildrenDeptById(Long deptId); |
| | | |
| | | /** |
| | | * 根据ID查询所有子部门(正常状态) |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 子部门数 |
| | | */ |
| | | public int selectNormalChildrenDeptById(Long deptId); |
| | | |
| | | /** |
| | | * 是否存在子节点 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 |
| | | */ |
| | | public int hasChildByDeptId(Long deptId); |
| | | |
| | | /** |
| | | * 查询部门是否存在用户 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 |
| | | */ |
| | | public int checkDeptExistUser(Long deptId); |
| | | |
| | | /** |
| | | * 校验部门名称是否唯一 |
| | | * |
| | | * @param deptName 部门名称 |
| | | * @param parentId 父部门ID |
| | | * @return 结果 |
| | | */ |
| | | public SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId); |
| | | |
| | | /** |
| | | * 新增部门信息 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertDept(SysDept dept); |
| | | |
| | | /** |
| | | * 修改部门信息 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDept(SysDept dept); |
| | | |
| | | /** |
| | | * 修改所在部门正常状态 |
| | | * |
| | | * @param deptIds 部门ID组 |
| | | */ |
| | | public void updateDeptStatusNormal(Long[] deptIds); |
| | | |
| | | /** |
| | | * 修改子元素关系 |
| | | * |
| | | * @param depts 子元素 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDeptChildren(@Param("depts") List<SysDept> depts); |
| | | |
| | | /** |
| | | * 删除部门管理信息 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteDeptById(Long deptId); |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.hrt.system.api.domain.SysDept; |
| | | import com.hrt.system.api.domain.SysLogininfor; |
| | | |
| | | /** |
| | | * 系统访问日志情况信息 数据层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface SysLogininforMapper extends BaseMapper<SysLogininfor> |
| | | { |
| | | /** |
| | | * 新增系统登录日志 |
| | | * |
| | | * @param logininfor 访问日志对象 |
| | | */ |
| | | public int insertLogininfor(SysLogininfor logininfor); |
| | | |
| | | /** |
| | | * 查询系统登录日志集合 |
| | | * |
| | | * @param logininfor 访问日志对象 |
| | | * @return 登录记录集合 |
| | | */ |
| | | public List<SysLogininfor> selectLogininforList(SysLogininfor logininfor); |
| | | |
| | | /** |
| | | * 批量删除系统登录日志 |
| | | * |
| | | * @param infoIds 需要删除的登录日志ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteLogininforByIds(Long[] infoIds); |
| | | |
| | | /** |
| | | * 清空系统登录日志 |
| | | * |
| | | * @return 结果 |
| | | */ |
| | | public int cleanLogininfor(); |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import com.hrt.system.domain.poji.user.SysMenu; |
| | | |
| | | /** |
| | | * 菜单表 数据层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface SysMenuMapper extends BaseMapper<SysMenu> |
| | | { |
| | | /** |
| | | * 查询系统菜单列表 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 菜单列表 |
| | | */ |
| | | public List<SysMenu> selectMenuList(SysMenu menu); |
| | | |
| | | /** |
| | | * 根据用户所有权限 |
| | | * |
| | | * @return 权限列表 |
| | | */ |
| | | public List<String> selectMenuPerms(); |
| | | |
| | | /** |
| | | * 根据用户查询系统菜单列表 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 菜单列表 |
| | | */ |
| | | public List<SysMenu> selectMenuListByUserId(SysMenu menu); |
| | | |
| | | /** |
| | | * 根据角色ID查询权限 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 权限列表 |
| | | */ |
| | | public List<String> selectMenuPermsByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 根据用户ID查询权限 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 权限列表 |
| | | */ |
| | | public List<String> selectMenuPermsByUserId(Long userId); |
| | | |
| | | /** |
| | | * 根据用户ID查询菜单 |
| | | * |
| | | * @return 菜单列表 |
| | | */ |
| | | public List<SysMenu> selectMenuTreeAll(); |
| | | |
| | | /** |
| | | * 根据用户ID查询菜单 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 菜单列表 |
| | | */ |
| | | public List<SysMenu> selectMenuTreeByUserId(Long userId); |
| | | |
| | | /** |
| | | * 根据角色ID查询菜单树信息 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @param menuCheckStrictly 菜单树选择项是否关联显示 |
| | | * @return 选中菜单列表 |
| | | */ |
| | | public List<Long> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly); |
| | | |
| | | /** |
| | | * 根据菜单ID查询信息 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 菜单信息 |
| | | */ |
| | | public SysMenu selectMenuById(Long menuId); |
| | | |
| | | /** |
| | | * 是否存在菜单子节点 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 结果 |
| | | */ |
| | | public int hasChildByMenuId(Long menuId); |
| | | |
| | | /** |
| | | * 新增菜单信息 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertMenu(SysMenu menu); |
| | | |
| | | /** |
| | | * 修改菜单信息 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateMenu(SysMenu menu); |
| | | |
| | | /** |
| | | * 删除菜单管理信息 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteMenuById(Long menuId); |
| | | |
| | | /** |
| | | * 校验菜单名称是否唯一 |
| | | * |
| | | * @param menuName 菜单名称 |
| | | * @param parentId 父菜单ID |
| | | * @return 结果 |
| | | */ |
| | | public SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId); |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.hrt.system.api.domain.SysOperLog; |
| | | |
| | | /** |
| | | * 操作日志 数据层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface SysOperLogMapper extends BaseMapper<SysOperLog> |
| | | { |
| | | /** |
| | | * 新增操作日志 |
| | | * |
| | | * @param operLog 操作日志对象 |
| | | */ |
| | | public int insertOperlog(SysOperLog operLog); |
| | | |
| | | /** |
| | | * 查询系统操作日志集合 |
| | | * |
| | | * @param operLog 操作日志对象 |
| | | * @return 操作日志集合 |
| | | */ |
| | | public List<SysOperLog> selectOperLogList(SysOperLog operLog); |
| | | |
| | | /** |
| | | * 批量删除系统操作日志 |
| | | * |
| | | * @param operIds 需要删除的操作日志ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteOperLogByIds(Long[] operIds); |
| | | |
| | | /** |
| | | * 查询操作日志详细 |
| | | * |
| | | * @param operId 操作ID |
| | | * @return 操作日志对象 |
| | | */ |
| | | public SysOperLog selectOperLogById(Long operId); |
| | | |
| | | /** |
| | | * 清空操作日志 |
| | | */ |
| | | public void cleanOperLog(); |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.hrt.system.domain.poji.user.SysPost; |
| | | |
| | | /** |
| | | * 岗位信息 数据层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface SysPostMapper extends BaseMapper<SysPost> |
| | | { |
| | | /** |
| | | * 查询岗位数据集合 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 岗位数据集合 |
| | | */ |
| | | public List<SysPost> selectPostList(SysPost post); |
| | | |
| | | /** |
| | | * 查询所有岗位 |
| | | * |
| | | * @return 岗位列表 |
| | | */ |
| | | public List<SysPost> selectPostAll(); |
| | | |
| | | /** |
| | | * 通过岗位ID查询岗位信息 |
| | | * |
| | | * @param postId 岗位ID |
| | | * @return 角色对象信息 |
| | | */ |
| | | public SysPost selectPostById(Long postId); |
| | | |
| | | /** |
| | | * 根据用户ID获取岗位选择框列表 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 选中岗位ID列表 |
| | | */ |
| | | public List<Long> selectPostListByUserId(Long userId); |
| | | |
| | | /** |
| | | * 查询用户所属岗位组 |
| | | * |
| | | * @param userName 用户名 |
| | | * @return 结果 |
| | | */ |
| | | public List<SysPost> selectPostsByUserName(String userName); |
| | | |
| | | /** |
| | | * 删除岗位信息 |
| | | * |
| | | * @param postId 岗位ID |
| | | * @return 结果 |
| | | */ |
| | | public int deletePostById(Long postId); |
| | | |
| | | /** |
| | | * 批量删除岗位信息 |
| | | * |
| | | * @param postIds 需要删除的岗位ID |
| | | * @return 结果 |
| | | */ |
| | | public int deletePostByIds(Long[] postIds); |
| | | |
| | | /** |
| | | * 修改岗位信息 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updatePost(SysPost post); |
| | | |
| | | /** |
| | | * 新增岗位信息 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertPost(SysPost post); |
| | | |
| | | /** |
| | | * 校验岗位名称 |
| | | * |
| | | * @param postName 岗位名称 |
| | | * @return 结果 |
| | | */ |
| | | public SysPost checkPostNameUnique(String postName); |
| | | |
| | | /** |
| | | * 校验岗位编码 |
| | | * |
| | | * @param postCode 岗位编码 |
| | | * @return 结果 |
| | | */ |
| | | public SysPost checkPostCodeUnique(String postCode); |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.hrt.system.domain.poji.user.SysRoleDept; |
| | | |
| | | /** |
| | | * 角色与部门关联表 数据层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept> |
| | | { |
| | | /** |
| | | * 通过角色ID删除角色和部门关联 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleDeptByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 批量删除角色部门关联信息 |
| | | * |
| | | * @param ids 需要删除的数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleDept(Long[] ids); |
| | | |
| | | /** |
| | | * 查询部门使用数量 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 |
| | | */ |
| | | public int selectCountRoleDeptByDeptId(Long deptId); |
| | | |
| | | /** |
| | | * 批量新增角色部门信息 |
| | | * |
| | | * @param roleDeptList 角色部门列表 |
| | | * @return 结果 |
| | | */ |
| | | public int batchRoleDept(List<SysRoleDept> roleDeptList); |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.hrt.system.api.domain.SysRole; |
| | | |
| | | /** |
| | | * 角色表 数据层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface SysRoleMapper extends BaseMapper<SysRole> |
| | | { |
| | | /** |
| | | * 根据条件分页查询角色数据 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 角色数据集合信息 |
| | | */ |
| | | public List<SysRole> selectRoleList(SysRole role); |
| | | |
| | | /** |
| | | * 根据用户ID查询角色 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 角色列表 |
| | | */ |
| | | public List<SysRole> selectRolePermissionByUserId(Long userId); |
| | | |
| | | /** |
| | | * 查询所有角色 |
| | | * |
| | | * @return 角色列表 |
| | | */ |
| | | public List<SysRole> selectRoleAll(); |
| | | |
| | | /** |
| | | * 根据用户ID获取角色选择框列表 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 选中角色ID列表 |
| | | */ |
| | | public List<Long> selectRoleListByUserId(Long userId); |
| | | |
| | | /** |
| | | * 通过角色ID查询角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 角色对象信息 |
| | | */ |
| | | public SysRole selectRoleById(Long roleId); |
| | | |
| | | /** |
| | | * 根据用户ID查询角色 |
| | | * |
| | | * @param userName 用户名 |
| | | * @return 角色列表 |
| | | */ |
| | | public List<SysRole> selectRolesByUserName(String userName); |
| | | |
| | | /** |
| | | * 校验角色名称是否唯一 |
| | | * |
| | | * @param roleName 角色名称 |
| | | * @return 角色信息 |
| | | */ |
| | | public SysRole checkRoleNameUnique(String roleName); |
| | | |
| | | /** |
| | | * 校验角色权限是否唯一 |
| | | * |
| | | * @param roleKey 角色权限 |
| | | * @return 角色信息 |
| | | */ |
| | | public SysRole checkRoleKeyUnique(String roleKey); |
| | | |
| | | /** |
| | | * 修改角色信息 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateRole(SysRole role); |
| | | |
| | | /** |
| | | * 新增角色信息 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertRole(SysRole role); |
| | | |
| | | /** |
| | | * 通过角色ID删除角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleById(Long roleId); |
| | | |
| | | /** |
| | | * 批量删除角色信息 |
| | | * |
| | | * @param roleIds 需要删除的角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleByIds(Long[] roleIds); |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.hrt.system.domain.poji.user.SysRoleMenu; |
| | | |
| | | /** |
| | | * 角色与菜单关联表 数据层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> |
| | | { |
| | | /** |
| | | * 查询菜单使用数量 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 结果 |
| | | */ |
| | | public int checkMenuExistRole(Long menuId); |
| | | |
| | | /** |
| | | * 通过角色ID删除角色和菜单关联 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleMenuByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 批量删除角色菜单关联信息 |
| | | * |
| | | * @param ids 需要删除的数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleMenu(Long[] ids); |
| | | |
| | | /** |
| | | * 批量新增角色菜单信息 |
| | | * |
| | | * @param roleMenuList 角色菜单列表 |
| | | * @return 结果 |
| | | */ |
| | | public int batchRoleMenu(List<SysRoleMenu> roleMenuList); |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import com.hrt.system.api.domain.SysUser; |
| | | |
| | | /** |
| | | * 用户表 数据层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface SysUserMapper extends BaseMapper<SysUser> |
| | | { |
| | | /** |
| | | * 根据条件分页查询用户列表 |
| | | * |
| | | * @param sysUser 用户信息 |
| | | * @return 用户信息集合信息 |
| | | */ |
| | | public List<SysUser> selectUserList(SysUser sysUser); |
| | | |
| | | /** |
| | | * 根据条件分页查询已配用户角色列表 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 用户信息集合信息 |
| | | */ |
| | | public List<SysUser> selectAllocatedList(SysUser user); |
| | | |
| | | /** |
| | | * 根据条件分页查询未分配用户角色列表 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 用户信息集合信息 |
| | | */ |
| | | public List<SysUser> selectUnallocatedList(SysUser user); |
| | | |
| | | /** |
| | | * 通过用户名查询用户 |
| | | * |
| | | * @param userName 用户名 |
| | | * @return 用户对象信息 |
| | | */ |
| | | public SysUser selectUserByUserName(String userName); |
| | | |
| | | /** |
| | | * 通过用户ID查询用户 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 用户对象信息 |
| | | */ |
| | | public SysUser selectUserById(Long userId); |
| | | |
| | | /** |
| | | * 新增用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertUser(SysUser user); |
| | | |
| | | /** |
| | | * 修改用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateUser(SysUser user); |
| | | |
| | | /** |
| | | * 修改用户头像 |
| | | * |
| | | * @param userName 用户名 |
| | | * @param avatar 头像地址 |
| | | * @return 结果 |
| | | */ |
| | | public int updateUserAvatar(@Param("userName") String userName, @Param("avatar") String avatar); |
| | | |
| | | /** |
| | | * 重置用户密码 |
| | | * |
| | | * @param userName 用户名 |
| | | * @param password 密码 |
| | | * @return 结果 |
| | | */ |
| | | public int resetUserPwd(@Param("userName") String userName, @Param("password") String password); |
| | | |
| | | /** |
| | | * 通过用户ID删除用户 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserById(Long userId); |
| | | |
| | | /** |
| | | * 批量删除用户信息 |
| | | * |
| | | * @param userIds 需要删除的用户ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserByIds(Long[] userIds); |
| | | |
| | | /** |
| | | * 校验用户名称是否唯一 |
| | | * |
| | | * @param userName 用户名称 |
| | | * @return 结果 |
| | | */ |
| | | public SysUser checkUserNameUnique(String userName); |
| | | |
| | | /** |
| | | * 校验手机号码是否唯一 |
| | | * |
| | | * @param phonenumber 手机号码 |
| | | * @return 结果 |
| | | */ |
| | | public SysUser checkPhoneUnique(String phonenumber); |
| | | |
| | | /** |
| | | * 校验email是否唯一 |
| | | * |
| | | * @param email 用户邮箱 |
| | | * @return 结果 |
| | | */ |
| | | public SysUser checkEmailUnique(String email); |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.hrt.system.domain.poji.user.SysUserPost; |
| | | |
| | | /** |
| | | * 用户与岗位关联表 数据层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface SysUserPostMapper extends BaseMapper<SysUserPost> |
| | | { |
| | | /** |
| | | * 通过用户ID删除用户和岗位关联 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserPostByUserId(Long userId); |
| | | |
| | | /** |
| | | * 通过岗位ID查询岗位使用数量 |
| | | * |
| | | * @param postId 岗位ID |
| | | * @return 结果 |
| | | */ |
| | | public int countUserPostById(Long postId); |
| | | |
| | | /** |
| | | * 批量删除用户和岗位关联 |
| | | * |
| | | * @param ids 需要删除的数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserPost(Long[] ids); |
| | | |
| | | /** |
| | | * 批量新增用户岗位信息 |
| | | * |
| | | * @param userPostList 用户角色列表 |
| | | * @return 结果 |
| | | */ |
| | | public int batchUserPost(List<SysUserPost> userPostList); |
| | | } |
New file |
| | |
| | | package com.hrt.system.mapper.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.hrt.system.domain.poji.user.SysUserRole; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * 用户与角色关联表 数据层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface SysUserRoleMapper extends BaseMapper<SysUserRole> |
| | | { |
| | | /** |
| | | * 通过用户ID删除用户和角色关联 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserRoleByUserId(Long userId); |
| | | |
| | | /** |
| | | * 批量删除用户和角色关联 |
| | | * |
| | | * @param ids 需要删除的数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserRole(Long[] ids); |
| | | |
| | | /** |
| | | * 通过角色ID查询角色使用数量 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int countUserRoleByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 批量新增用户角色信息 |
| | | * |
| | | * @param userRoleList 用户角色列表 |
| | | * @return 结果 |
| | | */ |
| | | public int batchUserRole(List<SysUserRole> userRoleList); |
| | | |
| | | /** |
| | | * 删除用户和角色关联信息 |
| | | * |
| | | * @param userRole 用户和角色关联信息 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserRoleInfo(SysUserRole userRole); |
| | | |
| | | /** |
| | | * 批量取消授权用户角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @param userIds 需要删除的用户数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserRoleInfos(@Param("roleId") Long roleId, @Param("userIds") Long[] userIds); |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.coupon; |
| | | |
| | | import com.hrt.system.domain.poji.coupon.CouponRelGoods; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券商品关联 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | public interface CouponRelGoodsService extends IService<CouponRelGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.coupon; |
| | | |
| | | import com.hrt.system.domain.poji.coupon.CouponRelUser; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券用户关联 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | public interface CouponRelUserService extends IService<CouponRelUser> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.coupon; |
| | | |
| | | import com.hrt.system.domain.poji.coupon.Coupon; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | public interface CouponService extends IService<Coupon> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.coupon; |
| | | |
| | | import com.hrt.system.domain.poji.coupon.CouponTotal; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | public interface CouponTotalService extends IService<CouponTotal> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.goods; |
| | | |
| | | import com.hrt.system.domain.poji.goods.GoodsFile; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品图片 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface GoodsFileService extends IService<GoodsFile> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.goods; |
| | | |
| | | import com.hrt.system.domain.poji.goods.GoodsRelNurse; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品调理问题 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface GoodsRelNurseService extends IService<GoodsRelNurse> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.goods; |
| | | |
| | | import com.hrt.system.domain.poji.goods.GoodsRelTag; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品标签 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface GoodsRelTagService extends IService<GoodsRelTag> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.goods; |
| | | |
| | | import com.hrt.system.domain.poji.goods.Goods; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品表 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface GoodsService extends IService<Goods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.goods; |
| | | |
| | | import com.hrt.system.domain.poji.goods.GoodsTotal; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | public interface GoodsTotalService extends IService<GoodsTotal> { |
| | | |
| | | } |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.Agreement; |
| | | import com.hrt.system.mapper.AgreementMapper; |
| | | import com.hrt.system.service.AgreementService; |
| | | import com.hrt.system.domain.poji.sys.Agreement; |
| | | import com.hrt.system.mapper.sys.AgreementMapper; |
| | | import com.hrt.system.service.sys.AgreementService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.Banner; |
| | | import com.hrt.system.mapper.BannerMapper; |
| | | import com.hrt.system.service.BannerService; |
| | | import com.hrt.system.domain.poji.sys.Banner; |
| | | import com.hrt.system.mapper.sys.BannerMapper; |
| | | import com.hrt.system.service.sys.BannerService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.ConsumerGoods; |
| | | import com.hrt.system.mapper.ConsumerGoodsMapper; |
| | | import com.hrt.system.service.ConsumerGoodsService; |
| | | import com.hrt.system.domain.poji.order.ConsumerGoods; |
| | | import com.hrt.system.mapper.order.ConsumerGoodsMapper; |
| | | import com.hrt.system.service.order.ConsumerGoodsService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
New file |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.coupon.CouponRelGoods; |
| | | import com.hrt.system.mapper.coupon.CouponRelGoodsMapper; |
| | | import com.hrt.system.service.coupon.CouponRelGoodsService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券商品关联 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | @Service |
| | | public class CouponRelGoodsServiceImpl extends ServiceImpl<CouponRelGoodsMapper, CouponRelGoods> implements CouponRelGoodsService { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.coupon.CouponRelUser; |
| | | import com.hrt.system.mapper.coupon.CouponRelUserMapper; |
| | | import com.hrt.system.service.coupon.CouponRelUserService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券用户关联 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | @Service |
| | | public class CouponRelUserServiceImpl extends ServiceImpl<CouponRelUserMapper, CouponRelUser> implements CouponRelUserService { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.coupon.Coupon; |
| | | import com.hrt.system.mapper.coupon.CouponMapper; |
| | | import com.hrt.system.service.coupon.CouponService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | @Service |
| | | public class CouponServiceImpl extends ServiceImpl<CouponMapper, Coupon> implements CouponService { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.coupon.CouponTotal; |
| | | import com.hrt.system.mapper.coupon.CouponTotalMapper; |
| | | import com.hrt.system.service.coupon.CouponTotalService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | @Service |
| | | public class CouponTotalServiceImpl extends ServiceImpl<CouponTotalMapper, CouponTotal> implements CouponTotalService { |
| | | |
| | | } |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.CustomeConfig; |
| | | import com.hrt.system.mapper.CustomeConfigMapper; |
| | | import com.hrt.system.service.CustomeConfigService; |
| | | import com.hrt.system.domain.poji.sys.CustomeConfig; |
| | | import com.hrt.system.mapper.sys.CustomeConfigMapper; |
| | | import com.hrt.system.service.sys.CustomeConfigService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.GoodsFile; |
| | | import com.hrt.system.mapper.GoodsFileMapper; |
| | | import com.hrt.system.service.GoodsFileService; |
| | | import com.hrt.system.domain.poji.goods.GoodsFile; |
| | | import com.hrt.system.mapper.goods.GoodsFileMapper; |
| | | import com.hrt.system.service.goods.GoodsFileService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.GoodsRelNurse; |
| | | import com.hrt.system.mapper.GoodsRelNurseMapper; |
| | | import com.hrt.system.service.GoodsRelNurseService; |
| | | import com.hrt.system.domain.poji.goods.GoodsRelNurse; |
| | | import com.hrt.system.mapper.goods.GoodsRelNurseMapper; |
| | | import com.hrt.system.service.goods.GoodsRelNurseService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.GoodsRelTag; |
| | | import com.hrt.system.mapper.GoodsRelTagMapper; |
| | | import com.hrt.system.service.GoodsRelTagService; |
| | | import com.hrt.system.domain.poji.goods.GoodsRelTag; |
| | | import com.hrt.system.mapper.goods.GoodsRelTagMapper; |
| | | import com.hrt.system.service.goods.GoodsRelTagService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.Goods; |
| | | import com.hrt.system.mapper.GoodsMapper; |
| | | import com.hrt.system.service.GoodsService; |
| | | import com.hrt.system.domain.poji.goods.Goods; |
| | | import com.hrt.system.mapper.goods.GoodsMapper; |
| | | import com.hrt.system.service.goods.GoodsService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
New file |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.goods.GoodsTotal; |
| | | import com.hrt.system.mapper.goods.GoodsTotalMapper; |
| | | import com.hrt.system.service.goods.GoodsTotalService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | @Service |
| | | public class GoodsTotalServiceImpl extends ServiceImpl<GoodsTotalMapper, GoodsTotal> implements GoodsTotalService { |
| | | |
| | | } |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.MemberArchiveFields; |
| | | import com.hrt.system.mapper.MemberArchiveFieldsMapper; |
| | | import com.hrt.system.service.MemberArchiveFieldsService; |
| | | import com.hrt.system.domain.poji.member.MemberArchiveFields; |
| | | import com.hrt.system.mapper.member.MemberArchiveFieldsMapper; |
| | | import com.hrt.system.service.member.MemberArchiveFieldsService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.MemberArchive; |
| | | import com.hrt.system.mapper.MemberArchiveMapper; |
| | | import com.hrt.system.service.MemberArchiveService; |
| | | import com.hrt.system.domain.poji.member.MemberArchive; |
| | | import com.hrt.system.mapper.member.MemberArchiveMapper; |
| | | import com.hrt.system.service.member.MemberArchiveService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.MemberTaskRecord; |
| | | import com.hrt.system.mapper.MemberTaskRecordMapper; |
| | | import com.hrt.system.service.MemberTaskRecordService; |
| | | import com.hrt.system.domain.poji.shop.MemberTaskRecord; |
| | | import com.hrt.system.mapper.shop.MemberTaskRecordMapper; |
| | | import com.hrt.system.service.shop.MemberTaskRecordService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.MemberTask; |
| | | import com.hrt.system.mapper.MemberTaskMapper; |
| | | import com.hrt.system.service.MemberTaskService; |
| | | import com.hrt.system.domain.poji.shop.MemberTask; |
| | | import com.hrt.system.mapper.shop.MemberTaskMapper; |
| | | import com.hrt.system.service.shop.MemberTaskService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.OrderGoods; |
| | | import com.hrt.system.mapper.OrderGoodsMapper; |
| | | import com.hrt.system.service.OrderGoodsService; |
| | | import com.hrt.system.domain.poji.order.OrderGoods; |
| | | import com.hrt.system.mapper.order.OrderGoodsMapper; |
| | | import com.hrt.system.service.order.OrderGoodsService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.Order; |
| | | import com.hrt.system.mapper.OrderMapper; |
| | | import com.hrt.system.service.OrderService; |
| | | import com.hrt.system.domain.poji.order.Order; |
| | | import com.hrt.system.mapper.order.OrderMapper; |
| | | import com.hrt.system.service.order.OrderService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.Pop; |
| | | import com.hrt.system.mapper.PopMapper; |
| | | import com.hrt.system.service.PopService; |
| | | import com.hrt.system.domain.poji.sys.Pop; |
| | | import com.hrt.system.mapper.sys.PopMapper; |
| | | import com.hrt.system.service.sys.PopService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.QuickEntry; |
| | | import com.hrt.system.mapper.QuickEntryMapper; |
| | | import com.hrt.system.service.QuickEntryService; |
| | | import com.hrt.system.domain.poji.sys.QuickEntry; |
| | | import com.hrt.system.mapper.sys.QuickEntryMapper; |
| | | import com.hrt.system.service.sys.QuickEntryService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.ShopFile; |
| | | import com.hrt.system.mapper.ShopFileMapper; |
| | | import com.hrt.system.service.ShopFileService; |
| | | import com.hrt.system.domain.poji.shop.ShopFile; |
| | | import com.hrt.system.mapper.shop.ShopFileMapper; |
| | | import com.hrt.system.service.shop.ShopFileService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.ShopGoods; |
| | | import com.hrt.system.mapper.ShopGoodsMapper; |
| | | import com.hrt.system.service.ShopGoodsService; |
| | | import com.hrt.system.domain.poji.shop.ShopGoods; |
| | | import com.hrt.system.mapper.shop.ShopGoodsMapper; |
| | | import com.hrt.system.service.shop.ShopGoodsService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.ShopMarketing; |
| | | import com.hrt.system.mapper.ShopMarketingMapper; |
| | | import com.hrt.system.service.ShopMarketingService; |
| | | import com.hrt.system.domain.poji.shop.ShopMarketing; |
| | | import com.hrt.system.mapper.shop.ShopMarketingMapper; |
| | | import com.hrt.system.service.shop.ShopMarketingService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.ShopRelTag; |
| | | import com.hrt.system.mapper.ShopRelTagMapper; |
| | | import com.hrt.system.service.ShopRelTagService; |
| | | import com.hrt.system.domain.poji.shop.ShopRelTag; |
| | | import com.hrt.system.mapper.shop.ShopRelTagMapper; |
| | | import com.hrt.system.service.shop.ShopRelTagService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.ShopRelUser; |
| | | import com.hrt.system.mapper.ShopRelUserMapper; |
| | | import com.hrt.system.service.ShopRelUserService; |
| | | import com.hrt.system.domain.poji.shop.ShopRelUser; |
| | | import com.hrt.system.mapper.shop.ShopRelUserMapper; |
| | | import com.hrt.system.service.shop.ShopRelUserService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.Shop; |
| | | import com.hrt.system.mapper.ShopMapper; |
| | | import com.hrt.system.service.ShopService; |
| | | import com.hrt.system.domain.poji.shop.Shop; |
| | | import com.hrt.system.mapper.shop.ShopMapper; |
| | | import com.hrt.system.service.shop.ShopService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.ShopTask; |
| | | import com.hrt.system.mapper.ShopTaskMapper; |
| | | import com.hrt.system.service.ShopTaskService; |
| | | import com.hrt.system.domain.poji.shop.ShopTask; |
| | | import com.hrt.system.mapper.shop.ShopTaskMapper; |
| | | import com.hrt.system.service.shop.ShopTaskService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.ShopTransferRecord; |
| | | import com.hrt.system.mapper.ShopTransferRecordMapper; |
| | | import com.hrt.system.service.ShopTransferRecordService; |
| | | import com.hrt.system.domain.poji.shop.ShopTransferRecord; |
| | | import com.hrt.system.mapper.shop.ShopTransferRecordMapper; |
| | | import com.hrt.system.service.shop.ShopTransferRecordService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.ShoppingCart; |
| | | import com.hrt.system.mapper.ShoppingCartMapper; |
| | | import com.hrt.system.service.ShoppingCartService; |
| | | import com.hrt.system.domain.poji.order.ShoppingCart; |
| | | import com.hrt.system.mapper.order.ShoppingCartMapper; |
| | | import com.hrt.system.service.order.ShoppingCartService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
New file |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.sys.SysClassification; |
| | | import com.hrt.system.mapper.sys.SysClassificationMapper; |
| | | import com.hrt.system.service.sys.SysClassificationService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 分类 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | @Service |
| | | public class SysClassificationServiceImpl extends ServiceImpl<SysClassificationMapper, SysClassification> implements SysClassificationService { |
| | | |
| | | } |
| | |
| | | import javax.annotation.PostConstruct; |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.hrt.system.domain.poji.SysConfig; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.hrt.system.domain.poji.sys.SysConfig; |
| | | import org.springframework.stereotype.Service; |
| | | import com.hrt.common.core.constant.CacheConstants; |
| | | import com.hrt.common.core.constant.UserConstants; |
| | |
| | | import com.hrt.common.core.text.Convert; |
| | | import com.hrt.common.core.utils.StringUtils; |
| | | import com.hrt.common.redis.service.RedisService; |
| | | import com.hrt.system.mapper.SysConfigMapper; |
| | | import com.hrt.system.service.ISysConfigService; |
| | | import com.hrt.system.mapper.sys.SysConfigMapper; |
| | | import com.hrt.system.service.sys.ISysConfigService; |
| | | |
| | | /** |
| | | * 参数配置 服务层实现 |
| | |
| | | import java.util.stream.Collectors; |
| | | |
| | | import com.hrt.system.domain.vo.TreeSelect; |
| | | import com.hrt.system.mapper.SysRoleMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.hrt.system.mapper.user.SysRoleMapper; |
| | | import org.springframework.stereotype.Service; |
| | | import com.hrt.common.core.constant.UserConstants; |
| | | import com.hrt.common.core.exception.ServiceException; |
| | |
| | | import com.hrt.system.api.domain.SysDept; |
| | | import com.hrt.system.api.domain.SysRole; |
| | | import com.hrt.system.api.domain.SysUser; |
| | | import com.hrt.system.mapper.SysDeptMapper; |
| | | import com.hrt.system.service.ISysDeptService; |
| | | import com.hrt.system.mapper.user.SysDeptMapper; |
| | | import com.hrt.system.service.user.ISysDeptService; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.hrt.system.mapper.SysDictDataMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.hrt.system.mapper.sys.SysDictDataMapper; |
| | | import org.springframework.stereotype.Service; |
| | | import com.hrt.common.security.utils.DictUtils; |
| | | import com.hrt.system.api.domain.SysDictData; |
| | | import com.hrt.system.service.ISysDictDataService; |
| | | import com.hrt.system.service.sys.ISysDictDataService; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | import javax.annotation.PostConstruct; |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.hrt.system.mapper.SysDictDataMapper; |
| | | import com.hrt.system.mapper.SysDictTypeMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.hrt.system.mapper.sys.SysDictDataMapper; |
| | | import com.hrt.system.mapper.sys.SysDictTypeMapper; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import com.hrt.common.core.constant.UserConstants; |
| | |
| | | import com.hrt.common.security.utils.DictUtils; |
| | | import com.hrt.system.api.domain.SysDictData; |
| | | import com.hrt.system.api.domain.SysDictType; |
| | | import com.hrt.system.service.ISysDictTypeService; |
| | | import com.hrt.system.service.sys.ISysDictTypeService; |
| | | |
| | | /** |
| | | * 字典 业务层处理 |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.hrt.system.mapper.SysLogininforMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.hrt.system.mapper.user.SysLogininforMapper; |
| | | import org.springframework.stereotype.Service; |
| | | import com.hrt.system.api.domain.SysLogininfor; |
| | | import com.hrt.system.service.ISysLogininforService; |
| | | import com.hrt.system.service.user.ISysLogininforService; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | import java.util.Set; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import com.hrt.system.domain.poji.SysMenu; |
| | | import com.hrt.system.domain.poji.user.SysMenu; |
| | | import com.hrt.system.domain.vo.MetaVo; |
| | | import com.hrt.system.domain.vo.RouterVo; |
| | | import com.hrt.system.domain.vo.TreeSelect; |
| | | import com.hrt.system.mapper.SysMenuMapper; |
| | | import com.hrt.system.mapper.SysRoleMapper; |
| | | import com.hrt.system.mapper.SysRoleMenuMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.hrt.system.mapper.user.SysMenuMapper; |
| | | import com.hrt.system.mapper.user.SysRoleMapper; |
| | | import com.hrt.system.mapper.user.SysRoleMenuMapper; |
| | | import org.springframework.stereotype.Service; |
| | | import com.hrt.common.core.constant.Constants; |
| | | import com.hrt.common.core.constant.UserConstants; |
| | |
| | | import com.hrt.common.security.utils.SecurityUtils; |
| | | import com.hrt.system.api.domain.SysRole; |
| | | import com.hrt.system.api.domain.SysUser; |
| | | import com.hrt.system.service.ISysMenuService; |
| | | import com.hrt.system.service.user.ISysMenuService; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.hrt.system.domain.poji.SysNotice; |
| | | import com.hrt.system.mapper.SysNoticeMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.hrt.system.domain.poji.sys.SysNotice; |
| | | import com.hrt.system.mapper.sys.SysNoticeMapper; |
| | | import org.springframework.stereotype.Service; |
| | | import com.hrt.system.service.ISysNoticeService; |
| | | import com.hrt.system.service.sys.ISysNoticeService; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.hrt.system.service.ISysOperLogService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.hrt.system.service.user.ISysOperLogService; |
| | | import org.springframework.stereotype.Service; |
| | | import com.hrt.system.api.domain.SysOperLog; |
| | | import com.hrt.system.mapper.SysOperLogMapper; |
| | | import com.hrt.system.mapper.user.SysOperLogMapper; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | import java.util.HashSet; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import com.hrt.system.api.domain.SysRole; |
| | | import com.hrt.system.api.domain.SysUser; |
| | | import com.hrt.system.service.ISysMenuService; |
| | | import com.hrt.system.service.ISysPermissionService; |
| | | import com.hrt.system.service.ISysRoleService; |
| | | import com.hrt.system.service.user.ISysMenuService; |
| | | import com.hrt.system.service.user.ISysPermissionService; |
| | | import com.hrt.system.service.user.ISysRoleService; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.hrt.system.domain.poji.SysPost; |
| | | import com.hrt.system.mapper.SysUserPostMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.hrt.system.domain.poji.user.SysPost; |
| | | import com.hrt.system.mapper.user.SysUserPostMapper; |
| | | import org.springframework.stereotype.Service; |
| | | import com.hrt.common.core.constant.UserConstants; |
| | | import com.hrt.common.core.exception.ServiceException; |
| | | import com.hrt.common.core.utils.StringUtils; |
| | | import com.hrt.system.mapper.SysPostMapper; |
| | | import com.hrt.system.service.ISysPostService; |
| | | import com.hrt.system.mapper.user.SysPostMapper; |
| | | import com.hrt.system.service.user.ISysPostService; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | | import com.hrt.system.domain.poji.SysRoleDept; |
| | | import com.hrt.system.domain.poji.SysRoleMenu; |
| | | import com.hrt.system.domain.poji.SysUserRole; |
| | | import com.hrt.system.mapper.SysRoleDeptMapper; |
| | | import com.hrt.system.mapper.SysRoleMapper; |
| | | import com.hrt.system.mapper.SysRoleMenuMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.hrt.system.domain.poji.user.SysRoleDept; |
| | | import com.hrt.system.domain.poji.user.SysRoleMenu; |
| | | import com.hrt.system.domain.poji.user.SysUserRole; |
| | | import com.hrt.system.mapper.user.SysRoleDeptMapper; |
| | | import com.hrt.system.mapper.user.SysRoleMapper; |
| | | import com.hrt.system.mapper.user.SysRoleMenuMapper; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import com.hrt.common.core.constant.UserConstants; |
| | |
| | | import com.hrt.common.security.utils.SecurityUtils; |
| | | import com.hrt.system.api.domain.SysRole; |
| | | import com.hrt.system.api.domain.SysUser; |
| | | import com.hrt.system.mapper.SysUserRoleMapper; |
| | | import com.hrt.system.service.ISysRoleService; |
| | | import com.hrt.system.mapper.user.SysUserRoleMapper; |
| | | import com.hrt.system.service.user.ISysRoleService; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.SysTag; |
| | | import com.hrt.system.mapper.SysTagMapper; |
| | | import com.hrt.system.service.SysTagService; |
| | | import com.hrt.system.domain.poji.sys.SysTag; |
| | | import com.hrt.system.mapper.sys.SysTagMapper; |
| | | import com.hrt.system.service.sys.SysTagService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.SysUserOnline; |
| | | import com.hrt.system.domain.poji.user.SysUserOnline; |
| | | import org.springframework.stereotype.Service; |
| | | import com.hrt.common.core.utils.StringUtils; |
| | | import com.hrt.system.api.model.LoginUser; |
| | | import com.hrt.system.service.ISysUserOnlineService; |
| | | import com.hrt.system.service.user.ISysUserOnlineService; |
| | | |
| | | /** |
| | | * 在线用户 服务层处理 |
| | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Validator; |
| | | |
| | | import com.hrt.system.domain.poji.SysPost; |
| | | import com.hrt.system.domain.poji.SysUserPost; |
| | | import com.hrt.system.domain.poji.SysUserRole; |
| | | import com.hrt.system.mapper.SysRoleMapper; |
| | | import com.hrt.system.mapper.SysUserMapper; |
| | | import com.hrt.system.mapper.SysUserPostMapper; |
| | | import com.hrt.system.domain.poji.user.SysPost; |
| | | import com.hrt.system.domain.poji.user.SysUserPost; |
| | | import com.hrt.system.domain.poji.user.SysUserRole; |
| | | import com.hrt.system.mapper.user.SysRoleMapper; |
| | | import com.hrt.system.mapper.user.SysUserMapper; |
| | | import com.hrt.system.mapper.user.SysUserPostMapper; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | import com.hrt.common.security.utils.SecurityUtils; |
| | | import com.hrt.system.api.domain.SysRole; |
| | | import com.hrt.system.api.domain.SysUser; |
| | | import com.hrt.system.mapper.SysPostMapper; |
| | | import com.hrt.system.mapper.SysUserRoleMapper; |
| | | import com.hrt.system.service.ISysConfigService; |
| | | import com.hrt.system.service.ISysUserService; |
| | | import com.hrt.system.mapper.user.SysPostMapper; |
| | | import com.hrt.system.mapper.user.SysUserRoleMapper; |
| | | import com.hrt.system.service.sys.ISysConfigService; |
| | | import com.hrt.system.service.user.ISysUserService; |
| | | |
| | | /** |
| | | * 用户 业务层处理 |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.TaskFile; |
| | | import com.hrt.system.mapper.TaskFileMapper; |
| | | import com.hrt.system.service.TaskFileService; |
| | | import com.hrt.system.domain.poji.shop.TaskFile; |
| | | import com.hrt.system.mapper.shop.TaskFileMapper; |
| | | import com.hrt.system.service.shop.TaskFileService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
New file |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.member.UserCoupon; |
| | | import com.hrt.system.mapper.member.UserCouponMapper; |
| | | import com.hrt.system.service.member.UserCouponService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | @Service |
| | | public class UserCouponServiceImpl extends ServiceImpl<UserCouponMapper, UserCoupon> implements UserCouponService { |
| | | |
| | | } |
| | |
| | | package com.hrt.system.service.impl; |
| | | |
| | | import com.hrt.system.domain.poji.UserServiceRecord; |
| | | import com.hrt.system.mapper.UserServiceRecordMapper; |
| | | import com.hrt.system.service.UserServiceRecordService; |
| | | import com.hrt.system.domain.poji.order.UserServiceRecord; |
| | | import com.hrt.system.mapper.order.UserServiceRecordMapper; |
| | | import com.hrt.system.service.shop.UserServiceRecordService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
New file |
| | |
| | | package com.hrt.system.service.member; |
| | | |
| | | import com.hrt.system.domain.poji.member.MemberArchiveFields; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 档案字段 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface MemberArchiveFieldsService extends IService<MemberArchiveFields> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.member; |
| | | |
| | | import com.hrt.system.domain.poji.member.MemberArchive; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员档案信息 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface MemberArchiveService extends IService<MemberArchive> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.member; |
| | | |
| | | import com.hrt.system.domain.poji.member.UserCoupon; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | public interface UserCouponService extends IService<UserCoupon> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.order; |
| | | |
| | | import com.hrt.system.domain.poji.order.ConsumerGoods; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ConsumerGoodsService extends IService<ConsumerGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.order; |
| | | |
| | | import com.hrt.system.domain.poji.order.OrderGoods; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 订单商品 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface OrderGoodsService extends IService<OrderGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.order; |
| | | |
| | | import com.hrt.system.domain.poji.order.Order; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 订单 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface OrderService extends IService<Order> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.order; |
| | | |
| | | import com.hrt.system.domain.poji.order.ShoppingCart; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 购物车 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShoppingCartService extends IService<ShoppingCart> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.MemberTaskRecord; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员跟进任务记录 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface MemberTaskRecordService extends IService<MemberTaskRecord> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.MemberTask; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员跟进任务 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface MemberTaskService extends IService<MemberTask> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.ShopFile; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户图片 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopFileService extends IService<ShopFile> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.ShopGoods; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户定制商品 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopGoodsService extends IService<ShopGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.ShopMarketing; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户营销 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopMarketingService extends IService<ShopMarketing> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.ShopRelTag; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户标签 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopRelTagService extends IService<ShopRelTag> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.ShopRelUser; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户关联员工 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopRelUserService extends IService<ShopRelUser> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.Shop; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户表 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopService extends IService<Shop> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.ShopTask; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户跟进任务 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopTaskService extends IService<ShopTask> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.ShopTransferRecord; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户员工转移记录 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface ShopTransferRecordService extends IService<ShopTransferRecord> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.shop; |
| | | |
| | | import com.hrt.system.domain.poji.shop.TaskFile; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 跟进附件 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface TaskFileService extends IService<TaskFile> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.shop; |
| | | |
| | | import com.hrt.system.domain.poji.order.UserServiceRecord; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务记录 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface UserServiceRecordService extends IService<UserServiceRecord> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.sys; |
| | | |
| | | import com.hrt.system.domain.poji.sys.Agreement; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 协议 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface AgreementService extends IService<Agreement> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.sys; |
| | | |
| | | import com.hrt.system.domain.poji.sys.Banner; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * banner 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface BannerService extends IService<Banner> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.sys; |
| | | |
| | | import com.hrt.system.domain.poji.sys.CustomeConfig; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 系统配置 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface CustomeConfigService extends IService<CustomeConfig> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.sys; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.hrt.system.domain.poji.sys.SysConfig; |
| | | |
| | | /** |
| | | * 参数配置 服务层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface ISysConfigService |
| | | { |
| | | /** |
| | | * 查询参数配置信息 |
| | | * |
| | | * @param configId 参数配置ID |
| | | * @return 参数配置信息 |
| | | */ |
| | | public SysConfig selectConfigById(Long configId); |
| | | |
| | | /** |
| | | * 根据键名查询参数配置信息 |
| | | * |
| | | * @param configKey 参数键名 |
| | | * @return 参数键值 |
| | | */ |
| | | public String selectConfigByKey(String configKey); |
| | | |
| | | /** |
| | | * 查询参数配置列表 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 参数配置集合 |
| | | */ |
| | | public List<SysConfig> selectConfigList(SysConfig config); |
| | | |
| | | /** |
| | | * 新增参数配置 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertConfig(SysConfig config); |
| | | |
| | | /** |
| | | * 修改参数配置 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateConfig(SysConfig config); |
| | | |
| | | /** |
| | | * 批量删除参数信息 |
| | | * |
| | | * @param configIds 需要删除的参数ID |
| | | */ |
| | | public void deleteConfigByIds(Long[] configIds); |
| | | |
| | | /** |
| | | * 加载参数缓存数据 |
| | | */ |
| | | public void loadingConfigCache(); |
| | | |
| | | /** |
| | | * 清空参数缓存数据 |
| | | */ |
| | | public void clearConfigCache(); |
| | | |
| | | /** |
| | | * 重置参数缓存数据 |
| | | */ |
| | | public void resetConfigCache(); |
| | | |
| | | /** |
| | | * 校验参数键名是否唯一 |
| | | * |
| | | * @param config 参数信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkConfigKeyUnique(SysConfig config); |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.sys; |
| | | |
| | | import java.util.List; |
| | | import com.hrt.system.api.domain.SysDictData; |
| | | |
| | | /** |
| | | * 字典 业务层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface ISysDictDataService |
| | | { |
| | | /** |
| | | * 根据条件分页查询字典数据 |
| | | * |
| | | * @param dictData 字典数据信息 |
| | | * @return 字典数据集合信息 |
| | | */ |
| | | public List<SysDictData> selectDictDataList(SysDictData dictData); |
| | | |
| | | /** |
| | | * 根据字典类型和字典键值查询字典数据信息 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @param dictValue 字典键值 |
| | | * @return 字典标签 |
| | | */ |
| | | public String selectDictLabel(String dictType, String dictValue); |
| | | |
| | | /** |
| | | * 根据字典数据ID查询信息 |
| | | * |
| | | * @param dictCode 字典数据ID |
| | | * @return 字典数据 |
| | | */ |
| | | public SysDictData selectDictDataById(Long dictCode); |
| | | |
| | | /** |
| | | * 批量删除字典数据信息 |
| | | * |
| | | * @param dictCodes 需要删除的字典数据ID |
| | | */ |
| | | public void deleteDictDataByIds(Long[] dictCodes); |
| | | |
| | | /** |
| | | * 新增保存字典数据信息 |
| | | * |
| | | * @param dictData 字典数据信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertDictData(SysDictData dictData); |
| | | |
| | | /** |
| | | * 修改保存字典数据信息 |
| | | * |
| | | * @param dictData 字典数据信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDictData(SysDictData dictData); |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.sys; |
| | | |
| | | import java.util.List; |
| | | import com.hrt.system.api.domain.SysDictData; |
| | | import com.hrt.system.api.domain.SysDictType; |
| | | |
| | | /** |
| | | * 字典 业务层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface ISysDictTypeService |
| | | { |
| | | /** |
| | | * 根据条件分页查询字典类型 |
| | | * |
| | | * @param dictType 字典类型信息 |
| | | * @return 字典类型集合信息 |
| | | */ |
| | | public List<SysDictType> selectDictTypeList(SysDictType dictType); |
| | | |
| | | /** |
| | | * 根据所有字典类型 |
| | | * |
| | | * @return 字典类型集合信息 |
| | | */ |
| | | public List<SysDictType> selectDictTypeAll(); |
| | | |
| | | /** |
| | | * 根据字典类型查询字典数据 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 字典数据集合信息 |
| | | */ |
| | | public List<SysDictData> selectDictDataByType(String dictType); |
| | | |
| | | /** |
| | | * 根据字典类型ID查询信息 |
| | | * |
| | | * @param dictId 字典类型ID |
| | | * @return 字典类型 |
| | | */ |
| | | public SysDictType selectDictTypeById(Long dictId); |
| | | |
| | | /** |
| | | * 根据字典类型查询信息 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 字典类型 |
| | | */ |
| | | public SysDictType selectDictTypeByType(String dictType); |
| | | |
| | | /** |
| | | * 批量删除字典信息 |
| | | * |
| | | * @param dictIds 需要删除的字典ID |
| | | */ |
| | | public void deleteDictTypeByIds(Long[] dictIds); |
| | | |
| | | /** |
| | | * 加载字典缓存数据 |
| | | */ |
| | | public void loadingDictCache(); |
| | | |
| | | /** |
| | | * 清空字典缓存数据 |
| | | */ |
| | | public void clearDictCache(); |
| | | |
| | | /** |
| | | * 重置字典缓存数据 |
| | | */ |
| | | public void resetDictCache(); |
| | | |
| | | /** |
| | | * 新增保存字典类型信息 |
| | | * |
| | | * @param dictType 字典类型信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertDictType(SysDictType dictType); |
| | | |
| | | /** |
| | | * 修改保存字典类型信息 |
| | | * |
| | | * @param dictType 字典类型信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDictType(SysDictType dictType); |
| | | |
| | | /** |
| | | * 校验字典类型称是否唯一 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkDictTypeUnique(SysDictType dictType); |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.sys; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.hrt.system.domain.poji.sys.SysNotice; |
| | | |
| | | /** |
| | | * 公告 服务层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface ISysNoticeService |
| | | { |
| | | /** |
| | | * 查询公告信息 |
| | | * |
| | | * @param noticeId 公告ID |
| | | * @return 公告信息 |
| | | */ |
| | | public SysNotice selectNoticeById(Long noticeId); |
| | | |
| | | /** |
| | | * 查询公告列表 |
| | | * |
| | | * @param notice 公告信息 |
| | | * @return 公告集合 |
| | | */ |
| | | public List<SysNotice> selectNoticeList(SysNotice notice); |
| | | |
| | | /** |
| | | * 新增公告 |
| | | * |
| | | * @param notice 公告信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertNotice(SysNotice notice); |
| | | |
| | | /** |
| | | * 修改公告 |
| | | * |
| | | * @param notice 公告信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateNotice(SysNotice notice); |
| | | |
| | | /** |
| | | * 删除公告信息 |
| | | * |
| | | * @param noticeId 公告ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteNoticeById(Long noticeId); |
| | | |
| | | /** |
| | | * 批量删除公告信息 |
| | | * |
| | | * @param noticeIds 需要删除的公告ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteNoticeByIds(Long[] noticeIds); |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.sys; |
| | | |
| | | import com.hrt.system.domain.poji.sys.Pop; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 弹窗 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface PopService extends IService<Pop> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.sys; |
| | | |
| | | import com.hrt.system.domain.poji.sys.QuickEntry; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 快速入口 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface QuickEntryService extends IService<QuickEntry> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.sys; |
| | | |
| | | import com.hrt.system.domain.poji.sys.SysClassification; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 分类 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-18 |
| | | */ |
| | | public interface SysClassificationService extends IService<SysClassification> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.sys; |
| | | |
| | | import com.hrt.system.domain.poji.sys.SysTag; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 系统标签 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-17 |
| | | */ |
| | | public interface SysTagService extends IService<SysTag> { |
| | | |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.user; |
| | | |
| | | import java.util.List; |
| | | import com.hrt.system.api.domain.SysDept; |
| | | import com.hrt.system.domain.vo.TreeSelect; |
| | | |
| | | /** |
| | | * 部门管理 服务层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface ISysDeptService |
| | | { |
| | | /** |
| | | * 查询部门管理数据 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 部门信息集合 |
| | | */ |
| | | public List<SysDept> selectDeptList(SysDept dept); |
| | | |
| | | /** |
| | | * 查询部门树结构信息 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 部门树信息集合 |
| | | */ |
| | | public List<TreeSelect> selectDeptTreeList(SysDept dept); |
| | | |
| | | /** |
| | | * 构建前端所需要树结构 |
| | | * |
| | | * @param depts 部门列表 |
| | | * @return 树结构列表 |
| | | */ |
| | | public List<SysDept> buildDeptTree(List<SysDept> depts); |
| | | |
| | | /** |
| | | * 构建前端所需要下拉树结构 |
| | | * |
| | | * @param depts 部门列表 |
| | | * @return 下拉树结构列表 |
| | | */ |
| | | public List<TreeSelect> buildDeptTreeSelect(List<SysDept> depts); |
| | | |
| | | /** |
| | | * 根据角色ID查询部门树信息 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 选中部门列表 |
| | | */ |
| | | public List<Long> selectDeptListByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 根据部门ID查询信息 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 部门信息 |
| | | */ |
| | | public SysDept selectDeptById(Long deptId); |
| | | |
| | | /** |
| | | * 根据ID查询所有子部门(正常状态) |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 子部门数 |
| | | */ |
| | | public int selectNormalChildrenDeptById(Long deptId); |
| | | |
| | | /** |
| | | * 是否存在部门子节点 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 |
| | | */ |
| | | public boolean hasChildByDeptId(Long deptId); |
| | | |
| | | /** |
| | | * 查询部门是否存在用户 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 true 存在 false 不存在 |
| | | */ |
| | | public boolean checkDeptExistUser(Long deptId); |
| | | |
| | | /** |
| | | * 校验部门名称是否唯一 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkDeptNameUnique(SysDept dept); |
| | | |
| | | /** |
| | | * 校验部门是否有数据权限 |
| | | * |
| | | * @param deptId 部门id |
| | | */ |
| | | public void checkDeptDataScope(Long deptId); |
| | | |
| | | /** |
| | | * 新增保存部门信息 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertDept(SysDept dept); |
| | | |
| | | /** |
| | | * 修改保存部门信息 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDept(SysDept dept); |
| | | |
| | | /** |
| | | * 删除部门管理信息 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteDeptById(Long deptId); |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.user; |
| | | |
| | | import java.util.List; |
| | | import com.hrt.system.api.domain.SysLogininfor; |
| | | |
| | | /** |
| | | * 系统访问日志情况信息 服务层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface ISysLogininforService |
| | | { |
| | | /** |
| | | * 新增系统登录日志 |
| | | * |
| | | * @param logininfor 访问日志对象 |
| | | */ |
| | | public int insertLogininfor(SysLogininfor logininfor); |
| | | |
| | | /** |
| | | * 查询系统登录日志集合 |
| | | * |
| | | * @param logininfor 访问日志对象 |
| | | * @return 登录记录集合 |
| | | */ |
| | | public List<SysLogininfor> selectLogininforList(SysLogininfor logininfor); |
| | | |
| | | /** |
| | | * 批量删除系统登录日志 |
| | | * |
| | | * @param infoIds 需要删除的登录日志ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteLogininforByIds(Long[] infoIds); |
| | | |
| | | /** |
| | | * 清空系统登录日志 |
| | | */ |
| | | public void cleanLogininfor(); |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.user; |
| | | |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | | import com.hrt.system.domain.poji.user.SysMenu; |
| | | import com.hrt.system.domain.vo.RouterVo; |
| | | import com.hrt.system.domain.vo.TreeSelect; |
| | | |
| | | /** |
| | | * 菜单 业务层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface ISysMenuService |
| | | { |
| | | /** |
| | | * 根据用户查询系统菜单列表 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 菜单列表 |
| | | */ |
| | | public List<SysMenu> selectMenuList(Long userId); |
| | | |
| | | /** |
| | | * 根据用户查询系统菜单列表 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @param userId 用户ID |
| | | * @return 菜单列表 |
| | | */ |
| | | public List<SysMenu> selectMenuList(SysMenu menu, Long userId); |
| | | |
| | | /** |
| | | * 根据用户ID查询权限 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 权限列表 |
| | | */ |
| | | public Set<String> selectMenuPermsByUserId(Long userId); |
| | | |
| | | /** |
| | | * 根据角色ID查询权限 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 权限列表 |
| | | */ |
| | | public Set<String> selectMenuPermsByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 根据用户ID查询菜单树信息 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 菜单列表 |
| | | */ |
| | | public List<SysMenu> selectMenuTreeByUserId(Long userId); |
| | | |
| | | /** |
| | | * 根据角色ID查询菜单树信息 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 选中菜单列表 |
| | | */ |
| | | public List<Long> selectMenuListByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 构建前端路由所需要的菜单 |
| | | * |
| | | * @param menus 菜单列表 |
| | | * @return 路由列表 |
| | | */ |
| | | public List<RouterVo> buildMenus(List<SysMenu> menus); |
| | | |
| | | /** |
| | | * 构建前端所需要树结构 |
| | | * |
| | | * @param menus 菜单列表 |
| | | * @return 树结构列表 |
| | | */ |
| | | public List<SysMenu> buildMenuTree(List<SysMenu> menus); |
| | | |
| | | /** |
| | | * 构建前端所需要下拉树结构 |
| | | * |
| | | * @param menus 菜单列表 |
| | | * @return 下拉树结构列表 |
| | | */ |
| | | public List<TreeSelect> buildMenuTreeSelect(List<SysMenu> menus); |
| | | |
| | | /** |
| | | * 根据菜单ID查询信息 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 菜单信息 |
| | | */ |
| | | public SysMenu selectMenuById(Long menuId); |
| | | |
| | | /** |
| | | * 是否存在菜单子节点 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 结果 true 存在 false 不存在 |
| | | */ |
| | | public boolean hasChildByMenuId(Long menuId); |
| | | |
| | | /** |
| | | * 查询菜单是否存在角色 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 结果 true 存在 false 不存在 |
| | | */ |
| | | public boolean checkMenuExistRole(Long menuId); |
| | | |
| | | /** |
| | | * 新增保存菜单信息 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertMenu(SysMenu menu); |
| | | |
| | | /** |
| | | * 修改保存菜单信息 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateMenu(SysMenu menu); |
| | | |
| | | /** |
| | | * 删除菜单管理信息 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteMenuById(Long menuId); |
| | | |
| | | /** |
| | | * 校验菜单名称是否唯一 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkMenuNameUnique(SysMenu menu); |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.user; |
| | | |
| | | import java.util.List; |
| | | import com.hrt.system.api.domain.SysOperLog; |
| | | |
| | | /** |
| | | * 操作日志 服务层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface ISysOperLogService |
| | | { |
| | | /** |
| | | * 新增操作日志 |
| | | * |
| | | * @param operLog 操作日志对象 |
| | | * @return 结果 |
| | | */ |
| | | public int insertOperlog(SysOperLog operLog); |
| | | |
| | | /** |
| | | * 查询系统操作日志集合 |
| | | * |
| | | * @param operLog 操作日志对象 |
| | | * @return 操作日志集合 |
| | | */ |
| | | public List<SysOperLog> selectOperLogList(SysOperLog operLog); |
| | | |
| | | /** |
| | | * 批量删除系统操作日志 |
| | | * |
| | | * @param operIds 需要删除的操作日志ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteOperLogByIds(Long[] operIds); |
| | | |
| | | /** |
| | | * 查询操作日志详细 |
| | | * |
| | | * @param operId 操作ID |
| | | * @return 操作日志对象 |
| | | */ |
| | | public SysOperLog selectOperLogById(Long operId); |
| | | |
| | | /** |
| | | * 清空操作日志 |
| | | */ |
| | | public void cleanOperLog(); |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.user; |
| | | |
| | | import java.util.Set; |
| | | |
| | | import com.hrt.system.api.domain.SysUser; |
| | | |
| | | /** |
| | | * 权限信息 服务层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface ISysPermissionService |
| | | { |
| | | /** |
| | | * 获取角色数据权限 |
| | | * |
| | | * @param user 用户Id |
| | | * @return 角色权限信息 |
| | | */ |
| | | public Set<String> getRolePermission(SysUser user); |
| | | |
| | | /** |
| | | * 获取菜单数据权限 |
| | | * |
| | | * @param user 用户Id |
| | | * @return 菜单权限信息 |
| | | */ |
| | | public Set<String> getMenuPermission(SysUser user); |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.hrt.system.domain.poji.user.SysPost; |
| | | |
| | | /** |
| | | * 岗位信息 服务层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface ISysPostService |
| | | { |
| | | /** |
| | | * 查询岗位信息集合 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 岗位列表 |
| | | */ |
| | | public List<SysPost> selectPostList(SysPost post); |
| | | |
| | | /** |
| | | * 查询所有岗位 |
| | | * |
| | | * @return 岗位列表 |
| | | */ |
| | | public List<SysPost> selectPostAll(); |
| | | |
| | | /** |
| | | * 通过岗位ID查询岗位信息 |
| | | * |
| | | * @param postId 岗位ID |
| | | * @return 角色对象信息 |
| | | */ |
| | | public SysPost selectPostById(Long postId); |
| | | |
| | | /** |
| | | * 根据用户ID获取岗位选择框列表 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 选中岗位ID列表 |
| | | */ |
| | | public List<Long> selectPostListByUserId(Long userId); |
| | | |
| | | /** |
| | | * 校验岗位名称 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkPostNameUnique(SysPost post); |
| | | |
| | | /** |
| | | * 校验岗位编码 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkPostCodeUnique(SysPost post); |
| | | |
| | | /** |
| | | * 通过岗位ID查询岗位使用数量 |
| | | * |
| | | * @param postId 岗位ID |
| | | * @return 结果 |
| | | */ |
| | | public int countUserPostById(Long postId); |
| | | |
| | | /** |
| | | * 删除岗位信息 |
| | | * |
| | | * @param postId 岗位ID |
| | | * @return 结果 |
| | | */ |
| | | public int deletePostById(Long postId); |
| | | |
| | | /** |
| | | * 批量删除岗位信息 |
| | | * |
| | | * @param postIds 需要删除的岗位ID |
| | | * @return 结果 |
| | | */ |
| | | public int deletePostByIds(Long[] postIds); |
| | | |
| | | /** |
| | | * 新增保存岗位信息 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertPost(SysPost post); |
| | | |
| | | /** |
| | | * 修改保存岗位信息 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updatePost(SysPost post); |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.user; |
| | | |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | import com.hrt.system.api.domain.SysRole; |
| | | import com.hrt.system.domain.poji.user.SysUserRole; |
| | | |
| | | /** |
| | | * 角色业务层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface ISysRoleService |
| | | { |
| | | /** |
| | | * 根据条件分页查询角色数据 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 角色数据集合信息 |
| | | */ |
| | | public List<SysRole> selectRoleList(SysRole role); |
| | | |
| | | /** |
| | | * 根据用户ID查询角色列表 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 角色列表 |
| | | */ |
| | | public List<SysRole> selectRolesByUserId(Long userId); |
| | | |
| | | /** |
| | | * 根据用户ID查询角色权限 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 权限列表 |
| | | */ |
| | | public Set<String> selectRolePermissionByUserId(Long userId); |
| | | |
| | | /** |
| | | * 查询所有角色 |
| | | * |
| | | * @return 角色列表 |
| | | */ |
| | | public List<SysRole> selectRoleAll(); |
| | | |
| | | /** |
| | | * 根据用户ID获取角色选择框列表 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 选中角色ID列表 |
| | | */ |
| | | public List<Long> selectRoleListByUserId(Long userId); |
| | | |
| | | /** |
| | | * 通过角色ID查询角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 角色对象信息 |
| | | */ |
| | | public SysRole selectRoleById(Long roleId); |
| | | |
| | | /** |
| | | * 校验角色名称是否唯一 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkRoleNameUnique(SysRole role); |
| | | |
| | | /** |
| | | * 校验角色权限是否唯一 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkRoleKeyUnique(SysRole role); |
| | | |
| | | /** |
| | | * 校验角色是否允许操作 |
| | | * |
| | | * @param role 角色信息 |
| | | */ |
| | | public void checkRoleAllowed(SysRole role); |
| | | |
| | | /** |
| | | * 校验角色是否有数据权限 |
| | | * |
| | | * @param roleId 角色id |
| | | */ |
| | | public void checkRoleDataScope(Long roleId); |
| | | |
| | | /** |
| | | * 通过角色ID查询角色使用数量 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int countUserRoleByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 新增保存角色信息 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertRole(SysRole role); |
| | | |
| | | /** |
| | | * 修改保存角色信息 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateRole(SysRole role); |
| | | |
| | | /** |
| | | * 修改角色状态 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateRoleStatus(SysRole role); |
| | | |
| | | /** |
| | | * 修改数据权限信息 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public int authDataScope(SysRole role); |
| | | |
| | | /** |
| | | * 通过角色ID删除角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleById(Long roleId); |
| | | |
| | | /** |
| | | * 批量删除角色信息 |
| | | * |
| | | * @param roleIds 需要删除的角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleByIds(Long[] roleIds); |
| | | |
| | | /** |
| | | * 取消授权用户角色 |
| | | * |
| | | * @param userRole 用户和角色关联信息 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteAuthUser(SysUserRole userRole); |
| | | |
| | | /** |
| | | * 批量取消授权用户角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @param userIds 需要取消授权的用户数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteAuthUsers(Long roleId, Long[] userIds); |
| | | |
| | | /** |
| | | * 批量选择授权用户角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @param userIds 需要删除的用户数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int insertAuthUsers(Long roleId, Long[] userIds); |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.user; |
| | | |
| | | import com.hrt.system.api.model.LoginUser; |
| | | import com.hrt.system.domain.poji.user.SysUserOnline; |
| | | |
| | | /** |
| | | * 在线用户 服务层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface ISysUserOnlineService |
| | | { |
| | | /** |
| | | * 通过登录地址查询信息 |
| | | * |
| | | * @param ipaddr 登录地址 |
| | | * @param user 用户信息 |
| | | * @return 在线用户信息 |
| | | */ |
| | | public SysUserOnline selectOnlineByIpaddr(String ipaddr, LoginUser user); |
| | | |
| | | /** |
| | | * 通过用户名称查询信息 |
| | | * |
| | | * @param userName 用户名称 |
| | | * @param user 用户信息 |
| | | * @return 在线用户信息 |
| | | */ |
| | | public SysUserOnline selectOnlineByUserName(String userName, LoginUser user); |
| | | |
| | | /** |
| | | * 通过登录地址/用户名称查询信息 |
| | | * |
| | | * @param ipaddr 登录地址 |
| | | * @param userName 用户名称 |
| | | * @param user 用户信息 |
| | | * @return 在线用户信息 |
| | | */ |
| | | public SysUserOnline selectOnlineByInfo(String ipaddr, String userName, LoginUser user); |
| | | |
| | | /** |
| | | * 设置在线用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 在线用户 |
| | | */ |
| | | public SysUserOnline loginUserToUserOnline(LoginUser user); |
| | | } |
New file |
| | |
| | | package com.hrt.system.service.user; |
| | | |
| | | import java.util.List; |
| | | import com.hrt.system.api.domain.SysUser; |
| | | |
| | | /** |
| | | * 用户 业务层 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | public interface ISysUserService |
| | | { |
| | | /** |
| | | * 根据条件分页查询用户列表 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 用户信息集合信息 |
| | | */ |
| | | public List<SysUser> selectUserList(SysUser user); |
| | | |
| | | /** |
| | | * 根据条件分页查询已分配用户角色列表 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 用户信息集合信息 |
| | | */ |
| | | public List<SysUser> selectAllocatedList(SysUser user); |
| | | |
| | | /** |
| | | * 根据条件分页查询未分配用户角色列表 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 用户信息集合信息 |
| | | */ |
| | | public List<SysUser> selectUnallocatedList(SysUser user); |
| | | |
| | | /** |
| | | * 通过用户名查询用户 |
| | | * |
| | | * @param userName 用户名 |
| | | * @return 用户对象信息 |
| | | */ |
| | | public SysUser selectUserByUserName(String userName); |
| | | |
| | | /** |
| | | * 通过用户ID查询用户 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 用户对象信息 |
| | | */ |
| | | public SysUser selectUserById(Long userId); |
| | | |
| | | /** |
| | | * 根据用户ID查询用户所属角色组 |
| | | * |
| | | * @param userName 用户名 |
| | | * @return 结果 |
| | | */ |
| | | public String selectUserRoleGroup(String userName); |
| | | |
| | | /** |
| | | * 根据用户ID查询用户所属岗位组 |
| | | * |
| | | * @param userName 用户名 |
| | | * @return 结果 |
| | | */ |
| | | public String selectUserPostGroup(String userName); |
| | | |
| | | /** |
| | | * 校验用户名称是否唯一 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkUserNameUnique(SysUser user); |
| | | |
| | | /** |
| | | * 校验手机号码是否唯一 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkPhoneUnique(SysUser user); |
| | | |
| | | /** |
| | | * 校验email是否唯一 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkEmailUnique(SysUser user); |
| | | |
| | | /** |
| | | * 校验用户是否允许操作 |
| | | * |
| | | * @param user 用户信息 |
| | | */ |
| | | public void checkUserAllowed(SysUser user); |
| | | |
| | | /** |
| | | * 校验用户是否有数据权限 |
| | | * |
| | | * @param userId 用户id |
| | | */ |
| | | public void checkUserDataScope(Long userId); |
| | | |
| | | /** |
| | | * 新增用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertUser(SysUser user); |
| | | |
| | | /** |
| | | * 注册用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean registerUser(SysUser user); |
| | | |
| | | /** |
| | | * 修改用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateUser(SysUser user); |
| | | |
| | | /** |
| | | * 用户授权角色 |
| | | * |
| | | * @param userId 用户ID |
| | | * @param roleIds 角色组 |
| | | */ |
| | | public void insertUserAuth(Long userId, Long[] roleIds); |
| | | |
| | | /** |
| | | * 修改用户状态 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateUserStatus(SysUser user); |
| | | |
| | | /** |
| | | * 修改用户基本信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateUserProfile(SysUser user); |
| | | |
| | | /** |
| | | * 修改用户头像 |
| | | * |
| | | * @param userName 用户名 |
| | | * @param avatar 头像地址 |
| | | * @return 结果 |
| | | */ |
| | | public boolean updateUserAvatar(String userName, String avatar); |
| | | |
| | | /** |
| | | * 重置用户密码 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public int resetPwd(SysUser user); |
| | | |
| | | /** |
| | | * 重置用户密码 |
| | | * |
| | | * @param userName 用户名 |
| | | * @param password 密码 |
| | | * @return 结果 |
| | | */ |
| | | public int resetUserPwd(String userName, String password); |
| | | |
| | | /** |
| | | * 通过用户ID删除用户 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserById(Long userId); |
| | | |
| | | /** |
| | | * 批量删除用户信息 |
| | | * |
| | | * @param userIds 需要删除的用户ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserByIds(Long[] userIds); |
| | | |
| | | /** |
| | | * 导入用户数据 |
| | | * |
| | | * @param userList 用户数据列表 |
| | | * @param isUpdateSupport 是否更新支持,如果已存在,则进行更新数据 |
| | | * @param operName 操作用户 |
| | | * @return 结果 |
| | | */ |
| | | public String importUser(List<SysUser> userList, Boolean isUpdateSupport, String operName); |
| | | } |
New file |
| | |
| | | <?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.hrt.system.mapper.coupon.CouponMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.coupon.CouponRelGoodsMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.coupon.CouponRelUserMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.coupon.CouponTotalMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.goods.GoodsFileMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.goods.GoodsMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.goods.GoodsRelNurseMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.goods.GoodsRelTagMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.goods.GoodsTotalMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.member.MemberArchiveFieldsMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.member.MemberArchiveMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.member.UserCouponMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.order.ConsumerGoodsMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.order.OrderGoodsMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.order.OrderMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.order.ShoppingCartMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.shop.MemberTaskMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.shop.MemberTaskRecordMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.shop.ShopFileMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.shop.ShopGoodsMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.shop.ShopMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.shop.ShopMarketingMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.shop.ShopRelTagMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.shop.ShopRelUserMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.shop.ShopTaskMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.shop.ShopTransferRecordMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.shop.TaskFileMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.order.UserServiceRecordMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.sys.AgreementMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.sys.BannerMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.sys.CustomeConfigMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.sys.PopMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.sys.QuickEntryMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.sys.SysClassificationMapper"> |
| | | |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.sys.SysConfigMapper"> |
| | | |
| | | <resultMap type="SysConfig" id="SysConfigResult"> |
| | | <id property="configId" column="config_id" /> |
| | | <result property="configName" column="config_name" /> |
| | | <result property="configKey" column="config_key" /> |
| | | <result property="configValue" column="config_value" /> |
| | | <result property="configType" column="config_type" /> |
| | | <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="selectConfigVo"> |
| | | select config_id, config_name, config_key, config_value, config_type, create_by, create_time, update_by, update_time, remark |
| | | from sys_config |
| | | </sql> |
| | | |
| | | <!-- 查询条件 --> |
| | | <sql id="sqlwhereSearch"> |
| | | <where> |
| | | <if test="configId !=null"> |
| | | and config_id = #{configId} |
| | | </if> |
| | | <if test="configKey !=null and configKey != ''"> |
| | | and config_key = #{configKey} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <select id="selectConfig" parameterType="SysConfig" resultMap="SysConfigResult"> |
| | | <include refid="selectConfigVo"/> |
| | | <include refid="sqlwhereSearch"/> |
| | | </select> |
| | | |
| | | <select id="selectConfigList" parameterType="SysConfig" resultMap="SysConfigResult"> |
| | | <include refid="selectConfigVo"/> |
| | | <where> |
| | | <if test="configName != null and configName != ''"> |
| | | AND config_name like concat('%', #{configName}, '%') |
| | | </if> |
| | | <if test="configType != null and configType != ''"> |
| | | AND config_type = #{configType} |
| | | </if> |
| | | <if test="configKey != null and configKey != ''"> |
| | | AND config_key like concat('%', #{configKey}, '%') |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | and date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d') |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> |
| | | and date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectConfigById" parameterType="Long" resultMap="SysConfigResult"> |
| | | <include refid="selectConfigVo"/> |
| | | where config_id = #{configId} |
| | | </select> |
| | | |
| | | <select id="checkConfigKeyUnique" parameterType="String" resultMap="SysConfigResult"> |
| | | <include refid="selectConfigVo"/> |
| | | where config_key = #{configKey} limit 1 |
| | | </select> |
| | | |
| | | <insert id="insertConfig" parameterType="SysConfig"> |
| | | insert into sys_config ( |
| | | <if test="configName != null and configName != '' ">config_name,</if> |
| | | <if test="configKey != null and configKey != '' ">config_key,</if> |
| | | <if test="configValue != null and configValue != '' ">config_value,</if> |
| | | <if test="configType != null and configType != '' ">config_type,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | create_time |
| | | )values( |
| | | <if test="configName != null and configName != ''">#{configName},</if> |
| | | <if test="configKey != null and configKey != ''">#{configKey},</if> |
| | | <if test="configValue != null and configValue != ''">#{configValue},</if> |
| | | <if test="configType != null and configType != ''">#{configType},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateConfig" parameterType="SysConfig"> |
| | | update sys_config |
| | | <set> |
| | | <if test="configName != null and configName != ''">config_name = #{configName},</if> |
| | | <if test="configKey != null and configKey != ''">config_key = #{configKey},</if> |
| | | <if test="configValue != null and configValue != ''">config_value = #{configValue},</if> |
| | | <if test="configType != null and configType != ''">config_type = #{configType},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where config_id = #{configId} |
| | | </update> |
| | | |
| | | <delete id="deleteConfigById" parameterType="Long"> |
| | | delete from sys_config where config_id = #{configId} |
| | | </delete> |
| | | |
| | | <delete id="deleteConfigByIds" parameterType="Long"> |
| | | delete from sys_config where config_id in |
| | | <foreach item="configId" collection="array" open="(" separator="," close=")"> |
| | | #{configId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.sys.SysDictDataMapper"> |
| | | |
| | | <resultMap type="SysDictData" id="SysDictDataResult"> |
| | | <id property="dictCode" column="dict_code" /> |
| | | <result property="dictSort" column="dict_sort" /> |
| | | <result property="dictLabel" column="dict_label" /> |
| | | <result property="dictValue" column="dict_value" /> |
| | | <result property="dictType" column="dict_type" /> |
| | | <result property="cssClass" column="css_class" /> |
| | | <result property="listClass" column="list_class" /> |
| | | <result property="isDefault" column="is_default" /> |
| | | <result property="status" column="status" /> |
| | | <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="selectDictDataVo"> |
| | | select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark |
| | | from sys_dict_data |
| | | </sql> |
| | | |
| | | <select id="selectDictDataList" parameterType="SysDictData" resultMap="SysDictDataResult"> |
| | | <include refid="selectDictDataVo"/> |
| | | <where> |
| | | <if test="dictType != null and dictType != ''"> |
| | | AND dict_type = #{dictType} |
| | | </if> |
| | | <if test="dictLabel != null and dictLabel != ''"> |
| | | AND dict_label like concat('%', #{dictLabel}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | </where> |
| | | order by dict_sort asc |
| | | </select> |
| | | |
| | | <select id="selectDictDataByType" parameterType="SysDictData" resultMap="SysDictDataResult"> |
| | | <include refid="selectDictDataVo"/> |
| | | where status = '0' and dict_type = #{dictType} order by dict_sort asc |
| | | </select> |
| | | |
| | | <select id="selectDictLabel" resultType="String"> |
| | | select dict_label from sys_dict_data |
| | | where dict_type = #{dictType} and dict_value = #{dictValue} |
| | | </select> |
| | | |
| | | <select id="selectDictDataById" parameterType="Long" resultMap="SysDictDataResult"> |
| | | <include refid="selectDictDataVo"/> |
| | | where dict_code = #{dictCode} |
| | | </select> |
| | | |
| | | <select id="countDictDataByType" resultType="Integer"> |
| | | select count(1) from sys_dict_data where dict_type=#{dictType} |
| | | </select> |
| | | |
| | | <delete id="deleteDictDataById" parameterType="Long"> |
| | | delete from sys_dict_data where dict_code = #{dictCode} |
| | | </delete> |
| | | |
| | | <delete id="deleteDictDataByIds" parameterType="Long"> |
| | | delete from sys_dict_data where dict_code in |
| | | <foreach collection="array" item="dictCode" open="(" separator="," close=")"> |
| | | #{dictCode} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <update id="updateDictData" parameterType="SysDictData"> |
| | | update sys_dict_data |
| | | <set> |
| | | <if test="dictSort != null">dict_sort = #{dictSort},</if> |
| | | <if test="dictLabel != null and dictLabel != ''">dict_label = #{dictLabel},</if> |
| | | <if test="dictValue != null and dictValue != ''">dict_value = #{dictValue},</if> |
| | | <if test="dictType != null and dictType != ''">dict_type = #{dictType},</if> |
| | | <if test="cssClass != null">css_class = #{cssClass},</if> |
| | | <if test="listClass != null">list_class = #{listClass},</if> |
| | | <if test="isDefault != null and isDefault != ''">is_default = #{isDefault},</if> |
| | | <if test="status != null">status = #{status},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where dict_code = #{dictCode} |
| | | </update> |
| | | |
| | | <update id="updateDictDataType" parameterType="String"> |
| | | update sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType} |
| | | </update> |
| | | |
| | | <insert id="insertDictData" parameterType="SysDictData"> |
| | | insert into sys_dict_data( |
| | | <if test="dictSort != null">dict_sort,</if> |
| | | <if test="dictLabel != null and dictLabel != ''">dict_label,</if> |
| | | <if test="dictValue != null and dictValue != ''">dict_value,</if> |
| | | <if test="dictType != null and dictType != ''">dict_type,</if> |
| | | <if test="cssClass != null and cssClass != ''">css_class,</if> |
| | | <if test="listClass != null and listClass != ''">list_class,</if> |
| | | <if test="isDefault != null and isDefault != ''">is_default,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | create_time |
| | | )values( |
| | | <if test="dictSort != null">#{dictSort},</if> |
| | | <if test="dictLabel != null and dictLabel != ''">#{dictLabel},</if> |
| | | <if test="dictValue != null and dictValue != ''">#{dictValue},</if> |
| | | <if test="dictType != null and dictType != ''">#{dictType},</if> |
| | | <if test="cssClass != null and cssClass != ''">#{cssClass},</if> |
| | | <if test="listClass != null and listClass != ''">#{listClass},</if> |
| | | <if test="isDefault != null and isDefault != ''">#{isDefault},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.sys.SysDictTypeMapper"> |
| | | |
| | | <resultMap type="SysDictType" id="SysDictTypeResult"> |
| | | <id property="dictId" column="dict_id" /> |
| | | <result property="dictName" column="dict_name" /> |
| | | <result property="dictType" column="dict_type" /> |
| | | <result property="status" column="status" /> |
| | | <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="selectDictTypeVo"> |
| | | select dict_id, dict_name, dict_type, status, create_by, create_time, remark |
| | | from sys_dict_type |
| | | </sql> |
| | | |
| | | <select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult"> |
| | | <include refid="selectDictTypeVo"/> |
| | | <where> |
| | | <if test="dictName != null and dictName != ''"> |
| | | AND dict_name like concat('%', #{dictName}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | <if test="dictType != null and dictType != ''"> |
| | | AND dict_type like concat('%', #{dictType}, '%') |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | and date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d') |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> |
| | | and date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectDictTypeAll" resultMap="SysDictTypeResult"> |
| | | <include refid="selectDictTypeVo"/> |
| | | </select> |
| | | |
| | | <select id="selectDictTypeById" parameterType="Long" resultMap="SysDictTypeResult"> |
| | | <include refid="selectDictTypeVo"/> |
| | | where dict_id = #{dictId} |
| | | </select> |
| | | |
| | | <select id="selectDictTypeByType" parameterType="String" resultMap="SysDictTypeResult"> |
| | | <include refid="selectDictTypeVo"/> |
| | | where dict_type = #{dictType} |
| | | </select> |
| | | |
| | | <select id="checkDictTypeUnique" parameterType="String" resultMap="SysDictTypeResult"> |
| | | <include refid="selectDictTypeVo"/> |
| | | where dict_type = #{dictType} limit 1 |
| | | </select> |
| | | |
| | | <delete id="deleteDictTypeById" parameterType="Long"> |
| | | delete from sys_dict_type where dict_id = #{dictId} |
| | | </delete> |
| | | |
| | | <delete id="deleteDictTypeByIds" parameterType="Long"> |
| | | delete from sys_dict_type where dict_id in |
| | | <foreach collection="array" item="dictId" open="(" separator="," close=")"> |
| | | #{dictId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <update id="updateDictType" parameterType="SysDictType"> |
| | | update sys_dict_type |
| | | <set> |
| | | <if test="dictName != null and dictName != ''">dict_name = #{dictName},</if> |
| | | <if test="dictType != null and dictType != ''">dict_type = #{dictType},</if> |
| | | <if test="status != null">status = #{status},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where dict_id = #{dictId} |
| | | </update> |
| | | |
| | | <insert id="insertDictType" parameterType="SysDictType"> |
| | | insert into sys_dict_type( |
| | | <if test="dictName != null and dictName != ''">dict_name,</if> |
| | | <if test="dictType != null and dictType != ''">dict_type,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | create_time |
| | | )values( |
| | | <if test="dictName != null and dictName != ''">#{dictName},</if> |
| | | <if test="dictType != null and dictType != ''">#{dictType},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.sys.SysNoticeMapper"> |
| | | |
| | | <resultMap type="SysNotice" id="SysNoticeResult"> |
| | | <result property="noticeId" column="notice_id" /> |
| | | <result property="noticeTitle" column="notice_title" /> |
| | | <result property="noticeType" column="notice_type" /> |
| | | <result property="noticeContent" column="notice_content" /> |
| | | <result property="status" column="status" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="remark" column="remark" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectNoticeVo"> |
| | | select notice_id, notice_title, notice_type, cast(notice_content as char) as notice_content, status, create_by, create_time, update_by, update_time, remark |
| | | from sys_notice |
| | | </sql> |
| | | |
| | | <select id="selectNoticeById" parameterType="Long" resultMap="SysNoticeResult"> |
| | | <include refid="selectNoticeVo"/> |
| | | where notice_id = #{noticeId} |
| | | </select> |
| | | |
| | | <select id="selectNoticeList" parameterType="SysNotice" resultMap="SysNoticeResult"> |
| | | <include refid="selectNoticeVo"/> |
| | | <where> |
| | | <if test="noticeTitle != null and noticeTitle != ''"> |
| | | AND notice_title like concat('%', #{noticeTitle}, '%') |
| | | </if> |
| | | <if test="noticeType != null and noticeType != ''"> |
| | | AND notice_type = #{noticeType} |
| | | </if> |
| | | <if test="createBy != null and createBy != ''"> |
| | | AND create_by like concat('%', #{createBy}, '%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <insert id="insertNotice" parameterType="SysNotice"> |
| | | insert into sys_notice ( |
| | | <if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if> |
| | | <if test="noticeType != null and noticeType != '' ">notice_type, </if> |
| | | <if test="noticeContent != null and noticeContent != '' ">notice_content, </if> |
| | | <if test="status != null and status != '' ">status, </if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | create_time |
| | | )values( |
| | | <if test="noticeTitle != null and noticeTitle != ''">#{noticeTitle}, </if> |
| | | <if test="noticeType != null and noticeType != ''">#{noticeType}, </if> |
| | | <if test="noticeContent != null and noticeContent != ''">#{noticeContent}, </if> |
| | | <if test="status != null and status != ''">#{status}, </if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateNotice" parameterType="SysNotice"> |
| | | update sys_notice |
| | | <set> |
| | | <if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if> |
| | | <if test="noticeType != null and noticeType != ''">notice_type = #{noticeType}, </if> |
| | | <if test="noticeContent != null">notice_content = #{noticeContent}, </if> |
| | | <if test="status != null and status != ''">status = #{status}, </if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where notice_id = #{noticeId} |
| | | </update> |
| | | |
| | | <delete id="deleteNoticeById" parameterType="Long"> |
| | | delete from sys_notice where notice_id = #{noticeId} |
| | | </delete> |
| | | |
| | | <delete id="deleteNoticeByIds" parameterType="Long"> |
| | | delete from sys_notice where notice_id in |
| | | <foreach item="noticeId" collection="array" open="(" separator="," close=")"> |
| | | #{noticeId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.sys.SysTagMapper"> |
| | | |
| | | <!-- 开启二级缓存 --> |
| | | <cache type="org.mybatis.caches.ehcache.LoggingEhcache"/> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.user.SysDeptMapper"> |
| | | |
| | | <resultMap type="SysDept" id="SysDeptResult"> |
| | | <id property="deptId" column="dept_id" /> |
| | | <result property="parentId" column="parent_id" /> |
| | | <result property="ancestors" column="ancestors" /> |
| | | <result property="deptName" column="dept_name" /> |
| | | <result property="orderNum" column="order_num" /> |
| | | <result property="leader" column="leader" /> |
| | | <result property="phone" column="phone" /> |
| | | <result property="email" column="email" /> |
| | | <result property="status" column="status" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="parentName" column="parent_name" /> |
| | | <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="selectDeptVo"> |
| | | select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time |
| | | from sys_dept d |
| | | </sql> |
| | | |
| | | <select id="selectDeptList" parameterType="SysDept" resultMap="SysDeptResult"> |
| | | <include refid="selectDeptVo"/> |
| | | where d.del_flag = '0' |
| | | <if test="deptId != null and deptId != 0"> |
| | | AND dept_id = #{deptId} |
| | | </if> |
| | | <if test="parentId != null and parentId != 0"> |
| | | AND parent_id = #{parentId} |
| | | </if> |
| | | <if test="deptName != null and deptName != ''"> |
| | | AND dept_name like concat('%', #{deptName}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | <!-- 数据范围过滤 --> |
| | | ${params.dataScope} |
| | | order by d.parent_id, d.order_num |
| | | </select> |
| | | |
| | | <select id="selectDeptListByRoleId" resultType="Long"> |
| | | select d.dept_id |
| | | from sys_dept d |
| | | left join sys_role_dept rd on d.dept_id = rd.dept_id |
| | | where rd.role_id = #{roleId} |
| | | <if test="deptCheckStrictly"> |
| | | and d.dept_id not in (select d.parent_id from sys_dept d inner join sys_role_dept rd on d.dept_id = rd.dept_id and rd.role_id = #{roleId}) |
| | | </if> |
| | | order by d.parent_id, d.order_num |
| | | </select> |
| | | |
| | | <select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult"> |
| | | <include refid="selectDeptVo"/> |
| | | where dept_id = #{deptId} |
| | | </select> |
| | | |
| | | <select id="checkDeptExistUser" parameterType="Long" resultType="int"> |
| | | select count(1) from sys_user where dept_id = #{deptId} and del_flag = '0' |
| | | </select> |
| | | |
| | | <select id="hasChildByDeptId" parameterType="Long" resultType="int"> |
| | | select count(1) from sys_dept |
| | | where del_flag = '0' and parent_id = #{deptId} limit 1 |
| | | </select> |
| | | |
| | | <select id="selectChildrenDeptById" parameterType="Long" resultMap="SysDeptResult"> |
| | | select * from sys_dept where find_in_set(#{deptId}, ancestors) |
| | | </select> |
| | | |
| | | <select id="selectNormalChildrenDeptById" parameterType="Long" resultType="int"> |
| | | select count(*) from sys_dept where status = 0 and del_flag = '0' and find_in_set(#{deptId}, ancestors) |
| | | </select> |
| | | |
| | | <select id="checkDeptNameUnique" resultMap="SysDeptResult"> |
| | | <include refid="selectDeptVo"/> |
| | | where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <insert id="insertDept" parameterType="SysDept"> |
| | | insert into sys_dept( |
| | | <if test="deptId != null and deptId != 0">dept_id,</if> |
| | | <if test="parentId != null and parentId != 0">parent_id,</if> |
| | | <if test="deptName != null and deptName != ''">dept_name,</if> |
| | | <if test="ancestors != null and ancestors != ''">ancestors,</if> |
| | | <if test="orderNum != null">order_num,</if> |
| | | <if test="leader != null and leader != ''">leader,</if> |
| | | <if test="phone != null and phone != ''">phone,</if> |
| | | <if test="email != null and email != ''">email,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | create_time |
| | | )values( |
| | | <if test="deptId != null and deptId != 0">#{deptId},</if> |
| | | <if test="parentId != null and parentId != 0">#{parentId},</if> |
| | | <if test="deptName != null and deptName != ''">#{deptName},</if> |
| | | <if test="ancestors != null and ancestors != ''">#{ancestors},</if> |
| | | <if test="orderNum != null">#{orderNum},</if> |
| | | <if test="leader != null and leader != ''">#{leader},</if> |
| | | <if test="phone != null and phone != ''">#{phone},</if> |
| | | <if test="email != null and email != ''">#{email},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateDept" parameterType="SysDept"> |
| | | update sys_dept |
| | | <set> |
| | | <if test="parentId != null and parentId != 0">parent_id = #{parentId},</if> |
| | | <if test="deptName != null and deptName != ''">dept_name = #{deptName},</if> |
| | | <if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if> |
| | | <if test="orderNum != null">order_num = #{orderNum},</if> |
| | | <if test="leader != null">leader = #{leader},</if> |
| | | <if test="phone != null">phone = #{phone},</if> |
| | | <if test="email != null">email = #{email},</if> |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where dept_id = #{deptId} |
| | | </update> |
| | | |
| | | <update id="updateDeptChildren" parameterType="java.util.List"> |
| | | update sys_dept set ancestors = |
| | | <foreach collection="depts" item="item" index="index" |
| | | separator=" " open="case dept_id" close="end"> |
| | | when #{item.deptId} then #{item.ancestors} |
| | | </foreach> |
| | | where dept_id in |
| | | <foreach collection="depts" item="item" index="index" |
| | | separator="," open="(" close=")"> |
| | | #{item.deptId} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <update id="updateDeptStatusNormal" parameterType="Long"> |
| | | update sys_dept set status = '0' where dept_id in |
| | | <foreach collection="array" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <delete id="deleteDeptById" parameterType="Long"> |
| | | update sys_dept set del_flag = '2' where dept_id = #{deptId} |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.user.SysLogininforMapper"> |
| | | |
| | | <resultMap type="SysLogininfor" id="SysLogininforResult"> |
| | | <id property="infoId" column="info_id" /> |
| | | <result property="userName" column="user_name" /> |
| | | <result property="status" column="status" /> |
| | | <result property="ipaddr" column="ipaddr" /> |
| | | <result property="msg" column="msg" /> |
| | | <result property="accessTime" column="access_time" /> |
| | | </resultMap> |
| | | |
| | | <insert id="insertLogininfor" parameterType="SysLogininfor"> |
| | | insert into sys_logininfor (user_name, status, ipaddr, msg, access_time) |
| | | values (#{userName}, #{status}, #{ipaddr}, #{msg}, sysdate()) |
| | | </insert> |
| | | |
| | | <select id="selectLogininforList" parameterType="SysLogininfor" resultMap="SysLogininforResult"> |
| | | select info_id, user_name, ipaddr, status, msg, access_time from sys_logininfor |
| | | <where> |
| | | <if test="ipaddr != null and ipaddr != ''"> |
| | | AND ipaddr like concat('%', #{ipaddr}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | AND access_time >= #{params.beginTime} |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> |
| | | AND access_time <= #{params.endTime} |
| | | </if> |
| | | </where> |
| | | order by info_id desc |
| | | </select> |
| | | |
| | | <delete id="deleteLogininforByIds" parameterType="Long"> |
| | | delete from sys_logininfor where info_id in |
| | | <foreach collection="array" item="infoId" open="(" separator="," close=")"> |
| | | #{infoId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <update id="cleanLogininfor"> |
| | | truncate table sys_logininfor |
| | | </update> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.user.SysMenuMapper"> |
| | | |
| | | <resultMap type="SysMenu" id="SysMenuResult"> |
| | | <id property="menuId" column="menu_id" /> |
| | | <result property="menuName" column="menu_name" /> |
| | | <result property="parentName" column="parent_name" /> |
| | | <result property="parentId" column="parent_id" /> |
| | | <result property="orderNum" column="order_num" /> |
| | | <result property="path" column="path" /> |
| | | <result property="component" column="component" /> |
| | | <result property="query" column="query" /> |
| | | <result property="isFrame" column="is_frame" /> |
| | | <result property="isCache" column="is_cache" /> |
| | | <result property="menuType" column="menu_type" /> |
| | | <result property="visible" column="visible" /> |
| | | <result property="status" column="status" /> |
| | | <result property="perms" column="perms" /> |
| | | <result property="icon" column="icon" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="remark" column="remark" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectMenuVo"> |
| | | select menu_id, menu_name, parent_id, order_num, path, component, `query`, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time |
| | | from sys_menu |
| | | </sql> |
| | | |
| | | <select id="selectMenuList" parameterType="SysMenu" resultMap="SysMenuResult"> |
| | | <include refid="selectMenuVo"/> |
| | | <where> |
| | | <if test="menuName != null and menuName != ''"> |
| | | AND menu_name like concat('%', #{menuName}, '%') |
| | | </if> |
| | | <if test="visible != null and visible != ''"> |
| | | AND visible = #{visible} |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | </where> |
| | | order by parent_id, order_num |
| | | </select> |
| | | |
| | | <select id="selectMenuTreeAll" resultMap="SysMenuResult"> |
| | | select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time |
| | | from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0 |
| | | order by m.parent_id, m.order_num |
| | | </select> |
| | | |
| | | <select id="selectMenuListByUserId" parameterType="SysMenu" resultMap="SysMenuResult"> |
| | | select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time |
| | | from sys_menu m |
| | | left join sys_role_menu rm on m.menu_id = rm.menu_id |
| | | left join sys_user_role ur on rm.role_id = ur.role_id |
| | | left join sys_role ro on ur.role_id = ro.role_id |
| | | where ur.user_id = #{params.userId} |
| | | <if test="menuName != null and menuName != ''"> |
| | | AND m.menu_name like concat('%', #{menuName}, '%') |
| | | </if> |
| | | <if test="visible != null and visible != ''"> |
| | | AND m.visible = #{visible} |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND m.status = #{status} |
| | | </if> |
| | | order by m.parent_id, m.order_num |
| | | </select> |
| | | |
| | | <select id="selectMenuTreeByUserId" parameterType="Long" resultMap="SysMenuResult"> |
| | | select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time |
| | | from sys_menu m |
| | | left join sys_role_menu rm on m.menu_id = rm.menu_id |
| | | left join sys_user_role ur on rm.role_id = ur.role_id |
| | | left join sys_role ro on ur.role_id = ro.role_id |
| | | left join sys_user u on ur.user_id = u.user_id |
| | | where u.user_id = #{userId} and m.menu_type in ('M', 'C') and m.status = 0 AND ro.status = 0 |
| | | order by m.parent_id, m.order_num |
| | | </select> |
| | | |
| | | <select id="selectMenuListByRoleId" resultType="Long"> |
| | | select m.menu_id |
| | | from sys_menu m |
| | | left join sys_role_menu rm on m.menu_id = rm.menu_id |
| | | where rm.role_id = #{roleId} |
| | | <if test="menuCheckStrictly"> |
| | | and m.menu_id not in (select m.parent_id from sys_menu m inner join sys_role_menu rm on m.menu_id = rm.menu_id and rm.role_id = #{roleId}) |
| | | </if> |
| | | order by m.parent_id, m.order_num |
| | | </select> |
| | | |
| | | <select id="selectMenuPerms" resultType="String"> |
| | | select distinct m.perms |
| | | from sys_menu m |
| | | left join sys_role_menu rm on m.menu_id = rm.menu_id |
| | | left join sys_user_role ur on rm.role_id = ur.role_id |
| | | </select> |
| | | |
| | | <select id="selectMenuPermsByUserId" parameterType="Long" resultType="String"> |
| | | select distinct m.perms |
| | | from sys_menu m |
| | | left join sys_role_menu rm on m.menu_id = rm.menu_id |
| | | left join sys_user_role ur on rm.role_id = ur.role_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | where m.status = '0' and r.status = '0' and ur.user_id = #{userId} |
| | | </select> |
| | | |
| | | <select id="selectMenuPermsByRoleId" parameterType="Long" resultType="String"> |
| | | select distinct m.perms |
| | | from sys_menu m |
| | | left join sys_role_menu rm on m.menu_id = rm.menu_id |
| | | where m.status = '0' and rm.role_id = #{roleId} |
| | | </select> |
| | | |
| | | <select id="selectMenuById" parameterType="Long" resultMap="SysMenuResult"> |
| | | <include refid="selectMenuVo"/> |
| | | where menu_id = #{menuId} |
| | | </select> |
| | | |
| | | <select id="hasChildByMenuId" resultType="Integer"> |
| | | select count(1) from sys_menu where parent_id = #{menuId} |
| | | </select> |
| | | |
| | | <select id="checkMenuNameUnique" parameterType="SysMenu" resultMap="SysMenuResult"> |
| | | <include refid="selectMenuVo"/> |
| | | where menu_name=#{menuName} and parent_id = #{parentId} limit 1 |
| | | </select> |
| | | |
| | | <update id="updateMenu" parameterType="SysMenu"> |
| | | update sys_menu |
| | | <set> |
| | | <if test="menuName != null and menuName != ''">menu_name = #{menuName},</if> |
| | | <if test="parentId != null">parent_id = #{parentId},</if> |
| | | <if test="orderNum != null">order_num = #{orderNum},</if> |
| | | <if test="path != null and path != ''">path = #{path},</if> |
| | | <if test="component != null">component = #{component},</if> |
| | | <if test="query != null">`query` = #{query},</if> |
| | | <if test="isFrame != null and isFrame != ''">is_frame = #{isFrame},</if> |
| | | <if test="isCache != null and isCache != ''">is_cache = #{isCache},</if> |
| | | <if test="menuType != null and menuType != ''">menu_type = #{menuType},</if> |
| | | <if test="visible != null">visible = #{visible},</if> |
| | | <if test="status != null">status = #{status},</if> |
| | | <if test="perms !=null">perms = #{perms},</if> |
| | | <if test="icon !=null and icon != ''">icon = #{icon},</if> |
| | | <if test="remark != null and remark != ''">remark = #{remark},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where menu_id = #{menuId} |
| | | </update> |
| | | |
| | | <insert id="insertMenu" parameterType="SysMenu"> |
| | | insert into sys_menu( |
| | | <if test="menuId != null and menuId != 0">menu_id,</if> |
| | | <if test="parentId != null and parentId != 0">parent_id,</if> |
| | | <if test="menuName != null and menuName != ''">menu_name,</if> |
| | | <if test="orderNum != null">order_num,</if> |
| | | <if test="path != null and path != ''">path,</if> |
| | | <if test="component != null and component != ''">component,</if> |
| | | <if test="query != null and query != ''">`query`,</if> |
| | | <if test="isFrame != null and isFrame != ''">is_frame,</if> |
| | | <if test="isCache != null and isCache != ''">is_cache,</if> |
| | | <if test="menuType != null and menuType != ''">menu_type,</if> |
| | | <if test="visible != null">visible,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="perms !=null and perms != ''">perms,</if> |
| | | <if test="icon != null and icon != ''">icon,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | create_time |
| | | )values( |
| | | <if test="menuId != null and menuId != 0">#{menuId},</if> |
| | | <if test="parentId != null and parentId != 0">#{parentId},</if> |
| | | <if test="menuName != null and menuName != ''">#{menuName},</if> |
| | | <if test="orderNum != null">#{orderNum},</if> |
| | | <if test="path != null and path != ''">#{path},</if> |
| | | <if test="component != null and component != ''">#{component},</if> |
| | | <if test="query != null and query != ''">#{query},</if> |
| | | <if test="isFrame != null and isFrame != ''">#{isFrame},</if> |
| | | <if test="isCache != null and isCache != ''">#{isCache},</if> |
| | | <if test="menuType != null and menuType != ''">#{menuType},</if> |
| | | <if test="visible != null">#{visible},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="perms !=null and perms != ''">#{perms},</if> |
| | | <if test="icon != null and icon != ''">#{icon},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <delete id="deleteMenuById" parameterType="Long"> |
| | | delete from sys_menu where menu_id = #{menuId} |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.user.SysOperLogMapper"> |
| | | |
| | | <resultMap type="SysOperLog" id="SysOperLogResult"> |
| | | <id property="operId" column="oper_id" /> |
| | | <result property="title" column="title" /> |
| | | <result property="businessType" column="business_type" /> |
| | | <result property="method" column="method" /> |
| | | <result property="requestMethod" column="request_method" /> |
| | | <result property="operatorType" column="operator_type" /> |
| | | <result property="operName" column="oper_name" /> |
| | | <result property="deptName" column="dept_name" /> |
| | | <result property="operUrl" column="oper_url" /> |
| | | <result property="operIp" column="oper_ip" /> |
| | | <result property="operParam" column="oper_param" /> |
| | | <result property="jsonResult" column="json_result" /> |
| | | <result property="status" column="status" /> |
| | | <result property="errorMsg" column="error_msg" /> |
| | | <result property="operTime" column="oper_time" /> |
| | | <result property="costTime" column="cost_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectOperLogVo"> |
| | | select oper_id, title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_param, json_result, status, error_msg, oper_time, cost_time |
| | | from sys_oper_log |
| | | </sql> |
| | | |
| | | <insert id="insertOperlog" parameterType="SysOperLog"> |
| | | insert into sys_oper_log(title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_param, json_result, status, error_msg, cost_time, oper_time) |
| | | values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, #{costTime}, sysdate()) |
| | | </insert> |
| | | |
| | | <select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult"> |
| | | <include refid="selectOperLogVo"/> |
| | | <where> |
| | | <if test="title != null and title != ''"> |
| | | AND title like concat('%', #{title}, '%') |
| | | </if> |
| | | <if test="businessType != null"> |
| | | AND business_type = #{businessType} |
| | | </if> |
| | | <if test="businessTypes != null and businessTypes.length > 0"> |
| | | AND business_type in |
| | | <foreach collection="businessTypes" item="businessType" open="(" separator="," close=")"> |
| | | #{businessType} |
| | | </foreach> |
| | | </if> |
| | | <if test="status != null"> |
| | | AND status = #{status} |
| | | </if> |
| | | <if test="operName != null and operName != ''"> |
| | | AND oper_name like concat('%', #{operName}, '%') |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | AND oper_time >= #{params.beginTime} |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> |
| | | AND oper_time <= #{params.endTime} |
| | | </if> |
| | | </where> |
| | | order by oper_id desc |
| | | </select> |
| | | |
| | | <delete id="deleteOperLogByIds" parameterType="Long"> |
| | | delete from sys_oper_log where oper_id in |
| | | <foreach collection="array" item="operId" open="(" separator="," close=")"> |
| | | #{operId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="selectOperLogById" parameterType="Long" resultMap="SysOperLogResult"> |
| | | <include refid="selectOperLogVo"/> |
| | | where oper_id = #{operId} |
| | | </select> |
| | | |
| | | <update id="cleanOperLog"> |
| | | truncate table sys_oper_log |
| | | </update> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.user.SysPostMapper"> |
| | | |
| | | <resultMap type="SysPost" id="SysPostResult"> |
| | | <id property="postId" column="post_id" /> |
| | | <result property="postCode" column="post_code" /> |
| | | <result property="postName" column="post_name" /> |
| | | <result property="postSort" column="post_sort" /> |
| | | <result property="status" column="status" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="remark" column="remark" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPostVo"> |
| | | select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark |
| | | from sys_post |
| | | </sql> |
| | | |
| | | <select id="selectPostList" parameterType="SysPost" resultMap="SysPostResult"> |
| | | <include refid="selectPostVo"/> |
| | | <where> |
| | | <if test="postCode != null and postCode != ''"> |
| | | AND post_code like concat('%', #{postCode}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | <if test="postName != null and postName != ''"> |
| | | AND post_name like concat('%', #{postName}, '%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPostAll" resultMap="SysPostResult"> |
| | | <include refid="selectPostVo"/> |
| | | </select> |
| | | |
| | | <select id="selectPostById" parameterType="Long" resultMap="SysPostResult"> |
| | | <include refid="selectPostVo"/> |
| | | where post_id = #{postId} |
| | | </select> |
| | | |
| | | <select id="selectPostListByUserId" parameterType="Long" resultType="Long"> |
| | | select p.post_id |
| | | from sys_post p |
| | | left join sys_user_post up on up.post_id = p.post_id |
| | | left join sys_user u on u.user_id = up.user_id |
| | | where u.user_id = #{userId} |
| | | </select> |
| | | |
| | | <select id="selectPostsByUserName" parameterType="String" resultMap="SysPostResult"> |
| | | select p.post_id, p.post_name, p.post_code |
| | | from sys_post p |
| | | left join sys_user_post up on up.post_id = p.post_id |
| | | left join sys_user u on u.user_id = up.user_id |
| | | where u.user_name = #{userName} |
| | | </select> |
| | | |
| | | <select id="checkPostNameUnique" parameterType="String" resultMap="SysPostResult"> |
| | | <include refid="selectPostVo"/> |
| | | where post_name=#{postName} limit 1 |
| | | </select> |
| | | |
| | | <select id="checkPostCodeUnique" parameterType="String" resultMap="SysPostResult"> |
| | | <include refid="selectPostVo"/> |
| | | where post_code=#{postCode} limit 1 |
| | | </select> |
| | | |
| | | <update id="updatePost" parameterType="SysPost"> |
| | | update sys_post |
| | | <set> |
| | | <if test="postCode != null and postCode != ''">post_code = #{postCode},</if> |
| | | <if test="postName != null and postName != ''">post_name = #{postName},</if> |
| | | <if test="postSort != null">post_sort = #{postSort},</if> |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where post_id = #{postId} |
| | | </update> |
| | | |
| | | <insert id="insertPost" parameterType="SysPost" useGeneratedKeys="true" keyProperty="postId"> |
| | | insert into sys_post( |
| | | <if test="postId != null and postId != 0">post_id,</if> |
| | | <if test="postCode != null and postCode != ''">post_code,</if> |
| | | <if test="postName != null and postName != ''">post_name,</if> |
| | | <if test="postSort != null">post_sort,</if> |
| | | <if test="status != null and status != ''">status,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | create_time |
| | | )values( |
| | | <if test="postId != null and postId != 0">#{postId},</if> |
| | | <if test="postCode != null and postCode != ''">#{postCode},</if> |
| | | <if test="postName != null and postName != ''">#{postName},</if> |
| | | <if test="postSort != null">#{postSort},</if> |
| | | <if test="status != null and status != ''">#{status},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <delete id="deletePostById" parameterType="Long"> |
| | | delete from sys_post where post_id = #{postId} |
| | | </delete> |
| | | |
| | | <delete id="deletePostByIds" parameterType="Long"> |
| | | delete from sys_post where post_id in |
| | | <foreach collection="array" item="postId" open="(" separator="," close=")"> |
| | | #{postId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.user.SysRoleDeptMapper"> |
| | | |
| | | <resultMap type="SysRoleDept" id="SysRoleDeptResult"> |
| | | <result property="roleId" column="role_id" /> |
| | | <result property="deptId" column="dept_id" /> |
| | | </resultMap> |
| | | |
| | | <delete id="deleteRoleDeptByRoleId" parameterType="Long"> |
| | | delete from sys_role_dept where role_id=#{roleId} |
| | | </delete> |
| | | |
| | | <select id="selectCountRoleDeptByDeptId" resultType="Integer"> |
| | | select count(1) from sys_role_dept where dept_id=#{deptId} |
| | | </select> |
| | | |
| | | <delete id="deleteRoleDept" parameterType="Long"> |
| | | delete from sys_role_dept where role_id in |
| | | <foreach collection="array" item="roleId" open="(" separator="," close=")"> |
| | | #{roleId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <insert id="batchRoleDept"> |
| | | insert into sys_role_dept(role_id, dept_id) values |
| | | <foreach item="item" index="index" collection="list" separator=","> |
| | | (#{item.roleId},#{item.deptId}) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.user.SysRoleMapper"> |
| | | |
| | | <resultMap type="SysRole" id="SysRoleResult"> |
| | | <id property="roleId" column="role_id" /> |
| | | <result property="roleName" column="role_name" /> |
| | | <result property="roleKey" column="role_key" /> |
| | | <result property="roleSort" column="role_sort" /> |
| | | <result property="dataScope" column="data_scope" /> |
| | | <result property="menuCheckStrictly" column="menu_check_strictly" /> |
| | | <result property="deptCheckStrictly" column="dept_check_strictly" /> |
| | | <result property="status" column="status" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="remark" column="remark" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectRoleVo"> |
| | | select distinct r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.menu_check_strictly, r.dept_check_strictly, |
| | | r.status, r.del_flag, r.create_time, r.remark |
| | | from sys_role r |
| | | left join sys_user_role ur on ur.role_id = r.role_id |
| | | left join sys_user u on u.user_id = ur.user_id |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | </sql> |
| | | |
| | | <select id="selectRoleList" parameterType="SysRole" resultMap="SysRoleResult"> |
| | | <include refid="selectRoleVo"/> |
| | | where r.del_flag = '0' |
| | | <if test="roleId != null and roleId != 0"> |
| | | AND r.role_id = #{roleId} |
| | | </if> |
| | | <if test="roleName != null and roleName != ''"> |
| | | AND r.role_name like concat('%', #{roleName}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND r.status = #{status} |
| | | </if> |
| | | <if test="roleKey != null and roleKey != ''"> |
| | | AND r.role_key like concat('%', #{roleKey}, '%') |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | and date_format(r.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d') |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> |
| | | and date_format(r.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') |
| | | </if> |
| | | <!-- 数据范围过滤 --> |
| | | ${params.dataScope} |
| | | order by r.role_sort |
| | | </select> |
| | | |
| | | <select id="selectRolePermissionByUserId" parameterType="Long" resultMap="SysRoleResult"> |
| | | <include refid="selectRoleVo"/> |
| | | WHERE r.del_flag = '0' and ur.user_id = #{userId} |
| | | </select> |
| | | |
| | | <select id="selectRoleAll" resultMap="SysRoleResult"> |
| | | <include refid="selectRoleVo"/> |
| | | </select> |
| | | |
| | | <select id="selectRoleListByUserId" parameterType="Long" resultType="Long"> |
| | | select r.role_id |
| | | from sys_role r |
| | | left join sys_user_role ur on ur.role_id = r.role_id |
| | | left join sys_user u on u.user_id = ur.user_id |
| | | where u.user_id = #{userId} |
| | | </select> |
| | | |
| | | <select id="selectRoleById" parameterType="Long" resultMap="SysRoleResult"> |
| | | <include refid="selectRoleVo"/> |
| | | where r.role_id = #{roleId} |
| | | </select> |
| | | |
| | | <select id="selectRolesByUserName" parameterType="String" resultMap="SysRoleResult"> |
| | | <include refid="selectRoleVo"/> |
| | | WHERE r.del_flag = '0' and u.user_name = #{userName} |
| | | </select> |
| | | |
| | | <select id="checkRoleNameUnique" parameterType="String" resultMap="SysRoleResult"> |
| | | <include refid="selectRoleVo"/> |
| | | where r.role_name=#{roleName} and r.del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <select id="checkRoleKeyUnique" parameterType="String" resultMap="SysRoleResult"> |
| | | <include refid="selectRoleVo"/> |
| | | where r.role_key=#{roleKey} and r.del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId"> |
| | | insert into sys_role( |
| | | <if test="roleId != null and roleId != 0">role_id,</if> |
| | | <if test="roleName != null and roleName != ''">role_name,</if> |
| | | <if test="roleKey != null and roleKey != ''">role_key,</if> |
| | | <if test="roleSort != null">role_sort,</if> |
| | | <if test="dataScope != null and dataScope != ''">data_scope,</if> |
| | | <if test="menuCheckStrictly != null">menu_check_strictly,</if> |
| | | <if test="deptCheckStrictly != null">dept_check_strictly,</if> |
| | | <if test="status != null and status != ''">status,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | create_time |
| | | )values( |
| | | <if test="roleId != null and roleId != 0">#{roleId},</if> |
| | | <if test="roleName != null and roleName != ''">#{roleName},</if> |
| | | <if test="roleKey != null and roleKey != ''">#{roleKey},</if> |
| | | <if test="roleSort != null">#{roleSort},</if> |
| | | <if test="dataScope != null and dataScope != ''">#{dataScope},</if> |
| | | <if test="menuCheckStrictly != null">#{menuCheckStrictly},</if> |
| | | <if test="deptCheckStrictly != null">#{deptCheckStrictly},</if> |
| | | <if test="status != null and status != ''">#{status},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateRole" parameterType="SysRole"> |
| | | update sys_role |
| | | <set> |
| | | <if test="roleName != null and roleName != ''">role_name = #{roleName},</if> |
| | | <if test="roleKey != null and roleKey != ''">role_key = #{roleKey},</if> |
| | | <if test="roleSort != null">role_sort = #{roleSort},</if> |
| | | <if test="dataScope != null and dataScope != ''">data_scope = #{dataScope},</if> |
| | | <if test="menuCheckStrictly != null">menu_check_strictly = #{menuCheckStrictly},</if> |
| | | <if test="deptCheckStrictly != null">dept_check_strictly = #{deptCheckStrictly},</if> |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where role_id = #{roleId} |
| | | </update> |
| | | |
| | | <delete id="deleteRoleById" parameterType="Long"> |
| | | update sys_role set del_flag = '2' where role_id = #{roleId} |
| | | </delete> |
| | | |
| | | <delete id="deleteRoleByIds" parameterType="Long"> |
| | | update sys_role set del_flag = '2' where role_id in |
| | | <foreach collection="array" item="roleId" open="(" separator="," close=")"> |
| | | #{roleId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.user.SysRoleMenuMapper"> |
| | | |
| | | <resultMap type="SysRoleMenu" id="SysRoleMenuResult"> |
| | | <result property="roleId" column="role_id" /> |
| | | <result property="menuId" column="menu_id" /> |
| | | </resultMap> |
| | | |
| | | <select id="checkMenuExistRole" resultType="Integer"> |
| | | select count(1) from sys_role_menu where menu_id = #{menuId} |
| | | </select> |
| | | |
| | | <delete id="deleteRoleMenuByRoleId" parameterType="Long"> |
| | | delete from sys_role_menu where role_id=#{roleId} |
| | | </delete> |
| | | |
| | | <delete id="deleteRoleMenu" parameterType="Long"> |
| | | delete from sys_role_menu where role_id in |
| | | <foreach collection="array" item="roleId" open="(" separator="," close=")"> |
| | | #{roleId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <insert id="batchRoleMenu"> |
| | | insert into sys_role_menu(role_id, menu_id) values |
| | | <foreach item="item" index="index" collection="list" separator=","> |
| | | (#{item.roleId},#{item.menuId}) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.user.SysUserMapper"> |
| | | |
| | | <resultMap type="SysUser" id="SysUserResult"> |
| | | <id property="userId" column="user_id" /> |
| | | <result property="deptId" column="dept_id" /> |
| | | <result property="userName" column="user_name" /> |
| | | <result property="nickName" column="nick_name" /> |
| | | <result property="email" column="email" /> |
| | | <result property="phonenumber" column="phonenumber" /> |
| | | <result property="sex" column="sex" /> |
| | | <result property="avatar" column="avatar" /> |
| | | <result property="password" column="password" /> |
| | | <result property="status" column="status" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="loginIp" column="login_ip" /> |
| | | <result property="loginDate" column="login_date" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="remark" column="remark" /> |
| | | <association property="dept" column="dept_id" javaType="SysDept" resultMap="deptResult" /> |
| | | <collection property="roles" javaType="java.util.List" resultMap="RoleResult" /> |
| | | </resultMap> |
| | | |
| | | <resultMap id="deptResult" type="SysDept"> |
| | | <id property="deptId" column="dept_id" /> |
| | | <result property="parentId" column="parent_id" /> |
| | | <result property="deptName" column="dept_name" /> |
| | | <result property="ancestors" column="ancestors" /> |
| | | <result property="orderNum" column="order_num" /> |
| | | <result property="leader" column="leader" /> |
| | | <result property="status" column="dept_status" /> |
| | | </resultMap> |
| | | |
| | | <resultMap id="RoleResult" type="SysRole"> |
| | | <id property="roleId" column="role_id" /> |
| | | <result property="roleName" column="role_name" /> |
| | | <result property="roleKey" column="role_key" /> |
| | | <result property="roleSort" column="role_sort" /> |
| | | <result property="dataScope" column="data_scope" /> |
| | | <result property="status" column="role_status" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectUserVo"> |
| | | select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, |
| | | d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status, |
| | | r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status |
| | | from sys_user u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | </sql> |
| | | |
| | | <select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult"> |
| | | select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | where u.del_flag = '0' |
| | | <if test="userId != null and userId != 0"> |
| | | AND u.user_id = #{userId} |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND u.status = #{status} |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | AND date_format(u.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d') |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> |
| | | AND date_format(u.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') |
| | | </if> |
| | | <if test="deptId != null and deptId != 0"> |
| | | AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) )) |
| | | </if> |
| | | <!-- 数据范围过滤 --> |
| | | ${params.dataScope} |
| | | </select> |
| | | |
| | | <select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult"> |
| | | select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time |
| | | from sys_user u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | where u.del_flag = '0' and r.role_id = #{roleId} |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <!-- 数据范围过滤 --> |
| | | ${params.dataScope} |
| | | </select> |
| | | |
| | | <select id="selectUnallocatedList" parameterType="SysUser" resultMap="SysUserResult"> |
| | | select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time |
| | | from sys_user u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | where u.del_flag = '0' and (r.role_id != #{roleId} or r.role_id IS NULL) |
| | | and u.user_id not in (select u.user_id from sys_user u inner join sys_user_role ur on u.user_id = ur.user_id and ur.role_id = #{roleId}) |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <!-- 数据范围过滤 --> |
| | | ${params.dataScope} |
| | | </select> |
| | | |
| | | <select id="selectUserByUserName" parameterType="String" resultMap="SysUserResult"> |
| | | <include refid="selectUserVo"/> |
| | | where u.user_name = #{userName} and u.del_flag = '0' |
| | | </select> |
| | | |
| | | <select id="selectUserById" parameterType="Long" resultMap="SysUserResult"> |
| | | <include refid="selectUserVo"/> |
| | | where u.user_id = #{userId} |
| | | </select> |
| | | |
| | | <select id="checkUserNameUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, user_name from sys_user where user_name = #{userName} and del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, phonenumber from sys_user where phonenumber = #{phonenumber} and del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, email from sys_user where email = #{email} and del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId"> |
| | | insert into sys_user( |
| | | <if test="userId != null and userId != 0">user_id,</if> |
| | | <if test="deptId != null and deptId != 0">dept_id,</if> |
| | | <if test="userName != null and userName != ''">user_name,</if> |
| | | <if test="nickName != null and nickName != ''">nick_name,</if> |
| | | <if test="email != null and email != ''">email,</if> |
| | | <if test="avatar != null and avatar != ''">avatar,</if> |
| | | <if test="phonenumber != null and phonenumber != ''">phonenumber,</if> |
| | | <if test="sex != null and sex != ''">sex,</if> |
| | | <if test="password != null and password != ''">password,</if> |
| | | <if test="status != null and status != ''">status,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | create_time |
| | | )values( |
| | | <if test="userId != null and userId != ''">#{userId},</if> |
| | | <if test="deptId != null and deptId != ''">#{deptId},</if> |
| | | <if test="userName != null and userName != ''">#{userName},</if> |
| | | <if test="nickName != null and nickName != ''">#{nickName},</if> |
| | | <if test="email != null and email != ''">#{email},</if> |
| | | <if test="avatar != null and avatar != ''">#{avatar},</if> |
| | | <if test="phonenumber != null and phonenumber != ''">#{phonenumber},</if> |
| | | <if test="sex != null and sex != ''">#{sex},</if> |
| | | <if test="password != null and password != ''">#{password},</if> |
| | | <if test="status != null and status != ''">#{status},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateUser" parameterType="SysUser"> |
| | | update sys_user |
| | | <set> |
| | | <if test="deptId != null and deptId != 0">dept_id = #{deptId},</if> |
| | | <if test="userName != null and userName != ''">user_name = #{userName},</if> |
| | | <if test="nickName != null and nickName != ''">nick_name = #{nickName},</if> |
| | | <if test="email != null ">email = #{email},</if> |
| | | <if test="phonenumber != null ">phonenumber = #{phonenumber},</if> |
| | | <if test="sex != null and sex != ''">sex = #{sex},</if> |
| | | <if test="avatar != null and avatar != ''">avatar = #{avatar},</if> |
| | | <if test="password != null and password != ''">password = #{password},</if> |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="loginIp != null and loginIp != ''">login_ip = #{loginIp},</if> |
| | | <if test="loginDate != null">login_date = #{loginDate},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where user_id = #{userId} |
| | | </update> |
| | | |
| | | <update id="updateUserStatus" parameterType="SysUser"> |
| | | update sys_user set status = #{status} where user_id = #{userId} |
| | | </update> |
| | | |
| | | <update id="updateUserAvatar" parameterType="SysUser"> |
| | | update sys_user set avatar = #{avatar} where user_name = #{userName} |
| | | </update> |
| | | |
| | | <update id="resetUserPwd" parameterType="SysUser"> |
| | | update sys_user set password = #{password} where user_name = #{userName} |
| | | </update> |
| | | |
| | | <delete id="deleteUserById" parameterType="Long"> |
| | | update sys_user set del_flag = '2' where user_id = #{userId} |
| | | </delete> |
| | | |
| | | <delete id="deleteUserByIds" parameterType="Long"> |
| | | update sys_user set del_flag = '2' where user_id in |
| | | <foreach collection="array" item="userId" open="(" separator="," close=")"> |
| | | #{userId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.user.SysUserPostMapper"> |
| | | |
| | | <resultMap type="SysUserPost" id="SysUserPostResult"> |
| | | <result property="userId" column="user_id" /> |
| | | <result property="postId" column="post_id" /> |
| | | </resultMap> |
| | | |
| | | <delete id="deleteUserPostByUserId" parameterType="Long"> |
| | | delete from sys_user_post where user_id=#{userId} |
| | | </delete> |
| | | |
| | | <select id="countUserPostById" resultType="Integer"> |
| | | select count(1) from sys_user_post where post_id=#{postId} |
| | | </select> |
| | | |
| | | <delete id="deleteUserPost" parameterType="Long"> |
| | | delete from sys_user_post where user_id in |
| | | <foreach collection="array" item="userId" open="(" separator="," close=")"> |
| | | #{userId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <insert id="batchUserPost"> |
| | | insert into sys_user_post(user_id, post_id) values |
| | | <foreach item="item" index="index" collection="list" separator=","> |
| | | (#{item.userId},#{item.postId}) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.hrt.system.mapper.user.SysUserRoleMapper"> |
| | | |
| | | <resultMap type="SysUserRole" id="SysUserRoleResult"> |
| | | <result property="userId" column="user_id" /> |
| | | <result property="roleId" column="role_id" /> |
| | | </resultMap> |
| | | |
| | | <delete id="deleteUserRoleByUserId" parameterType="Long"> |
| | | delete from sys_user_role where user_id=#{userId} |
| | | </delete> |
| | | |
| | | <select id="countUserRoleByRoleId" resultType="Integer"> |
| | | select count(1) from sys_user_role where role_id=#{roleId} |
| | | </select> |
| | | |
| | | <delete id="deleteUserRole" parameterType="Long"> |
| | | delete from sys_user_role where user_id in |
| | | <foreach collection="array" item="userId" open="(" separator="," close=")"> |
| | | #{userId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <insert id="batchUserRole"> |
| | | insert into sys_user_role(user_id, role_id) values |
| | | <foreach item="item" index="index" collection="list" separator=","> |
| | | (#{item.userId},#{item.roleId}) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | <delete id="deleteUserRoleInfo" parameterType="SysUserRole"> |
| | | delete from sys_user_role where user_id=#{userId} and role_id=#{roleId} |
| | | </delete> |
| | | |
| | | <delete id="deleteUserRoleInfos"> |
| | | delete from sys_user_role where role_id=#{roleId} and user_id in |
| | | <foreach collection="userIds" item="userId" open="(" separator="," close=")"> |
| | | #{userId} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |