mengy 2 年之前
父节点
当前提交
7cac76bb7e
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 7 7
      src/main/java/com/unissoft/basic/service/impl/BasicWarrantyPreserveServiceImpl.java

+ 7 - 7
src/main/java/com/unissoft/basic/service/impl/BasicWarrantyPreserveServiceImpl.java

@@ -39,19 +39,19 @@ public class BasicWarrantyPreserveServiceImpl extends ServiceImpl<BasicWarrantyP
39 39
             // 查询条件转Java对象
40 40
             BasicWarrantyPreserve warrantyPreserve = JSON.parseObject(condition, BasicWarrantyPreserve.class);
41 41
             // 获取查询条件
42
-            String houseCode = warrantyPreserve.getHouseCode();
43
-            String orgCode = warrantyPreserve.getOrgCode();
42
+            String assetNo = warrantyPreserve.getAssetNo();
43
+            String assetName = warrantyPreserve.getAssetName();
44 44
             //Integer qos = warrantyPreserve.getProtocolQos();
45
-            if (!StringUtils.isEmpty(houseCode)){
46
-                warrantyPreserveQW.like("house_code", houseCode);
45
+            if (!StringUtils.isEmpty(assetNo)){
46
+                warrantyPreserveQW.like("asset_no", assetNo);
47 47
             }
48
-            if (!StringUtils.isEmpty(orgCode)){
49
-                warrantyPreserveQW.like("org_code", orgCode);
48
+            if (!StringUtils.isEmpty(assetName)){
49
+                warrantyPreserveQW.like("asset_name", assetName);
50 50
                 //ew.eq("protocol_qos", qos);
51 51
             }
52 52
 
53 53
         }
54
-        warrantyPreserveQW.orderByDesc("warranty_time");
54
+        //warrantyPreserveQW.orderByDesc("warranty_time");
55 55
         IPage<BasicWarrantyPreserve> page = new Page<>(pageIndex, pageSize);
56 56
         return warrantyPreserveMapper.selectPage(page, warrantyPreserveQW);
57 57