mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 21:52:07 +08:00
板材造型压缩 索引去除
This commit is contained in:
+3
-3
@@ -110,7 +110,7 @@ public class OrderController {
|
|||||||
private String errKey = "生产数据导入异常,{}";
|
private String errKey = "生产数据导入异常,{}";
|
||||||
|
|
||||||
public static final String ORDER_PLATE_MODEL = "imes_order_plate_model";
|
public static final String ORDER_PLATE_MODEL = "imes_order_plate_model";
|
||||||
public static final String ORDER_PLATE_MODEL_COMPRESS = "imes_order_plate_model_compress";
|
// public static final String ORDER_PLATE_MODEL_COMPRESS = "imes_order_plate_model_compress";
|
||||||
public static final String ORDER_PARTS_REMARK_MODEL = "imes_order_parts_remark_model";
|
public static final String ORDER_PARTS_REMARK_MODEL = "imes_order_parts_remark_model";
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@Operation(summary = "更新生产单")
|
@Operation(summary = "更新生产单")
|
||||||
@@ -232,7 +232,7 @@ public class OrderController {
|
|||||||
OrderDO orderDO = orderMapper.selectById(orderId);
|
OrderDO orderDO = orderMapper.selectById(orderId);
|
||||||
if (orderDO == null) {
|
if (orderDO == null) {
|
||||||
orderInputProcessor.deleteByOrderId(orderId, ORDER_PLATE_MODEL);
|
orderInputProcessor.deleteByOrderId(orderId, ORDER_PLATE_MODEL);
|
||||||
orderInputProcessor.deleteByOrderId(orderId, ORDER_PLATE_MODEL_COMPRESS);
|
// orderInputProcessor.deleteByOrderId(orderId, ORDER_PLATE_MODEL_COMPRESS);
|
||||||
orderInputProcessor.deleteByOrderId(orderId, ORDER_PARTS_REMARK_MODEL);
|
orderInputProcessor.deleteByOrderId(orderId, ORDER_PARTS_REMARK_MODEL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -382,7 +382,7 @@ public class OrderController {
|
|||||||
if (ObjectUtil.isNotNull(orderDO) && ObjectUtil.isNotNull(orderMapper.selectById(orderDO.getId()))) {
|
if (ObjectUtil.isNotNull(orderDO) && ObjectUtil.isNotNull(orderMapper.selectById(orderDO.getId()))) {
|
||||||
Long deleteOrderId = orderDO.getId();
|
Long deleteOrderId = orderDO.getId();
|
||||||
orderInputProcessor.deleteByOrderId(deleteOrderId, ORDER_PLATE_MODEL);
|
orderInputProcessor.deleteByOrderId(deleteOrderId, ORDER_PLATE_MODEL);
|
||||||
orderInputProcessor.deleteByOrderId(deleteOrderId, ORDER_PLATE_MODEL_COMPRESS);
|
// orderInputProcessor.deleteByOrderId(deleteOrderId, ORDER_PLATE_MODEL_COMPRESS);
|
||||||
orderInputProcessor.deleteByOrderId(deleteOrderId, ORDER_PARTS_REMARK_MODEL);
|
orderInputProcessor.deleteByOrderId(deleteOrderId, ORDER_PARTS_REMARK_MODEL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+16
-17
@@ -16,7 +16,6 @@ import com.cf.imes.module.executor.dal.dataobject.orderGroup.OrderGroupDO;
|
|||||||
import com.cf.imes.module.executor.dal.dataobject.orderItem.OrderItemDO;
|
import com.cf.imes.module.executor.dal.dataobject.orderItem.OrderItemDO;
|
||||||
import com.cf.imes.module.executor.dal.dataobject.orderParts.OrderPartsDO;
|
import com.cf.imes.module.executor.dal.dataobject.orderParts.OrderPartsDO;
|
||||||
import com.cf.imes.module.executor.dal.dataobject.orderParts.PartsDO;
|
import com.cf.imes.module.executor.dal.dataobject.orderParts.PartsDO;
|
||||||
import com.cf.imes.module.executor.dal.dataobject.ordermodel.OrderModelCompressDO;
|
|
||||||
import com.cf.imes.module.executor.dal.dataobject.ordermodel.OrderModelDO;
|
import com.cf.imes.module.executor.dal.dataobject.ordermodel.OrderModelDO;
|
||||||
import com.cf.imes.module.executor.dal.dataobject.plate.PlateDO;
|
import com.cf.imes.module.executor.dal.dataobject.plate.PlateDO;
|
||||||
import com.cf.imes.module.executor.dal.dataobject.plate.PlateGoodDO;
|
import com.cf.imes.module.executor.dal.dataobject.plate.PlateGoodDO;
|
||||||
@@ -99,7 +98,7 @@ public class OrderInputProcessor {
|
|||||||
|
|
||||||
public static final String ORDER_PARTS_REMARK_MODEL = "imes_order_parts_remark_model";
|
public static final String ORDER_PARTS_REMARK_MODEL = "imes_order_parts_remark_model";
|
||||||
|
|
||||||
public static final String ORDER_PLATE_MODEL_COMPRESS = "imes_order_plate_model_compress";
|
// public static final String ORDER_PLATE_MODEL_COMPRESS = "imes_order_plate_model_compress";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量保存生产单小板五金数据
|
* 批量保存生产单小板五金数据
|
||||||
@@ -210,21 +209,21 @@ public class OrderInputProcessor {
|
|||||||
*
|
*
|
||||||
* @param orderModelDOs
|
* @param orderModelDOs
|
||||||
*/
|
*/
|
||||||
public void batchSaveCompressModel(List<OrderModelCompressDO> orderModelDOs) {
|
// public void batchSaveCompressModel(List<OrderModelCompressDO> orderModelDOs) {
|
||||||
try {
|
// try {
|
||||||
BulkResponse bulkResponse = esDocumentService.bulkCreate(ORDER_PLATE_MODEL_COMPRESS, orderModelDOs);
|
// BulkResponse bulkResponse = esDocumentService.bulkCreate(ORDER_PLATE_MODEL_COMPRESS, orderModelDOs);
|
||||||
boolean errors = bulkResponse.errors();
|
// boolean errors = bulkResponse.errors();
|
||||||
if (errors) {
|
// if (errors) {
|
||||||
log.error(bulkResponse.items().toString());
|
// log.error(bulkResponse.items().toString());
|
||||||
throw new ServiceException(500, "未知异常");
|
// throw new ServiceException(500, "未知异常");
|
||||||
}
|
// }
|
||||||
} catch (IOException | ElasticsearchException e) {
|
// } catch (IOException | ElasticsearchException e) {
|
||||||
e.printStackTrace();
|
// e.printStackTrace();
|
||||||
log.error(e.getMessage());
|
// log.error(e.getMessage());
|
||||||
throw new RuntimeException(e);
|
// throw new RuntimeException(e);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
-3
@@ -41,9 +41,6 @@ public class OrderInputProcessor {
|
|||||||
|
|
||||||
public static final String ORDER_PLATE_MODEL = "imes_order_plate_model";
|
public static final String ORDER_PLATE_MODEL = "imes_order_plate_model";
|
||||||
|
|
||||||
|
|
||||||
public static final String ORDER_PLATE_MODEL_COMPRESS = "imes_order_plate_model_compress";
|
|
||||||
|
|
||||||
public static final String ORDER_PARTS_REMARK_MODEL = "imes_order_parts_remark_model";
|
public static final String ORDER_PARTS_REMARK_MODEL = "imes_order_parts_remark_model";
|
||||||
|
|
||||||
private static final String FIELD_ORDER_ID = "orderId";
|
private static final String FIELD_ORDER_ID = "orderId";
|
||||||
|
|||||||
Reference in New Issue
Block a user