Merge remote-tracking branch 'origin/hlhyxyy' into hlhyxyy
						commit
						55579ec4bf
					
				
											
												
													File diff suppressed because one or more lines are too long
												
											
										
									
								@ -0,0 +1,29 @@
 | 
				
			|||||||
 | 
					package com.glxp.mipsdl.res;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import lombok.AllArgsConstructor;
 | 
				
			||||||
 | 
					import lombok.Data;
 | 
				
			||||||
 | 
					import lombok.NoArgsConstructor;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * 简单的分页返回对象
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					@Data
 | 
				
			||||||
 | 
					@AllArgsConstructor
 | 
				
			||||||
 | 
					@NoArgsConstructor
 | 
				
			||||||
 | 
					public class PageSimpleResponseNew<T> {
 | 
				
			||||||
 | 
					    // 总数
 | 
				
			||||||
 | 
					    private Integer total;
 | 
				
			||||||
 | 
					    // 列表
 | 
				
			||||||
 | 
					    private List<T> list;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public void setTotal(Long total) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        this.total = total.intValue();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    public void setTotal(Integer total) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        this.total = total.intValue();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -1,10 +1,30 @@
 | 
				
			|||||||
package com.glxp.mipsdl.service.hlfyyy;
 | 
					package com.glxp.mipsdl.service.hlfyyy;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import com.baomidou.mybatisplus.core.metadata.IPage;
 | 
				
			||||||
 | 
					import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 | 
				
			||||||
 | 
					import com.github.pagehelper.PageInfo;
 | 
				
			||||||
 | 
					import com.glxp.mipsdl.entity.hlfyyy.VA010;
 | 
				
			||||||
 | 
					import com.glxp.mipsdl.req.base.UdiwmsWarehouseRequest;
 | 
				
			||||||
 | 
					import com.glxp.mipsdl.res.PageSimpleResponse;
 | 
				
			||||||
 | 
					import com.glxp.mipsdl.res.PageSimpleResponseNew;
 | 
				
			||||||
import com.glxp.mipsdl.thirddao.hlfyyy.VA004Mapper;
 | 
					import com.glxp.mipsdl.thirddao.hlfyyy.VA004Mapper;
 | 
				
			||||||
import org.springframework.stereotype.Service;
 | 
					import org.springframework.stereotype.Service;
 | 
				
			||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 | 
					import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 | 
				
			||||||
import com.glxp.mipsdl.entity.hlfyyy.VA004;
 | 
					import com.glxp.mipsdl.entity.hlfyyy.VA004;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.annotation.Resource;
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Service
 | 
					@Service
 | 
				
			||||||
public class VA004Service extends ServiceImpl<VA004Mapper, VA004> {
 | 
					public class VA004Service extends ServiceImpl<VA004Mapper, VA004> {
 | 
				
			||||||
 | 
					    @Resource
 | 
				
			||||||
 | 
					    private VA004Mapper va004Mapper;
 | 
				
			||||||
 | 
					    public PageSimpleResponseNew<VA004> filterList(UdiwmsWarehouseRequest udiwmsWarehouseRequest){
 | 
				
			||||||
 | 
					        Page page = new Page<VA010>(udiwmsWarehouseRequest.getPage(), udiwmsWarehouseRequest.getLimit());
 | 
				
			||||||
 | 
					        List list =  va004Mapper.filterList(page,udiwmsWarehouseRequest);
 | 
				
			||||||
 | 
					        PageSimpleResponseNew<VA004> pageSimpleResponseNew = new PageSimpleResponseNew<>();
 | 
				
			||||||
 | 
					        pageSimpleResponseNew.setList(list);
 | 
				
			||||||
 | 
					        pageSimpleResponseNew.setTotal(list.size());
 | 
				
			||||||
 | 
					        return pageSimpleResponseNew;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
					Loading…
					
					
				
		Reference in New Issue