feat: 测试类
This commit is contained in:
@@ -667,7 +667,8 @@ public class StIvtIostorinvOutServiceImpl extends ServiceImpl<StIvtIostorinvOutM
|
||||
// 任务表
|
||||
WQLObject taskService = WQLObject.getWQLObject("sch_base_task");
|
||||
|
||||
StIvtIostorinv mstDao = this.getById(whereJson.getLongValue("iostorinv_id"));
|
||||
// 获取出库单据
|
||||
StIvtIostorinv mstDao = this.getById(whereJson.getString("iostorinv_id"));
|
||||
|
||||
// 创建手动式事务
|
||||
ArrayList<String> arr = new ArrayList<>();
|
||||
@@ -694,7 +695,7 @@ public class StIvtIostorinvOutServiceImpl extends ServiceImpl<StIvtIostorinvOutM
|
||||
}
|
||||
|
||||
/*
|
||||
* 下发任务
|
||||
* 下发任务(规则)
|
||||
* 1.根据木箱 长、宽、高、订单号、物料分组
|
||||
* 2.相同木箱规格、订单号、物料的木箱一个任务组
|
||||
*/
|
||||
@@ -2116,7 +2117,7 @@ public class StIvtIostorinvOutServiceImpl extends ServiceImpl<StIvtIostorinvOutM
|
||||
WQLObject TaskTab = WQLObject.getWQLObject("sch_base_task");
|
||||
|
||||
String result = "";
|
||||
// 查找库内是否有异常货位
|
||||
// 查找库内是否有异常货位(主存区)
|
||||
List<JSONObject> attrExceptionList = attrTab
|
||||
.query("sect_code = 'BZC01' AND is_delete = '0' AND is_used = '1' and lock_type = '" + IOSEnum.LOCK_TYPE.code("出库异常锁") + "' and zdepth = '"+IOSEnum.ZDEPTH_STRUCT.code("浅")+"'")
|
||||
.getResultJSONArray(0).toJavaList(JSONObject.class);
|
||||
@@ -2183,7 +2184,7 @@ public class StIvtIostorinvOutServiceImpl extends ServiceImpl<StIvtIostorinvOutM
|
||||
new QueryWrapper<StIvtIostorinvdis>().lambda()
|
||||
.eq(StIvtIostorinvdis::getIostorinv_id, iostorinv_id)
|
||||
);
|
||||
|
||||
// 获取木箱号数组
|
||||
List<String> collectBox = listDis.stream()
|
||||
.map(StIvtIostorinvdis::getBox_no)
|
||||
.distinct()
|
||||
|
||||
18
lms/nladmin-system/src/test/java/org/nl/test/EventTest.java
Normal file
18
lms/nladmin-system/src/test/java/org/nl/test/EventTest.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package org.nl.test;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.junit.jupiter.api.DisplayName;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
|
||||
/**
|
||||
* @Author: lyd
|
||||
* @Date: 2025/6/23
|
||||
*/
|
||||
@Slf4j
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@DisplayName("event test")
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
public class EventTest {
|
||||
}
|
||||
Reference in New Issue
Block a user