|
@@ -568,14 +568,14 @@ public class IndexController {
|
|
|
TEquipment equipment = equipmentService.getOne(query1);
|
|
|
Long equipmentId = equipment.getId();
|
|
|
// 如果存在旧花型,就删除重新创建
|
|
|
- LambdaQueryWrapper<TProduct> queryProduct = Wrappers.lambdaQuery();
|
|
|
- queryProduct.eq(TProduct::getEquipmentId, equipment.getId());
|
|
|
- List<TProduct> productList = productService.list(queryProduct);
|
|
|
- if (productList.size() > 0) {
|
|
|
- for (TProduct product : productList) {
|
|
|
- productService.removeById(product.getId());
|
|
|
- }
|
|
|
- }
|
|
|
+// LambdaQueryWrapper<TProduct> queryProduct = Wrappers.lambdaQuery();
|
|
|
+// queryProduct.eq(TProduct::getEquipmentId, equipment.getId());
|
|
|
+// List<TProduct> productList = productService.list(queryProduct);
|
|
|
+// if (productList.size() > 0) {
|
|
|
+// for (TProduct product : productList) {
|
|
|
+// productService.removeById(product.getId());
|
|
|
+// }
|
|
|
+// }
|
|
|
if (StringUtils.isEmpty(machineType) || machineType.equals("0")) {
|
|
|
if (equipmentApply.getEquimentType() != null && equipmentApply.getEquimentType().equals("MG280")) {
|
|
|
saveProductMG280(equipmentId);
|