fixbug
parent
9d1c4c5641
commit
ee7238bdba
@ -0,0 +1,13 @@
|
||||
package org.ils.order.vo.request;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 下载入仓单请求对象
|
||||
*/
|
||||
@Data
|
||||
public class DownLoadInboundFileReq {
|
||||
private String createdDate;
|
||||
private String type;
|
||||
private String userName;
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
package com.ils.oms.vo.response;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 文件上传返回格式
|
||||
*/
|
||||
@Data
|
||||
public class FileInfoResp implements Serializable {
|
||||
|
||||
private String id;
|
||||
|
||||
private String url;
|
||||
|
||||
|
||||
private Long size;
|
||||
|
||||
|
||||
private String filename;
|
||||
|
||||
|
||||
private String originalFilename;
|
||||
|
||||
|
||||
private String basePath;
|
||||
|
||||
private String path;
|
||||
|
||||
private String ext;
|
||||
|
||||
private String contentType;
|
||||
|
||||
private String platform;
|
||||
|
||||
private String thUrl;
|
||||
|
||||
|
||||
private String thFilename;
|
||||
|
||||
private Long thSize;
|
||||
|
||||
private String thContentType;
|
||||
|
||||
private String objectId;
|
||||
private String objectType;
|
||||
|
||||
private String attr;
|
||||
|
||||
private String fileAcl;
|
||||
|
||||
private String thFileAcl;
|
||||
|
||||
private Date createTime;
|
||||
}
|
||||
@ -1,31 +1,31 @@
|
||||
package com.ils.oms;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.ils.oms.properties.BaseConfigProperties;
|
||||
import com.ils.oms.listener.rabbitmq.RabbitSender;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
@Slf4j
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
public class RabbitMqHelloTest{
|
||||
@Autowired
|
||||
private BaseConfigProperties baseConfig;
|
||||
|
||||
@Autowired
|
||||
private RabbitSender rabbitSender;
|
||||
@Test
|
||||
public void test(){
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("userName","test123");
|
||||
json.put("passWord","123456");
|
||||
rabbitSender.sendOrderQueue( baseConfig.getOrderQueue(), JSON.toJSONString(json));
|
||||
log.info( "send: {}", true);
|
||||
}
|
||||
}
|
||||
//package com.ils.oms;
|
||||
//
|
||||
//import cn.hutool.json.JSONObject;
|
||||
//import com.alibaba.fastjson.JSON;
|
||||
//import lombok.extern.slf4j.Slf4j;
|
||||
//import com.ils.oms.properties.BaseConfigProperties;
|
||||
//import com.ils.oms.listener.rabbitmq.RabbitSender;
|
||||
//import org.junit.Test;
|
||||
//import org.junit.runner.RunWith;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.boot.test.context.SpringBootTest;
|
||||
//import org.springframework.test.context.junit4.SpringRunner;
|
||||
//
|
||||
//@Slf4j
|
||||
//@RunWith(SpringRunner.class)
|
||||
//@SpringBootTest
|
||||
//public class RabbitMqHelloTest{
|
||||
// @Autowired
|
||||
// private BaseConfigProperties baseConfig;
|
||||
//
|
||||
// @Autowired
|
||||
// private RabbitSender rabbitSender;
|
||||
// @Test
|
||||
// public void test(){
|
||||
// JSONObject json = new JSONObject();
|
||||
// json.put("userName","test123");
|
||||
// json.put("passWord","123456");
|
||||
// rabbitSender.sendOrderQueue( baseConfig.getOrderQueue(), JSON.toJSONString(json));
|
||||
// log.info( "send: {}", true);
|
||||
// }
|
||||
//}
|
||||
Loading…
Reference in New Issue