Commit 83df0b69 by zhouhb

[+]rop修改

1 parent 637a1942
...@@ -90,17 +90,17 @@ public class MerchantController { ...@@ -90,17 +90,17 @@ public class MerchantController {
} }
/** /**
* 更新商户权限信息 * 查询商户详情
* *
* @param merchantTreeRequest 入参 * @param merchantDetailRequest 入参
* @return * @return
*/ */
@ServiceMethod(method = "cn.com.glsx.merchants.merchant.updatePermissions", needInSession = NeedInSessionType.NO) @ServiceMethod(method = "cn.com.glsx.merchants.merchant.findMerchantDetail", needInSession = NeedInSessionType.NO)
@ApiOperation("更新商户权限信息") @ApiOperation("查询商户详情")
public RopResponse<Boolean> updatePermissions(@RequestBody MerchantTreeRopRequest merchantTreeRequest) { public RopResponse<MerchantRopResponse> findMerchantDetail(MerchantDetailRequest merchantDetailRequest) {
try { try {
merchantService.updatePermissions(merchantTreeRequest); MerchantRopResponse merchantResponse=merchantService.findMerchantDetail(merchantDetailRequest);
return RopResponse.success(true); return RopResponse.success(merchantResponse);
} catch (RpcServiceException e) { } catch (RpcServiceException e) {
log.info("=======MerchantController__invoke__updatePermissions__exception:{}", e.getMessage()); log.info("=======MerchantController__invoke__updatePermissions__exception:{}", e.getMessage());
return RopResponse.error(e.getErrId(), e.getMessage()); return RopResponse.error(e.getErrId(), e.getMessage());
...@@ -108,17 +108,17 @@ public class MerchantController { ...@@ -108,17 +108,17 @@ public class MerchantController {
} }
/** /**
* 查询商户详情 * 更新商户权限信息
* *
* @param merchantDetailRequest 入参 * @param merchantTreeRequest 入参
* @return * @return
*/ */
@ServiceMethod(method = "cn.com.glsx.merchants.merchant.findMerchantDetail", needInSession = NeedInSessionType.NO) @ServiceMethod(method = "cn.com.glsx.merchants.merchant.updatePermissions", needInSession = NeedInSessionType.NO)
@ApiOperation("查询商户详情") @ApiOperation("更新商户权限信息")
public RopResponse<MerchantRopResponse> findMerchantDetail(MerchantDetailRequest merchantDetailRequest) { public RopResponse<Boolean> updatePermissions(@RequestBody MerchantTreeRopRequest merchantTreeRequest) {
try { try {
MerchantRopResponse merchantResponse=merchantService.findMerchantDetail(merchantDetailRequest); merchantService.updatePermissions(merchantTreeRequest);
return RopResponse.success(merchantResponse); return RopResponse.success(true);
} catch (RpcServiceException e) { } catch (RpcServiceException e) {
log.info("=======MerchantController__invoke__updatePermissions__exception:{}", e.getMessage()); log.info("=======MerchantController__invoke__updatePermissions__exception:{}", e.getMessage());
return RopResponse.error(e.getErrId(), e.getMessage()); return RopResponse.error(e.getErrId(), e.getMessage());
......
...@@ -13,7 +13,7 @@ import java.util.Date; ...@@ -13,7 +13,7 @@ import java.util.Date;
* @date 2021/7/14 16:20 * @date 2021/7/14 16:20
*/ */
@Data @Data
public class LogResponse implements Serializable { public class LogResponse {
/** /**
* 主键 * 主键
......
package cn.com.glsx.merchants.response; package cn.com.glsx.merchants.response;
import cn.com.glsx.merchants.model.response.AccountTypeTreeResponse; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.io.Serializable;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
@Data @Data
public class MerchantRopResponse implements Serializable { public class MerchantRopResponse {
@ApiModelProperty(name = "id", notes = "商户id", dataType = "Integer", required = true, example = "1", value = "商户id") @ApiModelProperty(name = "id", notes = "商户id", dataType = "Integer", required = true, example = "1", value = "商户id")
private Integer id; private Integer id;
...@@ -96,7 +95,8 @@ public class MerchantRopResponse implements Serializable { ...@@ -96,7 +95,8 @@ public class MerchantRopResponse implements Serializable {
/** /**
* 创建时间 * 创建时间
*/ */
@ApiModelProperty(name = "createdTime", notes = "创建时间", dataType = "Date", required = true, example = "1") @ApiModelProperty(name = "createdTime", notes = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdTime; private Date createdTime;
...@@ -128,18 +128,21 @@ public class MerchantRopResponse implements Serializable { ...@@ -128,18 +128,21 @@ public class MerchantRopResponse implements Serializable {
* 营业开始时间 * 营业开始时间
*/ */
@ApiModelProperty(name = "bussinessBegintime", notes = "营业开始时间", dataType = "Date", required = true, example = "1") @ApiModelProperty(name = "bussinessBegintime", notes = "营业开始时间", dataType = "Date", required = true, example = "1")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date bussinessBegintime; private Date bussinessBegintime;
/** /**
* 营业结束时间 * 营业结束时间
*/ */
@ApiModelProperty(name = "bussinessEndtime", notes = "营业结束时间", dataType = "Date", required = true, example = "1") @ApiModelProperty(name = "bussinessEndtime", notes = "营业结束时间", dataType = "Date", required = true, example = "1")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date bussinessEndtime; private Date bussinessEndtime;
/** /**
* 商户过期时间 * 商户过期时间
*/ */
@ApiModelProperty(name = "expireDate", notes = "商户过期时间", dataType = "Date", required = true, example = "1") @ApiModelProperty(name = "expireDate", notes = "商户过期时间", dataType = "Date", required = true, example = "1")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date expireDate; private Date expireDate;
/** /**
......
...@@ -13,7 +13,7 @@ import java.util.List; ...@@ -13,7 +13,7 @@ import java.util.List;
* @date 2021/7/16 16:50 * @date 2021/7/16 16:50
*/ */
@Data @Data
public class ProductRelationResponse implements Serializable { public class ProductRelationResponse {
/** /**
* 产品id * 产品id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!