mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-16 04:07:51 +00:00
update modules/service: mod 5 files
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2024-02-22 16:52:52
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2025-06-24 21:25:16
|
||||
* @LastEditTime: 2025-06-25 08:32:12
|
||||
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
|
||||
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
|
||||
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
|
||||
@@ -121,4 +121,6 @@ public class CustomerEntity extends BaseEntity {
|
||||
// 备注信息
|
||||
@Column(columnDefinition = TypeConsts.COLUMN_TYPE_TEXT)
|
||||
private String notes; // 备注信息
|
||||
|
||||
private String visitorUid;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2024-03-22 23:06:35
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2025-06-24 21:20:30
|
||||
* @LastEditTime: 2025-06-25 08:32:19
|
||||
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
|
||||
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
|
||||
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
|
||||
@@ -51,4 +51,5 @@ public class CustomerRequest extends BaseRequest {
|
||||
// 备注信息
|
||||
private String notes;
|
||||
|
||||
private String visitorUid;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2024-03-22 23:06:47
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2025-06-24 20:54:32
|
||||
* @LastEditTime: 2025-06-25 08:32:23
|
||||
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
|
||||
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
|
||||
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
|
||||
@@ -50,4 +50,6 @@ public class CustomerResponse extends BaseResponse {
|
||||
|
||||
// 备注信息
|
||||
private String notes;
|
||||
|
||||
private String visitorUid;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2024-03-22 23:06:07
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2025-05-25 11:08:42
|
||||
* @LastEditTime: 2025-06-25 08:33:54
|
||||
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
|
||||
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
|
||||
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
|
||||
@@ -65,6 +65,17 @@ public class CustomerRestController extends BaseRestController<CustomerRequest>
|
||||
return ResponseEntity.ok(JsonResult.success(response));
|
||||
}
|
||||
|
||||
@Operation(summary = "查询指定客户", description = "根据UID查询客户详情")
|
||||
@ApiResponse(responseCode = "200", description = "查询成功",
|
||||
content = @Content(mediaType = "application/json",
|
||||
schema = @Schema(implementation = CustomerResponse.class)))
|
||||
@Override
|
||||
public ResponseEntity<?> queryByUid(CustomerRequest request) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'queryByUid'");
|
||||
}
|
||||
|
||||
|
||||
@Operation(summary = "创建客户", description = "创建新的客户")
|
||||
@ApiResponse(responseCode = "200", description = "创建成功",
|
||||
content = @Content(mediaType = "application/json",
|
||||
@@ -113,16 +124,7 @@ public class CustomerRestController extends BaseRestController<CustomerRequest>
|
||||
);
|
||||
}
|
||||
|
||||
@Operation(summary = "查询指定客户", description = "根据UID查询客户详情")
|
||||
@ApiResponse(responseCode = "200", description = "查询成功",
|
||||
content = @Content(mediaType = "application/json",
|
||||
schema = @Schema(implementation = CustomerResponse.class)))
|
||||
@Override
|
||||
public ResponseEntity<?> queryByUid(CustomerRequest request) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'queryByUid'");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2024-06-07 11:45:30
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2025-06-24 22:02:41
|
||||
* @LastEditTime: 2025-06-25 08:32:29
|
||||
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
|
||||
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
|
||||
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
|
||||
@@ -56,6 +56,10 @@ public class CustomerSpecification extends BaseSpecification {
|
||||
if (StringUtils.hasText(request.getNotes())) {
|
||||
predicates.add(criteriaBuilder.like(root.get("notes"), "%" + request.getNotes() + "%"));
|
||||
}
|
||||
// visitorUid
|
||||
if (StringUtils.hasText(request.getVisitorUid())) {
|
||||
predicates.add(criteriaBuilder.equal(root.get("visitorUid"), request.getVisitorUid()));
|
||||
}
|
||||
return criteriaBuilder.and(predicates.toArray(new Predicate[0]));
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user