mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
未排单管理-创建排单列表查询优化:1、减少前端无用加工组字段;2、恢复sql结果集中的groupId;3、cad拆单order_item支持group_id为空;
This commit is contained in:
+6
-4
@@ -72,6 +72,7 @@ import java.math.BigDecimal;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Timestamp;
|
||||
import java.sql.Types;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
@@ -858,7 +859,6 @@ public class WebCadOrderImportAsyncFactory {
|
||||
.type(OrderItemTypeEnum.PLATE_ITEM.getStatus())
|
||||
.roomId(roomId)
|
||||
.bodyId(bodyId)
|
||||
.groupId(0L)
|
||||
.plateId(plateId)
|
||||
.packageId(0L)
|
||||
.partsId(0L)
|
||||
@@ -1496,7 +1496,6 @@ public class WebCadOrderImportAsyncFactory {
|
||||
.type(OrderItemTypeEnum.PLATE_ITEM.getStatus())
|
||||
.roomId(roomId)
|
||||
.bodyId(bodyId)
|
||||
.groupId(0L)
|
||||
.partsId(part.getImesPartsId())
|
||||
.packageId(0L)
|
||||
.plateId(0L)
|
||||
@@ -1513,7 +1512,6 @@ public class WebCadOrderImportAsyncFactory {
|
||||
.type(OrderItemTypeEnum.PLATE_ITEM.getStatus())
|
||||
.roomId(roomId)
|
||||
.bodyId(bodyId)
|
||||
.groupId(0L)
|
||||
.partsId(part.getImesPartsId())
|
||||
.packageId(0L)
|
||||
.plateId(0L)
|
||||
@@ -1839,7 +1837,11 @@ public class WebCadOrderImportAsyncFactory {
|
||||
ps.setLong(4, item.getRoomId());
|
||||
ps.setLong(5, item.getBodyId());
|
||||
ps.setLong(6, item.getPackageId());
|
||||
ps.setLong(7, item.getGroupId());
|
||||
if (item.getGroupId() != null) {
|
||||
ps.setLong(7, item.getGroupId());
|
||||
} else {
|
||||
ps.setNull(7, Types.BIGINT);
|
||||
}
|
||||
ps.setLong(8, item.getPlateId());
|
||||
ps.setLong(9, item.getPartsId());
|
||||
ps.setDouble(10, item.getNum());
|
||||
|
||||
+6
-4
@@ -62,6 +62,7 @@ import java.math.BigDecimal;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Timestamp;
|
||||
import java.sql.Types;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
@@ -1178,7 +1179,6 @@ public class WebCadOrderImportFactory {
|
||||
.type(OrderItemTypeEnum.PLATE_ITEM.getStatus())
|
||||
.roomId(roomId)
|
||||
.bodyId(bodyId)
|
||||
.groupId(0L)
|
||||
.plateId(plateId)
|
||||
.packageId(0L)
|
||||
.partsId(0L)
|
||||
@@ -1385,7 +1385,6 @@ public class WebCadOrderImportFactory {
|
||||
.type(OrderItemTypeEnum.PLATE_ITEM.getStatus())
|
||||
.roomId(roomId)
|
||||
.bodyId(bodyId)
|
||||
.groupId(0L)
|
||||
.partsId(part.getImesPartsId())
|
||||
.packageId(0L)
|
||||
.plateId(0L)
|
||||
@@ -1402,7 +1401,6 @@ public class WebCadOrderImportFactory {
|
||||
.type(OrderItemTypeEnum.PLATE_ITEM.getStatus())
|
||||
.roomId(roomId)
|
||||
.bodyId(bodyId)
|
||||
.groupId(0L)
|
||||
.partsId(part.getImesPartsId())
|
||||
.packageId(0L)
|
||||
.plateId(0L)
|
||||
@@ -1728,7 +1726,11 @@ public class WebCadOrderImportFactory {
|
||||
ps.setLong(4, item.getRoomId());
|
||||
ps.setLong(5, item.getBodyId());
|
||||
ps.setLong(6, item.getPackageId());
|
||||
ps.setLong(7, item.getGroupId());
|
||||
if (item.getGroupId() != null) {
|
||||
ps.setLong(7, item.getGroupId());
|
||||
} else {
|
||||
ps.setNull(7, Types.BIGINT);
|
||||
}
|
||||
ps.setLong(8, item.getPlateId());
|
||||
ps.setLong(9, item.getPartsId());
|
||||
ps.setDouble(10, item.getNum());
|
||||
|
||||
Reference in New Issue
Block a user