Commit 0efc1b8b by zhouhb

[+]代码添加

1 parent ec0ea139
......@@ -2,6 +2,7 @@ package cn.com.glsx.merchants.request.staff;
import cn.com.glsx.merchants.request.DefaultRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author zhouhaibao
......@@ -9,6 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
* @description: TODO
* @date 2021/8/2 12:44
*/
@Data
public class StaffExportRequest extends DefaultRequest {
@ApiModelProperty(notes = "员工状态")
......
......@@ -22,7 +22,6 @@ public class MerchantRopResponse {
private String merchantName;
/**
* 营业范围
*/
......@@ -100,14 +99,14 @@ public class MerchantRopResponse {
/**
* 创建时间
*/
@ApiModelProperty(name = "createdTime", notes = "创建时间",dataType = "date")
@ApiModelProperty(name = "createdTime", notes = "创建时间", dataType = "date")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdTime;
/**
* 更新时间
*/
@ApiModelProperty(name = "updatedTime", notes = "更新时间",dataType = "date")
@ApiModelProperty(name = "updatedTime", notes = "更新时间", dataType = "date")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updatedTime;
......@@ -237,6 +236,12 @@ public class MerchantRopResponse {
private String businessScopeCustomize;
/**
* 有效期
*/
@ApiModelProperty(name = "effectiveTimeName", notes = "有效期", dataType = "String", required = true, example = "1")
private String effectiveTimeName;
/**
* 有效时间
*/
@ApiModelProperty(name = "effectiveTime", notes = "有效时间", dataType = "Integer", required = true, example = "1")
......
......@@ -148,6 +148,8 @@ public class StaffService {
* @return
*/
public String exportData(StaffExportRequest staffExportRequest) {
MerchantStaffRequest merchantStaffRequest = ConvertRequest.convertRequest(staffExportRequest, new MerchantStaffRequest());
log.info("请求入参{}",merchantStaffRequest);
RpcResponse<List<MerchantStaffResponse>> listRpcResponse = merchantStaffRemote.exportStaffRemote(ConvertRequest.convertRequest(staffExportRequest, new MerchantStaffRequest()));
if (listRpcResponse.isSuccess()) {
List<StaffExportResponse> staffResponses = ConvertResponse.convertList(listRpcResponse.getResult(), StaffExportResponse.class);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!