no message
							parent
							
								
									8b03f5df37
								
							
						
					
					
						commit
						03a3ea7e05
					
				| 
						 | 
					@ -38,20 +38,6 @@
 | 
				
			||||||
            </exclusions>
 | 
					            </exclusions>
 | 
				
			||||||
        </dependency>
 | 
					        </dependency>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        <dependency>
 | 
					 | 
				
			||||||
            <groupId>org.jeecgframework.jimureport</groupId>
 | 
					 | 
				
			||||||
            <artifactId>jimureport-spring-boot-starter</artifactId>
 | 
					 | 
				
			||||||
            <version>1.6.6</version>
 | 
					 | 
				
			||||||
            <exclusions>
 | 
					 | 
				
			||||||
                <exclusion>
 | 
					 | 
				
			||||||
                    <artifactId>poi-ooxml-schemas</artifactId>
 | 
					 | 
				
			||||||
                    <groupId>org.apache.poi</groupId>
 | 
					 | 
				
			||||||
                </exclusion>
 | 
					 | 
				
			||||||
            </exclusions>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        </dependency>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        <!-- 通用模块 -->
 | 
					        <!-- 通用模块 -->
 | 
				
			||||||
        <dependency>
 | 
					        <dependency>
 | 
				
			||||||
            <groupId>com.youchain</groupId>
 | 
					            <groupId>com.youchain</groupId>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,6 +4,8 @@ import io.swagger.annotations.Api;
 | 
				
			||||||
import io.swagger.annotations.ApiModelProperty;
 | 
					import io.swagger.annotations.ApiModelProperty;
 | 
				
			||||||
import lombok.Data;
 | 
					import lombok.Data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import java.util.Set;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Data
 | 
					@Data
 | 
				
			||||||
@Api(tags = "装配线叫料(紧急)")
 | 
					@Api(tags = "装配线叫料(紧急)")
 | 
				
			||||||
public class ZpjlJj {
 | 
					public class ZpjlJj {
 | 
				
			||||||
| 
						 | 
					@ -13,12 +15,8 @@ public class ZpjlJj {
 | 
				
			||||||
    String orderNo;
 | 
					    String orderNo;
 | 
				
			||||||
    @ApiModelProperty(value ="下发时间",required = true,example = "2023-07-03 00:00:00")
 | 
					    @ApiModelProperty(value ="下发时间",required = true,example = "2023-07-03 00:00:00")
 | 
				
			||||||
    String createTime;
 | 
					    String createTime;
 | 
				
			||||||
    @ApiModelProperty(value ="物料代码",required = true,example = "物料代码")
 | 
					    @ApiModelProperty(value ="紧急明细",required = true)
 | 
				
			||||||
    String itemCode;
 | 
					    Set<ItemDate> itemDetail;
 | 
				
			||||||
    @ApiModelProperty(value ="物料名称",required = true,example = "物料名称")
 | 
					 | 
				
			||||||
    String itemName;
 | 
					 | 
				
			||||||
    @ApiModelProperty(value ="物料数量",required = true,example = "物料数量(紧急叫料输入)")
 | 
					 | 
				
			||||||
    Double itemQty=0d;
 | 
					 | 
				
			||||||
    @ApiModelProperty(value ="需求工位",required = true)
 | 
					    @ApiModelProperty(value ="需求工位",required = true)
 | 
				
			||||||
    String station;
 | 
					    String station;
 | 
				
			||||||
    @ApiModelProperty(value ="需求点位",required = true)
 | 
					    @ApiModelProperty(value ="需求点位",required = true)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,56 +0,0 @@
 | 
				
			||||||
package com.youchain.modules.jimu;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import com.alibaba.fastjson.JSONObject;
 | 
					 | 
				
			||||||
import lombok.extern.slf4j.Slf4j;
 | 
					 | 
				
			||||||
import org.jeecg.modules.jmreport.desreport.render.handler.convert.ApiDataConvertAdapter;
 | 
					 | 
				
			||||||
import org.springframework.stereotype.Component;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@Slf4j
 | 
					 | 
				
			||||||
@Component("myApiDataConvertAdapter")
 | 
					 | 
				
			||||||
public class MyApiDataConvertAdapter implements ApiDataConvertAdapter {
 | 
					 | 
				
			||||||
    /**
 | 
					 | 
				
			||||||
     * 返回list数据集
 | 
					 | 
				
			||||||
     * @param jsonObject 接口数据原始对象
 | 
					 | 
				
			||||||
     * @return
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    @Override
 | 
					 | 
				
			||||||
    public String getData(JSONObject jsonObject) {
 | 
					 | 
				
			||||||
        log.error(jsonObject.toJSONString());
 | 
					 | 
				
			||||||
        if(jsonObject.containsKey("content")){
 | 
					 | 
				
			||||||
            return jsonObject.getString("content");
 | 
					 | 
				
			||||||
        }else{
 | 
					 | 
				
			||||||
            return null;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					 | 
				
			||||||
     * 返回links
 | 
					 | 
				
			||||||
     * @param jsonObject 接口数据原始对象
 | 
					 | 
				
			||||||
     * @return
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    @Override
 | 
					 | 
				
			||||||
    public String getLinks(JSONObject jsonObject) {
 | 
					 | 
				
			||||||
        return null;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					 | 
				
			||||||
     * 返回总页数
 | 
					 | 
				
			||||||
     * @param jsonObject 接口数据原始对象
 | 
					 | 
				
			||||||
     * @return
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    @Override
 | 
					 | 
				
			||||||
    public String getTotal(JSONObject jsonObject) {
 | 
					 | 
				
			||||||
           return null;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					 | 
				
			||||||
     * 返回总条数
 | 
					 | 
				
			||||||
     * @param jsonObject 接口数据原始对象
 | 
					 | 
				
			||||||
     * @return
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    @Override
 | 
					 | 
				
			||||||
    public String getCount(JSONObject jsonObject) {
 | 
					 | 
				
			||||||
        return null;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
| 
						 | 
					@ -6,6 +6,7 @@ spring:
 | 
				
			||||||
  freemarker:
 | 
					  freemarker:
 | 
				
			||||||
    check-template-location: false
 | 
					    check-template-location: false
 | 
				
			||||||
  profiles:
 | 
					  profiles:
 | 
				
			||||||
 | 
					    #active: prod
 | 
				
			||||||
    active: dev
 | 
					    active: dev
 | 
				
			||||||
  jackson:
 | 
					  jackson:
 | 
				
			||||||
    time-zone: GMT+8
 | 
					    time-zone: GMT+8
 | 
				
			||||||
| 
						 | 
					@ -34,7 +35,7 @@ spring:
 | 
				
			||||||
    #password: ${REDIS_PWD:123456}
 | 
					    #password: ${REDIS_PWD:123456}
 | 
				
			||||||
    #port: ${REDIS_PORT:6380}
 | 
					    #port: ${REDIS_PORT:6380}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    host: ${REDIS_HOST:127.0.0.1}
 | 
					    host: ${REDIS_HOST:localhost}
 | 
				
			||||||
    password: ${REDIS_PWD:}
 | 
					    password: ${REDIS_PWD:}
 | 
				
			||||||
    port: ${REDIS_PORT:6379}
 | 
					    port: ${REDIS_PORT:6379}
 | 
				
			||||||
    #连接超时时间
 | 
					    #连接超时时间
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue