Commit 83df0b69 by zhouhb

[+]rop修改

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