Commit ef202e0c by 王祖波

好办状态和GIC后台不一致,此处状态做转换

parent a0ded935
...@@ -114,6 +114,7 @@ public class ContentAccountController { ...@@ -114,6 +114,7 @@ public class ContentAccountController {
public RestResponse<AccountAuthorizeVo> generateQrCode(AccountGenerateQrCodeQo accountGenerateQrCodeQo) { public RestResponse<AccountAuthorizeVo> generateQrCode(AccountGenerateQrCodeQo accountGenerateQrCodeQo) {
AccountGenerateQrCodeQDTO accountGenerateQrCodeQDTO = new AccountGenerateQrCodeQDTO(); AccountGenerateQrCodeQDTO accountGenerateQrCodeQDTO = new AccountGenerateQrCodeQDTO();
accountGenerateQrCodeQDTO.setId(accountGenerateQrCodeQo.getId());
accountGenerateQrCodeQDTO.setEnterpriseId(accountGenerateQrCodeQo.getEnterpriseId()); accountGenerateQrCodeQDTO.setEnterpriseId(accountGenerateQrCodeQo.getEnterpriseId());
accountGenerateQrCodeQDTO.setSourceType(ContentAccountQrCodeSourceType.HAOBAN.getCode()); accountGenerateQrCodeQDTO.setSourceType(ContentAccountQrCodeSourceType.HAOBAN.getCode());
accountGenerateQrCodeQDTO.setKey(accountGenerateQrCodeQo.getKey()); accountGenerateQrCodeQDTO.setKey(accountGenerateQrCodeQo.getKey());
...@@ -143,6 +144,20 @@ public class ContentAccountController { ...@@ -143,6 +144,20 @@ public class ContentAccountController {
if (!serviceResponse.isSuccess()) { if (!serviceResponse.isSuccess()) {
return RestResponse.failure("500", "获取结果异常"); return RestResponse.failure("500", "获取结果异常");
} }
return RestResponse.successResult(EntityUtil.changeEntityByJSON(AccountAuthorizeResultVo.class, serviceResponse.getResult())); AccountAuthorizeResultVo result = EntityUtil.changeEntityByJSON(AccountAuthorizeResultVo.class, serviceResponse.getResult());
result.setStatus(convertStatus(serviceResponse.getResult().getStatus()));
return RestResponse.successResult(result);
}
/**
* 好办状态和GIC后台不一致,此处状态做转换 原因未知
* @param status
* @return
*/
public Integer convertStatus(Integer status) {
if (Objects.equals(status, 1)) {
return 0;
}
return status;
} }
} }
...@@ -13,6 +13,10 @@ import java.io.Serializable; ...@@ -13,6 +13,10 @@ import java.io.Serializable;
public class AccountGenerateQrCodeQo implements Serializable { public class AccountGenerateQrCodeQo implements Serializable {
/** /**
* 主键id
*/
private Long id;
/**
* 企业id * 企业id
*/ */
private String enterpriseId; private String enterpriseId;
...@@ -37,6 +41,14 @@ public class AccountGenerateQrCodeQo implements Serializable { ...@@ -37,6 +41,14 @@ public class AccountGenerateQrCodeQo implements Serializable {
*/ */
private Integer bizType = ContentAccountBizTypeEnum.WX_VIDEO.getCode(); private Integer bizType = ContentAccountBizTypeEnum.WX_VIDEO.getCode();
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getEnterpriseId() { public String getEnterpriseId() {
return enterpriseId; return enterpriseId;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment