出库历史列表
parent
d26c94de3a
commit
c64970ad5f
@ -0,0 +1,53 @@
|
||||
package com.ms.api.dto.order;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.ms.api.common.PageOption;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
/*
|
||||
* 获取出库历史列表 请求参数
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class SearchOutstorageLogListRequestDTO extends PageOption {
|
||||
|
||||
private Long shopId;
|
||||
/*
|
||||
* 订单起始时间
|
||||
*/
|
||||
private String outstorageTimeStart;
|
||||
|
||||
/*
|
||||
* 订单结束时间
|
||||
*/
|
||||
private String outstorageTimeEnd;
|
||||
/*
|
||||
* 订单号
|
||||
*/
|
||||
private String orderIds;
|
||||
/*
|
||||
* 运单号
|
||||
*/
|
||||
private String waybillCodes;
|
||||
/*
|
||||
* 物流id
|
||||
*/
|
||||
private String logisticsId;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
private String outstorageStatus;
|
||||
/**
|
||||
* 来源
|
||||
*/
|
||||
private String source;
|
||||
|
||||
@JsonIgnore
|
||||
public boolean checkParams() {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
package com.ms.api.spi.order;
|
||||
|
||||
import com.jinritemai.cloud.base.api.BaseRequest;
|
||||
import com.jinritemai.cloud.base.api.BaseResponse;
|
||||
import com.jinritemai.cloud.base.api.ExtensionService;
|
||||
import com.jinritemai.cloud.base.api.ExtensionServiceHandler;
|
||||
import com.ms.api.common.Pager;
|
||||
import com.ms.api.common.R;
|
||||
import com.ms.api.common.Ret;
|
||||
import com.ms.api.common.SPIBaseService;
|
||||
import com.ms.api.dto.order.SearchOutstorageLogListRequestDTO;
|
||||
import com.ms.api.service.OpOrderOutstorageHistoryService;
|
||||
import com.ms.dal.entity.OpOrderOutstorageHistory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
@ExtensionService("searchOutstorageLogList")
|
||||
@Slf4j
|
||||
public class SearchOutstorageLogListService extends SPIBaseService implements ExtensionServiceHandler<SearchOutstorageLogListRequestDTO, Ret> {
|
||||
|
||||
@Autowired
|
||||
private OpOrderOutstorageHistoryService opOrderOutstorageHistoryService;
|
||||
|
||||
|
||||
@Override
|
||||
public BaseResponse<Ret> handle(BaseRequest<SearchOutstorageLogListRequestDTO> req) {
|
||||
initHandle(req);
|
||||
SearchOutstorageLogListRequestDTO dto = req.getData();
|
||||
SearchOutstorageLogListRequestDTO condition=new SearchOutstorageLogListRequestDTO();
|
||||
|
||||
condition.setShopId(shopId);
|
||||
condition.setPage(dto.getPage());
|
||||
condition.setPageSize(dto.getPageSize());
|
||||
condition.setLogisticsId(dto.getLogisticsId());
|
||||
condition.setOutstorageStatus(dto.getOutstorageStatus());
|
||||
condition.setOrderIds(dto.getOrderIds());
|
||||
condition.setOutstorageTimeEnd(dto.getOutstorageTimeEnd());
|
||||
condition.setOutstorageTimeStart(dto.getOutstorageTimeStart());
|
||||
condition.setSource(dto.getSource());
|
||||
condition.setWaybillCodes(dto.getWaybillCodes());
|
||||
|
||||
Pager<OpOrderOutstorageHistory> productToDsItemPager = opOrderOutstorageHistoryService.searchOutstorageLogList(condition);
|
||||
|
||||
// ----结果返回----
|
||||
return R.ok(Ret.success(productToDsItemPager.toMap()));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue