From 0135fa289418c5fd231fa4e7c60ee7b8f06f17a7 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期二, 06 五月 2025 19:29:11 +0800 Subject: [PATCH] Merge branch 'dev-2.0.1' of http://120.76.84.145:10101/gitblit/r/java/zhihuishenqu into dev-2.0.1 --- springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/api/SystemPostController.java | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/api/SystemPostController.java b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/api/SystemPostController.java index 2ca0c24..aca3f4b 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/api/SystemPostController.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/api/SystemPostController.java @@ -3,6 +3,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.panzhihua.common.interfaces.OperLog; import com.panzhihua.common.model.vos.R; +import com.panzhihua.sangeshenbian.annotation.SysLog; import com.panzhihua.sangeshenbian.model.entity.SystemPost; import com.panzhihua.sangeshenbian.service.ISystemPostService; import io.swagger.annotations.Api; @@ -10,6 +11,7 @@ import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; +import java.time.LocalDateTime; /** * @author zhibing.pu @@ -26,8 +28,9 @@ @PostMapping("/add") @ApiOperation(value = "添加职位", tags = {"三个身边后台-职位管理"}) - @OperLog(operModul = "三个身边后台",operType = 1,businessType = "添加职位") + @SysLog(operatorCategory = "添加职位",operId = 2) public R add(@RequestBody SystemPost systemPost) { + systemPost.setCreateTime(LocalDateTime.now()); systemPostService.save(systemPost); return R.ok(); } @@ -35,7 +38,7 @@ @PostMapping("/edit") @ApiOperation(value = "编辑职位", tags = {"三个身边后台-职位管理"}) - @OperLog(operModul = "三个身边后台",operType = 2,businessType = "编辑职位") + @SysLog(operatorCategory = "编辑职位",operId = 2) public R edit(@RequestBody SystemPost systemPost) { systemPostService.updateById(systemPost); return R.ok(); @@ -43,10 +46,11 @@ @DeleteMapping("/delete/{id}") @ApiOperation(value = "删除职位", tags = {"三个身边后台-职位管理"}) - @OperLog(operModul = "三个身边后台",operType = 3,businessType = "删除职位") + @SysLog(operatorCategory = "删除职位",operId = 2) public R delete(@PathVariable("id") Integer id) { + String name = systemPostService.getById(id).getName(); systemPostService.removeById(id); - return R.ok(); + return R.ok(name); } -- Gitblit v1.7.1