Commit 6faa436c by zhouhb

[+]代码修改

1 parent 268a7233
......@@ -65,9 +65,9 @@ public class UserAspect {
field.setAccessible(true);
field.set(object, user.getId());
field3.setAccessible(true);
field3.set(object, user.getRealname());
field3.set(object, user.getUsername());
field1.setAccessible(true);
field1.set(object, user.getRealname());
field1.set(object, user.getUsername());
field2.setAccessible(true);
field2.set(object, user.getId());
field4.setAccessible(true);
......@@ -107,7 +107,7 @@ public class UserAspect {
} else {
merchantUser.setSource(Contants.SYSTEM_SOURCE_OPERATION);
}
log.info("登录的用户{}", user);
log.info("登录的用户{}",user);
BeanUtils.copyProperties(user, merchantUser);
return merchantUser;
}
......
......@@ -62,7 +62,7 @@ public class StaffExportResponse implements Serializable {
*/
@ExcelIgnore
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdTime;
private Date updatedTime;
/**
* 创建时间
......
......@@ -152,12 +152,12 @@ public class StaffService {
if (listRpcResponse.isSuccess()) {
List<StaffExportResponse> staffResponses = ConvertResponse.convertList(listRpcResponse.getResult(), StaffExportResponse.class);
staffResponses.forEach(index -> {
index.setCreateDate(DateUtils.format(index.getCreatedTime(), DateUtils.NORMAL_DATE_TIME_PATTERN));
index.setCreateDate(DateUtils.format(index.getUpdatedTime(), DateUtils.NORMAL_DATE_TIME_PATTERN));
});
String time = new Date().getTime()+"";
String filename="员工列表"+time;
byte[] bytes = ExcelUtiles.exportGoodsExcel(staffResponses, StaffExportResponse.class);
FileUploadServerData fileUploadServerData = FileUploadUtil.uploadToFileSystem(systemProperty.getUploadFileUrl(), "", bytes, "xlsx");
FileUploadServerData fileUploadServerData = FileUploadUtil.uploadToFileSystem(systemProperty.getUploadFileUrl(), filename, bytes, "xlsx");
return fileUploadServerData.getUrl();
}
throw new RpcServiceException(listRpcResponse.getException().getErrId(), listRpcResponse.getMessage());
......
......@@ -51,7 +51,7 @@ public class FileUploadUtil {
form.add("systemSign", "biz");
form.add("filePath", "");
// fileName由服务端指定
form.add("param1", "");
form.add("param1", fileName);
form.add("param2", "");
form.add("param3", "");
form.add("files", fileType + "@" + Base64.encodeBase64String(uploadData));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!