57 changed files with 2994 additions and 1997 deletions
@ -1,179 +0,0 @@ |
|||
package com.mmxt.web.controller.mmxt; |
|||
|
|||
import com.mmxt.common.annotation.Log; |
|||
import com.mmxt.common.core.controller.BaseController; |
|||
import com.mmxt.common.core.domain.AjaxResult; |
|||
import com.mmxt.common.core.page.TableDataInfo; |
|||
import com.mmxt.common.enums.BusinessType; |
|||
import com.mmxt.common.utils.StringUtils; |
|||
import com.mmxt.common.utils.poi.ExcelUtil; |
|||
import com.mmxt.business.domain.MmxtAdminMemberGroup; |
|||
import com.mmxt.business.domain.MmxtAdminMemberList; |
|||
import com.mmxt.business.service.IMmxtAdminMemberGroupService; |
|||
import com.mmxt.business.service.IMmxtAdminMemberListService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.servlet.http.HttpServletResponse; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 会员用户信息Controller |
|||
* |
|||
* @author mmxt |
|||
* @date 2021-12-09 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/mmxt/AMList") |
|||
public class MmxtAdminMemberListController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private IMmxtAdminMemberListService adminMemberListService; |
|||
|
|||
@Autowired |
|||
private IMmxtAdminMemberGroupService adminMemberGroupService; |
|||
|
|||
|
|||
/** |
|||
* 查询会员用户信息列表 |
|||
*/ |
|||
@GetMapping("/list") |
|||
public TableDataInfo list(MmxtAdminMemberList MmxtAdminMemberList) |
|||
{ |
|||
startPage(); |
|||
List<MmxtAdminMemberList> list = adminMemberListService.selectAdminMemberListList(MmxtAdminMemberList); |
|||
for (MmxtAdminMemberList memberList : list) { |
|||
if (memberList.getGroupId()!=null&&!memberList.getGroupId().equals("")){ |
|||
String[] ids=memberList.getGroupId().split(","); |
|||
String[] arr = adminMemberGroupService.selectGroupIdGroupByIds(ids); |
|||
//String[] arr = groupIds.split(",");
|
|||
if (arr.length>1){ |
|||
int gid = 0; |
|||
String gtitle=""; |
|||
for (int i = 0; i < arr.length; i++) { |
|||
gid = Integer.valueOf(arr[i]); |
|||
if (i==arr.length-1){ |
|||
gtitle +=adminMemberGroupService.selectAdminMemberGroupById(gid).getGroupTitle(); |
|||
}else{ |
|||
gtitle +=adminMemberGroupService.selectAdminMemberGroupById(gid).getGroupTitle()+","; |
|||
} |
|||
} |
|||
memberList.setGroupTitle(gtitle); |
|||
}else { |
|||
MmxtAdminMemberGroup adminMemberGroup = adminMemberGroupService.selectAdminMemberGroupById(Integer.valueOf(arr[0])); |
|||
if(StringUtils.isNotNull(adminMemberGroup)){ |
|||
memberList.setGroupTitle(adminMemberGroup.getGroupTitle()); |
|||
} |
|||
} |
|||
}else { |
|||
memberList.setGroupTitle(null); |
|||
} |
|||
} |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 会员用户详细信息 |
|||
*/ |
|||
@GetMapping(value = "/{memberId}") |
|||
public AjaxResult getInfo(@PathVariable("memberId") Long memberId) |
|||
{ |
|||
return success(adminMemberListService.selectAdminMemberListById(memberId)); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 导出会员用户信息列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('manage:AMList:export')") |
|||
@Log(title = "会员用户信息", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(HttpServletResponse response, MmxtAdminMemberList MmxtAdminMemberList) |
|||
{ |
|||
List<MmxtAdminMemberList> list = adminMemberListService.selectAdminMemberListList(MmxtAdminMemberList); |
|||
ExcelUtil<MmxtAdminMemberList> util = new ExcelUtil<MmxtAdminMemberList>(MmxtAdminMemberList.class); |
|||
util.exportExcel(response,list, "AMList"); |
|||
} |
|||
|
|||
/** |
|||
* 新增保存会员用户信息 |
|||
*/ |
|||
@Log(title = "会员用户信息", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
public AjaxResult addSave(@RequestBody MmxtAdminMemberList MmxtAdminMemberList) |
|||
{ |
|||
int n = adminMemberListService.insertAdminMemberList(MmxtAdminMemberList); |
|||
String id = MmxtAdminMemberList.getGroupId(); |
|||
return toAjax(n); |
|||
} |
|||
|
|||
/** |
|||
* 修改保存会员用户信息 |
|||
*/ |
|||
@Log(title = "会员用户信息", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult editSave(@RequestBody MmxtAdminMemberList MmxtAdminMemberList) |
|||
{ |
|||
return toAjax(adminMemberListService.updateAdminMemberList(MmxtAdminMemberList)); |
|||
} |
|||
|
|||
/** |
|||
* 删除会员用户信息 |
|||
*/ |
|||
@Log(title = "会员用户信息", businessType = BusinessType.DELETE) |
|||
@DeleteMapping( "/{memberIds}") |
|||
public AjaxResult remove(@PathVariable Long[] memberIds) |
|||
{ |
|||
return toAjax(adminMemberListService.deleteAdminMemberListByIds(memberIds)); |
|||
} |
|||
|
|||
/** |
|||
* 会员账号状态修改 |
|||
*/ |
|||
@Log(title = "账号状态", businessType = BusinessType.UPDATE) |
|||
@PostMapping("/changeStatus") |
|||
public AjaxResult changeStatus(@RequestBody MmxtAdminMemberList MmxtAdminMemberList) |
|||
{ |
|||
return toAjax(adminMemberListService.updateAdminMemberList(MmxtAdminMemberList)); |
|||
} |
|||
|
|||
/** |
|||
* 用户添加群组 |
|||
* @param MmxtAdminMemberList |
|||
* @return |
|||
*/ |
|||
@PostMapping("/authGroup/insertAuthGroup") |
|||
public AjaxResult insertAuthRole(@RequestBody MmxtAdminMemberList MmxtAdminMemberList) |
|||
{ |
|||
try{ |
|||
adminMemberListService.updateAdminMemberList(MmxtAdminMemberList); |
|||
}catch (Exception e){ |
|||
e.printStackTrace(); |
|||
} |
|||
return success(); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 批量修改状态 |
|||
* @param MmxtAdminMemberList |
|||
* @return |
|||
*/ |
|||
@PostMapping(value = "/batchChangeStatus") |
|||
public AjaxResult batchPublish(@RequestBody MmxtAdminMemberList MmxtAdminMemberList) { |
|||
String status = MmxtAdminMemberList.getStatus(); |
|||
if (StringUtils.isEmpty(MmxtAdminMemberList.getMemberIds())){ |
|||
return error("请选择要修改的会员!"); |
|||
} |
|||
String[] ids = MmxtAdminMemberList.getMemberIds().split(","); |
|||
try{ |
|||
adminMemberListService.batchChangeStatus(ids, Integer.valueOf(status)); |
|||
return success("批量修改成功!"); |
|||
}catch (Exception e){ |
|||
return error("批量修改失败!"); |
|||
} |
|||
} |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,105 @@ |
|||
package com.mmxt.web.controller.mmxt; |
|||
|
|||
import java.util.List; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.PutMapping; |
|||
import org.springframework.web.bind.annotation.DeleteMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
import com.mmxt.common.annotation.Log; |
|||
import com.mmxt.common.core.controller.BaseController; |
|||
import com.mmxt.common.core.domain.AjaxResult; |
|||
import com.mmxt.common.enums.BusinessType; |
|||
import com.mmxt.business.domain.MmxtMeiyuFileCategory; |
|||
import com.mmxt.business.service.IMmxtMeiyuFileCategoryService; |
|||
import com.mmxt.common.utils.poi.ExcelUtil; |
|||
import com.mmxt.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 文件分类Controller |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/mmxt/mmxtMeiyuFileCategory") |
|||
public class MmxtMeiyuFileCategoryController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private IMmxtMeiyuFileCategoryService mmxtMeiyuFileCategoryService; |
|||
|
|||
/** |
|||
* 查询文件分类列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuFileCategory:list')") |
|||
@GetMapping("/list") |
|||
public TableDataInfo list(MmxtMeiyuFileCategory mmxtMeiyuFileCategory) |
|||
{ |
|||
startPage(); |
|||
List<MmxtMeiyuFileCategory> list = mmxtMeiyuFileCategoryService.selectMmxtMeiyuFileCategoryList(mmxtMeiyuFileCategory); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出文件分类列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuFileCategory:export')") |
|||
@Log(title = "文件分类", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(HttpServletResponse response, MmxtMeiyuFileCategory mmxtMeiyuFileCategory) |
|||
{ |
|||
List<MmxtMeiyuFileCategory> list = mmxtMeiyuFileCategoryService.selectMmxtMeiyuFileCategoryList(mmxtMeiyuFileCategory); |
|||
ExcelUtil<MmxtMeiyuFileCategory> util = new ExcelUtil<MmxtMeiyuFileCategory>(MmxtMeiyuFileCategory.class); |
|||
util.exportExcel(response, list, "文件分类数据"); |
|||
} |
|||
|
|||
/** |
|||
* 获取文件分类详细信息 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuFileCategory:query')") |
|||
@GetMapping(value = "/{categoryId}") |
|||
public AjaxResult getInfo(@PathVariable("categoryId") Long categoryId) |
|||
{ |
|||
return success(mmxtMeiyuFileCategoryService.selectMmxtMeiyuFileCategoryById(categoryId)); |
|||
} |
|||
|
|||
/** |
|||
* 新增文件分类 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuFileCategory:add')") |
|||
@Log(title = "文件分类", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
public AjaxResult add(@RequestBody MmxtMeiyuFileCategory mmxtMeiyuFileCategory) |
|||
{ |
|||
return toAjax(mmxtMeiyuFileCategoryService.insertMmxtMeiyuFileCategory(mmxtMeiyuFileCategory)); |
|||
} |
|||
|
|||
/** |
|||
* 修改文件分类 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuFileCategory:edit')") |
|||
@Log(title = "文件分类", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody MmxtMeiyuFileCategory mmxtMeiyuFileCategory) |
|||
{ |
|||
return toAjax(mmxtMeiyuFileCategoryService.updateMmxtMeiyuFileCategory(mmxtMeiyuFileCategory)); |
|||
} |
|||
|
|||
/** |
|||
* 删除文件分类 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuFileCategory:remove')") |
|||
@Log(title = "文件分类", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{categoryIds}") |
|||
public AjaxResult remove(@PathVariable Long[] categoryIds) |
|||
{ |
|||
return toAjax(mmxtMeiyuFileCategoryService.deleteMmxtMeiyuFileCategoryByIds(categoryIds)); |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,105 @@ |
|||
package com.mmxt.web.controller.mmxt; |
|||
|
|||
import java.util.List; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.PutMapping; |
|||
import org.springframework.web.bind.annotation.DeleteMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
import com.mmxt.common.annotation.Log; |
|||
import com.mmxt.common.core.controller.BaseController; |
|||
import com.mmxt.common.core.domain.AjaxResult; |
|||
import com.mmxt.common.enums.BusinessType; |
|||
import com.mmxt.business.domain.MmxtMeiyuFileManage; |
|||
import com.mmxt.business.service.IMmxtMeiyuFileManageService; |
|||
import com.mmxt.common.utils.poi.ExcelUtil; |
|||
import com.mmxt.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 文件管理列Controller |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/mmxt/mmxtMeiyuFileManage") |
|||
public class MmxtMeiyuFileManageController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private IMmxtMeiyuFileManageService mmxtMeiyuFileManageService; |
|||
|
|||
/** |
|||
* 查询文件管理列列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuFileManage:list')") |
|||
@GetMapping("/list") |
|||
public TableDataInfo list(MmxtMeiyuFileManage mmxtMeiyuFileManage) |
|||
{ |
|||
startPage(); |
|||
List<MmxtMeiyuFileManage> list = mmxtMeiyuFileManageService.selectMmxtMeiyuFileManageList(mmxtMeiyuFileManage); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出文件管理列列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuFileManage:export')") |
|||
@Log(title = "文件管理列", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(HttpServletResponse response, MmxtMeiyuFileManage mmxtMeiyuFileManage) |
|||
{ |
|||
List<MmxtMeiyuFileManage> list = mmxtMeiyuFileManageService.selectMmxtMeiyuFileManageList(mmxtMeiyuFileManage); |
|||
ExcelUtil<MmxtMeiyuFileManage> util = new ExcelUtil<MmxtMeiyuFileManage>(MmxtMeiyuFileManage.class); |
|||
util.exportExcel(response, list, "文件管理列数据"); |
|||
} |
|||
|
|||
/** |
|||
* 获取文件管理列详细信息 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuFileManage:query')") |
|||
@GetMapping(value = "/{fileId}") |
|||
public AjaxResult getInfo(@PathVariable("fileId") Long fileId) |
|||
{ |
|||
return success(mmxtMeiyuFileManageService.selectMmxtMeiyuFileManageById(fileId)); |
|||
} |
|||
|
|||
/** |
|||
* 新增文件管理列 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuFileManage:add')") |
|||
@Log(title = "文件管理列", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
public AjaxResult add(@RequestBody MmxtMeiyuFileManage mmxtMeiyuFileManage) |
|||
{ |
|||
return toAjax(mmxtMeiyuFileManageService.insertMmxtMeiyuFileManage(mmxtMeiyuFileManage)); |
|||
} |
|||
|
|||
/** |
|||
* 修改文件管理列 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuFileManage:edit')") |
|||
@Log(title = "文件管理列", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody MmxtMeiyuFileManage mmxtMeiyuFileManage) |
|||
{ |
|||
return toAjax(mmxtMeiyuFileManageService.updateMmxtMeiyuFileManage(mmxtMeiyuFileManage)); |
|||
} |
|||
|
|||
/** |
|||
* 删除文件管理列 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuFileManage:remove')") |
|||
@Log(title = "文件管理列", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{fileIds}") |
|||
public AjaxResult remove(@PathVariable Long[] fileIds) |
|||
{ |
|||
return toAjax(mmxtMeiyuFileManageService.deleteMmxtMeiyuFileManageByIds(fileIds)); |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,148 @@ |
|||
package com.mmxt.web.controller.mmxt; |
|||
|
|||
import com.mmxt.business.domain.MmxtMeiyuMemberList; |
|||
import com.mmxt.common.annotation.Log; |
|||
import com.mmxt.common.core.controller.BaseController; |
|||
import com.mmxt.common.core.domain.AjaxResult; |
|||
import com.mmxt.common.core.page.TableDataInfo; |
|||
import com.mmxt.common.enums.BusinessType; |
|||
import com.mmxt.common.utils.StringUtils; |
|||
import com.mmxt.common.utils.poi.ExcelUtil; |
|||
import com.mmxt.business.service.IMmxtMeiyuMemberListService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.servlet.http.HttpServletResponse; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 会员用户信息Controller |
|||
* |
|||
* @author mmxt |
|||
* @date 2021-12-09 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/mmxt/AMList") |
|||
public class MmxtMeiyuMemberListController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private IMmxtMeiyuMemberListService adminMemberListService; |
|||
|
|||
|
|||
|
|||
/** |
|||
* 查询会员用户信息列表 |
|||
*/ |
|||
@GetMapping("/list") |
|||
public TableDataInfo list(MmxtMeiyuMemberList MmxtMeiyuMemberList) |
|||
{ |
|||
startPage(); |
|||
List<MmxtMeiyuMemberList> list = adminMemberListService.selectAdminMemberListList(MmxtMeiyuMemberList); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 会员用户详细信息 |
|||
*/ |
|||
@GetMapping(value = "/{memberId}") |
|||
public AjaxResult getInfo(@PathVariable("memberId") Long memberId) |
|||
{ |
|||
return success(adminMemberListService.selectAdminMemberListById(memberId)); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 导出会员用户信息列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('manage:AMList:export')") |
|||
@Log(title = "会员用户信息", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(HttpServletResponse response, MmxtMeiyuMemberList MmxtMeiyuMemberList) |
|||
{ |
|||
List<MmxtMeiyuMemberList> list = adminMemberListService.selectAdminMemberListList(MmxtMeiyuMemberList); |
|||
ExcelUtil<MmxtMeiyuMemberList> util = new ExcelUtil<MmxtMeiyuMemberList>(MmxtMeiyuMemberList.class); |
|||
util.exportExcel(response,list, "AMList"); |
|||
} |
|||
|
|||
/** |
|||
* 新增保存会员用户信息 |
|||
*/ |
|||
@Log(title = "会员用户信息", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
public AjaxResult addSave(@RequestBody MmxtMeiyuMemberList MmxtMeiyuMemberList) |
|||
{ |
|||
int n = adminMemberListService.insertAdminMemberList(MmxtMeiyuMemberList); |
|||
String id = MmxtMeiyuMemberList.getGroupId(); |
|||
return toAjax(n); |
|||
} |
|||
|
|||
/** |
|||
* 修改保存会员用户信息 |
|||
*/ |
|||
@Log(title = "会员用户信息", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult editSave(@RequestBody MmxtMeiyuMemberList MmxtMeiyuMemberList) |
|||
{ |
|||
return toAjax(adminMemberListService.updateAdminMemberList(MmxtMeiyuMemberList)); |
|||
} |
|||
|
|||
/** |
|||
* 删除会员用户信息 |
|||
*/ |
|||
@Log(title = "会员用户信息", businessType = BusinessType.DELETE) |
|||
@DeleteMapping( "/{memberIds}") |
|||
public AjaxResult remove(@PathVariable Long[] memberIds) |
|||
{ |
|||
return toAjax(adminMemberListService.deleteAdminMemberListByIds(memberIds)); |
|||
} |
|||
|
|||
/** |
|||
* 会员账号状态修改 |
|||
*/ |
|||
@Log(title = "账号状态", businessType = BusinessType.UPDATE) |
|||
@PostMapping("/changeStatus") |
|||
public AjaxResult changeStatus(@RequestBody MmxtMeiyuMemberList MmxtMeiyuMemberList) |
|||
{ |
|||
return toAjax(adminMemberListService.updateAdminMemberList(MmxtMeiyuMemberList)); |
|||
} |
|||
|
|||
/** |
|||
* 用户添加群组 |
|||
* @param MmxtMeiyuMemberList |
|||
* @return |
|||
*/ |
|||
@PostMapping("/authGroup/insertAuthGroup") |
|||
public AjaxResult insertAuthRole(@RequestBody MmxtMeiyuMemberList MmxtMeiyuMemberList) |
|||
{ |
|||
try{ |
|||
adminMemberListService.updateAdminMemberList(MmxtMeiyuMemberList); |
|||
}catch (Exception e){ |
|||
e.printStackTrace(); |
|||
} |
|||
return success(); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 批量修改状态 |
|||
* @param MmxtMeiyuMemberList |
|||
* @return |
|||
*/ |
|||
@PostMapping(value = "/batchChangeStatus") |
|||
public AjaxResult batchPublish(@RequestBody MmxtMeiyuMemberList MmxtMeiyuMemberList) { |
|||
String status = MmxtMeiyuMemberList.getStatus(); |
|||
if (StringUtils.isEmpty(MmxtMeiyuMemberList.getMemberIds())){ |
|||
return error("请选择要修改的会员!"); |
|||
} |
|||
String[] ids = MmxtMeiyuMemberList.getMemberIds().split(","); |
|||
try{ |
|||
adminMemberListService.batchChangeStatus(ids, Integer.valueOf(status)); |
|||
return success("批量修改成功!"); |
|||
}catch (Exception e){ |
|||
return error("批量修改失败!"); |
|||
} |
|||
} |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,105 @@ |
|||
package com.mmxt.web.controller.mmxt; |
|||
|
|||
import java.util.List; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.PutMapping; |
|||
import org.springframework.web.bind.annotation.DeleteMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
import com.mmxt.common.annotation.Log; |
|||
import com.mmxt.common.core.controller.BaseController; |
|||
import com.mmxt.common.core.domain.AjaxResult; |
|||
import com.mmxt.common.enums.BusinessType; |
|||
import com.mmxt.business.domain.MmxtMeiyuMemberLoginlogs; |
|||
import com.mmxt.business.service.IMmxtMeiyuMemberLoginlogsService; |
|||
import com.mmxt.common.utils.poi.ExcelUtil; |
|||
import com.mmxt.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 会员访问日志记录Controller |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/mmxt/mmxtMeiyuMemberLoginlogs") |
|||
public class MmxtMeiyuMemberLoginlogsController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private IMmxtMeiyuMemberLoginlogsService mmxtMeiyuMemberLoginlogsService; |
|||
|
|||
/** |
|||
* 查询会员访问日志记录列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuMemberLoginlogs:list')") |
|||
@GetMapping("/list") |
|||
public TableDataInfo list(MmxtMeiyuMemberLoginlogs mmxtMeiyuMemberLoginlogs) |
|||
{ |
|||
startPage(); |
|||
List<MmxtMeiyuMemberLoginlogs> list = mmxtMeiyuMemberLoginlogsService.selectMmxtMeiyuMemberLoginlogsList(mmxtMeiyuMemberLoginlogs); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出会员访问日志记录列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuMemberLoginlogs:export')") |
|||
@Log(title = "会员访问日志记录", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(HttpServletResponse response, MmxtMeiyuMemberLoginlogs mmxtMeiyuMemberLoginlogs) |
|||
{ |
|||
List<MmxtMeiyuMemberLoginlogs> list = mmxtMeiyuMemberLoginlogsService.selectMmxtMeiyuMemberLoginlogsList(mmxtMeiyuMemberLoginlogs); |
|||
ExcelUtil<MmxtMeiyuMemberLoginlogs> util = new ExcelUtil<MmxtMeiyuMemberLoginlogs>(MmxtMeiyuMemberLoginlogs.class); |
|||
util.exportExcel(response, list, "会员访问日志记录数据"); |
|||
} |
|||
|
|||
/** |
|||
* 获取会员访问日志记录详细信息 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuMemberLoginlogs:query')") |
|||
@GetMapping(value = "/{logId}") |
|||
public AjaxResult getInfo(@PathVariable("logId") Long logId) |
|||
{ |
|||
return success(mmxtMeiyuMemberLoginlogsService.selectMmxtMeiyuMemberLoginlogsByLogId(logId)); |
|||
} |
|||
|
|||
/** |
|||
* 新增会员访问日志记录 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuMemberLoginlogs:add')") |
|||
@Log(title = "会员访问日志记录", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
public AjaxResult add(@RequestBody MmxtMeiyuMemberLoginlogs mmxtMeiyuMemberLoginlogs) |
|||
{ |
|||
return toAjax(mmxtMeiyuMemberLoginlogsService.insertMmxtMeiyuMemberLoginlogs(mmxtMeiyuMemberLoginlogs)); |
|||
} |
|||
|
|||
/** |
|||
* 修改会员访问日志记录 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuMemberLoginlogs:edit')") |
|||
@Log(title = "会员访问日志记录", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody MmxtMeiyuMemberLoginlogs mmxtMeiyuMemberLoginlogs) |
|||
{ |
|||
return toAjax(mmxtMeiyuMemberLoginlogsService.updateMmxtMeiyuMemberLoginlogs(mmxtMeiyuMemberLoginlogs)); |
|||
} |
|||
|
|||
/** |
|||
* 删除会员访问日志记录 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuMemberLoginlogs:remove')") |
|||
@Log(title = "会员访问日志记录", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{logIds}") |
|||
public AjaxResult remove(@PathVariable Long[] logIds) |
|||
{ |
|||
return toAjax(mmxtMeiyuMemberLoginlogsService.deleteMmxtMeiyuMemberLoginlogsByLogIds(logIds)); |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,104 @@ |
|||
package com.mmxt.web.controller.mmxt; |
|||
|
|||
import java.util.List; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.PutMapping; |
|||
import org.springframework.web.bind.annotation.DeleteMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
import com.mmxt.common.annotation.Log; |
|||
import com.mmxt.common.core.controller.BaseController; |
|||
import com.mmxt.common.core.domain.AjaxResult; |
|||
import com.mmxt.common.enums.BusinessType; |
|||
import com.mmxt.business.domain.MmxtMeiyuMemberOperateLog; |
|||
import com.mmxt.business.service.IMmxtMeiyuMemberOperateLogService; |
|||
import com.mmxt.common.utils.poi.ExcelUtil; |
|||
import com.mmxt.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 用户操作日志Controller |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/mmxt/mmxtMeiyuMemberOperateLog") |
|||
public class MmxtMeiyuMemberOperateLogController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private IMmxtMeiyuMemberOperateLogService mmxtMeiyuMemberOperateLogService; |
|||
|
|||
/** |
|||
* 查询用户操作日志列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuMemberOperateLog:list')") |
|||
@GetMapping("/list") |
|||
public TableDataInfo list(MmxtMeiyuMemberOperateLog mmxtMeiyuMemberOperateLog) |
|||
{ |
|||
startPage(); |
|||
List<MmxtMeiyuMemberOperateLog> list = mmxtMeiyuMemberOperateLogService.selectMmxtMeiyuMemberOperateLogList(mmxtMeiyuMemberOperateLog); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出用户操作日志列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuMemberOperateLog:export')") |
|||
@Log(title = "用户操作日志", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(HttpServletResponse response, MmxtMeiyuMemberOperateLog mmxtMeiyuMemberOperateLog) |
|||
{ |
|||
List<MmxtMeiyuMemberOperateLog> list = mmxtMeiyuMemberOperateLogService.selectMmxtMeiyuMemberOperateLogList(mmxtMeiyuMemberOperateLog); |
|||
ExcelUtil<MmxtMeiyuMemberOperateLog> util = new ExcelUtil<MmxtMeiyuMemberOperateLog>(MmxtMeiyuMemberOperateLog.class); |
|||
util.exportExcel(response, list, "用户操作日志数据"); |
|||
} |
|||
|
|||
/** |
|||
* 获取用户操作日志详细信息 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuMemberOperateLog:query')") |
|||
@GetMapping(value = "/{logId}") |
|||
public AjaxResult getInfo(@PathVariable("logId") Long logId) |
|||
{ |
|||
return success(mmxtMeiyuMemberOperateLogService.selectMmxtMeiyuMemberOperateLogByLogId(logId)); |
|||
} |
|||
|
|||
/** |
|||
* 新增用户操作日志 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuMemberOperateLog:add')") |
|||
@Log(title = "用户操作日志", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
public AjaxResult add(@RequestBody MmxtMeiyuMemberOperateLog mmxtMeiyuMemberOperateLog) |
|||
{ |
|||
return toAjax(mmxtMeiyuMemberOperateLogService.insertMmxtMeiyuMemberOperateLog(mmxtMeiyuMemberOperateLog)); |
|||
} |
|||
|
|||
/** |
|||
* 修改用户操作日志 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuMemberOperateLog:edit')") |
|||
@Log(title = "用户操作日志", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody MmxtMeiyuMemberOperateLog mmxtMeiyuMemberOperateLog) |
|||
{ |
|||
return toAjax(mmxtMeiyuMemberOperateLogService.updateMmxtMeiyuMemberOperateLog(mmxtMeiyuMemberOperateLog)); |
|||
} |
|||
|
|||
/** |
|||
* 删除用户操作日志 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('mmxt:mmxtMeiyuMemberOperateLog:remove')") |
|||
@Log(title = "用户操作日志", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{logIds}") |
|||
public AjaxResult remove(@PathVariable Long[] logIds) |
|||
{ |
|||
return toAjax(mmxtMeiyuMemberOperateLogService.deleteMmxtMeiyuMemberOperateLogByLogIds(logIds)); |
|||
} |
|||
} |
|||
@ -0,0 +1,105 @@ |
|||
package com.mmxt.web.controller.mmxt; |
|||
|
|||
import java.util.List; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.PutMapping; |
|||
import org.springframework.web.bind.annotation.DeleteMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
import com.mmxt.common.annotation.Log; |
|||
import com.mmxt.common.core.controller.BaseController; |
|||
import com.mmxt.common.core.domain.AjaxResult; |
|||
import com.mmxt.common.enums.BusinessType; |
|||
import com.mmxt.business.domain.MmxtMeiyuSmsLog; |
|||
import com.mmxt.business.service.IMmxtMeiyuSmsLogService; |
|||
import com.mmxt.common.utils.poi.ExcelUtil; |
|||
import com.mmxt.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 短信发送记录Controller |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/business/mmxtMeiyuSmsLog") |
|||
public class MmxtMeiyuSmsLogController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private IMmxtMeiyuSmsLogService mmxtMeiyuSmsLogService; |
|||
|
|||
/** |
|||
* 查询短信发送记录列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuSmsLog:list')") |
|||
@GetMapping("/list") |
|||
public TableDataInfo list(MmxtMeiyuSmsLog mmxtMeiyuSmsLog) |
|||
{ |
|||
startPage(); |
|||
List<MmxtMeiyuSmsLog> list = mmxtMeiyuSmsLogService.selectMmxtMeiyuSmsLogList(mmxtMeiyuSmsLog); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出短信发送记录列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuSmsLog:export')") |
|||
@Log(title = "短信发送记录", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(HttpServletResponse response, MmxtMeiyuSmsLog mmxtMeiyuSmsLog) |
|||
{ |
|||
List<MmxtMeiyuSmsLog> list = mmxtMeiyuSmsLogService.selectMmxtMeiyuSmsLogList(mmxtMeiyuSmsLog); |
|||
ExcelUtil<MmxtMeiyuSmsLog> util = new ExcelUtil<MmxtMeiyuSmsLog>(MmxtMeiyuSmsLog.class); |
|||
util.exportExcel(response, list, "短信发送记录数据"); |
|||
} |
|||
|
|||
/** |
|||
* 获取短信发送记录详细信息 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuSmsLog:query')") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") Long id) |
|||
{ |
|||
return success(mmxtMeiyuSmsLogService.selectMmxtMeiyuSmsLogById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增短信发送记录 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuSmsLog:add')") |
|||
@Log(title = "短信发送记录", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
public AjaxResult add(@RequestBody MmxtMeiyuSmsLog mmxtMeiyuSmsLog) |
|||
{ |
|||
return toAjax(mmxtMeiyuSmsLogService.insertMmxtMeiyuSmsLog(mmxtMeiyuSmsLog)); |
|||
} |
|||
|
|||
/** |
|||
* 修改短信发送记录 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuSmsLog:edit')") |
|||
@Log(title = "短信发送记录", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody MmxtMeiyuSmsLog mmxtMeiyuSmsLog) |
|||
{ |
|||
return toAjax(mmxtMeiyuSmsLogService.updateMmxtMeiyuSmsLog(mmxtMeiyuSmsLog)); |
|||
} |
|||
|
|||
/** |
|||
* 删除短信发送记录 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuSmsLog:remove')") |
|||
@Log(title = "短信发送记录", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable Long[] ids) |
|||
{ |
|||
return toAjax(mmxtMeiyuSmsLogService.deleteMmxtMeiyuSmsLogByIds(ids)); |
|||
} |
|||
} |
|||
|
|||
@ -1,146 +0,0 @@ |
|||
package com.mmxt.business.domain; |
|||
|
|||
import com.mmxt.common.annotation.Excel; |
|||
import com.mmxt.common.core.domain.BaseEntity; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
|
|||
import javax.validation.constraints.Size; |
|||
|
|||
/** |
|||
* 会员群组对象 admin_member_group |
|||
* |
|||
* @author mmxt |
|||
* @date 2021-12-09 |
|||
*/ |
|||
public class MmxtAdminMemberGroup extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 群组ID */ |
|||
private Integer groupId; |
|||
|
|||
/** 群组名称 */ |
|||
@Size(max = 50,message = "群组名称字符数超出,最多为50位字符!") |
|||
@Excel(name = "群组名称") |
|||
private String groupTitle; |
|||
|
|||
/** 积分上限 */ |
|||
@Excel(name = "积分上限") |
|||
private Integer creditshigher; |
|||
|
|||
/** 积分下限 */ |
|||
@Excel(name = "积分下限") |
|||
private Integer creditslower; |
|||
|
|||
/** 状态 */ |
|||
@Excel(name = "状态") |
|||
private Integer status; |
|||
|
|||
/** 删除标志 */ |
|||
private Integer delFlag; |
|||
/**选中的标识*/ |
|||
private boolean flag =false; |
|||
|
|||
/** 选中的群组ID */ |
|||
private String groupIds; |
|||
|
|||
/** 选中的会员ID */ |
|||
private Long memberId; |
|||
|
|||
public Long getMemberId() { |
|||
return memberId; |
|||
} |
|||
|
|||
public void setMemberId(Long memberId) { |
|||
this.memberId = memberId; |
|||
} |
|||
|
|||
public String getGroupIds() { |
|||
return groupIds; |
|||
} |
|||
|
|||
public void setGroupIds(String groupIds) { |
|||
this.groupIds = groupIds; |
|||
} |
|||
|
|||
public boolean isFlag() { |
|||
return flag; |
|||
} |
|||
|
|||
public void setFlag(boolean flag) { |
|||
this.flag = flag; |
|||
} |
|||
|
|||
public void setGroupId(Integer groupId) |
|||
{ |
|||
this.groupId = groupId; |
|||
} |
|||
|
|||
public Integer getGroupId() |
|||
{ |
|||
return groupId; |
|||
} |
|||
public void setGroupTitle(String groupTitle) |
|||
{ |
|||
this.groupTitle = groupTitle; |
|||
} |
|||
|
|||
public String getGroupTitle() |
|||
{ |
|||
return groupTitle; |
|||
} |
|||
public void setCreditshigher(Integer creditshigher) |
|||
{ |
|||
this.creditshigher = creditshigher; |
|||
} |
|||
|
|||
public Integer getCreditshigher() |
|||
{ |
|||
return creditshigher; |
|||
} |
|||
public void setCreditslower(Integer creditslower) |
|||
{ |
|||
this.creditslower = creditslower; |
|||
} |
|||
|
|||
public Integer getCreditslower() |
|||
{ |
|||
return creditslower; |
|||
} |
|||
public void setStatus(Integer status) |
|||
{ |
|||
this.status = status; |
|||
} |
|||
|
|||
public Integer getStatus() |
|||
{ |
|||
return status; |
|||
} |
|||
public void setDelFlag(Integer delFlag) |
|||
{ |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
public Integer getDelFlag() |
|||
{ |
|||
return delFlag; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("groupId", getGroupId()) |
|||
.append("groupTitle", getGroupTitle()) |
|||
.append("creditshigher", getCreditshigher()) |
|||
.append("creditslower", getCreditslower()) |
|||
.append("remark", getRemark()) |
|||
.append("status", getStatus()) |
|||
.append("createBy", getCreateBy()) |
|||
.append("createTime", getCreateTime()) |
|||
.append("updateBy", getUpdateBy()) |
|||
.append("updateTime", getUpdateTime()) |
|||
.append("delFlag", getDelFlag()) |
|||
.toString(); |
|||
} |
|||
} |
|||
@ -1,161 +0,0 @@ |
|||
package com.mmxt.business.domain; |
|||
|
|||
import com.mmxt.common.annotation.Excel; |
|||
import com.mmxt.common.core.domain.BaseEntity; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
|
|||
/** |
|||
* 附件对象 cms_attachment |
|||
* |
|||
* @author wujiyue |
|||
* @date 2019-11-01 |
|||
*/ |
|||
public class MmxtAttachment extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** ID */ |
|||
private String attachId; |
|||
|
|||
/** 组ID */ |
|||
@Excel(name = "组ID") |
|||
private String zid; |
|||
|
|||
/** 用户ID */ |
|||
@Excel(name = "用户ID") |
|||
private String userId; |
|||
|
|||
/** 类型 */ |
|||
@Excel(name = "类型") |
|||
private String fileType; |
|||
|
|||
/** 名称 */ |
|||
@Excel(name = "名称") |
|||
private String fileName; |
|||
|
|||
/** 路径 */ |
|||
@Excel(name = "路径") |
|||
private String filePath; |
|||
|
|||
/** URL */ |
|||
@Excel(name = "URL") |
|||
private String fileUrl; |
|||
|
|||
/** 大小 */ |
|||
@Excel(name = "大小") |
|||
private Long size; |
|||
|
|||
/** 排序 */ |
|||
@Excel(name = "排序") |
|||
private Integer sort; |
|||
|
|||
private String suffix; |
|||
|
|||
//private String fileTypeName;
|
|||
|
|||
public void setAttachId(String attachId) |
|||
{ |
|||
this.attachId = attachId; |
|||
} |
|||
|
|||
public String getAttachId() |
|||
{ |
|||
return attachId; |
|||
} |
|||
public void setZid(String zid) |
|||
{ |
|||
this.zid = zid; |
|||
} |
|||
|
|||
public String getZid() |
|||
{ |
|||
return zid; |
|||
} |
|||
public void setUserId(String userId) |
|||
{ |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public String getUserId() |
|||
{ |
|||
return userId; |
|||
} |
|||
public void setFileType(String fileType) |
|||
{ |
|||
this.fileType = fileType; |
|||
} |
|||
|
|||
public String getFileType() |
|||
{ |
|||
return fileType; |
|||
} |
|||
public void setFileName(String fileName) |
|||
{ |
|||
this.fileName = fileName; |
|||
} |
|||
|
|||
public String getFileName() |
|||
{ |
|||
return fileName; |
|||
} |
|||
public void setFilePath(String filePath) |
|||
{ |
|||
this.filePath = filePath; |
|||
} |
|||
|
|||
public String getFilePath() |
|||
{ |
|||
return filePath; |
|||
} |
|||
public void setSize(Long size) |
|||
{ |
|||
this.size = size; |
|||
} |
|||
|
|||
public Long getSize() |
|||
{ |
|||
return size; |
|||
} |
|||
public void setSort(Integer sort) |
|||
{ |
|||
this.sort = sort; |
|||
} |
|||
|
|||
public Integer getSort() |
|||
{ |
|||
return sort; |
|||
} |
|||
|
|||
public String getSuffix() { |
|||
return suffix; |
|||
} |
|||
|
|||
public void setSuffix(String suffix) { |
|||
this.suffix = suffix; |
|||
} |
|||
|
|||
public String getFileUrl() { |
|||
return fileUrl; |
|||
} |
|||
|
|||
public void setFileUrl(String fileUrl) { |
|||
this.fileUrl = fileUrl; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("attachId", getAttachId()) |
|||
.append("zid", getZid()) |
|||
.append("userId", getUserId()) |
|||
.append("fileType", getFileType()) |
|||
.append("fileName", getFileName()) |
|||
.append("filePath", getFilePath()) |
|||
.append("size", getSize()) |
|||
.append("createBy", getCreateBy()) |
|||
.append("createTime", getCreateTime()) |
|||
.append("sort", getSort()) |
|||
.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,175 @@ |
|||
package com.mmxt.business.domain; |
|||
|
|||
import java.util.Date; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
import com.mmxt.common.annotation.Excel; |
|||
import com.mmxt.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 会员访问日志记录对象 mmxt_meiyu_member_loginlogs |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
public class MmxtMeiyuMemberLoginlogs extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 日志ID */ |
|||
private Long logId; |
|||
|
|||
/** 会员ID */ |
|||
@Excel(name = "会员ID") |
|||
private String memberId; |
|||
|
|||
/** 登录站点ID */ |
|||
@Excel(name = "登录站点ID") |
|||
private String siteId; |
|||
|
|||
/** 登录IP地址 */ |
|||
@Excel(name = "登录IP地址") |
|||
private String ipaddr; |
|||
|
|||
/** 登录地点 */ |
|||
@Excel(name = "登录地点") |
|||
private String loginLocation; |
|||
|
|||
/** 浏览器类型 */ |
|||
@Excel(name = "浏览器类型") |
|||
private String browser; |
|||
|
|||
/** 操作系统 */ |
|||
@Excel(name = "操作系统") |
|||
private String os; |
|||
|
|||
/** 登录状态(0成功,1失败) */ |
|||
@Excel(name = "登录状态(0成功,1失败)") |
|||
private String status; |
|||
|
|||
/** 提示信息 */ |
|||
@Excel(name = "提示信息") |
|||
private String msg; |
|||
|
|||
/** 访问时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date loginTime; |
|||
|
|||
public void setLogId(Long logId) |
|||
{ |
|||
this.logId = logId; |
|||
} |
|||
|
|||
public Long getLogId() |
|||
{ |
|||
return logId; |
|||
} |
|||
|
|||
public void setMemberId(String memberId) |
|||
{ |
|||
this.memberId = memberId; |
|||
} |
|||
|
|||
public String getMemberId() |
|||
{ |
|||
return memberId; |
|||
} |
|||
|
|||
public void setSiteId(String siteId) |
|||
{ |
|||
this.siteId = siteId; |
|||
} |
|||
|
|||
public String getSiteId() |
|||
{ |
|||
return siteId; |
|||
} |
|||
|
|||
public void setIpaddr(String ipaddr) |
|||
{ |
|||
this.ipaddr = ipaddr; |
|||
} |
|||
|
|||
public String getIpaddr() |
|||
{ |
|||
return ipaddr; |
|||
} |
|||
|
|||
public void setLoginLocation(String loginLocation) |
|||
{ |
|||
this.loginLocation = loginLocation; |
|||
} |
|||
|
|||
public String getLoginLocation() |
|||
{ |
|||
return loginLocation; |
|||
} |
|||
|
|||
public void setBrowser(String browser) |
|||
{ |
|||
this.browser = browser; |
|||
} |
|||
|
|||
public String getBrowser() |
|||
{ |
|||
return browser; |
|||
} |
|||
|
|||
public void setOs(String os) |
|||
{ |
|||
this.os = os; |
|||
} |
|||
|
|||
public String getOs() |
|||
{ |
|||
return os; |
|||
} |
|||
|
|||
public void setStatus(String status) |
|||
{ |
|||
this.status = status; |
|||
} |
|||
|
|||
public String getStatus() |
|||
{ |
|||
return status; |
|||
} |
|||
|
|||
public void setMsg(String msg) |
|||
{ |
|||
this.msg = msg; |
|||
} |
|||
|
|||
public String getMsg() |
|||
{ |
|||
return msg; |
|||
} |
|||
|
|||
public void setLoginTime(Date loginTime) |
|||
{ |
|||
this.loginTime = loginTime; |
|||
} |
|||
|
|||
public Date getLoginTime() |
|||
{ |
|||
return loginTime; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("logId", getLogId()) |
|||
.append("memberId", getMemberId()) |
|||
.append("siteId", getSiteId()) |
|||
.append("ipaddr", getIpaddr()) |
|||
.append("loginLocation", getLoginLocation()) |
|||
.append("browser", getBrowser()) |
|||
.append("os", getOs()) |
|||
.append("status", getStatus()) |
|||
.append("msg", getMsg()) |
|||
.append("loginTime", getLoginTime()) |
|||
.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,190 @@ |
|||
package com.mmxt.business.domain; |
|||
|
|||
import java.util.Date; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
import com.mmxt.common.annotation.Excel; |
|||
import com.mmxt.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 用户操作日志对象 mmxt_meiyu_member_operate_log |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
public class MmxtMeiyuMemberOperateLog extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 日志id */ |
|||
private Long logId; |
|||
|
|||
/** 用户id 关联admin_member_list */ |
|||
@Excel(name = "用户id 关联admin_member_list") |
|||
private Long memberId; |
|||
|
|||
/** 操作类型(LOGIN(登录) / LOGOUT(退出) / SUBMIT_WORK(提交作品) / VIEW_WORK(查看作品) /)VIEW_TEXTBOOK(查看教材) / VIEW_COURSEWARE(查看课件) / AI_REVIEW(触发 AI 点评) / COLLECT(收藏) / LIKE(点赞) */ |
|||
@Excel(name = "操作类型", readConverterExp = "L=OGIN(登录),/=,L=OGOUT(退出),/=,S=UBMIT_WORK(提交作品),/=,V=IEW_WORK(查看作品),/=") |
|||
private String operateType; |
|||
|
|||
/** 操作名称(中文描述) */ |
|||
@Excel(name = "操作名称", readConverterExp = "中=文描述") |
|||
private String operateName; |
|||
|
|||
/** 操作IP地址 */ |
|||
@Excel(name = "操作IP地址") |
|||
private String ipaddr; |
|||
|
|||
/** 操作地点 */ |
|||
@Excel(name = "操作地点") |
|||
private String operateLocation; |
|||
|
|||
/** 浏览器类型 */ |
|||
@Excel(name = "浏览器类型") |
|||
private String browser; |
|||
|
|||
/** 操作系统 */ |
|||
@Excel(name = "操作系统") |
|||
private String os; |
|||
|
|||
/** 操作时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date operateTime; |
|||
|
|||
/** 操作状态(0成功 1失败) */ |
|||
@Excel(name = "操作状态", readConverterExp = "0=成功,1=失败") |
|||
private String operateStatus; |
|||
|
|||
/** 失败原因 */ |
|||
@Excel(name = "失败原因") |
|||
private String errorMsg; |
|||
|
|||
public void setLogId(Long logId) |
|||
{ |
|||
this.logId = logId; |
|||
} |
|||
|
|||
public Long getLogId() |
|||
{ |
|||
return logId; |
|||
} |
|||
|
|||
public void setMemberId(Long memberId) |
|||
{ |
|||
this.memberId = memberId; |
|||
} |
|||
|
|||
public Long getMemberId() |
|||
{ |
|||
return memberId; |
|||
} |
|||
|
|||
public void setOperateType(String operateType) |
|||
{ |
|||
this.operateType = operateType; |
|||
} |
|||
|
|||
public String getOperateType() |
|||
{ |
|||
return operateType; |
|||
} |
|||
|
|||
public void setOperateName(String operateName) |
|||
{ |
|||
this.operateName = operateName; |
|||
} |
|||
|
|||
public String getOperateName() |
|||
{ |
|||
return operateName; |
|||
} |
|||
|
|||
public void setIpaddr(String ipaddr) |
|||
{ |
|||
this.ipaddr = ipaddr; |
|||
} |
|||
|
|||
public String getIpaddr() |
|||
{ |
|||
return ipaddr; |
|||
} |
|||
|
|||
public void setOperateLocation(String operateLocation) |
|||
{ |
|||
this.operateLocation = operateLocation; |
|||
} |
|||
|
|||
public String getOperateLocation() |
|||
{ |
|||
return operateLocation; |
|||
} |
|||
|
|||
public void setBrowser(String browser) |
|||
{ |
|||
this.browser = browser; |
|||
} |
|||
|
|||
public String getBrowser() |
|||
{ |
|||
return browser; |
|||
} |
|||
|
|||
public void setOs(String os) |
|||
{ |
|||
this.os = os; |
|||
} |
|||
|
|||
public String getOs() |
|||
{ |
|||
return os; |
|||
} |
|||
|
|||
public void setOperateTime(Date operateTime) |
|||
{ |
|||
this.operateTime = operateTime; |
|||
} |
|||
|
|||
public Date getOperateTime() |
|||
{ |
|||
return operateTime; |
|||
} |
|||
|
|||
public void setOperateStatus(String operateStatus) |
|||
{ |
|||
this.operateStatus = operateStatus; |
|||
} |
|||
|
|||
public String getOperateStatus() |
|||
{ |
|||
return operateStatus; |
|||
} |
|||
|
|||
public void setErrorMsg(String errorMsg) |
|||
{ |
|||
this.errorMsg = errorMsg; |
|||
} |
|||
|
|||
public String getErrorMsg() |
|||
{ |
|||
return errorMsg; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("logId", getLogId()) |
|||
.append("memberId", getMemberId()) |
|||
.append("operateType", getOperateType()) |
|||
.append("operateName", getOperateName()) |
|||
.append("ipaddr", getIpaddr()) |
|||
.append("operateLocation", getOperateLocation()) |
|||
.append("browser", getBrowser()) |
|||
.append("os", getOs()) |
|||
.append("operateTime", getOperateTime()) |
|||
.append("operateStatus", getOperateStatus()) |
|||
.append("errorMsg", getErrorMsg()) |
|||
.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,221 @@ |
|||
package com.mmxt.business.domain; |
|||
|
|||
import java.util.Date; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
import com.mmxt.common.annotation.Excel; |
|||
import com.mmxt.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 短信发送记录对象 mmxt_meiyu_sms_log |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
public class MmxtMeiyuSmsLog extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** ID */ |
|||
private Long id; |
|||
|
|||
/** 发送人 */ |
|||
@Excel(name = "发送人") |
|||
private String sendUser; |
|||
|
|||
/** 运营商 */ |
|||
@Excel(name = "运营商") |
|||
private String carrieroperator; |
|||
|
|||
/** 手机号 */ |
|||
@Excel(name = "手机号") |
|||
private String phone; |
|||
|
|||
/** 内容 */ |
|||
@Excel(name = "内容") |
|||
private String content; |
|||
|
|||
/** 运营商返回码 */ |
|||
@Excel(name = "运营商返回码") |
|||
private String returncode; |
|||
|
|||
/** 发送状态(1成功2失败3草稿箱) */ |
|||
@Excel(name = "发送状态(1成功2失败3草稿箱)") |
|||
private String sendStatus; |
|||
|
|||
/** 发送时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date sendTime; |
|||
|
|||
/** 调用方式(1.注册2.修改密码3.修改手机号4.修改个人信息5.忘记账号6.系统推广) */ |
|||
@Excel(name = "调用方式(1.注册2.修改密码3.修改手机号4.修改个人信息5.忘记账号6.系统推广)") |
|||
private String sendType; |
|||
|
|||
/** 短信发送回执ID */ |
|||
@Excel(name = "短信发送回执ID") |
|||
private String sendBizid; |
|||
|
|||
/** 发送短信的IP */ |
|||
@Excel(name = "发送短信的IP") |
|||
private String sendIp; |
|||
|
|||
/** 站点标识(1美术2美伦3一体化4书法) */ |
|||
@Excel(name = "站点标识", readConverterExp = "1=美术2美伦3一体化4书法") |
|||
private Integer siteFlag; |
|||
|
|||
/** 删除标志 */ |
|||
private Integer delFlag; |
|||
|
|||
public void setId(Long id) |
|||
{ |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getId() |
|||
{ |
|||
return id; |
|||
} |
|||
|
|||
public void setSendUser(String sendUser) |
|||
{ |
|||
this.sendUser = sendUser; |
|||
} |
|||
|
|||
public String getSendUser() |
|||
{ |
|||
return sendUser; |
|||
} |
|||
|
|||
public void setCarrieroperator(String carrieroperator) |
|||
{ |
|||
this.carrieroperator = carrieroperator; |
|||
} |
|||
|
|||
public String getCarrieroperator() |
|||
{ |
|||
return carrieroperator; |
|||
} |
|||
|
|||
public void setPhone(String phone) |
|||
{ |
|||
this.phone = phone; |
|||
} |
|||
|
|||
public String getPhone() |
|||
{ |
|||
return phone; |
|||
} |
|||
|
|||
public void setContent(String content) |
|||
{ |
|||
this.content = content; |
|||
} |
|||
|
|||
public String getContent() |
|||
{ |
|||
return content; |
|||
} |
|||
|
|||
public void setReturncode(String returncode) |
|||
{ |
|||
this.returncode = returncode; |
|||
} |
|||
|
|||
public String getReturncode() |
|||
{ |
|||
return returncode; |
|||
} |
|||
|
|||
public void setSendStatus(String sendStatus) |
|||
{ |
|||
this.sendStatus = sendStatus; |
|||
} |
|||
|
|||
public String getSendStatus() |
|||
{ |
|||
return sendStatus; |
|||
} |
|||
|
|||
public void setSendTime(Date sendTime) |
|||
{ |
|||
this.sendTime = sendTime; |
|||
} |
|||
|
|||
public Date getSendTime() |
|||
{ |
|||
return sendTime; |
|||
} |
|||
|
|||
public void setSendType(String sendType) |
|||
{ |
|||
this.sendType = sendType; |
|||
} |
|||
|
|||
public String getSendType() |
|||
{ |
|||
return sendType; |
|||
} |
|||
|
|||
public void setSendBizid(String sendBizid) |
|||
{ |
|||
this.sendBizid = sendBizid; |
|||
} |
|||
|
|||
public String getSendBizid() |
|||
{ |
|||
return sendBizid; |
|||
} |
|||
|
|||
public void setSendIp(String sendIp) |
|||
{ |
|||
this.sendIp = sendIp; |
|||
} |
|||
|
|||
public String getSendIp() |
|||
{ |
|||
return sendIp; |
|||
} |
|||
|
|||
public void setSiteFlag(Integer siteFlag) |
|||
{ |
|||
this.siteFlag = siteFlag; |
|||
} |
|||
|
|||
public Integer getSiteFlag() |
|||
{ |
|||
return siteFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Integer delFlag) |
|||
{ |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
public Integer getDelFlag() |
|||
{ |
|||
return delFlag; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("id", getId()) |
|||
.append("sendUser", getSendUser()) |
|||
.append("carrieroperator", getCarrieroperator()) |
|||
.append("phone", getPhone()) |
|||
.append("content", getContent()) |
|||
.append("returncode", getReturncode()) |
|||
.append("sendStatus", getSendStatus()) |
|||
.append("sendTime", getSendTime()) |
|||
.append("sendType", getSendType()) |
|||
.append("sendBizid", getSendBizid()) |
|||
.append("sendIp", getSendIp()) |
|||
.append("siteFlag", getSiteFlag()) |
|||
.append("createTime", getCreateTime()) |
|||
.append("createBy", getCreateBy()) |
|||
.append("delFlag", getDelFlag()) |
|||
.toString(); |
|||
} |
|||
} |
|||
@ -1,75 +0,0 @@ |
|||
package com.mmxt.business.mapper; |
|||
|
|||
import com.mmxt.business.domain.MmxtAdminMemberGroup; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 会员群组Mapper接口 |
|||
* |
|||
* @author mmxt |
|||
* @date 2021-12-09 |
|||
*/ |
|||
public interface MmxtAdminMemberGroupMapper |
|||
{ |
|||
/** |
|||
* 查询会员群组 |
|||
* |
|||
* @param groupId 会员群组ID |
|||
* @return 会员群组 |
|||
*/ |
|||
public MmxtAdminMemberGroup selectAdminMemberGroupById(Integer groupId); |
|||
|
|||
/** |
|||
* 查询会员群组列表 |
|||
* |
|||
* @param MmxtAdminMemberGroup 会员群组 |
|||
* @return 会员群组集合 |
|||
*/ |
|||
public List<MmxtAdminMemberGroup> selectAdminMemberGroupList(MmxtAdminMemberGroup MmxtAdminMemberGroup); |
|||
|
|||
/** |
|||
* 新增会员群组 |
|||
* |
|||
* @param MmxtAdminMemberGroup 会员群组 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertAdminMemberGroup(MmxtAdminMemberGroup MmxtAdminMemberGroup); |
|||
|
|||
/** |
|||
* 修改会员群组 |
|||
* |
|||
* @param MmxtAdminMemberGroup 会员群组 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateAdminMemberGroup(MmxtAdminMemberGroup MmxtAdminMemberGroup); |
|||
|
|||
/** |
|||
* 删除会员群组 |
|||
* |
|||
* @param groupId 会员群组ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteAdminMemberGroupById(Integer groupId); |
|||
|
|||
/** |
|||
* 批量删除会员群组 |
|||
* |
|||
* @param groupIds 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteAdminMemberGroupByIds(Long[] groupIds); |
|||
|
|||
/** |
|||
* 批量修改状态 |
|||
* @param ids |
|||
* @param status |
|||
*/ |
|||
public int batchChangeStatus(@Param("id")String[] ids, @Param("status")Integer status); |
|||
|
|||
/** |
|||
* 查询状态正常的标签 |
|||
*/ |
|||
public List<String> selectGroupIdGroupByIds(String[] ids); |
|||
} |
|||
@ -1,63 +0,0 @@ |
|||
package com.mmxt.business.mapper; |
|||
|
|||
|
|||
import com.mmxt.business.domain.MmxtAttachment; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 附件Mapper接口 |
|||
* |
|||
* @author wujiyue |
|||
* @date 2019-11-01 |
|||
*/ |
|||
public interface MmxtAttachmentMapper |
|||
{ |
|||
/** |
|||
* 查询附件 |
|||
* |
|||
* @param attachId 附件ID |
|||
* @return 附件 |
|||
*/ |
|||
public MmxtAttachment selectAttachmentById(String attachId); |
|||
|
|||
/** |
|||
* 查询附件列表 |
|||
* |
|||
* @param MmxtAttachment 附件 |
|||
* @return 附件集合 |
|||
*/ |
|||
public List<MmxtAttachment> selectAttachmentList(MmxtAttachment MmxtAttachment); |
|||
|
|||
/** |
|||
* 新增附件 |
|||
* |
|||
* @param MmxtAttachment 附件 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertAttachment(MmxtAttachment MmxtAttachment); |
|||
|
|||
/** |
|||
* 修改附件 |
|||
* |
|||
* @param MmxtAttachment 附件 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateAttachment(MmxtAttachment MmxtAttachment); |
|||
|
|||
/** |
|||
* 删除附件 |
|||
* |
|||
* @param attachId 附件ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteAttachmentById(String attachId); |
|||
|
|||
/** |
|||
* 批量删除附件 |
|||
* |
|||
* @param attachIds 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteAttachmentByIds(String[] attachIds); |
|||
} |
|||
@ -0,0 +1,61 @@ |
|||
package com.mmxt.business.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.mmxt.business.domain.MmxtMeiyuMemberLoginlogs; |
|||
|
|||
/** |
|||
* 会员访问日志记录Mapper接口 |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
public interface MmxtMeiyuMemberLoginlogsMapper |
|||
{ |
|||
/** |
|||
* 查询会员访问日志记录 |
|||
* |
|||
* @param logId 会员访问日志记录主键 |
|||
* @return 会员访问日志记录 |
|||
*/ |
|||
public MmxtMeiyuMemberLoginlogs selectMmxtMeiyuMemberLoginlogsByLogId(Long logId); |
|||
|
|||
/** |
|||
* 查询会员访问日志记录列表 |
|||
* |
|||
* @param mmxtMeiyuMemberLoginlogs 会员访问日志记录 |
|||
* @return 会员访问日志记录集合 |
|||
*/ |
|||
public List<MmxtMeiyuMemberLoginlogs> selectMmxtMeiyuMemberLoginlogsList(MmxtMeiyuMemberLoginlogs mmxtMeiyuMemberLoginlogs); |
|||
|
|||
/** |
|||
* 新增会员访问日志记录 |
|||
* |
|||
* @param mmxtMeiyuMemberLoginlogs 会员访问日志记录 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertMmxtMeiyuMemberLoginlogs(MmxtMeiyuMemberLoginlogs mmxtMeiyuMemberLoginlogs); |
|||
|
|||
/** |
|||
* 修改会员访问日志记录 |
|||
* |
|||
* @param mmxtMeiyuMemberLoginlogs 会员访问日志记录 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateMmxtMeiyuMemberLoginlogs(MmxtMeiyuMemberLoginlogs mmxtMeiyuMemberLoginlogs); |
|||
|
|||
/** |
|||
* 删除会员访问日志记录 |
|||
* |
|||
* @param logId 会员访问日志记录主键 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuMemberLoginlogsByLogId(Long logId); |
|||
|
|||
/** |
|||
* 批量删除会员访问日志记录 |
|||
* |
|||
* @param logIds 需要删除的数据主键集合 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuMemberLoginlogsByLogIds(Long[] logIds); |
|||
} |
|||
@ -0,0 +1,61 @@ |
|||
package com.mmxt.business.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.mmxt.business.domain.MmxtMeiyuMemberOperateLog; |
|||
|
|||
/** |
|||
* 用户操作日志Mapper接口 |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
public interface MmxtMeiyuMemberOperateLogMapper |
|||
{ |
|||
/** |
|||
* 查询用户操作日志 |
|||
* |
|||
* @param logId 用户操作日志主键 |
|||
* @return 用户操作日志 |
|||
*/ |
|||
public MmxtMeiyuMemberOperateLog selectMmxtMeiyuMemberOperateLogByLogId(Long logId); |
|||
|
|||
/** |
|||
* 查询用户操作日志列表 |
|||
* |
|||
* @param mmxtMeiyuMemberOperateLog 用户操作日志 |
|||
* @return 用户操作日志集合 |
|||
*/ |
|||
public List<MmxtMeiyuMemberOperateLog> selectMmxtMeiyuMemberOperateLogList(MmxtMeiyuMemberOperateLog mmxtMeiyuMemberOperateLog); |
|||
|
|||
/** |
|||
* 新增用户操作日志 |
|||
* |
|||
* @param mmxtMeiyuMemberOperateLog 用户操作日志 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertMmxtMeiyuMemberOperateLog(MmxtMeiyuMemberOperateLog mmxtMeiyuMemberOperateLog); |
|||
|
|||
/** |
|||
* 修改用户操作日志 |
|||
* |
|||
* @param mmxtMeiyuMemberOperateLog 用户操作日志 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateMmxtMeiyuMemberOperateLog(MmxtMeiyuMemberOperateLog mmxtMeiyuMemberOperateLog); |
|||
|
|||
/** |
|||
* 删除用户操作日志 |
|||
* |
|||
* @param logId 用户操作日志主键 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuMemberOperateLogByLogId(Long logId); |
|||
|
|||
/** |
|||
* 批量删除用户操作日志 |
|||
* |
|||
* @param logIds 需要删除的数据主键集合 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuMemberOperateLogByLogIds(Long[] logIds); |
|||
} |
|||
@ -0,0 +1,61 @@ |
|||
package com.mmxt.business.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.mmxt.business.domain.MmxtMeiyuSmsLog; |
|||
|
|||
/** |
|||
* 短信发送记录Mapper接口 |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
public interface MmxtMeiyuSmsLogMapper |
|||
{ |
|||
/** |
|||
* 查询短信发送记录 |
|||
* |
|||
* @param id 短信发送记录主键 |
|||
* @return 短信发送记录 |
|||
*/ |
|||
public MmxtMeiyuSmsLog selectMmxtMeiyuSmsLogById(Long id); |
|||
|
|||
/** |
|||
* 查询短信发送记录列表 |
|||
* |
|||
* @param mmxtMeiyuSmsLog 短信发送记录 |
|||
* @return 短信发送记录集合 |
|||
*/ |
|||
public List<MmxtMeiyuSmsLog> selectMmxtMeiyuSmsLogList(MmxtMeiyuSmsLog mmxtMeiyuSmsLog); |
|||
|
|||
/** |
|||
* 新增短信发送记录 |
|||
* |
|||
* @param mmxtMeiyuSmsLog 短信发送记录 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertMmxtMeiyuSmsLog(MmxtMeiyuSmsLog mmxtMeiyuSmsLog); |
|||
|
|||
/** |
|||
* 修改短信发送记录 |
|||
* |
|||
* @param mmxtMeiyuSmsLog 短信发送记录 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateMmxtMeiyuSmsLog(MmxtMeiyuSmsLog mmxtMeiyuSmsLog); |
|||
|
|||
/** |
|||
* 删除短信发送记录 |
|||
* |
|||
* @param id 短信发送记录主键 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuSmsLogById(Long id); |
|||
|
|||
/** |
|||
* 批量删除短信发送记录 |
|||
* |
|||
* @param ids 需要删除的数据主键集合 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuSmsLogByIds(Long[] ids); |
|||
} |
|||
@ -1,74 +0,0 @@ |
|||
package com.mmxt.business.service; |
|||
|
|||
import com.mmxt.business.domain.MmxtAdminMemberGroup; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 会员群组Service接口 |
|||
* |
|||
* @author mmxt |
|||
* @date 2021-12-09 |
|||
*/ |
|||
public interface IMmxtAdminMemberGroupService |
|||
{ |
|||
/** |
|||
* 查询会员群组 |
|||
* |
|||
* @param groupId 会员群组ID |
|||
* @return 会员群组 |
|||
*/ |
|||
public MmxtAdminMemberGroup selectAdminMemberGroupById(Integer groupId); |
|||
|
|||
/** |
|||
* 查询会员群组列表 |
|||
* |
|||
* @param MmxtAdminMemberGroup 会员群组 |
|||
* @return 会员群组集合 |
|||
*/ |
|||
public List<MmxtAdminMemberGroup> selectAdminMemberGroupList(MmxtAdminMemberGroup MmxtAdminMemberGroup); |
|||
|
|||
/** |
|||
* 新增会员群组 |
|||
* |
|||
* @param MmxtAdminMemberGroup 会员群组 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertAdminMemberGroup(MmxtAdminMemberGroup MmxtAdminMemberGroup); |
|||
|
|||
/** |
|||
* 修改会员群组 |
|||
* |
|||
* @param MmxtAdminMemberGroup 会员群组 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateAdminMemberGroup(MmxtAdminMemberGroup MmxtAdminMemberGroup); |
|||
|
|||
/** |
|||
* 批量删除会员群组 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteAdminMemberGroupByIds(Long[] ids); |
|||
|
|||
/** |
|||
* 删除会员群组信息 |
|||
* |
|||
* @param groupId 会员群组ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteAdminMemberGroupById(Integer groupId); |
|||
|
|||
/** |
|||
* 批量修改状态 |
|||
* @param ids |
|||
* @param status |
|||
*/ |
|||
public int batchChangeStatus(String[] ids,Integer status); |
|||
|
|||
/** |
|||
* 查询状态正常的标签 |
|||
*/ |
|||
public String[] selectGroupIdGroupByIds(String[] ids); |
|||
} |
|||
@ -1,70 +0,0 @@ |
|||
package com.mmxt.business.service; |
|||
|
|||
|
|||
import com.mmxt.business.domain.MmxtAttachment; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 附件Service接口 |
|||
* |
|||
* @author wujiyue |
|||
* @date 2019-11-01 |
|||
*/ |
|||
public interface IMmxtAttachmentService |
|||
{ |
|||
/** |
|||
* 查询附件 |
|||
* |
|||
* @param attachId 附件ID |
|||
* @return 附件 |
|||
*/ |
|||
public MmxtAttachment selectAttachmentById(String attachId); |
|||
|
|||
/** |
|||
* 根据zid查询附件列表 |
|||
* |
|||
* @param zid 组id |
|||
* @return 附件集合 |
|||
*/ |
|||
public List<MmxtAttachment> selectAttachmentsByZid(String zid); |
|||
/** |
|||
* 查询附件列表 |
|||
* |
|||
* @param MmxtAttachment 附件 |
|||
* @return 附件集合 |
|||
*/ |
|||
public List<MmxtAttachment> selectAttachmentList(MmxtAttachment MmxtAttachment); |
|||
|
|||
/** |
|||
* 新增附件 |
|||
* |
|||
* @param MmxtAttachment 附件 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertAttachment(MmxtAttachment MmxtAttachment); |
|||
|
|||
/** |
|||
* 修改附件 |
|||
* |
|||
* @param MmxtAttachment 附件 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateAttachment(MmxtAttachment MmxtAttachment); |
|||
|
|||
/** |
|||
* 批量删除附件 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteAttachmentByIds(String ids); |
|||
|
|||
/** |
|||
* 删除附件信息 |
|||
* |
|||
* @param attachId 附件ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteAttachmentById(String attachId); |
|||
} |
|||
@ -0,0 +1,61 @@ |
|||
package com.mmxt.business.service; |
|||
|
|||
import java.util.List; |
|||
import com.mmxt.business.domain.MmxtMeiyuMemberLoginlogs; |
|||
|
|||
/** |
|||
* 会员访问日志记录Service接口 |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
public interface IMmxtMeiyuMemberLoginlogsService |
|||
{ |
|||
/** |
|||
* 查询会员访问日志记录 |
|||
* |
|||
* @param logId 会员访问日志记录主键 |
|||
* @return 会员访问日志记录 |
|||
*/ |
|||
public MmxtMeiyuMemberLoginlogs selectMmxtMeiyuMemberLoginlogsByLogId(Long logId); |
|||
|
|||
/** |
|||
* 查询会员访问日志记录列表 |
|||
* |
|||
* @param mmxtMeiyuMemberLoginlogs 会员访问日志记录 |
|||
* @return 会员访问日志记录集合 |
|||
*/ |
|||
public List<MmxtMeiyuMemberLoginlogs> selectMmxtMeiyuMemberLoginlogsList(MmxtMeiyuMemberLoginlogs mmxtMeiyuMemberLoginlogs); |
|||
|
|||
/** |
|||
* 新增会员访问日志记录 |
|||
* |
|||
* @param mmxtMeiyuMemberLoginlogs 会员访问日志记录 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertMmxtMeiyuMemberLoginlogs(MmxtMeiyuMemberLoginlogs mmxtMeiyuMemberLoginlogs); |
|||
|
|||
/** |
|||
* 修改会员访问日志记录 |
|||
* |
|||
* @param mmxtMeiyuMemberLoginlogs 会员访问日志记录 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateMmxtMeiyuMemberLoginlogs(MmxtMeiyuMemberLoginlogs mmxtMeiyuMemberLoginlogs); |
|||
|
|||
/** |
|||
* 批量删除会员访问日志记录 |
|||
* |
|||
* @param logIds 需要删除的会员访问日志记录主键集合 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuMemberLoginlogsByLogIds(Long[] logIds); |
|||
|
|||
/** |
|||
* 删除会员访问日志记录信息 |
|||
* |
|||
* @param logId 会员访问日志记录主键 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuMemberLoginlogsByLogId(Long logId); |
|||
} |
|||
@ -0,0 +1,61 @@ |
|||
package com.mmxt.business.service; |
|||
|
|||
import java.util.List; |
|||
import com.mmxt.business.domain.MmxtMeiyuMemberOperateLog; |
|||
|
|||
/** |
|||
* 用户操作日志Service接口 |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
public interface IMmxtMeiyuMemberOperateLogService |
|||
{ |
|||
/** |
|||
* 查询用户操作日志 |
|||
* |
|||
* @param logId 用户操作日志主键 |
|||
* @return 用户操作日志 |
|||
*/ |
|||
public MmxtMeiyuMemberOperateLog selectMmxtMeiyuMemberOperateLogByLogId(Long logId); |
|||
|
|||
/** |
|||
* 查询用户操作日志列表 |
|||
* |
|||
* @param mmxtMeiyuMemberOperateLog 用户操作日志 |
|||
* @return 用户操作日志集合 |
|||
*/ |
|||
public List<MmxtMeiyuMemberOperateLog> selectMmxtMeiyuMemberOperateLogList(MmxtMeiyuMemberOperateLog mmxtMeiyuMemberOperateLog); |
|||
|
|||
/** |
|||
* 新增用户操作日志 |
|||
* |
|||
* @param mmxtMeiyuMemberOperateLog 用户操作日志 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertMmxtMeiyuMemberOperateLog(MmxtMeiyuMemberOperateLog mmxtMeiyuMemberOperateLog); |
|||
|
|||
/** |
|||
* 修改用户操作日志 |
|||
* |
|||
* @param mmxtMeiyuMemberOperateLog 用户操作日志 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateMmxtMeiyuMemberOperateLog(MmxtMeiyuMemberOperateLog mmxtMeiyuMemberOperateLog); |
|||
|
|||
/** |
|||
* 批量删除用户操作日志 |
|||
* |
|||
* @param logIds 需要删除的用户操作日志主键集合 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuMemberOperateLogByLogIds(Long[] logIds); |
|||
|
|||
/** |
|||
* 删除用户操作日志信息 |
|||
* |
|||
* @param logId 用户操作日志主键 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuMemberOperateLogByLogId(Long logId); |
|||
} |
|||
@ -0,0 +1,61 @@ |
|||
package com.mmxt.business.service; |
|||
|
|||
import java.util.List; |
|||
import com.mmxt.business.domain.MmxtMeiyuSmsLog; |
|||
|
|||
/** |
|||
* 短信发送记录Service接口 |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
public interface IMmxtMeiyuSmsLogService |
|||
{ |
|||
/** |
|||
* 查询短信发送记录 |
|||
* |
|||
* @param id 短信发送记录主键 |
|||
* @return 短信发送记录 |
|||
*/ |
|||
public MmxtMeiyuSmsLog selectMmxtMeiyuSmsLogById(Long id); |
|||
|
|||
/** |
|||
* 查询短信发送记录列表 |
|||
* |
|||
* @param mmxtMeiyuSmsLog 短信发送记录 |
|||
* @return 短信发送记录集合 |
|||
*/ |
|||
public List<MmxtMeiyuSmsLog> selectMmxtMeiyuSmsLogList(MmxtMeiyuSmsLog mmxtMeiyuSmsLog); |
|||
|
|||
/** |
|||
* 新增短信发送记录 |
|||
* |
|||
* @param mmxtMeiyuSmsLog 短信发送记录 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertMmxtMeiyuSmsLog(MmxtMeiyuSmsLog mmxtMeiyuSmsLog); |
|||
|
|||
/** |
|||
* 修改短信发送记录 |
|||
* |
|||
* @param mmxtMeiyuSmsLog 短信发送记录 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateMmxtMeiyuSmsLog(MmxtMeiyuSmsLog mmxtMeiyuSmsLog); |
|||
|
|||
/** |
|||
* 批量删除短信发送记录 |
|||
* |
|||
* @param ids 需要删除的短信发送记录主键集合 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuSmsLogByIds(Long[] ids); |
|||
|
|||
/** |
|||
* 删除短信发送记录信息 |
|||
* |
|||
* @param id 短信发送记录主键 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuSmsLogById(Long id); |
|||
} |
|||
@ -1,107 +0,0 @@ |
|||
package com.mmxt.business.service.impl; |
|||
|
|||
import com.mmxt.business.domain.MmxtAdminMemberGroup; |
|||
import com.mmxt.business.service.IMmxtAdminMemberGroupService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 会员群组Service业务层处理 |
|||
* |
|||
* @author mmxt |
|||
* @date 2021-12-09 |
|||
*/ |
|||
@Service |
|||
public class AdminMemberGroupServiceImpl implements IMmxtAdminMemberGroupService |
|||
{ |
|||
@Autowired |
|||
private com.mmxt.business.mapper.MmxtAdminMemberGroupMapper MmxtAdminMemberGroupMapper; |
|||
|
|||
/** |
|||
* 查询会员群组 |
|||
* |
|||
* @param groupId 会员群组ID |
|||
* @return 会员群组 |
|||
*/ |
|||
@Override |
|||
public MmxtAdminMemberGroup selectAdminMemberGroupById(Integer groupId) |
|||
{ |
|||
return MmxtAdminMemberGroupMapper.selectAdminMemberGroupById(groupId); |
|||
} |
|||
|
|||
/** |
|||
* 查询会员群组列表 |
|||
* |
|||
* @param MmxtAdminMemberGroup 会员群组 |
|||
* @return 会员群组 |
|||
*/ |
|||
@Override |
|||
public List<MmxtAdminMemberGroup> selectAdminMemberGroupList(MmxtAdminMemberGroup MmxtAdminMemberGroup) |
|||
{ |
|||
return MmxtAdminMemberGroupMapper.selectAdminMemberGroupList(MmxtAdminMemberGroup); |
|||
} |
|||
|
|||
/** |
|||
* 新增会员群组 |
|||
* |
|||
* @param MmxtAdminMemberGroup 会员群组 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertAdminMemberGroup(MmxtAdminMemberGroup MmxtAdminMemberGroup) |
|||
{ |
|||
return MmxtAdminMemberGroupMapper.insertAdminMemberGroup(MmxtAdminMemberGroup); |
|||
} |
|||
|
|||
/** |
|||
* 修改会员群组 |
|||
* |
|||
* @param MmxtAdminMemberGroup 会员群组 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateAdminMemberGroup(MmxtAdminMemberGroup MmxtAdminMemberGroup) |
|||
{ |
|||
return MmxtAdminMemberGroupMapper.updateAdminMemberGroup(MmxtAdminMemberGroup); |
|||
} |
|||
|
|||
/** |
|||
* 删除会员群组对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteAdminMemberGroupByIds(Long[] ids) |
|||
{ |
|||
return MmxtAdminMemberGroupMapper.deleteAdminMemberGroupByIds(ids); |
|||
} |
|||
|
|||
/** |
|||
* 删除会员群组信息 |
|||
* |
|||
* @param groupId 会员群组ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteAdminMemberGroupById(Integer groupId) |
|||
{ |
|||
return MmxtAdminMemberGroupMapper.deleteAdminMemberGroupById(groupId); |
|||
} |
|||
|
|||
@Override |
|||
public int batchChangeStatus(String[] ids, Integer status) { |
|||
return MmxtAdminMemberGroupMapper.batchChangeStatus(ids,status); |
|||
} |
|||
|
|||
/** |
|||
* 查询状态正常的标签 |
|||
*/ |
|||
@Override |
|||
public String[] selectGroupIdGroupByIds(String[] ids){ |
|||
List<String> list = MmxtAdminMemberGroupMapper.selectGroupIdGroupByIds(ids); |
|||
return list.toArray(new String[list.size()]); |
|||
} |
|||
} |
|||
@ -1,260 +0,0 @@ |
|||
package com.mmxt.business.service.impl; |
|||
|
|||
import com.mmxt.business.service.IMmxtAdminFileCategoryService; |
|||
import com.mmxt.common.constant.UserConstants; |
|||
import com.mmxt.common.core.domain.Ztree; |
|||
import com.mmxt.common.core.text.Convert; |
|||
import com.mmxt.common.exception.ServiceException; |
|||
import com.mmxt.common.utils.DateUtils; |
|||
import com.mmxt.common.utils.StringUtils; |
|||
import com.mmxt.business.domain.MmxtAdminFileCategory; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 文件分类Service业务层处理 |
|||
* |
|||
* @author mmxt |
|||
* @date 2021-12-23 |
|||
*/ |
|||
@Service |
|||
public class MmxtAdminFileCategoryServiceImpl implements IMmxtAdminFileCategoryService |
|||
{ |
|||
@Autowired |
|||
private com.mmxt.business.mapper.MmxtAdminFileCategoryMapper MmxtAdminFileCategoryMapper; |
|||
|
|||
/** |
|||
* 查询文件分类 |
|||
* |
|||
* @param categoryId 文件分类ID |
|||
* @return 文件分类 |
|||
*/ |
|||
@Override |
|||
public MmxtAdminFileCategory selectAdminFileCategoryById(Long categoryId) |
|||
{ |
|||
return MmxtAdminFileCategoryMapper.selectAdminFileCategoryById(categoryId); |
|||
} |
|||
|
|||
/** |
|||
* 查询文件分类列表 |
|||
* |
|||
* @param MmxtAdminFileCategory 文件分类 |
|||
* @return 文件分类 |
|||
*/ |
|||
@Override |
|||
public List<MmxtAdminFileCategory> selectAdminFileCategoryList(MmxtAdminFileCategory MmxtAdminFileCategory) |
|||
{ |
|||
return MmxtAdminFileCategoryMapper.selectAdminFileCategoryList(MmxtAdminFileCategory); |
|||
} |
|||
|
|||
/** |
|||
* 新增文件分类 |
|||
* |
|||
* @param MmxtAdminFileCategory 文件分类 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertAdminFileCategory(MmxtAdminFileCategory MmxtAdminFileCategory) |
|||
{ |
|||
if (MmxtAdminFileCategory.getParentId()!=0L){ |
|||
MmxtAdminFileCategory info = MmxtAdminFileCategoryMapper.selectAdminFileCategoryById(MmxtAdminFileCategory.getParentId()); |
|||
// 如果父节点不为"正常"状态,则不允许新增子节点
|
|||
if (!UserConstants.FILE_CATEGORY_NORMAL.equals(info.getStatus()+"")) |
|||
{ |
|||
throw new ServiceException("目录停用,不允许新增"); |
|||
} |
|||
MmxtAdminFileCategory.setPath(info.getPath()+MmxtAdminFileCategory.getIdentifiy()+"/"); |
|||
MmxtAdminFileCategory.setAncestors(info.getAncestors() + "," + MmxtAdminFileCategory.getParentId()); |
|||
}else { |
|||
MmxtAdminFileCategory.setPath(MmxtAdminFileCategory.getIdentifiy()+"/"); |
|||
MmxtAdminFileCategory.setAncestors( MmxtAdminFileCategory.getParentId()+""); |
|||
} |
|||
MmxtAdminFileCategory.setCreateTime(DateUtils.getNowDate()); |
|||
MmxtAdminFileCategory.setUpdateTime(DateUtils.getNowDate()); |
|||
return MmxtAdminFileCategoryMapper.insertAdminFileCategory(MmxtAdminFileCategory); |
|||
} |
|||
|
|||
/** |
|||
* 修改文件分类 |
|||
* |
|||
* @param MmxtAdminFileCategory 文件分类 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateAdminFileCategory(MmxtAdminFileCategory MmxtAdminFileCategory) |
|||
{ |
|||
MmxtAdminFileCategory newParentCategory = MmxtAdminFileCategoryMapper.selectAdminFileCategoryById(MmxtAdminFileCategory.getParentId()); |
|||
MmxtAdminFileCategory oldCategory = selectAdminFileCategoryById(MmxtAdminFileCategory.getCategoryId()); |
|||
if (StringUtils.isNotNull(newParentCategory) && StringUtils.isNotNull(oldCategory)) |
|||
{ |
|||
String newAncestors = newParentCategory.getAncestors() + "," + newParentCategory.getCategoryId(); |
|||
String oldAncestors = oldCategory.getAncestors(); |
|||
MmxtAdminFileCategory.setAncestors(newAncestors); |
|||
updateCategoryChildren(MmxtAdminFileCategory.getCategoryId(), newAncestors, oldAncestors); |
|||
} |
|||
MmxtAdminFileCategory.setUpdateTime(DateUtils.getNowDate()); |
|||
int result = MmxtAdminFileCategoryMapper.updateAdminFileCategory(MmxtAdminFileCategory); |
|||
if (UserConstants.FILE_CATEGORY_NORMAL.equals(MmxtAdminFileCategory.getStatus())) |
|||
{ |
|||
// 如果该部门是启用状态,则启用该部门的所有上级部门
|
|||
updateParentCategoryStatusNormal(MmxtAdminFileCategory); |
|||
} |
|||
return result; |
|||
} |
|||
|
|||
/** |
|||
* 修改子元素关系 |
|||
* |
|||
* @param CategoryId 被修改的目录ID |
|||
* @param newAncestors 新的父ID集合 |
|||
* @param oldAncestors 旧的父ID集合 |
|||
*/ |
|||
public void updateCategoryChildren(Long CategoryId, String newAncestors, String oldAncestors) |
|||
{ |
|||
List<MmxtAdminFileCategory> children = MmxtAdminFileCategoryMapper.selectChildrenCategoryById(CategoryId); |
|||
for (MmxtAdminFileCategory child : children) |
|||
{ |
|||
child.setAncestors(child.getAncestors().replace(oldAncestors, newAncestors)); |
|||
} |
|||
if (children.size() > 0) |
|||
{ |
|||
MmxtAdminFileCategoryMapper.updateCategoryChildren(children); |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* 修改该部门的父级部门状态 |
|||
* |
|||
* @param MmxtAdminFileCategory 当前部门 |
|||
*/ |
|||
private void updateParentCategoryStatusNormal(MmxtAdminFileCategory MmxtAdminFileCategory) |
|||
{ |
|||
String ancestors = MmxtAdminFileCategory.getAncestors(); |
|||
Long[] categoryIds = Convert.toLongArray(ancestors); |
|||
MmxtAdminFileCategoryMapper.updateCategoryStatusNormal(categoryIds); |
|||
} |
|||
|
|||
/** |
|||
* 删除文件分类对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteAdminFileCategoryByIds(String ids) |
|||
{ |
|||
return MmxtAdminFileCategoryMapper.deleteAdminFileCategoryByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除文件分类信息 |
|||
* |
|||
* @param categoryId 文件分类ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteAdminFileCategoryById(Long categoryId) |
|||
{ |
|||
return MmxtAdminFileCategoryMapper.deleteAdminFileCategoryById(categoryId); |
|||
} |
|||
|
|||
/** |
|||
* 查询文件分类树列表 |
|||
* |
|||
* @return 所有文件分类信息 |
|||
*/ |
|||
@Override |
|||
public List<Ztree> selectAdminFileCategoryTree() |
|||
{ |
|||
MmxtAdminFileCategory adminFileCategory1 = new MmxtAdminFileCategory(); |
|||
adminFileCategory1.setStatus(1); |
|||
List<MmxtAdminFileCategory> adminFileCategoryList = MmxtAdminFileCategoryMapper.selectAdminFileCategoryList(adminFileCategory1); |
|||
List<Ztree> ztrees = new ArrayList<Ztree>(); |
|||
for (MmxtAdminFileCategory MmxtAdminFileCategory : adminFileCategoryList) |
|||
{ |
|||
Ztree ztree = new Ztree(); |
|||
ztree.setId(MmxtAdminFileCategory.getCategoryId()); |
|||
ztree.setpId(MmxtAdminFileCategory.getParentId()); |
|||
ztree.setName(MmxtAdminFileCategory.getCategoryName()); |
|||
ztree.setTitle(MmxtAdminFileCategory.getCategoryName()); |
|||
ztrees.add(ztree); |
|||
} |
|||
return ztrees; |
|||
} |
|||
/*子分类树结构*/ |
|||
@Override |
|||
public List<Ztree> selectAdminFileCategoryListById(Long categoryId) { |
|||
List<MmxtAdminFileCategory> adminFileCategoryList = MmxtAdminFileCategoryMapper.selectAdminFileCategoryListById(categoryId); |
|||
List<Ztree> ztrees = new ArrayList<Ztree>(); |
|||
for (MmxtAdminFileCategory MmxtAdminFileCategory : adminFileCategoryList) |
|||
{ |
|||
Ztree ztree = new Ztree(); |
|||
ztree.setId(MmxtAdminFileCategory.getCategoryId()); |
|||
ztree.setpId(MmxtAdminFileCategory.getParentId()); |
|||
ztree.setName(MmxtAdminFileCategory.getCategoryName()); |
|||
ztree.setTitle(MmxtAdminFileCategory.getCategoryName()); |
|||
ztrees.add(ztree); |
|||
} |
|||
return ztrees; |
|||
} |
|||
|
|||
/*查询下一级子分类*/ |
|||
@Override |
|||
public List<MmxtAdminFileCategory> selectAdminFileCategoryListCapaCityById(Long categoryId) { |
|||
return MmxtAdminFileCategoryMapper.selectAdminFileCategoryListCapaCityById(categoryId); |
|||
} |
|||
|
|||
/** |
|||
* 校验目录名称是否唯一 |
|||
* |
|||
* @param MmxtAdminFileCategory 目录信息 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public String checkCategoryNameUnique(MmxtAdminFileCategory MmxtAdminFileCategory) { |
|||
Long categoryId = StringUtils.isNull(MmxtAdminFileCategory.getCategoryId()) ? -1L :MmxtAdminFileCategory.getCategoryId(); |
|||
MmxtAdminFileCategory info = MmxtAdminFileCategoryMapper.checkCategoryNameUnique(MmxtAdminFileCategory.getCategoryName(), MmxtAdminFileCategory.getParentId()); |
|||
if (StringUtils.isNotNull(info) && info.getCategoryId().longValue() != categoryId.longValue()) |
|||
{ |
|||
return UserConstants.FILE_CATEGORY_NOT_UNIQUE; |
|||
} |
|||
return UserConstants.FILE_CATEGORY_UNIQUE; |
|||
} |
|||
|
|||
/** |
|||
* 根据ID查询所有子目录(正常状态) |
|||
* |
|||
* @param categoryId 目录ID |
|||
* @return 子部门数 |
|||
*/ |
|||
@Override |
|||
public int selectNormalChildrenCategoryById(Long categoryId) { |
|||
return MmxtAdminFileCategoryMapper.selectNormalChildrenCategoryById(categoryId); |
|||
} |
|||
/** |
|||
* 查询目录是否存在下级 |
|||
* |
|||
* @param parentId 父目录ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int selectCategoryCount(Long parentId) { |
|||
MmxtAdminFileCategory MmxtAdminFileCategory = new MmxtAdminFileCategory(); |
|||
MmxtAdminFileCategory.setParentId(parentId); |
|||
return MmxtAdminFileCategoryMapper.selectCategoryCount(MmxtAdminFileCategory); |
|||
} |
|||
/** |
|||
* 查询目录是否存在文件 |
|||
* |
|||
* @param categoryId 目录ID |
|||
* @return 结果 结果 true 存在 false 不存在 |
|||
*/ |
|||
@Override |
|||
public boolean checkCategoryExistFile(Long categoryId) { |
|||
int result = MmxtAdminFileCategoryMapper.checkCategoryExistFile(categoryId); |
|||
return result > 0 ? true : false; |
|||
} |
|||
} |
|||
@ -1,155 +0,0 @@ |
|||
package com.mmxt.business.service.impl; |
|||
|
|||
import com.mmxt.business.domain.MmxtAdminFileCategory; |
|||
import com.mmxt.business.domain.MmxtAdminFileManage; |
|||
import com.mmxt.common.core.text.Convert; |
|||
import com.mmxt.common.utils.DateUtils; |
|||
import com.mmxt.business.service.IMmxtAdminFileManageService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 文件管理列Service业务层处理 |
|||
* |
|||
* @author mmxt |
|||
* @date 2021-12-21 |
|||
*/ |
|||
@Service |
|||
public class MmxtAdminFileManageServiceImpl implements IMmxtAdminFileManageService |
|||
{ |
|||
@Autowired |
|||
private com.mmxt.business.mapper.MmxtAdminFileManageMapper MmxtAdminFileManageMapper; |
|||
|
|||
@Autowired |
|||
private com.mmxt.business.mapper.MmxtAdminFileCategoryMapper MmxtAdminFileCategoryMapper; |
|||
|
|||
/** |
|||
* 查询文件管理列 |
|||
* |
|||
* @param fileId 文件管理列ID |
|||
* @return 文件管理列 |
|||
*/ |
|||
@Override |
|||
public MmxtAdminFileManage selectAdminFileManageById(Integer fileId) |
|||
{ |
|||
return MmxtAdminFileManageMapper.selectAdminFileManageById(fileId); |
|||
} |
|||
|
|||
/** |
|||
* 查询文件管理列列表 |
|||
* |
|||
* @param MmxtAdminFileManage 文件管理列 |
|||
* @return 文件管理列 |
|||
*/ |
|||
@Override |
|||
public List<MmxtAdminFileManage> selectAdminFileManageList(MmxtAdminFileManage MmxtAdminFileManage) |
|||
{ |
|||
return MmxtAdminFileManageMapper.selectAdminFileManageList(MmxtAdminFileManage); |
|||
} |
|||
|
|||
/** |
|||
* 新增文件管理列 |
|||
* |
|||
* @param MmxtAdminFileManage 文件管理列 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertAdminFileManage(MmxtAdminFileManage MmxtAdminFileManage) |
|||
{ |
|||
MmxtAdminFileManage.setCreateTime(DateUtils.getNowDate()); |
|||
MmxtAdminFileManage.setUpdateTime(DateUtils.getNowDate()); |
|||
//给本身和父级插入大小 单位:字节
|
|||
insertSize(Long.valueOf(MmxtAdminFileManage.getCategoryId()),Long.valueOf(MmxtAdminFileManage.getFileSize())); |
|||
|
|||
return MmxtAdminFileManageMapper.insertAdminFileManage(MmxtAdminFileManage); |
|||
} |
|||
|
|||
/** |
|||
* 修改文件管理列 |
|||
* |
|||
* @param MmxtAdminFileManage 文件管理列 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateAdminFileManage(MmxtAdminFileManage MmxtAdminFileManage) |
|||
{ |
|||
MmxtAdminFileManage.setUpdateTime(DateUtils.getNowDate()); |
|||
return MmxtAdminFileManageMapper.updateAdminFileManage(MmxtAdminFileManage); |
|||
} |
|||
|
|||
/** |
|||
* 删除文件管理列对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteAdminFileManageByIds(String ids) |
|||
{ |
|||
return MmxtAdminFileManageMapper.deleteAdminFileManageByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除文件管理列信息 |
|||
* |
|||
* @param fileId 文件管理列ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteAdminFileManageById(Integer fileId) |
|||
{ |
|||
return MmxtAdminFileManageMapper.deleteAdminFileManageById(fileId); |
|||
} |
|||
|
|||
@Override |
|||
public int quertWeekFileNum(Long categoryId) { |
|||
return MmxtAdminFileManageMapper.quertWeekFileNum(categoryId); |
|||
} |
|||
|
|||
@Override |
|||
public Boolean insertSize(Long categoryId, Long size) { |
|||
if (categoryId!=null&&!categoryId.equals("")){ |
|||
MmxtAdminFileCategory MmxtAdminFileCategory = MmxtAdminFileCategoryMapper.selectAdminFileCategoryById(categoryId); |
|||
String[] arr = MmxtAdminFileCategory.getAncestors().split(","); |
|||
for (int i = 1; i < arr.length; i++) { |
|||
MmxtAdminFileCategory fileCategory = MmxtAdminFileCategoryMapper.selectAdminFileCategoryById(Long.valueOf(arr[i])); |
|||
Long sum = Long.valueOf(fileCategory.getCapacityUse())+ size; |
|||
fileCategory.setCapacityUse(sum+""); |
|||
MmxtAdminFileCategoryMapper.updateAdminFileCategory(fileCategory); |
|||
} |
|||
Long useSize = Long.valueOf(MmxtAdminFileCategory.getCapacityUse())+size; |
|||
MmxtAdminFileCategory.setCapacityUse(useSize+""); |
|||
MmxtAdminFileCategoryMapper.updateAdminFileCategory(MmxtAdminFileCategory); |
|||
return true; |
|||
} |
|||
return false; |
|||
} |
|||
|
|||
@Override |
|||
public int deleteAdminFileManageByObjectName(String objectName) { |
|||
//删除文件并将对应size减少
|
|||
MmxtAdminFileManage MmxtAdminFileManage = MmxtAdminFileManageMapper.selectAdminFileManageByObjectName(objectName); |
|||
reduceSize(Long.valueOf(MmxtAdminFileManage.getCategoryId()),Long.valueOf(MmxtAdminFileManage.getFileSize())); |
|||
return MmxtAdminFileManageMapper.deleteAdminFileManageByObjectName(objectName); |
|||
} |
|||
|
|||
public Boolean reduceSize(Long categoryId, Long size) { |
|||
if (categoryId!=null&&!categoryId.equals("")){ |
|||
MmxtAdminFileCategory MmxtAdminFileCategory = MmxtAdminFileCategoryMapper.selectAdminFileCategoryById(categoryId); |
|||
String[] arr = MmxtAdminFileCategory.getAncestors().split(","); |
|||
for (int i = 1; i < arr.length; i++) { |
|||
MmxtAdminFileCategory fileCategory = MmxtAdminFileCategoryMapper.selectAdminFileCategoryById(Long.valueOf(arr[i])); |
|||
Long sum = Long.valueOf(fileCategory.getCapacityUse())- size; |
|||
fileCategory.setCapacityUse(sum+""); |
|||
MmxtAdminFileCategoryMapper.updateAdminFileCategory(fileCategory); |
|||
} |
|||
Long useSize = Long.valueOf(MmxtAdminFileCategory.getCapacityUse())-size; |
|||
MmxtAdminFileCategory.setCapacityUse(useSize+""); |
|||
MmxtAdminFileCategoryMapper.updateAdminFileCategory(MmxtAdminFileCategory); |
|||
return true; |
|||
} |
|||
return false; |
|||
} |
|||
} |
|||
@ -1,93 +0,0 @@ |
|||
package com.mmxt.business.service.impl; |
|||
|
|||
import com.mmxt.business.domain.MmxtAdminMemberTeacher; |
|||
import com.mmxt.business.service.IMmxtAdminMemberTeacherService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 会员教师认证Service业务层处理 |
|||
* |
|||
* @author mmxt |
|||
* @date 2021-12-09 |
|||
*/ |
|||
@Service |
|||
public class MmxtAdminMemberTeacherServiceImpl implements IMmxtAdminMemberTeacherService |
|||
{ |
|||
@Autowired |
|||
private com.mmxt.business.mapper.MmxtAdminMemberTeacherMapper MmxtAdminMemberTeacherMapper; |
|||
|
|||
/** |
|||
* 查询会员教师认证 |
|||
* |
|||
* @param memberId 会员教师认证ID |
|||
* @return 会员教师认证 |
|||
*/ |
|||
@Override |
|||
public MmxtAdminMemberTeacher selectAdminMemberTeacherById(String memberId) |
|||
{ |
|||
return MmxtAdminMemberTeacherMapper.selectAdminMemberTeacherById(memberId); |
|||
} |
|||
|
|||
/** |
|||
* 查询会员教师认证列表 |
|||
* |
|||
* @param MmxtAdminMemberTeacher 会员教师认证 |
|||
* @return 会员教师认证 |
|||
*/ |
|||
@Override |
|||
public List<MmxtAdminMemberTeacher> selectAdminMemberTeacherList(MmxtAdminMemberTeacher MmxtAdminMemberTeacher) |
|||
{ |
|||
return MmxtAdminMemberTeacherMapper.selectAdminMemberTeacherList(MmxtAdminMemberTeacher); |
|||
} |
|||
|
|||
/** |
|||
* 新增会员教师认证 |
|||
* |
|||
* @param MmxtAdminMemberTeacher 会员教师认证 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertAdminMemberTeacher(MmxtAdminMemberTeacher MmxtAdminMemberTeacher) |
|||
{ |
|||
return MmxtAdminMemberTeacherMapper.insertAdminMemberTeacher(MmxtAdminMemberTeacher); |
|||
} |
|||
|
|||
/** |
|||
* 修改会员教师认证 |
|||
* |
|||
* @param MmxtAdminMemberTeacher 会员教师认证 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateAdminMemberTeacher(MmxtAdminMemberTeacher MmxtAdminMemberTeacher) |
|||
{ |
|||
return MmxtAdminMemberTeacherMapper.updateAdminMemberTeacher(MmxtAdminMemberTeacher); |
|||
} |
|||
|
|||
/** |
|||
* 删除会员教师认证对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteAdminMemberTeacherByIds(Long[] ids) |
|||
{ |
|||
return MmxtAdminMemberTeacherMapper.deleteAdminMemberTeacherByIds(ids); |
|||
} |
|||
|
|||
/** |
|||
* 删除会员教师认证信息 |
|||
* |
|||
* @param memberId 会员教师认证ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteAdminMemberTeacherById(String memberId) |
|||
{ |
|||
return MmxtAdminMemberTeacherMapper.deleteAdminMemberTeacherById(memberId); |
|||
} |
|||
} |
|||
@ -1,110 +0,0 @@ |
|||
package com.mmxt.business.service.impl; |
|||
|
|||
|
|||
import com.mmxt.business.domain.MmxtAttachment; |
|||
import com.mmxt.common.core.text.Convert; |
|||
import com.mmxt.common.utils.DateUtils; |
|||
import com.mmxt.common.utils.Guid; |
|||
import com.mmxt.common.utils.SecurityUtils; |
|||
import com.mmxt.business.service.IMmxtAttachmentService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 附件Service业务层处理 |
|||
* |
|||
* @author wujiyue |
|||
* @date 2019-11-01 |
|||
*/ |
|||
@Service |
|||
public class MmxtAttachmentServiceImpl implements IMmxtAttachmentService |
|||
{ |
|||
@Autowired |
|||
private com.mmxt.business.mapper.MmxtAttachmentMapper MmxtAttachmentMapper; |
|||
|
|||
/** |
|||
* 查询附件 |
|||
* |
|||
* @param attachId 附件ID |
|||
* @return 附件 |
|||
*/ |
|||
@Override |
|||
public MmxtAttachment selectAttachmentById(String attachId) |
|||
{ |
|||
return MmxtAttachmentMapper.selectAttachmentById(attachId); |
|||
} |
|||
|
|||
@Override |
|||
public List<MmxtAttachment> selectAttachmentsByZid(String zid) { |
|||
MmxtAttachment MmxtAttachment=new MmxtAttachment(); |
|||
MmxtAttachment.setZid(zid); |
|||
return MmxtAttachmentMapper.selectAttachmentList(MmxtAttachment); |
|||
} |
|||
|
|||
/** |
|||
* 查询附件列表 |
|||
* |
|||
* @param MmxtAttachment 附件 |
|||
* @return 附件 |
|||
*/ |
|||
@Override |
|||
public List<MmxtAttachment> selectAttachmentList(MmxtAttachment MmxtAttachment) |
|||
{ |
|||
return MmxtAttachmentMapper.selectAttachmentList(MmxtAttachment); |
|||
} |
|||
|
|||
/** |
|||
* 新增附件 |
|||
* |
|||
* @param MmxtAttachment 附件 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertAttachment(MmxtAttachment MmxtAttachment) |
|||
{ |
|||
MmxtAttachment.setAttachId(Guid.get()); |
|||
MmxtAttachment.setUserId(SecurityUtils.getLoginUser().getUserId().toString()); |
|||
MmxtAttachment.setCreateBy(SecurityUtils.getUsername()); |
|||
MmxtAttachment.setCreateTime(DateUtils.getNowDate()); |
|||
return MmxtAttachmentMapper.insertAttachment(MmxtAttachment); |
|||
} |
|||
|
|||
/** |
|||
* 修改附件 |
|||
* |
|||
* @param MmxtAttachment 附件 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateAttachment(MmxtAttachment MmxtAttachment) |
|||
{ |
|||
MmxtAttachment.setUpdateTime(DateUtils.getNowDate()); |
|||
return MmxtAttachmentMapper.updateAttachment(MmxtAttachment); |
|||
} |
|||
|
|||
/** |
|||
* 删除附件对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteAttachmentByIds(String ids) |
|||
{ |
|||
return MmxtAttachmentMapper.deleteAttachmentByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除附件信息 |
|||
* |
|||
* @param attachId 附件ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteAttachmentById(String attachId) |
|||
{ |
|||
return MmxtAttachmentMapper.deleteAttachmentById(attachId); |
|||
} |
|||
} |
|||
@ -0,0 +1,261 @@ |
|||
package com.mmxt.business.service.impl; |
|||
|
|||
import com.mmxt.business.domain.MmxtMeiyuFileCategory; |
|||
import com.mmxt.business.mapper.MmxtMeiyuFileCategoryMapper; |
|||
import com.mmxt.business.service.IMmxtMeiyuFileCategoryService; |
|||
import com.mmxt.common.constant.UserConstants; |
|||
import com.mmxt.common.core.domain.Ztree; |
|||
import com.mmxt.common.core.text.Convert; |
|||
import com.mmxt.common.exception.ServiceException; |
|||
import com.mmxt.common.utils.DateUtils; |
|||
import com.mmxt.common.utils.StringUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 文件分类Service业务层处理 |
|||
* |
|||
* @author mmxt |
|||
* @date 2021-12-23 |
|||
*/ |
|||
@Service |
|||
public class MmxtMeiyuFileCategoryServiceImpl implements IMmxtMeiyuFileCategoryService |
|||
{ |
|||
@Autowired |
|||
private MmxtMeiyuFileCategoryMapper MmxtMeiyuFileCategoryMapper; |
|||
|
|||
/** |
|||
* 查询文件分类 |
|||
* |
|||
* @param categoryId 文件分类ID |
|||
* @return 文件分类 |
|||
*/ |
|||
@Override |
|||
public MmxtMeiyuFileCategory selectMmxtMeiyuFileCategoryById(Long categoryId) |
|||
{ |
|||
return MmxtMeiyuFileCategoryMapper.selectMmxtMeiyuFileCategoryById(categoryId); |
|||
} |
|||
|
|||
/** |
|||
* 查询文件分类列表 |
|||
* |
|||
* @param MmxtMeiyuFileCategory 文件分类 |
|||
* @return 文件分类 |
|||
*/ |
|||
@Override |
|||
public List<MmxtMeiyuFileCategory> selectMmxtMeiyuFileCategoryList(MmxtMeiyuFileCategory MmxtMeiyuFileCategory) |
|||
{ |
|||
return MmxtMeiyuFileCategoryMapper.selectMmxtMeiyuFileCategoryList(MmxtMeiyuFileCategory); |
|||
} |
|||
|
|||
/** |
|||
* 新增文件分类 |
|||
* |
|||
* @param MmxtMeiyuFileCategory 文件分类 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertMmxtMeiyuFileCategory(MmxtMeiyuFileCategory MmxtMeiyuFileCategory) |
|||
{ |
|||
if (MmxtMeiyuFileCategory.getParentId()!=0L){ |
|||
MmxtMeiyuFileCategory info = MmxtMeiyuFileCategoryMapper.selectMmxtMeiyuFileCategoryById(MmxtMeiyuFileCategory.getParentId()); |
|||
// 如果父节点不为"正常"状态,则不允许新增子节点
|
|||
if (!UserConstants.FILE_CATEGORY_NORMAL.equals(info.getStatus()+"")) |
|||
{ |
|||
throw new ServiceException("目录停用,不允许新增"); |
|||
} |
|||
MmxtMeiyuFileCategory.setPath(info.getPath()+ MmxtMeiyuFileCategory.getIdentifiy()+"/"); |
|||
MmxtMeiyuFileCategory.setAncestors(info.getAncestors() + "," + MmxtMeiyuFileCategory.getParentId()); |
|||
}else { |
|||
MmxtMeiyuFileCategory.setPath(MmxtMeiyuFileCategory.getIdentifiy()+"/"); |
|||
MmxtMeiyuFileCategory.setAncestors( MmxtMeiyuFileCategory.getParentId()+""); |
|||
} |
|||
MmxtMeiyuFileCategory.setCreateTime(DateUtils.getNowDate()); |
|||
MmxtMeiyuFileCategory.setUpdateTime(DateUtils.getNowDate()); |
|||
return MmxtMeiyuFileCategoryMapper.insertMmxtMeiyuFileCategory(MmxtMeiyuFileCategory); |
|||
} |
|||
|
|||
/** |
|||
* 修改文件分类 |
|||
* |
|||
* @param MmxtMeiyuFileCategory 文件分类 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateMmxtMeiyuFileCategory(MmxtMeiyuFileCategory MmxtMeiyuFileCategory) |
|||
{ |
|||
MmxtMeiyuFileCategory newParentCategory = MmxtMeiyuFileCategoryMapper.selectMmxtMeiyuFileCategoryById(MmxtMeiyuFileCategory.getParentId()); |
|||
MmxtMeiyuFileCategory oldCategory = selectMmxtMeiyuFileCategoryById(MmxtMeiyuFileCategory.getCategoryId()); |
|||
if (StringUtils.isNotNull(newParentCategory) && StringUtils.isNotNull(oldCategory)) |
|||
{ |
|||
String newAncestors = newParentCategory.getAncestors() + "," + newParentCategory.getCategoryId(); |
|||
String oldAncestors = oldCategory.getAncestors(); |
|||
MmxtMeiyuFileCategory.setAncestors(newAncestors); |
|||
updateCategoryChildren(MmxtMeiyuFileCategory.getCategoryId(), newAncestors, oldAncestors); |
|||
} |
|||
MmxtMeiyuFileCategory.setUpdateTime(DateUtils.getNowDate()); |
|||
int result = MmxtMeiyuFileCategoryMapper.updateMmxtMeiyuFileCategory(MmxtMeiyuFileCategory); |
|||
if (UserConstants.FILE_CATEGORY_NORMAL.equals(MmxtMeiyuFileCategory.getStatus())) |
|||
{ |
|||
// 如果该部门是启用状态,则启用该部门的所有上级部门
|
|||
updateParentCategoryStatusNormal(MmxtMeiyuFileCategory); |
|||
} |
|||
return result; |
|||
} |
|||
|
|||
/** |
|||
* 修改子元素关系 |
|||
* |
|||
* @param CategoryId 被修改的目录ID |
|||
* @param newAncestors 新的父ID集合 |
|||
* @param oldAncestors 旧的父ID集合 |
|||
*/ |
|||
public void updateCategoryChildren(Long CategoryId, String newAncestors, String oldAncestors) |
|||
{ |
|||
List<MmxtMeiyuFileCategory> children = MmxtMeiyuFileCategoryMapper.selectChildrenCategoryById(CategoryId); |
|||
for (MmxtMeiyuFileCategory child : children) |
|||
{ |
|||
child.setAncestors(child.getAncestors().replace(oldAncestors, newAncestors)); |
|||
} |
|||
if (children.size() > 0) |
|||
{ |
|||
MmxtMeiyuFileCategoryMapper.updateCategoryChildren(children); |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* 修改该部门的父级部门状态 |
|||
* |
|||
* @param MmxtMeiyuFileCategory 当前部门 |
|||
*/ |
|||
private void updateParentCategoryStatusNormal(MmxtMeiyuFileCategory MmxtMeiyuFileCategory) |
|||
{ |
|||
String ancestors = MmxtMeiyuFileCategory.getAncestors(); |
|||
Long[] categoryIds = Convert.toLongArray(ancestors); |
|||
MmxtMeiyuFileCategoryMapper.updateCategoryStatusNormal(categoryIds); |
|||
} |
|||
|
|||
/** |
|||
* 删除文件分类对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteMmxtMeiyuFileCategoryByIds(Long[] ids) |
|||
{ |
|||
return MmxtMeiyuFileCategoryMapper.deleteMmxtMeiyuFileCategoryByIds(ids); |
|||
} |
|||
|
|||
/** |
|||
* 删除文件分类信息 |
|||
* |
|||
* @param categoryId 文件分类ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteMmxtMeiyuFileCategoryById(Long categoryId) |
|||
{ |
|||
return MmxtMeiyuFileCategoryMapper.deleteMmxtMeiyuFileCategoryById(categoryId); |
|||
} |
|||
|
|||
/** |
|||
* 查询文件分类树列表 |
|||
* |
|||
* @return 所有文件分类信息 |
|||
*/ |
|||
@Override |
|||
public List<Ztree> selectMmxtMeiyuFileCategoryTree() |
|||
{ |
|||
MmxtMeiyuFileCategory MmxtMeiyuFileCategory1 = new MmxtMeiyuFileCategory(); |
|||
MmxtMeiyuFileCategory1.setStatus(1); |
|||
List<MmxtMeiyuFileCategory> MmxtMeiyuFileCategoryList = MmxtMeiyuFileCategoryMapper.selectMmxtMeiyuFileCategoryList(MmxtMeiyuFileCategory1); |
|||
List<Ztree> ztrees = new ArrayList<Ztree>(); |
|||
for (MmxtMeiyuFileCategory MmxtMeiyuFileCategory : MmxtMeiyuFileCategoryList) |
|||
{ |
|||
Ztree ztree = new Ztree(); |
|||
ztree.setId(MmxtMeiyuFileCategory.getCategoryId()); |
|||
ztree.setpId(MmxtMeiyuFileCategory.getParentId()); |
|||
ztree.setName(MmxtMeiyuFileCategory.getCategoryName()); |
|||
ztree.setTitle(MmxtMeiyuFileCategory.getCategoryName()); |
|||
ztrees.add(ztree); |
|||
} |
|||
return ztrees; |
|||
} |
|||
/*子分类树结构*/ |
|||
@Override |
|||
public List<Ztree> selectMmxtMeiyuFileCategoryListById(Long categoryId) { |
|||
List<MmxtMeiyuFileCategory> MmxtMeiyuFileCategoryList = MmxtMeiyuFileCategoryMapper.selectMmxtMeiyuFileCategoryListById(categoryId); |
|||
List<Ztree> ztrees = new ArrayList<Ztree>(); |
|||
for (MmxtMeiyuFileCategory MmxtMeiyuFileCategory : MmxtMeiyuFileCategoryList) |
|||
{ |
|||
Ztree ztree = new Ztree(); |
|||
ztree.setId(MmxtMeiyuFileCategory.getCategoryId()); |
|||
ztree.setpId(MmxtMeiyuFileCategory.getParentId()); |
|||
ztree.setName(MmxtMeiyuFileCategory.getCategoryName()); |
|||
ztree.setTitle(MmxtMeiyuFileCategory.getCategoryName()); |
|||
ztrees.add(ztree); |
|||
} |
|||
return ztrees; |
|||
} |
|||
|
|||
/*查询下一级子分类*/ |
|||
@Override |
|||
public List<MmxtMeiyuFileCategory> selectMmxtMeiyuFileCategoryListCapaCityById(Long categoryId) { |
|||
return MmxtMeiyuFileCategoryMapper.selectMmxtMeiyuFileCategoryListCapaCityById(categoryId); |
|||
} |
|||
|
|||
/** |
|||
* 校验目录名称是否唯一 |
|||
* |
|||
* @param MmxtMeiyuFileCategory 目录信息 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public String checkCategoryNameUnique(MmxtMeiyuFileCategory MmxtMeiyuFileCategory) { |
|||
Long categoryId = StringUtils.isNull(MmxtMeiyuFileCategory.getCategoryId()) ? -1L : MmxtMeiyuFileCategory.getCategoryId(); |
|||
MmxtMeiyuFileCategory info = MmxtMeiyuFileCategoryMapper.checkCategoryNameUnique(MmxtMeiyuFileCategory.getCategoryName(), MmxtMeiyuFileCategory.getParentId()); |
|||
if (StringUtils.isNotNull(info) && info.getCategoryId().longValue() != categoryId.longValue()) |
|||
{ |
|||
return UserConstants.FILE_CATEGORY_NOT_UNIQUE; |
|||
} |
|||
return UserConstants.FILE_CATEGORY_UNIQUE; |
|||
} |
|||
|
|||
/** |
|||
* 根据ID查询所有子目录(正常状态) |
|||
* |
|||
* @param categoryId 目录ID |
|||
* @return 子部门数 |
|||
*/ |
|||
@Override |
|||
public int selectNormalChildrenCategoryById(Long categoryId) { |
|||
return MmxtMeiyuFileCategoryMapper.selectNormalChildrenCategoryById(categoryId); |
|||
} |
|||
/** |
|||
* 查询目录是否存在下级 |
|||
* |
|||
* @param parentId 父目录ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int selectCategoryCount(Long parentId) { |
|||
MmxtMeiyuFileCategory MmxtMeiyuFileCategory = new MmxtMeiyuFileCategory(); |
|||
MmxtMeiyuFileCategory.setParentId(parentId); |
|||
return MmxtMeiyuFileCategoryMapper.selectCategoryCount(MmxtMeiyuFileCategory); |
|||
} |
|||
/** |
|||
* 查询目录是否存在文件 |
|||
* |
|||
* @param categoryId 目录ID |
|||
* @return 结果 结果 true 存在 false 不存在 |
|||
*/ |
|||
@Override |
|||
public boolean checkCategoryExistFile(Long categoryId) { |
|||
int result = MmxtMeiyuFileCategoryMapper.checkCategoryExistFile(categoryId); |
|||
return result > 0 ? true : false; |
|||
} |
|||
} |
|||
@ -0,0 +1,157 @@ |
|||
package com.mmxt.business.service.impl; |
|||
|
|||
import com.mmxt.business.domain.MmxtMeiyuFileCategory; |
|||
import com.mmxt.business.domain.MmxtMeiyuFileManage; |
|||
import com.mmxt.business.mapper.MmxtMeiyuFileCategoryMapper; |
|||
import com.mmxt.business.mapper.MmxtMeiyuFileManageMapper; |
|||
import com.mmxt.common.core.text.Convert; |
|||
import com.mmxt.common.utils.DateUtils; |
|||
import com.mmxt.business.service.IMmxtMeiyuFileManageService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 文件管理列Service业务层处理 |
|||
* |
|||
* @author mmxt |
|||
* @date 2021-12-21 |
|||
*/ |
|||
@Service |
|||
public class MmxtMeiyuFileManageServiceImpl implements IMmxtMeiyuFileManageService |
|||
{ |
|||
@Autowired |
|||
private MmxtMeiyuFileManageMapper MmxtMeiyuFileManageMapper; |
|||
|
|||
@Autowired |
|||
private MmxtMeiyuFileCategoryMapper MmxtMeiyuFileCategoryMapper; |
|||
|
|||
/** |
|||
* 查询文件管理列 |
|||
* |
|||
* @param fileId 文件管理列ID |
|||
* @return 文件管理列 |
|||
*/ |
|||
@Override |
|||
public MmxtMeiyuFileManage selectMmxtMeiyuFileManageById(Long fileId) |
|||
{ |
|||
return MmxtMeiyuFileManageMapper.selectMmxtMeiyuFileManageById(fileId); |
|||
} |
|||
|
|||
/** |
|||
* 查询文件管理列列表 |
|||
* |
|||
* @param MmxtMeiyuFileManage 文件管理列 |
|||
* @return 文件管理列 |
|||
*/ |
|||
@Override |
|||
public List<MmxtMeiyuFileManage> selectMmxtMeiyuFileManageList(MmxtMeiyuFileManage MmxtMeiyuFileManage) |
|||
{ |
|||
return MmxtMeiyuFileManageMapper.selectMmxtMeiyuFileManageList(MmxtMeiyuFileManage); |
|||
} |
|||
|
|||
/** |
|||
* 新增文件管理列 |
|||
* |
|||
* @param MmxtMeiyuFileManage 文件管理列 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertMmxtMeiyuFileManage(MmxtMeiyuFileManage MmxtMeiyuFileManage) |
|||
{ |
|||
MmxtMeiyuFileManage.setCreateTime(DateUtils.getNowDate()); |
|||
MmxtMeiyuFileManage.setUpdateTime(DateUtils.getNowDate()); |
|||
//给本身和父级插入大小 单位:字节
|
|||
insertSize(Long.valueOf(MmxtMeiyuFileManage.getCategoryId()),Long.valueOf(MmxtMeiyuFileManage.getFileSize())); |
|||
|
|||
return MmxtMeiyuFileManageMapper.insertMmxtMeiyuFileManage(MmxtMeiyuFileManage); |
|||
} |
|||
|
|||
/** |
|||
* 修改文件管理列 |
|||
* |
|||
* @param MmxtMeiyuFileManage 文件管理列 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateMmxtMeiyuFileManage(MmxtMeiyuFileManage MmxtMeiyuFileManage) |
|||
{ |
|||
MmxtMeiyuFileManage.setUpdateTime(DateUtils.getNowDate()); |
|||
return MmxtMeiyuFileManageMapper.updateMmxtMeiyuFileManage(MmxtMeiyuFileManage); |
|||
} |
|||
|
|||
/** |
|||
* 删除文件管理列对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteMmxtMeiyuFileManageByIds(Long[] ids) |
|||
{ |
|||
return MmxtMeiyuFileManageMapper.deleteMmxtMeiyuFileManageByIds(ids); |
|||
} |
|||
|
|||
/** |
|||
* 删除文件管理列信息 |
|||
* |
|||
* @param fileId 文件管理列ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteMmxtMeiyuFileManageById(Integer fileId) |
|||
{ |
|||
return MmxtMeiyuFileManageMapper.deleteMmxtMeiyuFileManageById(fileId); |
|||
} |
|||
|
|||
@Override |
|||
public int quertWeekFileNum(Long categoryId) { |
|||
return MmxtMeiyuFileManageMapper.quertWeekFileNum(categoryId); |
|||
} |
|||
|
|||
@Override |
|||
public Boolean insertSize(Long categoryId, Long size) { |
|||
if (categoryId!=null&&!categoryId.equals("")){ |
|||
MmxtMeiyuFileCategory MmxtMeiyuFileCategory = MmxtMeiyuFileCategoryMapper.selectMmxtMeiyuFileCategoryById(categoryId); |
|||
String[] arr = MmxtMeiyuFileCategory.getAncestors().split(","); |
|||
for (int i = 1; i < arr.length; i++) { |
|||
MmxtMeiyuFileCategory fileCategory = MmxtMeiyuFileCategoryMapper.selectMmxtMeiyuFileCategoryById(Long.valueOf(arr[i])); |
|||
Long sum = Long.valueOf(fileCategory.getCapacityUse())+ size; |
|||
fileCategory.setCapacityUse(sum+""); |
|||
MmxtMeiyuFileCategoryMapper.updateMmxtMeiyuFileCategory(fileCategory); |
|||
} |
|||
Long useSize = Long.valueOf(MmxtMeiyuFileCategory.getCapacityUse())+size; |
|||
MmxtMeiyuFileCategory.setCapacityUse(useSize+""); |
|||
MmxtMeiyuFileCategoryMapper.updateMmxtMeiyuFileCategory(MmxtMeiyuFileCategory); |
|||
return true; |
|||
} |
|||
return false; |
|||
} |
|||
|
|||
@Override |
|||
public int deleteMmxtMeiyuFileManageByObjectName(String objectName) { |
|||
//删除文件并将对应size减少
|
|||
MmxtMeiyuFileManage MmxtMeiyuFileManage = MmxtMeiyuFileManageMapper.selectMmxtMeiyuFileManageByObjectName(objectName); |
|||
reduceSize(Long.valueOf(MmxtMeiyuFileManage.getCategoryId()),Long.valueOf(MmxtMeiyuFileManage.getFileSize())); |
|||
return MmxtMeiyuFileManageMapper.deleteMmxtMeiyuFileManageByObjectName(objectName); |
|||
} |
|||
|
|||
public Boolean reduceSize(Long categoryId, Long size) { |
|||
if (categoryId!=null&&!categoryId.equals("")){ |
|||
MmxtMeiyuFileCategory MmxtMeiyuFileCategory = MmxtMeiyuFileCategoryMapper.selectMmxtMeiyuFileCategoryById(categoryId); |
|||
String[] arr = MmxtMeiyuFileCategory.getAncestors().split(","); |
|||
for (int i = 1; i < arr.length; i++) { |
|||
MmxtMeiyuFileCategory fileCategory = MmxtMeiyuFileCategoryMapper.selectMmxtMeiyuFileCategoryById(Long.valueOf(arr[i])); |
|||
Long sum = Long.valueOf(fileCategory.getCapacityUse())- size; |
|||
fileCategory.setCapacityUse(sum+""); |
|||
MmxtMeiyuFileCategoryMapper.updateMmxtMeiyuFileCategory(fileCategory); |
|||
} |
|||
Long useSize = Long.valueOf(MmxtMeiyuFileCategory.getCapacityUse())-size; |
|||
MmxtMeiyuFileCategory.setCapacityUse(useSize+""); |
|||
MmxtMeiyuFileCategoryMapper.updateMmxtMeiyuFileCategory(MmxtMeiyuFileCategory); |
|||
return true; |
|||
} |
|||
return false; |
|||
} |
|||
} |
|||
@ -0,0 +1,93 @@ |
|||
package com.mmxt.business.service.impl; |
|||
|
|||
import java.util.List; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import com.mmxt.business.mapper.MmxtMeiyuMemberLoginlogsMapper; |
|||
import com.mmxt.business.domain.MmxtMeiyuMemberLoginlogs; |
|||
import com.mmxt.business.service.IMmxtMeiyuMemberLoginlogsService; |
|||
|
|||
/** |
|||
* 会员访问日志记录Service业务层处理 |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
@Service |
|||
public class MmxtMeiyuMemberLoginlogsServiceImpl implements IMmxtMeiyuMemberLoginlogsService |
|||
{ |
|||
@Autowired |
|||
private MmxtMeiyuMemberLoginlogsMapper mmxtMeiyuMemberLoginlogsMapper; |
|||
|
|||
/** |
|||
* 查询会员访问日志记录 |
|||
* |
|||
* @param logId 会员访问日志记录主键 |
|||
* @return 会员访问日志记录 |
|||
*/ |
|||
@Override |
|||
public MmxtMeiyuMemberLoginlogs selectMmxtMeiyuMemberLoginlogsByLogId(Long logId) |
|||
{ |
|||
return mmxtMeiyuMemberLoginlogsMapper.selectMmxtMeiyuMemberLoginlogsByLogId(logId); |
|||
} |
|||
|
|||
/** |
|||
* 查询会员访问日志记录列表 |
|||
* |
|||
* @param mmxtMeiyuMemberLoginlogs 会员访问日志记录 |
|||
* @return 会员访问日志记录 |
|||
*/ |
|||
@Override |
|||
public List<MmxtMeiyuMemberLoginlogs> selectMmxtMeiyuMemberLoginlogsList(MmxtMeiyuMemberLoginlogs mmxtMeiyuMemberLoginlogs) |
|||
{ |
|||
return mmxtMeiyuMemberLoginlogsMapper.selectMmxtMeiyuMemberLoginlogsList(mmxtMeiyuMemberLoginlogs); |
|||
} |
|||
|
|||
/** |
|||
* 新增会员访问日志记录 |
|||
* |
|||
* @param mmxtMeiyuMemberLoginlogs 会员访问日志记录 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertMmxtMeiyuMemberLoginlogs(MmxtMeiyuMemberLoginlogs mmxtMeiyuMemberLoginlogs) |
|||
{ |
|||
return mmxtMeiyuMemberLoginlogsMapper.insertMmxtMeiyuMemberLoginlogs(mmxtMeiyuMemberLoginlogs); |
|||
} |
|||
|
|||
/** |
|||
* 修改会员访问日志记录 |
|||
* |
|||
* @param mmxtMeiyuMemberLoginlogs 会员访问日志记录 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateMmxtMeiyuMemberLoginlogs(MmxtMeiyuMemberLoginlogs mmxtMeiyuMemberLoginlogs) |
|||
{ |
|||
return mmxtMeiyuMemberLoginlogsMapper.updateMmxtMeiyuMemberLoginlogs(mmxtMeiyuMemberLoginlogs); |
|||
} |
|||
|
|||
/** |
|||
* 批量删除会员访问日志记录 |
|||
* |
|||
* @param logIds 需要删除的会员访问日志记录主键 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteMmxtMeiyuMemberLoginlogsByLogIds(Long[] logIds) |
|||
{ |
|||
return mmxtMeiyuMemberLoginlogsMapper.deleteMmxtMeiyuMemberLoginlogsByLogIds(logIds); |
|||
} |
|||
|
|||
/** |
|||
* 删除会员访问日志记录信息 |
|||
* |
|||
* @param logId 会员访问日志记录主键 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteMmxtMeiyuMemberLoginlogsByLogId(Long logId) |
|||
{ |
|||
return mmxtMeiyuMemberLoginlogsMapper.deleteMmxtMeiyuMemberLoginlogsByLogId(logId); |
|||
} |
|||
} |
|||
@ -0,0 +1,93 @@ |
|||
package com.mmxt.business.service.impl; |
|||
|
|||
import java.util.List; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import com.mmxt.business.mapper.MmxtMeiyuMemberOperateLogMapper; |
|||
import com.mmxt.business.domain.MmxtMeiyuMemberOperateLog; |
|||
import com.mmxt.business.service.IMmxtMeiyuMemberOperateLogService; |
|||
|
|||
/** |
|||
* 用户操作日志Service业务层处理 |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
@Service |
|||
public class MmxtMeiyuMemberOperateLogServiceImpl implements IMmxtMeiyuMemberOperateLogService |
|||
{ |
|||
@Autowired |
|||
private MmxtMeiyuMemberOperateLogMapper mmxtMeiyuMemberOperateLogMapper; |
|||
|
|||
/** |
|||
* 查询用户操作日志 |
|||
* |
|||
* @param logId 用户操作日志主键 |
|||
* @return 用户操作日志 |
|||
*/ |
|||
@Override |
|||
public MmxtMeiyuMemberOperateLog selectMmxtMeiyuMemberOperateLogByLogId(Long logId) |
|||
{ |
|||
return mmxtMeiyuMemberOperateLogMapper.selectMmxtMeiyuMemberOperateLogByLogId(logId); |
|||
} |
|||
|
|||
/** |
|||
* 查询用户操作日志列表 |
|||
* |
|||
* @param mmxtMeiyuMemberOperateLog 用户操作日志 |
|||
* @return 用户操作日志 |
|||
*/ |
|||
@Override |
|||
public List<MmxtMeiyuMemberOperateLog> selectMmxtMeiyuMemberOperateLogList(MmxtMeiyuMemberOperateLog mmxtMeiyuMemberOperateLog) |
|||
{ |
|||
return mmxtMeiyuMemberOperateLogMapper.selectMmxtMeiyuMemberOperateLogList(mmxtMeiyuMemberOperateLog); |
|||
} |
|||
|
|||
/** |
|||
* 新增用户操作日志 |
|||
* |
|||
* @param mmxtMeiyuMemberOperateLog 用户操作日志 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertMmxtMeiyuMemberOperateLog(MmxtMeiyuMemberOperateLog mmxtMeiyuMemberOperateLog) |
|||
{ |
|||
return mmxtMeiyuMemberOperateLogMapper.insertMmxtMeiyuMemberOperateLog(mmxtMeiyuMemberOperateLog); |
|||
} |
|||
|
|||
/** |
|||
* 修改用户操作日志 |
|||
* |
|||
* @param mmxtMeiyuMemberOperateLog 用户操作日志 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateMmxtMeiyuMemberOperateLog(MmxtMeiyuMemberOperateLog mmxtMeiyuMemberOperateLog) |
|||
{ |
|||
return mmxtMeiyuMemberOperateLogMapper.updateMmxtMeiyuMemberOperateLog(mmxtMeiyuMemberOperateLog); |
|||
} |
|||
|
|||
/** |
|||
* 批量删除用户操作日志 |
|||
* |
|||
* @param logIds 需要删除的用户操作日志主键 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteMmxtMeiyuMemberOperateLogByLogIds(Long[] logIds) |
|||
{ |
|||
return mmxtMeiyuMemberOperateLogMapper.deleteMmxtMeiyuMemberOperateLogByLogIds(logIds); |
|||
} |
|||
|
|||
/** |
|||
* 删除用户操作日志信息 |
|||
* |
|||
* @param logId 用户操作日志主键 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteMmxtMeiyuMemberOperateLogByLogId(Long logId) |
|||
{ |
|||
return mmxtMeiyuMemberOperateLogMapper.deleteMmxtMeiyuMemberOperateLogByLogId(logId); |
|||
} |
|||
} |
|||
@ -0,0 +1,94 @@ |
|||
package com.mmxt.business.service.impl; |
|||
|
|||
import com.mmxt.business.domain.MmxtMeiyuMemberTeacher; |
|||
import com.mmxt.business.mapper.MmxtMeiyuMemberTeacherMapper; |
|||
import com.mmxt.business.service.IMmxtMeiyuMemberTeacherService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 会员教师认证Service业务层处理 |
|||
* |
|||
* @author mmxt |
|||
* @date 2021-12-09 |
|||
*/ |
|||
@Service |
|||
public class MmxtMeiyuMemberTeacherServiceImpl implements IMmxtMeiyuMemberTeacherService |
|||
{ |
|||
@Autowired |
|||
private MmxtMeiyuMemberTeacherMapper MmxtMeiyuMemberTeacherMapper; |
|||
|
|||
/** |
|||
* 查询会员教师认证 |
|||
* |
|||
* @param memberId 会员教师认证ID |
|||
* @return 会员教师认证 |
|||
*/ |
|||
@Override |
|||
public MmxtMeiyuMemberTeacher selectAdminMemberTeacherById(String memberId) |
|||
{ |
|||
return MmxtMeiyuMemberTeacherMapper.selectAdminMemberTeacherById(memberId); |
|||
} |
|||
|
|||
/** |
|||
* 查询会员教师认证列表 |
|||
* |
|||
* @param MmxtMeiyuMemberTeacher 会员教师认证 |
|||
* @return 会员教师认证 |
|||
*/ |
|||
@Override |
|||
public List<MmxtMeiyuMemberTeacher> selectAdminMemberTeacherList(MmxtMeiyuMemberTeacher MmxtMeiyuMemberTeacher) |
|||
{ |
|||
return MmxtMeiyuMemberTeacherMapper.selectAdminMemberTeacherList(MmxtMeiyuMemberTeacher); |
|||
} |
|||
|
|||
/** |
|||
* 新增会员教师认证 |
|||
* |
|||
* @param MmxtMeiyuMemberTeacher 会员教师认证 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertAdminMemberTeacher(MmxtMeiyuMemberTeacher MmxtMeiyuMemberTeacher) |
|||
{ |
|||
return MmxtMeiyuMemberTeacherMapper.insertAdminMemberTeacher(MmxtMeiyuMemberTeacher); |
|||
} |
|||
|
|||
/** |
|||
* 修改会员教师认证 |
|||
* |
|||
* @param MmxtMeiyuMemberTeacher 会员教师认证 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateAdminMemberTeacher(MmxtMeiyuMemberTeacher MmxtMeiyuMemberTeacher) |
|||
{ |
|||
return MmxtMeiyuMemberTeacherMapper.updateAdminMemberTeacher(MmxtMeiyuMemberTeacher); |
|||
} |
|||
|
|||
/** |
|||
* 删除会员教师认证对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteAdminMemberTeacherByIds(Long[] ids) |
|||
{ |
|||
return MmxtMeiyuMemberTeacherMapper.deleteAdminMemberTeacherByIds(ids); |
|||
} |
|||
|
|||
/** |
|||
* 删除会员教师认证信息 |
|||
* |
|||
* @param memberId 会员教师认证ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteAdminMemberTeacherById(String memberId) |
|||
{ |
|||
return MmxtMeiyuMemberTeacherMapper.deleteAdminMemberTeacherById(memberId); |
|||
} |
|||
} |
|||
@ -0,0 +1,95 @@ |
|||
package com.mmxt.business.service.impl; |
|||
|
|||
import java.util.List; |
|||
import com.mmxt.common.utils.DateUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import com.mmxt.business.mapper.MmxtMeiyuSmsLogMapper; |
|||
import com.mmxt.business.domain.MmxtMeiyuSmsLog; |
|||
import com.mmxt.business.service.IMmxtMeiyuSmsLogService; |
|||
|
|||
/** |
|||
* 短信发送记录Service业务层处理 |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-09 |
|||
*/ |
|||
@Service |
|||
public class MmxtMeiyuSmsLogServiceImpl implements IMmxtMeiyuSmsLogService |
|||
{ |
|||
@Autowired |
|||
private MmxtMeiyuSmsLogMapper mmxtMeiyuSmsLogMapper; |
|||
|
|||
/** |
|||
* 查询短信发送记录 |
|||
* |
|||
* @param id 短信发送记录主键 |
|||
* @return 短信发送记录 |
|||
*/ |
|||
@Override |
|||
public MmxtMeiyuSmsLog selectMmxtMeiyuSmsLogById(Long id) |
|||
{ |
|||
return mmxtMeiyuSmsLogMapper.selectMmxtMeiyuSmsLogById(id); |
|||
} |
|||
|
|||
/** |
|||
* 查询短信发送记录列表 |
|||
* |
|||
* @param mmxtMeiyuSmsLog 短信发送记录 |
|||
* @return 短信发送记录 |
|||
*/ |
|||
@Override |
|||
public List<MmxtMeiyuSmsLog> selectMmxtMeiyuSmsLogList(MmxtMeiyuSmsLog mmxtMeiyuSmsLog) |
|||
{ |
|||
return mmxtMeiyuSmsLogMapper.selectMmxtMeiyuSmsLogList(mmxtMeiyuSmsLog); |
|||
} |
|||
|
|||
/** |
|||
* 新增短信发送记录 |
|||
* |
|||
* @param mmxtMeiyuSmsLog 短信发送记录 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertMmxtMeiyuSmsLog(MmxtMeiyuSmsLog mmxtMeiyuSmsLog) |
|||
{ |
|||
mmxtMeiyuSmsLog.setCreateTime(DateUtils.getNowDate()); |
|||
return mmxtMeiyuSmsLogMapper.insertMmxtMeiyuSmsLog(mmxtMeiyuSmsLog); |
|||
} |
|||
|
|||
/** |
|||
* 修改短信发送记录 |
|||
* |
|||
* @param mmxtMeiyuSmsLog 短信发送记录 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateMmxtMeiyuSmsLog(MmxtMeiyuSmsLog mmxtMeiyuSmsLog) |
|||
{ |
|||
return mmxtMeiyuSmsLogMapper.updateMmxtMeiyuSmsLog(mmxtMeiyuSmsLog); |
|||
} |
|||
|
|||
/** |
|||
* 批量删除短信发送记录 |
|||
* |
|||
* @param ids 需要删除的短信发送记录主键 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteMmxtMeiyuSmsLogByIds(Long[] ids) |
|||
{ |
|||
return mmxtMeiyuSmsLogMapper.deleteMmxtMeiyuSmsLogByIds(ids); |
|||
} |
|||
|
|||
/** |
|||
* 删除短信发送记录信息 |
|||
* |
|||
* @param id 短信发送记录主键 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteMmxtMeiyuSmsLogById(Long id) |
|||
{ |
|||
return mmxtMeiyuSmsLogMapper.deleteMmxtMeiyuSmsLogById(id); |
|||
} |
|||
} |
|||
@ -1,108 +0,0 @@ |
|||
<?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.mmxt.business.mapper.MmxtAdminMemberGroupMapper"> |
|||
|
|||
<resultMap type="com.mmxt.business.domain.MmxtAdminMemberGroup" id="AdminMemberGroupResult"> |
|||
<result property="groupId" column="group_id" /> |
|||
<result property="groupTitle" column="group_title" /> |
|||
<result property="creditshigher" column="creditshigher" /> |
|||
<result property="creditslower" column="creditslower" /> |
|||
<result property="remark" column="remark" /> |
|||
<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="delFlag" column="del_flag" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectAdminMemberGroupVo"> |
|||
select group_id, group_title, creditshigher, creditslower, remark, status, create_by, create_time, update_by, update_time, del_flag from admin_member_group |
|||
</sql> |
|||
|
|||
<select id="selectAdminMemberGroupList" parameterType="com.mmxt.business.domain.MmxtAdminMemberGroup" resultMap="AdminMemberGroupResult"> |
|||
<include refid="selectAdminMemberGroupVo"/> |
|||
<where> |
|||
del_flag = 0 |
|||
<if test="groupId != null "> and group_id = #{groupId}</if> |
|||
<if test="groupTitle != null and groupTitle != ''"> and group_title like concat('%', #{groupTitle}, '%')</if> |
|||
<if test="status != null "> and status = #{status}</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectAdminMemberGroupById" parameterType="Integer" resultMap="AdminMemberGroupResult"> |
|||
<include refid="selectAdminMemberGroupVo"/> |
|||
where group_id = #{groupId} |
|||
</select> |
|||
|
|||
<select id="selectGroupIdGroupByIds" parameterType="String" resultType="String"> |
|||
select group_id from admin_member_group where del_flag = 0 and group_id in |
|||
<foreach item="groupId" collection="array" open="(" separator="," close=")"> |
|||
#{groupId} |
|||
</foreach> |
|||
</select> |
|||
|
|||
<insert id="insertAdminMemberGroup" parameterType="com.mmxt.business.domain.MmxtAdminMemberGroup" useGeneratedKeys="true" keyProperty="groupId"> |
|||
insert into admin_member_group |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="groupTitle != null and groupTitle != ''">group_title,</if> |
|||
<if test="creditshigher != null">creditshigher,</if> |
|||
<if test="creditslower != null">creditslower,</if> |
|||
<if test="remark != null">remark,</if> |
|||
<if test="status != null">status,</if> |
|||
<if test="createBy != null">create_by,</if> |
|||
<if test="createTime != null">create_time,</if> |
|||
<if test="updateBy != null">update_by,</if> |
|||
<if test="updateTime != null">update_time,</if> |
|||
del_flag, |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="groupTitle != null and groupTitle != ''">#{groupTitle},</if> |
|||
<if test="creditshigher != null">#{creditshigher},</if> |
|||
<if test="creditslower != null">#{creditslower},</if> |
|||
<if test="remark != null">#{remark},</if> |
|||
<if test="status != null">#{status},</if> |
|||
<if test="createBy != null">#{createBy},</if> |
|||
<if test="createTime != null">#{createTime},</if> |
|||
<if test="updateBy != null">#{updateBy},</if> |
|||
<if test="updateTime != null">#{updateTime},</if> |
|||
0 |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateAdminMemberGroup" parameterType="com.mmxt.business.domain.MmxtAdminMemberGroup"> |
|||
update admin_member_group |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="groupTitle != null and groupTitle != ''">group_title = #{groupTitle},</if> |
|||
<if test="creditshigher != null">creditshigher = #{creditshigher},</if> |
|||
<if test="creditslower != null">creditslower = #{creditslower},</if> |
|||
<if test="remark != null">remark = #{remark},</if> |
|||
<if test="status != null">status = #{status},</if> |
|||
<if test="updateBy != null">update_by = #{updateBy},</if> |
|||
<if test="updateTime != null">update_time = #{updateTime},</if> |
|||
</trim> |
|||
where group_id = #{groupId} |
|||
</update> |
|||
|
|||
<update id="deleteAdminMemberGroupById" parameterType="Integer"> |
|||
update admin_member_group set del_flag = 1 where group_id = #{groupId} |
|||
</update> |
|||
|
|||
<update id="deleteAdminMemberGroupByIds" parameterType="String"> |
|||
update admin_member_group set del_flag = 1 where group_id in |
|||
<foreach item="groupId" collection="array" open="(" separator="," close=")"> |
|||
#{groupId} |
|||
</foreach> |
|||
</update> |
|||
|
|||
<update id="batchChangeStatus" flushCache="true" parameterType="String"> |
|||
update admin_member_group set status = #{status} |
|||
where group_id in |
|||
<foreach item="id" collection="id" open="(" separator="," close=")"> |
|||
#{id} |
|||
</foreach> |
|||
</update> |
|||
|
|||
</mapper> |
|||
@ -1,103 +0,0 @@ |
|||
<?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.mmxt.business.mapper.MmxtAttachmentMapper"> |
|||
|
|||
<resultMap type="com.mmxt.business.domain.MmxtAttachment" id="AttachmentResult"> |
|||
<result property="attachId" column="attach_id" /> |
|||
<result property="zid" column="zid" /> |
|||
<result property="userId" column="user_id" /> |
|||
<result property="fileType" column="file_type" /> |
|||
<result property="fileName" column="file_name" /> |
|||
<result property="filePath" column="file_path" /> |
|||
<result property="fileUrl" column="file_url" /> |
|||
<result property="size" column="size" /> |
|||
<result property="createBy" column="create_by" /> |
|||
<result property="createTime" column="create_time" /> |
|||
<result property="sort" column="sort" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectAttachmentVo"> |
|||
select attach_id, zid, user_id, file_type, file_name, file_path,file_url, size, create_by, create_time, sort from cms_attachment |
|||
</sql> |
|||
|
|||
<select id="selectAttachmentList" parameterType="com.mmxt.business.domain.MmxtAttachment" resultMap="AttachmentResult"> |
|||
select a.attach_id, a.zid, a.user_id,a.file_type, a.file_name, a.file_path,a.file_url, a.size, a.create_by, a.create_time, a.sort from cms_attachment a |
|||
|
|||
<where> |
|||
<if test="zid != null and zid != ''"> and a.zid = #{zid}</if> |
|||
<if test="userId != null and userId != ''"> and a.user_id = #{userId}</if> |
|||
<if test="fileType != null and fileType != ''"> and a.file_type = #{fileType}</if> |
|||
<if test="fileName != null and fileName != ''"> and a.file_name like concat('%', #{fileName}, '%')</if> |
|||
<if test="filePath != null and filePath != ''"> and a.file_path = #{filePath}</if> |
|||
<if test="size != null "> and a.size = #{size}</if> |
|||
<if test="sort != null "> and a.sort = #{sort}</if> |
|||
</where> |
|||
order by a.sort asc |
|||
</select> |
|||
|
|||
<select id="selectAttachmentById" parameterType="String" resultMap="AttachmentResult"> |
|||
<include refid="selectAttachmentVo"/> |
|||
where attach_id = #{attachId} |
|||
</select> |
|||
|
|||
<insert id="insertAttachment" parameterType="com.mmxt.business.domain.MmxtAttachment" useGeneratedKeys="true" keyProperty="attachId"> |
|||
insert into cms_attachment |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="attachId != null and attachId != ''">attach_id,</if> |
|||
<if test="zid != null and zid != ''">zid,</if> |
|||
<if test="userId != null and userId != ''">user_id,</if> |
|||
<if test="fileType != null and fileType != ''">file_type,</if> |
|||
<if test="fileName != null and fileName != ''">file_name,</if> |
|||
<if test="filePath != null and filePath != ''">file_path,</if> |
|||
<if test="fileUrl != null and fileUrl != ''">file_url,</if> |
|||
<if test="size != null ">size,</if> |
|||
<if test="createBy != null and createBy != ''">create_by,</if> |
|||
<if test="createTime != null ">create_time,</if> |
|||
<if test="sort != null ">sort,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="attachId != null and attachId != ''">#{attachId},</if> |
|||
<if test="zid != null and zid != ''">#{zid},</if> |
|||
<if test="userId != null and userId != ''">#{userId},</if> |
|||
<if test="fileType != null and fileType != ''">#{fileType},</if> |
|||
<if test="fileName != null and fileName != ''">#{fileName},</if> |
|||
<if test="filePath != null and filePath != ''">#{filePath},</if> |
|||
<if test="fileUrl != null and fileUrl != ''">#{fileUrl},</if> |
|||
<if test="size != null ">#{size},</if> |
|||
<if test="createBy != null and createBy != ''">#{createBy},</if> |
|||
<if test="createTime != null ">#{createTime},</if> |
|||
<if test="sort != null ">#{sort},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateAttachment" parameterType="com.mmxt.business.domain.MmxtAttachment"> |
|||
update cms_attachment |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="zid != null and zid != ''">zid = #{zid},</if> |
|||
<if test="userId != null and userId != ''">user_id = #{userId},</if> |
|||
<if test="fileType != null and fileType != ''">file_type = #{fileType},</if> |
|||
<if test="fileName != null and fileName != ''">file_name = #{fileName},</if> |
|||
<if test="filePath != null and filePath != ''">file_path = #{filePath},</if> |
|||
<if test="fileUrl != null and fileUrl != ''">file_url = #{fileUrl},</if> |
|||
<if test="size != null ">size = #{size},</if> |
|||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if> |
|||
<if test="createTime != null ">create_time = #{createTime},</if> |
|||
<if test="sort != null ">sort = #{sort},</if> |
|||
</trim> |
|||
where attach_id = #{attachId} |
|||
</update> |
|||
|
|||
<delete id="deleteAttachmentById" parameterType="String"> |
|||
delete from cms_attachment where attach_id = #{attachId} |
|||
</delete> |
|||
|
|||
<delete id="deleteAttachmentByIds" parameterType="String"> |
|||
delete from cms_attachment where attach_id in |
|||
<foreach item="attachId" collection="array" open="(" separator="," close=")"> |
|||
#{attachId} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
</mapper> |
|||
@ -0,0 +1,96 @@ |
|||
<?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.mmxt.business.mapper.MmxtMeiyuMemberLoginlogsMapper"> |
|||
|
|||
<resultMap type="com.mmxt.business.domain.MmxtMeiyuMemberLoginlogs" id="MmxtMeiyuMemberLoginlogsResult"> |
|||
<result property="logId" column="log_id" /> |
|||
<result property="memberId" column="member_id" /> |
|||
<result property="siteId" column="site_id" /> |
|||
<result property="ipaddr" column="ipaddr" /> |
|||
<result property="loginLocation" column="login_location" /> |
|||
<result property="browser" column="browser" /> |
|||
<result property="os" column="os" /> |
|||
<result property="status" column="status" /> |
|||
<result property="msg" column="msg" /> |
|||
<result property="loginTime" column="login_time" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectMmxtMeiyuMemberLoginlogsVo"> |
|||
select log_id, member_id, site_id, ipaddr, login_location, browser, os, status, msg, login_time from mmxt_meiyu_member_loginlogs |
|||
</sql> |
|||
|
|||
<select id="selectMmxtMeiyuMemberLoginlogsList" parameterType="com.mmxt.business.domain.MmxtMeiyuMemberLoginlogs" resultMap="MmxtMeiyuMemberLoginlogsResult"> |
|||
<include refid="selectMmxtMeiyuMemberLoginlogsVo"/> |
|||
<where> |
|||
<if test="memberId != null and memberId != ''"> and member_id = #{memberId}</if> |
|||
<if test="siteId != null and siteId != ''"> and site_id = #{siteId}</if> |
|||
<if test="ipaddr != null and ipaddr != ''"> and ipaddr = #{ipaddr}</if> |
|||
<if test="loginLocation != null and loginLocation != ''"> and login_location = #{loginLocation}</if> |
|||
<if test="browser != null and browser != ''"> and browser = #{browser}</if> |
|||
<if test="os != null and os != ''"> and os = #{os}</if> |
|||
<if test="status != null and status != ''"> and status = #{status}</if> |
|||
<if test="msg != null and msg != ''"> and msg = #{msg}</if> |
|||
<if test="loginTime != null "> and login_time = #{loginTime}</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectMmxtMeiyuMemberLoginlogsByLogId" parameterType="Long" resultMap="MmxtMeiyuMemberLoginlogsResult"> |
|||
<include refid="selectMmxtMeiyuMemberLoginlogsVo"/> |
|||
where log_id = #{logId} |
|||
</select> |
|||
|
|||
<insert id="insertMmxtMeiyuMemberLoginlogs" parameterType="com.mmxt.business.domain.MmxtMeiyuMemberLoginlogs" useGeneratedKeys="true" keyProperty="logId"> |
|||
insert into mmxt_meiyu_member_loginlogs |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="memberId != null and memberId != ''">member_id,</if> |
|||
<if test="siteId != null and siteId != ''">site_id,</if> |
|||
<if test="ipaddr != null">ipaddr,</if> |
|||
<if test="loginLocation != null">login_location,</if> |
|||
<if test="browser != null">browser,</if> |
|||
<if test="os != null">os,</if> |
|||
<if test="status != null">status,</if> |
|||
<if test="msg != null">msg,</if> |
|||
<if test="loginTime != null">login_time,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="memberId != null and memberId != ''">#{memberId},</if> |
|||
<if test="siteId != null and siteId != ''">#{siteId},</if> |
|||
<if test="ipaddr != null">#{ipaddr},</if> |
|||
<if test="loginLocation != null">#{loginLocation},</if> |
|||
<if test="browser != null">#{browser},</if> |
|||
<if test="os != null">#{os},</if> |
|||
<if test="status != null">#{status},</if> |
|||
<if test="msg != null">#{msg},</if> |
|||
<if test="loginTime != null">#{loginTime},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateMmxtMeiyuMemberLoginlogs" parameterType="com.mmxt.business.domain.MmxtMeiyuMemberLoginlogs"> |
|||
update mmxt_meiyu_member_loginlogs |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="memberId != null and memberId != ''">member_id = #{memberId},</if> |
|||
<if test="siteId != null and siteId != ''">site_id = #{siteId},</if> |
|||
<if test="ipaddr != null">ipaddr = #{ipaddr},</if> |
|||
<if test="loginLocation != null">login_location = #{loginLocation},</if> |
|||
<if test="browser != null">browser = #{browser},</if> |
|||
<if test="os != null">os = #{os},</if> |
|||
<if test="status != null">status = #{status},</if> |
|||
<if test="msg != null">msg = #{msg},</if> |
|||
<if test="loginTime != null">login_time = #{loginTime},</if> |
|||
</trim> |
|||
where log_id = #{logId} |
|||
</update> |
|||
|
|||
<delete id="deleteMmxtMeiyuMemberLoginlogsByLogId" parameterType="Long"> |
|||
delete from mmxt_meiyu_member_loginlogs where log_id = #{logId} |
|||
</delete> |
|||
|
|||
<delete id="deleteMmxtMeiyuMemberLoginlogsByLogIds" parameterType="String"> |
|||
delete from mmxt_meiyu_member_loginlogs where log_id in |
|||
<foreach item="logId" collection="array" open="(" separator="," close=")"> |
|||
#{logId} |
|||
</foreach> |
|||
</delete> |
|||
</mapper> |
|||
@ -0,0 +1,101 @@ |
|||
<?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.mmxt.business.mapper.MmxtMeiyuMemberOperateLogMapper"> |
|||
|
|||
<resultMap type="com.mmxt.business.domain.MmxtMeiyuMemberOperateLog" id="MmxtMeiyuMemberOperateLogResult"> |
|||
<result property="logId" column="log_id" /> |
|||
<result property="memberId" column="member_id" /> |
|||
<result property="operateType" column="operate_type" /> |
|||
<result property="operateName" column="operate_name" /> |
|||
<result property="ipaddr" column="ipaddr" /> |
|||
<result property="operateLocation" column="operate_location" /> |
|||
<result property="browser" column="browser" /> |
|||
<result property="os" column="os" /> |
|||
<result property="operateTime" column="operate_time" /> |
|||
<result property="operateStatus" column="operate_status" /> |
|||
<result property="errorMsg" column="error_msg" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectMmxtMeiyuMemberOperateLogVo"> |
|||
select log_id, member_id, operate_type, operate_name, ipaddr, operate_location, browser, os, operate_time, operate_status, error_msg from mmxt_meiyu_member_operate_log |
|||
</sql> |
|||
|
|||
<select id="selectMmxtMeiyuMemberOperateLogList" parameterType="com.mmxt.business.domain.MmxtMeiyuMemberOperateLog" resultMap="MmxtMeiyuMemberOperateLogResult"> |
|||
<include refid="selectMmxtMeiyuMemberOperateLogVo"/> |
|||
<where> |
|||
<if test="memberId != null "> and member_id = #{memberId}</if> |
|||
<if test="operateType != null and operateType != ''"> and operate_type = #{operateType}</if> |
|||
<if test="operateName != null and operateName != ''"> and operate_name like concat('%', #{operateName}, '%')</if> |
|||
<if test="ipaddr != null and ipaddr != ''"> and ipaddr = #{ipaddr}</if> |
|||
<if test="operateLocation != null and operateLocation != ''"> and operate_location = #{operateLocation}</if> |
|||
<if test="browser != null and browser != ''"> and browser = #{browser}</if> |
|||
<if test="os != null and os != ''"> and os = #{os}</if> |
|||
<if test="operateTime != null "> and operate_time = #{operateTime}</if> |
|||
<if test="operateStatus != null and operateStatus != ''"> and operate_status = #{operateStatus}</if> |
|||
<if test="errorMsg != null and errorMsg != ''"> and error_msg = #{errorMsg}</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectMmxtMeiyuMemberOperateLogByLogId" parameterType="Long" resultMap="MmxtMeiyuMemberOperateLogResult"> |
|||
<include refid="selectMmxtMeiyuMemberOperateLogVo"/> |
|||
where log_id = #{logId} |
|||
</select> |
|||
|
|||
<insert id="insertMmxtMeiyuMemberOperateLog" parameterType="com.mmxt.business.domain.MmxtMeiyuMemberOperateLog" useGeneratedKeys="true" keyProperty="logId"> |
|||
insert into mmxt_meiyu_member_operate_log |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="memberId != null">member_id,</if> |
|||
<if test="operateType != null">operate_type,</if> |
|||
<if test="operateName != null">operate_name,</if> |
|||
<if test="ipaddr != null">ipaddr,</if> |
|||
<if test="operateLocation != null">operate_location,</if> |
|||
<if test="browser != null">browser,</if> |
|||
<if test="os != null">os,</if> |
|||
<if test="operateTime != null">operate_time,</if> |
|||
<if test="operateStatus != null">operate_status,</if> |
|||
<if test="errorMsg != null">error_msg,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="memberId != null">#{memberId},</if> |
|||
<if test="operateType != null">#{operateType},</if> |
|||
<if test="operateName != null">#{operateName},</if> |
|||
<if test="ipaddr != null">#{ipaddr},</if> |
|||
<if test="operateLocation != null">#{operateLocation},</if> |
|||
<if test="browser != null">#{browser},</if> |
|||
<if test="os != null">#{os},</if> |
|||
<if test="operateTime != null">#{operateTime},</if> |
|||
<if test="operateStatus != null">#{operateStatus},</if> |
|||
<if test="errorMsg != null">#{errorMsg},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateMmxtMeiyuMemberOperateLog" parameterType="com.mmxt.business.domain.MmxtMeiyuMemberOperateLog"> |
|||
update mmxt_meiyu_member_operate_log |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="memberId != null">member_id = #{memberId},</if> |
|||
<if test="operateType != null">operate_type = #{operateType},</if> |
|||
<if test="operateName != null">operate_name = #{operateName},</if> |
|||
<if test="ipaddr != null">ipaddr = #{ipaddr},</if> |
|||
<if test="operateLocation != null">operate_location = #{operateLocation},</if> |
|||
<if test="browser != null">browser = #{browser},</if> |
|||
<if test="os != null">os = #{os},</if> |
|||
<if test="operateTime != null">operate_time = #{operateTime},</if> |
|||
<if test="operateStatus != null">operate_status = #{operateStatus},</if> |
|||
<if test="errorMsg != null">error_msg = #{errorMsg},</if> |
|||
</trim> |
|||
where log_id = #{logId} |
|||
</update> |
|||
|
|||
<delete id="deleteMmxtMeiyuMemberOperateLogByLogId" parameterType="Long"> |
|||
delete from mmxt_meiyu_member_operate_log where log_id = #{logId} |
|||
</delete> |
|||
|
|||
<delete id="deleteMmxtMeiyuMemberOperateLogByLogIds" parameterType="String"> |
|||
delete from mmxt_meiyu_member_operate_log where log_id in |
|||
<foreach item="logId" collection="array" open="(" separator="," close=")"> |
|||
#{logId} |
|||
</foreach> |
|||
</delete> |
|||
</mapper> |
|||
@ -0,0 +1,118 @@ |
|||
<?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.mmxt.business.mapper.MmxtMeiyuSmsLogMapper"> |
|||
|
|||
<resultMap type="com.mmxt.business.domain.MmxtMeiyuSmsLog" id="MmxtMeiyuSmsLogResult"> |
|||
<result property="id" column="id" /> |
|||
<result property="sendUser" column="send_user" /> |
|||
<result property="carrieroperator" column="carrieroperator" /> |
|||
<result property="phone" column="phone" /> |
|||
<result property="content" column="content" /> |
|||
<result property="returncode" column="returncode" /> |
|||
<result property="sendStatus" column="send_status" /> |
|||
<result property="sendTime" column="send_time" /> |
|||
<result property="sendType" column="send_type" /> |
|||
<result property="sendBizid" column="send_bizId" /> |
|||
<result property="sendIp" column="send_ip" /> |
|||
<result property="siteFlag" column="site_flag" /> |
|||
<result property="createTime" column="create_time" /> |
|||
<result property="createBy" column="create_by" /> |
|||
<result property="delFlag" column="del_flag" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectMmxtMeiyuSmsLogVo"> |
|||
select id, send_user, carrieroperator, phone, content, returncode, send_status, send_time, send_type, send_bizId, send_ip, site_flag, create_time, create_by, del_flag from mmxt_meiyu_sms_log |
|||
</sql> |
|||
|
|||
<select id="selectMmxtMeiyuSmsLogList" parameterType="com.mmxt.business.domain.MmxtMeiyuSmsLog" resultMap="MmxtMeiyuSmsLogResult"> |
|||
<include refid="selectMmxtMeiyuSmsLogVo"/> |
|||
<where> |
|||
<if test="sendUser != null and sendUser != ''"> and send_user = #{sendUser}</if> |
|||
<if test="carrieroperator != null and carrieroperator != ''"> and carrieroperator = #{carrieroperator}</if> |
|||
<if test="phone != null and phone != ''"> and phone = #{phone}</if> |
|||
<if test="content != null and content != ''"> and content = #{content}</if> |
|||
<if test="returncode != null and returncode != ''"> and returncode = #{returncode}</if> |
|||
<if test="sendStatus != null and sendStatus != ''"> and send_status = #{sendStatus}</if> |
|||
<if test="sendTime != null "> and send_time = #{sendTime}</if> |
|||
<if test="sendType != null and sendType != ''"> and send_type = #{sendType}</if> |
|||
<if test="sendBizid != null and sendBizid != ''"> and send_bizId = #{sendBizid}</if> |
|||
<if test="sendIp != null and sendIp != ''"> and send_ip = #{sendIp}</if> |
|||
<if test="siteFlag != null "> and site_flag = #{siteFlag}</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectMmxtMeiyuSmsLogById" parameterType="Long" resultMap="MmxtMeiyuSmsLogResult"> |
|||
<include refid="selectMmxtMeiyuSmsLogVo"/> |
|||
where id = #{id} |
|||
</select> |
|||
|
|||
<insert id="insertMmxtMeiyuSmsLog" parameterType="com.mmxt.business.domain.MmxtMeiyuSmsLog" useGeneratedKeys="true" keyProperty="id"> |
|||
insert into mmxt_meiyu_sms_log |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="sendUser != null">send_user,</if> |
|||
<if test="carrieroperator != null">carrieroperator,</if> |
|||
<if test="phone != null">phone,</if> |
|||
<if test="content != null">content,</if> |
|||
<if test="returncode != null">returncode,</if> |
|||
<if test="sendStatus != null">send_status,</if> |
|||
<if test="sendTime != null">send_time,</if> |
|||
<if test="sendType != null">send_type,</if> |
|||
<if test="sendBizid != null">send_bizId,</if> |
|||
<if test="sendIp != null">send_ip,</if> |
|||
<if test="siteFlag != null">site_flag,</if> |
|||
<if test="createTime != null">create_time,</if> |
|||
<if test="createBy != null">create_by,</if> |
|||
<if test="delFlag != null">del_flag,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="sendUser != null">#{sendUser},</if> |
|||
<if test="carrieroperator != null">#{carrieroperator},</if> |
|||
<if test="phone != null">#{phone},</if> |
|||
<if test="content != null">#{content},</if> |
|||
<if test="returncode != null">#{returncode},</if> |
|||
<if test="sendStatus != null">#{sendStatus},</if> |
|||
<if test="sendTime != null">#{sendTime},</if> |
|||
<if test="sendType != null">#{sendType},</if> |
|||
<if test="sendBizid != null">#{sendBizid},</if> |
|||
<if test="sendIp != null">#{sendIp},</if> |
|||
<if test="siteFlag != null">#{siteFlag},</if> |
|||
<if test="createTime != null">#{createTime},</if> |
|||
<if test="createBy != null">#{createBy},</if> |
|||
<if test="delFlag != null">#{delFlag},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateMmxtMeiyuSmsLog" parameterType="com.mmxt.business.domain.MmxtMeiyuSmsLog"> |
|||
update mmxt_meiyu_sms_log |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="sendUser != null">send_user = #{sendUser},</if> |
|||
<if test="carrieroperator != null">carrieroperator = #{carrieroperator},</if> |
|||
<if test="phone != null">phone = #{phone},</if> |
|||
<if test="content != null">content = #{content},</if> |
|||
<if test="returncode != null">returncode = #{returncode},</if> |
|||
<if test="sendStatus != null">send_status = #{sendStatus},</if> |
|||
<if test="sendTime != null">send_time = #{sendTime},</if> |
|||
<if test="sendType != null">send_type = #{sendType},</if> |
|||
<if test="sendBizid != null">send_bizId = #{sendBizid},</if> |
|||
<if test="sendIp != null">send_ip = #{sendIp},</if> |
|||
<if test="siteFlag != null">site_flag = #{siteFlag},</if> |
|||
<if test="createTime != null">create_time = #{createTime},</if> |
|||
<if test="createBy != null">create_by = #{createBy},</if> |
|||
<if test="delFlag != null">del_flag = #{delFlag},</if> |
|||
</trim> |
|||
where id = #{id} |
|||
</update> |
|||
|
|||
<delete id="deleteMmxtMeiyuSmsLogById" parameterType="Long"> |
|||
delete from mmxt_meiyu_sms_log where id = #{id} |
|||
</delete> |
|||
|
|||
<delete id="deleteMmxtMeiyuSmsLogByIds" parameterType="String"> |
|||
delete from mmxt_meiyu_sms_log where id in |
|||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|||
#{id} |
|||
</foreach> |
|||
</delete> |
|||
</mapper> |
|||
Loading…
Reference in new issue