|
|
@@ -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
|
|