1.业务单据返回结果增加当前仓库和当前分库名称字段

fengcang
x_z 3 years ago
parent 9b00e3d249
commit 48927352e1

@ -304,6 +304,8 @@ public class StockOrderController {
//判断订单是否可以补单
List<StockOrderResponse> resultList = orderService.checkSupplementOrder(stockOrderEntityList);
//查询仓库名称
orderService.queryInvName(resultList);
resultList = orderService.checkSubmitOrder(resultList);
PageSimpleResponse<StockOrderResponse> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());

@ -15,4 +15,10 @@ public class StockOrderResponse extends StockOrderEntity {
//单据导出状态
private Integer exportStatus;
//当前仓库名称
private String locStorageName;
//当前分库名称
private String invWarehouseName;
}

@ -129,4 +129,11 @@ public interface OrderService {
* @return
*/
boolean updateReplicateNo(String orderId, String replicateNo);
/**
*
*
* @param responseList
*/
void queryInvName(List<StockOrderResponse> responseList);
}

@ -18,6 +18,7 @@ import com.glxp.api.admin.dao.inout.OrderDao;
import com.glxp.api.admin.dao.inout.OrderDetailDao;
import com.glxp.api.admin.dao.inventory.InvProductDao;
import com.glxp.api.admin.dao.inventory.InvProductDetailDao;
import com.glxp.api.admin.dao.inventory.InvSubWarehouseDao;
import com.glxp.api.admin.dao.inventory.InvWarehouseDao;
import com.glxp.api.admin.entity.basic.BasicThirdSysBusApiEntity;
import com.glxp.api.admin.entity.basic.BussinessTypeEntity;
@ -83,6 +84,8 @@ public class OrderServiceImpl implements OrderService {
private StockOrderDetailDao stockOrderDetailDao;
@Resource
private OrderDetailDao orderDetailDao;
@Resource
private InvSubWarehouseDao invSubWarehouseDao;
@Override
public List<OrderEntity> listOrders(OrderQueryRequest orderQueryRequest) {
@ -462,6 +465,21 @@ public class OrderServiceImpl implements OrderService {
return orderDao.updateReplicateNo(orderId, replicateNo);
}
@Override
public void queryInvName(List<StockOrderResponse> responseList) {
if (CollUtil.isNotEmpty(responseList)) {
responseList.forEach(stockOrderResponse -> {
//查询仓库名称
String locStorageName = invWarehouseDao.getNameByCode(stockOrderResponse.getLocStorageCode());
//查询分库名称
String invWarehouseName = invSubWarehouseDao.selectNameByCode(stockOrderResponse.getInvWarehouseCode());
stockOrderResponse.setLocStorageName(locStorageName);
stockOrderResponse.setInvWarehouseName(invWarehouseName);
});
}
}
@Transactional(rollbackFor = Exception.class)
@Override
public void deleteOrders(List<String> ids) {

Loading…
Cancel
Save