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; | //package com.ils.oms;
 | ||||||
| 
 | //
 | ||||||
| import cn.hutool.json.JSONObject; | //import cn.hutool.json.JSONObject;
 | ||||||
| import com.alibaba.fastjson.JSON; | //import com.alibaba.fastjson.JSON;
 | ||||||
| import lombok.extern.slf4j.Slf4j; | //import lombok.extern.slf4j.Slf4j;
 | ||||||
| import com.ils.oms.properties.BaseConfigProperties; | //import com.ils.oms.properties.BaseConfigProperties;
 | ||||||
| import com.ils.oms.listener.rabbitmq.RabbitSender; | //import com.ils.oms.listener.rabbitmq.RabbitSender;
 | ||||||
| import org.junit.Test; | //import org.junit.Test;
 | ||||||
| import org.junit.runner.RunWith; | //import org.junit.runner.RunWith;
 | ||||||
| import org.springframework.beans.factory.annotation.Autowired; | //import org.springframework.beans.factory.annotation.Autowired;
 | ||||||
| import org.springframework.boot.test.context.SpringBootTest; | //import org.springframework.boot.test.context.SpringBootTest;
 | ||||||
| import org.springframework.test.context.junit4.SpringRunner; | //import org.springframework.test.context.junit4.SpringRunner;
 | ||||||
| 
 | //
 | ||||||
| @Slf4j | //@Slf4j
 | ||||||
| @RunWith(SpringRunner.class) | //@RunWith(SpringRunner.class)
 | ||||||
| @SpringBootTest | //@SpringBootTest
 | ||||||
| public  class RabbitMqHelloTest{ | //public  class RabbitMqHelloTest{
 | ||||||
|     @Autowired | //    @Autowired
 | ||||||
|     private BaseConfigProperties baseConfig; | //    private BaseConfigProperties baseConfig;
 | ||||||
| 
 | //
 | ||||||
|     @Autowired | //    @Autowired
 | ||||||
|     private RabbitSender rabbitSender; | //    private RabbitSender rabbitSender;
 | ||||||
|     @Test | //    @Test
 | ||||||
|     public void test(){ | //    public void test(){
 | ||||||
|         JSONObject json = new JSONObject(); | //        JSONObject json = new JSONObject();
 | ||||||
|         json.put("userName","test123"); | //        json.put("userName","test123");
 | ||||||
|         json.put("passWord","123456"); | //        json.put("passWord","123456");
 | ||||||
|         rabbitSender.sendOrderQueue( baseConfig.getOrderQueue(), JSON.toJSONString(json)); | //        rabbitSender.sendOrderQueue( baseConfig.getOrderQueue(), JSON.toJSONString(json));
 | ||||||
|         log.info( "send: {}", true); | //        log.info( "send: {}", true);
 | ||||||
|     } | //    }
 | ||||||
| } | //}
 | ||||||
					Loading…
					
					
				
		Reference in New Issue