|
|
@@ -45,16 +45,17 @@ public class CustomerServiceImp extends ServiceImpl<CustomerMapper, Customer> im
|
|
45
|
45
|
|
|
46
|
46
|
// 解析查询参数
|
|
47
|
47
|
if (!ObjectUtils.isEmpty(params)) {
|
|
48
|
|
- JSONObject jsonObject = JSON.parseObject(params);
|
|
49
|
|
- if (!ObjectUtils.isEmpty(jsonObject.get("customerNm"))) {
|
|
50
|
|
- queryWrapper.like("customer_nm", jsonObject.getString("customerNm"));
|
|
51
|
|
- }
|
|
52
|
|
- if (!ObjectUtils.isEmpty(jsonObject.get("customerShortNm"))) {
|
|
53
|
|
- queryWrapper.like("customer_short_nm", jsonObject.getString("customerShortNm"));
|
|
54
|
|
- }
|
|
55
|
|
- if (!ObjectUtils.isEmpty(jsonObject.get("contactPerson"))) {
|
|
56
|
|
- queryWrapper.like("contact_person", jsonObject.getString("contactPerson"));
|
|
57
|
|
- }
|
|
|
48
|
+ queryWrapper.like("customer_nm", params);
|
|
|
49
|
+// JSONObject jsonObject = JSON.parseObject(params);
|
|
|
50
|
+// if (!ObjectUtils.isEmpty(jsonObject.get("customerNm"))) {
|
|
|
51
|
+
|
|
|
52
|
+// }
|
|
|
53
|
+// if (!ObjectUtils.isEmpty(jsonObject.get("customerShortNm"))) {
|
|
|
54
|
+// queryWrapper.like("customer_short_nm", jsonObject.getString("customerShortNm"));
|
|
|
55
|
+// }
|
|
|
56
|
+// if (!ObjectUtils.isEmpty(jsonObject.get("contactPerson"))) {
|
|
|
57
|
+// queryWrapper.like("contact_person", jsonObject.getString("contactPerson"));
|
|
|
58
|
+// }
|
|
58
|
59
|
}
|
|
59
|
60
|
|
|
60
|
61
|
Page<Customer> list = customerMapper.selectPage(customerPage, queryWrapper);
|