Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
b9c5779d97
@ -19,7 +19,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 角色管理单元测试
|
||||
* 物料管理单元测试
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = RuoYiApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
|
@ -15,7 +15,7 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 组织机构
|
||||
* 组织机构单元测试
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = RuoYiApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
|
@ -14,7 +14,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 角色管理
|
||||
* 角色管理单元测试
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = RuoYiApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
|
@ -15,7 +15,7 @@ import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 用户管理
|
||||
* 用户管理单元测试
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = RuoYiApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
|
@ -11,7 +11,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 出入库类型
|
||||
* 出入库类型单元测试
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = RuoYiApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
|
@ -137,6 +137,11 @@ public class WmsOutPlanServiceImpl implements IWmsOutPlanService {
|
||||
0
|
||||
);
|
||||
|
||||
// 校验库中数量是否足够
|
||||
if (baseKnifeList.size() < wmsOutPlanDetail.getPlannedQuantity()) {
|
||||
throw new RuntimeException("库存数量不足以支持本次出库");
|
||||
}
|
||||
|
||||
// 更新出库计划明细
|
||||
this.wmsOutPlanMapper.updateWmsOutPlanDetailRealQuantityAndDetailStateByWmsOutPlanDetailId(
|
||||
baseKnifeList.size(),
|
||||
|
Loading…
Reference in New Issue
Block a user