Commit e49e6be0 by licy

日志注释

1 parent 7c7068e6
...@@ -11,6 +11,8 @@ import cn.com.glsx.merchants.remote.MerchantDictDataRemote; ...@@ -11,6 +11,8 @@ import cn.com.glsx.merchants.remote.MerchantDictDataRemote;
import cn.com.glsx.merchants.request.dictdata.*; import cn.com.glsx.merchants.request.dictdata.*;
import cn.com.glsx.merchants.response.DictDataResponse; import cn.com.glsx.merchants.response.DictDataResponse;
import cn.com.glsx.merchants.util.Pagination; import cn.com.glsx.merchants.util.Pagination;
import com.glsx.plat.common.annotation.SysLog;
import com.glsx.plat.common.enums.OperateType;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -33,6 +35,7 @@ public class MerchantDictDataService { ...@@ -33,6 +35,7 @@ public class MerchantDictDataService {
@Autowired @Autowired
private MerchantUserService merchantUserService; private MerchantUserService merchantUserService;
@SysLog(value = "保存字典数据", action = OperateType.ADD, module = "字典数据模块")
public void saveDictData(DictDataSaveRequest dictDataSaveRequest) { public void saveDictData(DictDataSaveRequest dictDataSaveRequest) {
RpcResponse<Boolean> booleanRpcResponse = merchantDictDataRemote.saveMerchantDictDataRemote(ConvertRequest.convertRequest(dictDataSaveRequest, new MerchantDictDataRequest())); RpcResponse<Boolean> booleanRpcResponse = merchantDictDataRemote.saveMerchantDictDataRemote(ConvertRequest.convertRequest(dictDataSaveRequest, new MerchantDictDataRequest()));
if (booleanRpcResponse.isFailed()) { if (booleanRpcResponse.isFailed()) {
...@@ -40,6 +43,7 @@ public class MerchantDictDataService { ...@@ -40,6 +43,7 @@ public class MerchantDictDataService {
} }
} }
@SysLog(value = "更新字典数据", action = OperateType.EDIT, module = "字典数据模块")
public void updateDictData(DictDataUpdateRequest DictDataUpdateRequest) { public void updateDictData(DictDataUpdateRequest DictDataUpdateRequest) {
RpcResponse<Boolean> booleanRpcResponse = merchantDictDataRemote.updateMerchantDictDataRemote(ConvertRequest.convertRequest(DictDataUpdateRequest, new MerchantDictDataRequest())); RpcResponse<Boolean> booleanRpcResponse = merchantDictDataRemote.updateMerchantDictDataRemote(ConvertRequest.convertRequest(DictDataUpdateRequest, new MerchantDictDataRequest()));
if (booleanRpcResponse.isFailed()) { if (booleanRpcResponse.isFailed()) {
...@@ -55,6 +59,7 @@ public class MerchantDictDataService { ...@@ -55,6 +59,7 @@ public class MerchantDictDataService {
throw new RpcServiceException(merProductByPageRemote.getException().getErrId(), merProductByPageRemote.getMessage()); throw new RpcServiceException(merProductByPageRemote.getException().getErrId(), merProductByPageRemote.getMessage());
} }
@SysLog(value = "删除字典数据", action = OperateType.DELETE, module = "字典数据模块")
public void deleteDictData(DictDataDeleteRequest DictDataDeleteRequest) { public void deleteDictData(DictDataDeleteRequest DictDataDeleteRequest) {
RpcResponse<Boolean> booleanRpcResponse = merchantDictDataRemote.deleteMerchantDictDataRemote(ConvertRequest.convertRequest(DictDataDeleteRequest, new MerchantDictDataRequest())); RpcResponse<Boolean> booleanRpcResponse = merchantDictDataRemote.deleteMerchantDictDataRemote(ConvertRequest.convertRequest(DictDataDeleteRequest, new MerchantDictDataRequest()));
if (booleanRpcResponse.isFailed()) { if (booleanRpcResponse.isFailed()) {
......
...@@ -45,6 +45,7 @@ public class MerchantDictTypeService { ...@@ -45,6 +45,7 @@ public class MerchantDictTypeService {
} }
} }
@SysLog(value = "更新字典类型", action = OperateType.EDIT, module = "字典类型管理")
public void updateDictType(DictTypeUpdateRequest dictTypeUpdateRequest) { public void updateDictType(DictTypeUpdateRequest dictTypeUpdateRequest) {
RpcResponse<Boolean> booleanRpcResponse = merchantDictTypeRemote.updateMerchantDictTypeRemote(ConvertRequest.convertRequest(dictTypeUpdateRequest, new MerchantDictTypeRequest())); RpcResponse<Boolean> booleanRpcResponse = merchantDictTypeRemote.updateMerchantDictTypeRemote(ConvertRequest.convertRequest(dictTypeUpdateRequest, new MerchantDictTypeRequest()));
if (booleanRpcResponse.isFailed()) { if (booleanRpcResponse.isFailed()) {
...@@ -60,6 +61,7 @@ public class MerchantDictTypeService { ...@@ -60,6 +61,7 @@ public class MerchantDictTypeService {
throw new RpcServiceException(merProductByPageRemote.getException().getErrId(), merProductByPageRemote.getMessage()); throw new RpcServiceException(merProductByPageRemote.getException().getErrId(), merProductByPageRemote.getMessage());
} }
@SysLog(value = "更新字典类型", action = OperateType.DELETE, module = "字典类型管理")
public void deleteDictType(DictTypeDeleteRequest dictTypeDeleteRequest) { public void deleteDictType(DictTypeDeleteRequest dictTypeDeleteRequest) {
RpcResponse<Boolean> booleanRpcResponse = merchantDictTypeRemote.deleteMerchantDictTypeRemote(ConvertRequest.convertRequest(dictTypeDeleteRequest, new MerchantDictTypeRequest())); RpcResponse<Boolean> booleanRpcResponse = merchantDictTypeRemote.deleteMerchantDictTypeRemote(ConvertRequest.convertRequest(dictTypeDeleteRequest, new MerchantDictTypeRequest()));
if (booleanRpcResponse.isFailed()) { if (booleanRpcResponse.isFailed()) {
......
...@@ -26,7 +26,7 @@ public class MerchantFileService { ...@@ -26,7 +26,7 @@ public class MerchantFileService {
@Autowired @Autowired
private MerchantFileRemote merchantFileRemote; private MerchantFileRemote merchantFileRemote;
public List<FileResponse> findMerchantFile(FileSearchRequest fileSearchRequest){ public List<FileResponse> findMerchantFile(FileSearchRequest fileSearchRequest){
//入参集合转化 //入参集合转化
RpcResponse<List<MerchantFileResponse>> merchantFileRemoteRpc = RpcResponse<List<MerchantFileResponse>> merchantFileRemoteRpc =
......
...@@ -16,6 +16,8 @@ import cn.com.glsx.merchants.request.function.FunctionSaveRequest; ...@@ -16,6 +16,8 @@ import cn.com.glsx.merchants.request.function.FunctionSaveRequest;
import cn.com.glsx.merchants.request.function.FunctionUpdateRequest; import cn.com.glsx.merchants.request.function.FunctionUpdateRequest;
import cn.com.glsx.merchants.response.FunctionResponse; import cn.com.glsx.merchants.response.FunctionResponse;
import cn.com.glsx.merchants.util.Pagination; import cn.com.glsx.merchants.util.Pagination;
import com.glsx.plat.common.annotation.SysLog;
import com.glsx.plat.common.enums.OperateType;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -33,6 +35,7 @@ public class MerchantFunctionService { ...@@ -33,6 +35,7 @@ public class MerchantFunctionService {
@Autowired @Autowired
private MerchantProductFunctionRemote merchantProductFunctionRemote; private MerchantProductFunctionRemote merchantProductFunctionRemote;
@SysLog(value = "保存功能", action = OperateType.ADD, module = "功能模块")
public void saveMerchantFunction(FunctionSaveRequest functionSaveRequest) { public void saveMerchantFunction(FunctionSaveRequest functionSaveRequest) {
RpcResponse<Boolean> booleanRpcResponse = merchantProductFunctionRemote.saveMerchantProductFunctionRemote(ConvertRequest.convertRequest(functionSaveRequest, new MerchantProductFunctionRequest())); RpcResponse<Boolean> booleanRpcResponse = merchantProductFunctionRemote.saveMerchantProductFunctionRemote(ConvertRequest.convertRequest(functionSaveRequest, new MerchantProductFunctionRequest()));
if (booleanRpcResponse.isFailed()) { if (booleanRpcResponse.isFailed()) {
...@@ -40,6 +43,7 @@ public class MerchantFunctionService { ...@@ -40,6 +43,7 @@ public class MerchantFunctionService {
} }
} }
@SysLog(value = "修改功能", action = OperateType.EDIT, module = "功能模块")
public void updateMerchantFunction(FunctionUpdateRequest functionUpdateRequest) { public void updateMerchantFunction(FunctionUpdateRequest functionUpdateRequest) {
RpcResponse<Boolean> booleanRpcResponse = merchantProductFunctionRemote.updateMerchantProductFunctionRemote(ConvertRequest.convertRequest(functionUpdateRequest, new MerchantProductFunctionRequest())); RpcResponse<Boolean> booleanRpcResponse = merchantProductFunctionRemote.updateMerchantProductFunctionRemote(ConvertRequest.convertRequest(functionUpdateRequest, new MerchantProductFunctionRequest()));
if (booleanRpcResponse.isFailed()) { if (booleanRpcResponse.isFailed()) {
......
...@@ -14,6 +14,8 @@ import cn.com.glsx.merchants.request.menu.MenuSearchRequest; ...@@ -14,6 +14,8 @@ import cn.com.glsx.merchants.request.menu.MenuSearchRequest;
import cn.com.glsx.merchants.request.menu.MenuUpdateRequest; import cn.com.glsx.merchants.request.menu.MenuUpdateRequest;
import cn.com.glsx.merchants.response.MenuResponse; import cn.com.glsx.merchants.response.MenuResponse;
import cn.com.glsx.merchants.util.Pagination; import cn.com.glsx.merchants.util.Pagination;
import com.glsx.plat.common.annotation.SysLog;
import com.glsx.plat.common.enums.OperateType;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -42,6 +44,7 @@ public class MerchantMenuService { ...@@ -42,6 +44,7 @@ public class MerchantMenuService {
throw new RpcServiceException(merProMenuTreeRemote.getException().getErrId(),merProMenuTreeRemote.getMessage()); throw new RpcServiceException(merProMenuTreeRemote.getException().getErrId(),merProMenuTreeRemote.getMessage());
} }
@SysLog(value = "保存菜单", action = OperateType.ADD, module = "菜单模块")
public void saveMerchantProductMenuRemote(MenuSaveRequest menuSaveRequest) { public void saveMerchantProductMenuRemote(MenuSaveRequest menuSaveRequest) {
RpcResponse<Boolean> booleanRpcResponse = merchantProductMenuRemote.saveMerchantProductMenuRemote(ConvertRequest.convertRequest(menuSaveRequest, new MerchantProductMenuRequest())); RpcResponse<Boolean> booleanRpcResponse = merchantProductMenuRemote.saveMerchantProductMenuRemote(ConvertRequest.convertRequest(menuSaveRequest, new MerchantProductMenuRequest()));
if (booleanRpcResponse.isFailed()) { if (booleanRpcResponse.isFailed()) {
...@@ -57,6 +60,7 @@ public class MerchantMenuService { ...@@ -57,6 +60,7 @@ public class MerchantMenuService {
throw new RpcServiceException(merProductByPageRemote.getException().getErrId(),merProductByPageRemote.getMessage()); throw new RpcServiceException(merProductByPageRemote.getException().getErrId(),merProductByPageRemote.getMessage());
} }
@SysLog(value = "更新菜单", action = OperateType.EDIT, module = "菜单模块")
public void updateMerchantProductMenuRemote(MenuUpdateRequest menuUpdateRequest) { public void updateMerchantProductMenuRemote(MenuUpdateRequest menuUpdateRequest) {
RpcResponse<Boolean> booleanRpcResponse = merchantProductMenuRemote.updateMerchantProductMenuRemote(ConvertRequest.convertRequest(menuUpdateRequest, new MerchantProductMenuRequest())); RpcResponse<Boolean> booleanRpcResponse = merchantProductMenuRemote.updateMerchantProductMenuRemote(ConvertRequest.convertRequest(menuUpdateRequest, new MerchantProductMenuRequest()));
if (booleanRpcResponse.isFailed()) { if (booleanRpcResponse.isFailed()) {
......
...@@ -16,6 +16,8 @@ import cn.com.glsx.merchants.request.product.ProductUpdateRequest; ...@@ -16,6 +16,8 @@ import cn.com.glsx.merchants.request.product.ProductUpdateRequest;
import cn.com.glsx.merchants.response.MerchantProTreeRopResponse; import cn.com.glsx.merchants.response.MerchantProTreeRopResponse;
import cn.com.glsx.merchants.response.ProductResponse; import cn.com.glsx.merchants.response.ProductResponse;
import cn.com.glsx.merchants.util.Pagination; import cn.com.glsx.merchants.util.Pagination;
import com.glsx.plat.common.annotation.SysLog;
import com.glsx.plat.common.enums.OperateType;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -44,6 +46,7 @@ public class MerchantProductService { ...@@ -44,6 +46,7 @@ public class MerchantProductService {
throw new RpcServiceException(merProductListRemote.getException().getErrId(),merProductListRemote.getMessage()); throw new RpcServiceException(merProductListRemote.getException().getErrId(),merProductListRemote.getMessage());
} }
@SysLog(value = "新增产品", action = OperateType.ADD, module = "产品模块")
public void saveProduct(ProductSaveRequest productSearchRequest) { public void saveProduct(ProductSaveRequest productSearchRequest) {
RpcResponse<Boolean> booleanRpcResponse = merchantProductRemote.saveMerchantProductRemote(ConvertRequest.convertRequest(productSearchRequest, new MerchantProductRequest())); RpcResponse<Boolean> booleanRpcResponse = merchantProductRemote.saveMerchantProductRemote(ConvertRequest.convertRequest(productSearchRequest, new MerchantProductRequest()));
if (booleanRpcResponse.isFailed()) { if (booleanRpcResponse.isFailed()) {
...@@ -59,6 +62,7 @@ public class MerchantProductService { ...@@ -59,6 +62,7 @@ public class MerchantProductService {
throw new RpcServiceException(merProductByPageRemote.getException().getErrId(),merProductByPageRemote.getMessage()); throw new RpcServiceException(merProductByPageRemote.getException().getErrId(),merProductByPageRemote.getMessage());
} }
@SysLog(value = "修改产品", action = OperateType.EDIT, module = "产品模块")
public void updateProduct(ProductUpdateRequest productUpdateRequest) { public void updateProduct(ProductUpdateRequest productUpdateRequest) {
RpcResponse<Boolean> booleanRpcResponse = merchantProductRemote.updateProductRemote(ConvertRequest.convertRequest(productUpdateRequest, new MerchantProductRequest())); RpcResponse<Boolean> booleanRpcResponse = merchantProductRemote.updateProductRemote(ConvertRequest.convertRequest(productUpdateRequest, new MerchantProductRequest()));
if (booleanRpcResponse.isFailed()) { if (booleanRpcResponse.isFailed()) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!