Commit e49e6be0 by licy

日志注释

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