销售提交erp

This commit is contained in:
潘荣晟
2026-01-26 02:44:15 +08:00
parent ea02e5af4e
commit 7e2473051b
7 changed files with 101 additions and 11 deletions

View File

@@ -13,6 +13,7 @@ import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;
import java.util.ArrayList;
import java.util.List;
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
@@ -90,7 +91,14 @@ public class WarehouseFactoryServiceImpl implements WarehouseFactoryService {
@Override
public List<WarehouseFactoryRespVO> getWarehouseFactoryByMainId(String mainId) {
return BeanUtils.toBean(warehouseFactoryMapper.selectList(WarehouseFactoryDO::getMainWarehouseId, mainId), WarehouseFactoryRespVO.class);
List<WarehouseFactoryDO> warehouseFactoryDOS = warehouseFactoryMapper.selectList(WarehouseFactoryDO::getMainWarehouseId, mainId);
List<WarehouseFactoryRespVO> warehouseFactoryRespVOS=new ArrayList<>();
for (WarehouseFactoryDO warehouseFactoryDO : warehouseFactoryDOS) {
WarehouseFactoryRespVO bean = BeanUtils.toBean(warehouseFactoryDO, WarehouseFactoryRespVO.class);
bean.setMmsiType(warehouseFactoryDO.getMmsiType());
warehouseFactoryRespVOS.add(bean);
}
return warehouseFactoryRespVOS;
}
}

View File

@@ -64,4 +64,7 @@ public interface InternalWarehouseService {
PageResult<InternalWarehouseDO> getInternalWarehousePage(InternalWarehousePageReqVO pageReqVO);
void enableDisable(List<InternalWarehouseEnableDisableReqVO> reqVOS);
//通过工厂编码查询库位
InternalWarehouseDO getInternalWarehouseByFactoryCodeAndWarehouseCode(String factoryCode, String warehouseCode);
}

View File

@@ -126,4 +126,14 @@ public class InternalWarehouseServiceImpl implements InternalWarehouseService {
});
}
@Override
public InternalWarehouseDO getInternalWarehouseByFactoryCodeAndWarehouseCode(String factoryCode, String warehouseCode) {
return internalWarehouseMapper.selectOne(
new LambdaQueryWrapperX<InternalWarehouseDO>()
.eq(InternalWarehouseDO::getFactoryNumber, factoryCode)
.eq(InternalWarehouseDO::getNumber, warehouseCode)
.eq(InternalWarehouseDO::getIsEnable, '1')
);
}
}