springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/shop/ShopOperLogVO.java
@@ -23,9 +23,12 @@ @ApiModelProperty("模块标题") private String title; @ApiModelProperty("业务类型(0其它 1新增 2修改 3删除)") @ApiModelProperty("业务类型") private Integer businessType; @ApiModelProperty("业务类型名称") private String businessName; @ApiModelProperty("方法名称") private String method; springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComShopOperLogServiceImpl.java
@@ -55,6 +55,25 @@ */ shopOperLogVO.setJsonResult("****"); shopOperLogVO.setOperParam("****"); String businessTypeName = ""; switch (comShopOperLogDO.getBusinessType()){ case 1: businessTypeName = "登录";break; case 2: businessTypeName = "修改密码";break; case 3: businessTypeName = "添加商品";break; case 4: businessTypeName = "编辑商品";break; case 5: businessTypeName = "下架商品";break; case 6: businessTypeName = "上架商品";break; case 7: businessTypeName = "删除商品";break; case 8: businessTypeName = "取消订单";break; case 9: businessTypeName = "发货";break; case 10: businessTypeName = "配送";break; case 11:businessTypeName = "查看订单详情";break; case 12:businessTypeName = "导出订单";break; case 13:businessTypeName = "导出资金流水";break; default: break; } shopOperLogVO.setBusinessName(businessTypeName); return shopOperLogVO; }); return R.ok(comShopOperLogVOIPage); springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/java/com/panzhihua/shop_backstage/api/LogApi.java
@@ -4,6 +4,7 @@ import com.panzhihua.common.model.dtos.PageDTO; import com.panzhihua.common.model.vos.LoginUserInfoVO; import com.panzhihua.common.model.vos.R; import com.panzhihua.common.model.vos.shop.ShopOperLogVO; import com.panzhihua.common.service.community.CommunityService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -32,7 +33,7 @@ @Resource private CommunityService communityService; @ApiOperation(value = "登陆用户操作日志") @ApiOperation(value = "登陆用户操作日志", response = ShopOperLogVO.class) @GetMapping("/page") public R page(@RequestParam("pageNum") Long pageNum, @RequestParam("pageSize") Long pageSize){ PageDTO pageDTO = new PageDTO();