提交 541d7cf8 authored 作者: douxy's avatar douxy

增加用户操作日志

上级 432db443
package com.wangxiaolu.promotion.controller.activity.manage.tem; package com.wangxiaolu.promotion.controller.activity.manage.tem;
import com.wangxiaolu.promotion.annotation.Log;
import com.wangxiaolu.promotion.enums.log.BusinessType;
import com.wangxiaolu.promotion.pojo.PageInfo; import com.wangxiaolu.promotion.pojo.PageInfo;
import com.wangxiaolu.promotion.result.basedata.R; import com.wangxiaolu.promotion.result.basedata.R;
import com.wangxiaolu.promotion.service.activity.manage.EmployeeQueryTemActivityService; import com.wangxiaolu.promotion.service.activity.manage.EmployeeQueryTemActivityService;
...@@ -26,6 +28,7 @@ public class EmployeeQueryTemActivityController { ...@@ -26,6 +28,7 @@ public class EmployeeQueryTemActivityController {
* @param loginQcId 员工 * @param loginQcId 员工
* @return 活动数据 * @return 活动数据
*/ */
@Log(title = "CP任务",businessType = BusinessType.QUERY)
@PostMapping("/page") @PostMapping("/page")
public R findActivitys(String loginQcId, @RequestBody PageInfo pageInfo) { public R findActivitys(String loginQcId, @RequestBody PageInfo pageInfo) {
employeeQueryTemActivityService.getEmployeeApproveActivityPage(loginQcId, pageInfo); employeeQueryTemActivityService.getEmployeeApproveActivityPage(loginQcId, pageInfo);
......
package com.wangxiaolu.promotion.controller.activityplanv2; package com.wangxiaolu.promotion.controller.activityplanv2;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import com.wangxiaolu.promotion.annotation.Log;
import com.wangxiaolu.promotion.domain.activity.wrapperQo.TemporaryActivityWrapper; import com.wangxiaolu.promotion.domain.activity.wrapperQo.TemporaryActivityWrapper;
import com.wangxiaolu.promotion.domain.activity.wrapperQo.TemporaryClockWrapper; import com.wangxiaolu.promotion.domain.activity.wrapperQo.TemporaryClockWrapper;
import com.wangxiaolu.promotion.enums.log.BusinessType;
import com.wangxiaolu.promotion.pojo.PageInfo; import com.wangxiaolu.promotion.pojo.PageInfo;
import com.wangxiaolu.promotion.pojo.activity.examine.dto.ActivityExamineDto; import com.wangxiaolu.promotion.pojo.activity.examine.dto.ActivityExamineDto;
import com.wangxiaolu.promotion.pojo.activity.inspectionInfo.dto.InspectionInfoDto; import com.wangxiaolu.promotion.pojo.activity.inspectionInfo.dto.InspectionInfoDto;
...@@ -40,6 +42,7 @@ public class PromPlanQueryController { ...@@ -40,6 +42,7 @@ public class PromPlanQueryController {
@Autowired @Autowired
private ExaPlanQueryService exaPlanQueryService; private ExaPlanQueryService exaPlanQueryService;
@Log(title = "CP计划",businessType = BusinessType.QUERY)
@PostMapping("/page") @PostMapping("/page")
public R queryPage(@RequestBody PageInfo pageInfo){ public R queryPage(@RequestBody PageInfo pageInfo){
promPlanQueryService.queryPage(pageInfo); promPlanQueryService.queryPage(pageInfo);
...@@ -49,6 +52,7 @@ public class PromPlanQueryController { ...@@ -49,6 +52,7 @@ public class PromPlanQueryController {
/** /**
* 根据计划ID查询任务、打卡信息 * 根据计划ID查询任务、打卡信息
*/ */
@Log(title = "CP计划",businessType = BusinessType.QUERY)
@GetMapping("/{id}") @GetMapping("/{id}")
public R queryPlanById(@PathParam("id") @PathVariable Long id){ public R queryPlanById(@PathParam("id") @PathVariable Long id){
// 查询计划 // 查询计划
......
package com.wangxiaolu.promotion.controller.user.tem; package com.wangxiaolu.promotion.controller.user.tem;
import com.wangxiaolu.promotion.annotation.Log;
import com.wangxiaolu.promotion.common.redis.service.RedisCache; import com.wangxiaolu.promotion.common.redis.service.RedisCache;
import com.wangxiaolu.promotion.common.util.DataUtils; import com.wangxiaolu.promotion.common.util.DataUtils;
import com.wangxiaolu.promotion.common.util.EnvUtil; import com.wangxiaolu.promotion.common.util.EnvUtil;
import com.wangxiaolu.promotion.domain.user.mapper.entity.WxTemporaryInfoDelayDO; import com.wangxiaolu.promotion.domain.user.mapper.entity.WxTemporaryInfoDelayDO;
import com.wangxiaolu.promotion.enums.log.BusinessType;
import com.wangxiaolu.promotion.exception.ParamException; import com.wangxiaolu.promotion.exception.ParamException;
import com.wangxiaolu.promotion.pojo.activity.temporary.dto.WxTemporaryInfoDelayDtO; import com.wangxiaolu.promotion.pojo.activity.temporary.dto.WxTemporaryInfoDelayDtO;
import com.wangxiaolu.promotion.pojo.user.dto.WxTemporaryInfoDto; import com.wangxiaolu.promotion.pojo.user.dto.WxTemporaryInfoDto;
...@@ -75,6 +77,7 @@ public class TemporaryInfoCoreController { ...@@ -75,6 +77,7 @@ public class TemporaryInfoCoreController {
return R.success(weChatUserCoreService.saveWxUserInfoTemporary(temporaryDto)); return R.success(weChatUserCoreService.saveWxUserInfoTemporary(temporaryDto));
} }
@Log(title = "CP促销员",businessType = BusinessType.UPDATE)
@PutMapping("/temporary/changeStoreInfo") @PutMapping("/temporary/changeStoreInfo")
public R changeUserInfo(@RequestBody WxTemporaryEnrollVo wxTemporaryEnrollVo) { public R changeUserInfo(@RequestBody WxTemporaryEnrollVo wxTemporaryEnrollVo) {
if (wxTemporaryEnrollVo.getOpenId() == null) { if (wxTemporaryEnrollVo.getOpenId() == null) {
......
package com.wangxiaolu.promotion.controller.user.tem; package com.wangxiaolu.promotion.controller.user.tem;
import com.wangxiaolu.promotion.annotation.Log;
import com.wangxiaolu.promotion.common.redis.service.RedisCache; import com.wangxiaolu.promotion.common.redis.service.RedisCache;
import com.wangxiaolu.promotion.common.util.DataUtils; import com.wangxiaolu.promotion.common.util.DataUtils;
import com.wangxiaolu.promotion.enums.log.BusinessType;
import com.wangxiaolu.promotion.exception.ParamException; import com.wangxiaolu.promotion.exception.ParamException;
import com.wangxiaolu.promotion.pojo.PageInfo; import com.wangxiaolu.promotion.pojo.PageInfo;
import com.wangxiaolu.promotion.pojo.user.vo.LoginVo; import com.wangxiaolu.promotion.pojo.user.vo.LoginVo;
...@@ -93,6 +95,7 @@ public class TemporaryInfoQueryController { ...@@ -93,6 +95,7 @@ public class TemporaryInfoQueryController {
* 促销员信息 - 分页查询 * 促销员信息 - 分页查询
* @param * @param
*/ */
@Log(title = "CP促销员",businessType = BusinessType.QUERY)
@PostMapping("/temporary/page") @PostMapping("/temporary/page")
public R findTemporaryInfo(@RequestBody PageInfo pageInfo) { public R findTemporaryInfo(@RequestBody PageInfo pageInfo) {
weChatUserQueryService.queryPage(pageInfo); weChatUserQueryService.queryPage(pageInfo);
......
...@@ -56,4 +56,8 @@ public enum BusinessType ...@@ -56,4 +56,8 @@ public enum BusinessType
* 清空数据 * 清空数据
*/ */
CLEAN, CLEAN,
/**
* 查询
*/
QUERY,
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论