feat: acs对接、手持接口
This commit is contained in:
@@ -28,8 +28,9 @@ public class ApplicationTest {
|
||||
}
|
||||
@Test
|
||||
void yzMapperTest() {
|
||||
// List<SchBasePoint> pointForYZSL = yzMapper.findPointForYZSL(new JSONObject(
|
||||
// MapOf.of("regionCode", "HCSSX", "pointType", "1")));
|
||||
// System.out.println(pointForYZSL);
|
||||
JSONObject res = new JSONObject();
|
||||
res.put("UserID", "admin");
|
||||
res.put("UserPassword", "admin");
|
||||
System.out.println(JSONObject.toJSONString(res));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,10 +3,13 @@ package org.nl.point;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.nl.system.service.param.dao.Param;
|
||||
import org.nl.wms.sch.point.service.ISchBasePointService;
|
||||
import org.nl.wms.sch.point.service.dao.SchBasePoint;
|
||||
import org.nl.wms.sch.region.service.ISchBaseRegionService;
|
||||
import org.nl.wms.sch.task_manage.GeneralDefinition;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -312,30 +315,26 @@ public class PointCreate {
|
||||
}
|
||||
pointService.saveBatch(pointList);
|
||||
}
|
||||
// 暂存区 9*18
|
||||
// 暂存区 9*18 7*12
|
||||
@Test
|
||||
void testZCQLeft() {
|
||||
void testZCQLeftAndRight() {
|
||||
List<SchBasePoint> pointList = new ArrayList<>();
|
||||
for (int i = 1; i <= 18; i++) {
|
||||
for (int j = 1; j <= 9; j++) {
|
||||
for (int i = 19; i <= 30; i++) {
|
||||
for (int j = 1; j <= 7; j++) {
|
||||
SchBasePoint point = new SchBasePoint();
|
||||
if (i < 10) {
|
||||
point.setPoint_code("0" + i + "-0" + j + "-01");
|
||||
point.setPoint_name("0" + i + "排0" + j + "列01层");
|
||||
} else {
|
||||
point.setPoint_code(i + "-0" + j + "-01");
|
||||
point.setPoint_name(i + "排0" + j + "列01层");
|
||||
}
|
||||
point.setPoint_code(i + "-0" + j + "-01");
|
||||
point.setPoint_name(i + "排0" + j + "列01层");
|
||||
point.setRegion_code("ZC");
|
||||
point.setRegion_name("暂存区域");
|
||||
point.setRow_num(i);
|
||||
point.setCol_num(j);
|
||||
point.setOut_order_seq(j);
|
||||
point.setIn_order_seq(9 - j + 1);
|
||||
point.setIn_order_seq(7 - j + 1);
|
||||
point.setPoint_status("1");
|
||||
point.setParent_point_code(point.getPoint_code());
|
||||
point.setIs_has_workder(false);
|
||||
point.setIs_auto(true);
|
||||
point.setWorkshop_code("A1");
|
||||
point.setCreate_id("1");
|
||||
point.setCreate_name("管理员");
|
||||
point.setCreate_time(DateUtil.now());
|
||||
@@ -360,4 +359,22 @@ public class PointCreate {
|
||||
res.put("MonthlyWorkOrder", array);
|
||||
System.out.println(res);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testsout() {
|
||||
Param param = new Param();
|
||||
param.setValue(GeneralDefinition.CUSTOM_MIXING);
|
||||
System.out.println(param.getValue());
|
||||
// 修改物料策略
|
||||
param.setValue("ewer");
|
||||
System.out.println(param.getValue());
|
||||
}
|
||||
|
||||
@Test
|
||||
void testPoint() {
|
||||
// 如果多条,返回第一条
|
||||
SchBasePoint ghs14 = pointService.getOne(new LambdaQueryWrapper<SchBasePoint>()
|
||||
.eq(SchBasePoint::getPoint_code, "GHS14"), false);
|
||||
System.out.println(ghs14);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user