PointUserSignLogServiceImpl.java 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. package com.ylx.point.service.impl;
  2. import java.util.List;
  3. import com.ylx.common.utils.DateUtils;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.stereotype.Service;
  6. import com.ylx.point.mapper.PointUserSignLogMapper;
  7. import com.ylx.point.domain.PointUserSignLog;
  8. import com.ylx.point.service.IPointUserSignLogService;
  9. /**
  10. * 用户签到记录Service业务层处理
  11. *
  12. * @author wzj
  13. * @date 2026-03-25
  14. */
  15. @Service
  16. public class PointUserSignLogServiceImpl implements IPointUserSignLogService
  17. {
  18. @Autowired
  19. private PointUserSignLogMapper pointUserSignLogMapper;
  20. /**
  21. * 查询用户签到记录
  22. *
  23. * @param id 用户签到记录主键
  24. * @return 用户签到记录
  25. */
  26. @Override
  27. public PointUserSignLog selectPointUserSignLogById(String id)
  28. {
  29. return pointUserSignLogMapper.selectPointUserSignLogById(id);
  30. }
  31. /**
  32. * 查询用户签到记录列表
  33. *
  34. * @param pointUserSignLog 用户签到记录
  35. * @return 用户签到记录
  36. */
  37. @Override
  38. public List<PointUserSignLog> selectPointUserSignLogList(PointUserSignLog pointUserSignLog)
  39. {
  40. return pointUserSignLogMapper.selectPointUserSignLogList(pointUserSignLog);
  41. }
  42. /**
  43. * 新增用户签到记录
  44. *
  45. * @param pointUserSignLog 用户签到记录
  46. * @return 结果
  47. */
  48. @Override
  49. public int insertPointUserSignLog(PointUserSignLog pointUserSignLog)
  50. {
  51. pointUserSignLog.setCreateTime(DateUtils.getNowDate());
  52. return pointUserSignLogMapper.insertPointUserSignLog(pointUserSignLog);
  53. }
  54. /**
  55. * 修改用户签到记录
  56. *
  57. * @param pointUserSignLog 用户签到记录
  58. * @return 结果
  59. */
  60. @Override
  61. public int updatePointUserSignLog(PointUserSignLog pointUserSignLog)
  62. {
  63. return pointUserSignLogMapper.updatePointUserSignLog(pointUserSignLog);
  64. }
  65. /**
  66. * 批量删除用户签到记录
  67. *
  68. * @param ids 需要删除的用户签到记录主键
  69. * @return 结果
  70. */
  71. @Override
  72. public int deletePointUserSignLogByIds(String[] ids)
  73. {
  74. return pointUserSignLogMapper.deletePointUserSignLogByIds(ids);
  75. }
  76. /**
  77. * 删除用户签到记录信息
  78. *
  79. * @param id 用户签到记录主键
  80. * @return 结果
  81. */
  82. @Override
  83. public int deletePointUserSignLogById(String id)
  84. {
  85. return pointUserSignLogMapper.deletePointUserSignLogById(id);
  86. }
  87. }