mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
cad三维看图能力相关字段修复
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ import java.math.BigDecimal;
|
|||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
public class OrderBodyViewPlatePageRespVO {
|
public class OrderBodyViewPlatePageRespVO {
|
||||||
@Schema(description = "板件编号")
|
@Schema(description = "板件编号")
|
||||||
private Long id;
|
private String plateNo;
|
||||||
|
|
||||||
@Schema(description = "板件名称")
|
@Schema(description = "板件名称")
|
||||||
private String name;
|
private String name;
|
||||||
|
|||||||
+2
-2
@@ -13,9 +13,9 @@ import java.math.BigDecimal;
|
|||||||
@Data
|
@Data
|
||||||
public class OrderBodyViewPlatesPageDO {
|
public class OrderBodyViewPlatesPageDO {
|
||||||
/**
|
/**
|
||||||
* 主键
|
* 板编号
|
||||||
*/
|
*/
|
||||||
private Long id;
|
private String plateNo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 板件名称
|
* 板件名称
|
||||||
|
|||||||
+2
-2
@@ -535,9 +535,9 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectBodyViewPlatesPage" resultType="com.cf.imes.module.executor.dal.dataobject.orderItem.OrderBodyViewPlatesPageDO">
|
<select id="selectBodyViewPlatesPage" resultType="com.cf.imes.module.executor.dal.dataobject.orderItem.OrderBodyViewPlatesPageDO">
|
||||||
SELECT p.id, p.name, p.width, p.height, p.thickness, p.cad_view_id, g.material, g.color
|
SELECT p.plate_no, p.name, p.width, p.height, p.thickness, g.material, g.color, p.cad_plate_no as customNumber
|
||||||
<if test="cadView">
|
<if test="cadView">
|
||||||
, p.cad_plate_no as customNumber, p.seal_left, p.seal_down, p.seal_right, p.seal_up
|
, p.cad_view_id, p.seal_left, p.seal_down, p.seal_right, p.seal_up
|
||||||
</if>
|
</if>
|
||||||
FROM order_item i
|
FROM order_item i
|
||||||
LEFT JOIN `order_plate` p ON i.plate_id = p.id
|
LEFT JOIN `order_plate` p ON i.plate_id = p.id
|
||||||
|
|||||||
-3
@@ -93,9 +93,6 @@ public class WebCadDataBlockReqVO {
|
|||||||
// private Long plateGoodsId;
|
// private Long plateGoodsId;
|
||||||
private String goodsCode;
|
private String goodsCode;
|
||||||
|
|
||||||
@JsonProperty(value = "CadData")
|
|
||||||
private String CadData;
|
|
||||||
|
|
||||||
private List<Integer> groupIds = new ArrayList<>();
|
private List<Integer> groupIds = new ArrayList<>();
|
||||||
|
|
||||||
public void setIsSpecialShape(boolean specialShape) {
|
public void setIsSpecialShape(boolean specialShape) {
|
||||||
|
|||||||
+2
-3
@@ -858,7 +858,6 @@ public class WebCadOrderImportAsyncFactory {
|
|||||||
.organId(organId)
|
.organId(organId)
|
||||||
.planId(0L)
|
.planId(0L)
|
||||||
.cadViewId(block.getID())
|
.cadViewId(block.getID())
|
||||||
.cadData(StringUtils.isNotEmpty(block.getCadData()) ? zipString(block.getCadData()) : null)
|
|
||||||
.build();
|
.build();
|
||||||
plateDO.setCreator(operatorName);
|
plateDO.setCreator(operatorName);
|
||||||
plateDO.setUpdater(operatorName);
|
plateDO.setUpdater(operatorName);
|
||||||
@@ -1852,7 +1851,7 @@ public class WebCadOrderImportAsyncFactory {
|
|||||||
private void orderPlateBatchInsertWithinThreshold(List<PlateDO> list, boolean isLast) {
|
private void orderPlateBatchInsertWithinThreshold(List<PlateDO> list, boolean isLast) {
|
||||||
// 达到批量的阈值就做一次插入
|
// 达到批量的阈值就做一次插入
|
||||||
if (CollUtil.isNotEmpty(list) && (list.size() >= BATCH_THRESHOLD_NUMBER || isLast)) {
|
if (CollUtil.isNotEmpty(list) && (list.size() >= BATCH_THRESHOLD_NUMBER || isLast)) {
|
||||||
String sql = "INSERT INTO order_plate (id,organ_id,order_id,name,plate_no,type,goods_id,width,height,thickness,split_width,split_height,split_thickness,seal_left,seal_right,seal_up,seal_down,area,texture,hole_face,hole_arrange,unregular_point_count,front_hole_count,back_hole_count,side_hole_count,front_model_count,back_model_count,is_door,open_door_type,offset_x,offset_y,is_arc_across,module_type_id,is_special_shaped,is_sculpt,is_side_sculpt,is_2v,is_side_2v,is_row_hole,is_optimized,is_cutted,filter_type,remark,is_cancel,deleted,custom_plate_no,create_time,update_time,creator,updater, cad_view_id, cad_data, cad_plate_no) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
|
String sql = "INSERT INTO order_plate (id,organ_id,order_id,name,plate_no,type,goods_id,width,height,thickness,split_width,split_height,split_thickness,seal_left,seal_right,seal_up,seal_down,area,texture,hole_face,hole_arrange,unregular_point_count,front_hole_count,back_hole_count,side_hole_count,front_model_count,back_model_count,is_door,open_door_type,offset_x,offset_y,is_arc_across,module_type_id,is_special_shaped,is_sculpt,is_side_sculpt,is_2v,is_side_2v,is_row_hole,is_optimized,is_cutted,filter_type,remark,is_cancel,deleted,custom_plate_no,create_time,update_time,creator,updater, cad_view_id, cad_plate_no) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
|
||||||
jdbcTemplate.batchUpdate(sql, new BatchPreparedStatementSetter() {
|
jdbcTemplate.batchUpdate(sql, new BatchPreparedStatementSetter() {
|
||||||
@Override
|
@Override
|
||||||
public void setValues(PreparedStatement ps, int index) throws SQLException {
|
public void setValues(PreparedStatement ps, int index) throws SQLException {
|
||||||
@@ -1908,7 +1907,7 @@ public class WebCadOrderImportAsyncFactory {
|
|||||||
ps.setString(49, item.getCreator());
|
ps.setString(49, item.getCreator());
|
||||||
ps.setString(50, item.getUpdater());
|
ps.setString(50, item.getUpdater());
|
||||||
ps.setInt(51, item.getCadViewId());
|
ps.setInt(51, item.getCadViewId());
|
||||||
ps.setString(52, item.getCadData());
|
ps.setString(52, item.getCadPlateNo());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
+2
-4
@@ -715,7 +715,6 @@ public class WebCadOrderImportFactory {
|
|||||||
.organId(organId)
|
.organId(organId)
|
||||||
.planId(0L)
|
.planId(0L)
|
||||||
.cadViewId(block.getID())
|
.cadViewId(block.getID())
|
||||||
.cadData(StringUtils.isNotEmpty(block.getCadData()) ? zipString(block.getCadData()) : null)
|
|
||||||
.build();
|
.build();
|
||||||
plateDO.setCreator(operatorName);
|
plateDO.setCreator(operatorName);
|
||||||
plateDO.setUpdater(operatorName);
|
plateDO.setUpdater(operatorName);
|
||||||
@@ -1704,7 +1703,7 @@ public class WebCadOrderImportFactory {
|
|||||||
private void orderPlateBatchInsertWithinThreshold(List<PlateDO> list, boolean isLast) {
|
private void orderPlateBatchInsertWithinThreshold(List<PlateDO> list, boolean isLast) {
|
||||||
// 达到批量的阈值就做一次插入
|
// 达到批量的阈值就做一次插入
|
||||||
if (CollUtil.isNotEmpty(list) && (list.size() >= BATCH_THRESHOLD_NUMBER || isLast)) {
|
if (CollUtil.isNotEmpty(list) && (list.size() >= BATCH_THRESHOLD_NUMBER || isLast)) {
|
||||||
String sql = "INSERT INTO order_plate (id,organ_id,order_id,name,plate_no,type,goods_id,width,height,thickness,split_width,split_height,split_thickness,seal_left,seal_right,seal_up,seal_down,area,texture,hole_face,hole_arrange,unregular_point_count,front_hole_count,back_hole_count,side_hole_count,front_model_count,back_model_count,is_door,open_door_type,offset_x,offset_y,is_arc_across,module_type_id,is_special_shaped,is_sculpt,is_side_sculpt,is_2v,is_side_2v,is_row_hole,is_optimized,is_cutted,filter_type,remark,is_cancel,deleted,custom_plate_no,create_time,update_time,creator,updater, cad_view_id, cad_data, cad_plate_no) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
|
String sql = "INSERT INTO order_plate (id,organ_id,order_id,name,plate_no,type,goods_id,width,height,thickness,split_width,split_height,split_thickness,seal_left,seal_right,seal_up,seal_down,area,texture,hole_face,hole_arrange,unregular_point_count,front_hole_count,back_hole_count,side_hole_count,front_model_count,back_model_count,is_door,open_door_type,offset_x,offset_y,is_arc_across,module_type_id,is_special_shaped,is_sculpt,is_side_sculpt,is_2v,is_side_2v,is_row_hole,is_optimized,is_cutted,filter_type,remark,is_cancel,deleted,custom_plate_no,create_time,update_time,creator,updater, cad_view_id, cad_plate_no) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
|
||||||
jdbcTemplate.batchUpdate(sql, new BatchPreparedStatementSetter() {
|
jdbcTemplate.batchUpdate(sql, new BatchPreparedStatementSetter() {
|
||||||
@Override
|
@Override
|
||||||
public void setValues(PreparedStatement ps, int index) throws SQLException {
|
public void setValues(PreparedStatement ps, int index) throws SQLException {
|
||||||
@@ -1760,8 +1759,7 @@ public class WebCadOrderImportFactory {
|
|||||||
ps.setString(49, item.getCreator());
|
ps.setString(49, item.getCreator());
|
||||||
ps.setString(50, item.getUpdater());
|
ps.setString(50, item.getUpdater());
|
||||||
ps.setInt(51, item.getCadViewId());
|
ps.setInt(51, item.getCadViewId());
|
||||||
ps.setString(52, item.getCadData());
|
ps.setString(52, item.getCadPlateNo());
|
||||||
ps.setString(53, item.getCadPlateNo());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user