决因为数据库连接问题导致的插入数据库异常

This commit is contained in:
2026-05-07 09:51:29 +08:00
parent 413f93c473
commit 4fce0df8ed
4 changed files with 36 additions and 16 deletions

View File

@@ -248,7 +248,10 @@ public class CustomerManagementController {
@Parameter(description = "所属人姓名(模糊查询)")@RequestParam(required = false) String salesName,
@Parameter(description = "所属人电话")@RequestParam(required = false) String salesPhone,
@Parameter(description = "联系方式(模糊查询)")
@RequestParam(required = false) String contact) {
@RequestParam(required = false) String contact,
@Parameter(description = "联系方式(模糊查询)")
@RequestParam(required = false) String stage
) {
Map<String, Object> result = new HashMap<>();
try {
Page<CustomerManagement> page = new Page<>(current, size);
@@ -264,6 +267,9 @@ public class CustomerManagementController {
if (contact != null && !contact.trim().isEmpty()) {
queryWrapper.like(CustomerManagement::getContact, contact);
}
if (stage != null && !stage.trim().isEmpty()) {
queryWrapper.eq(CustomerManagement::getStage, stage);
}
// 按创建时间倒序排列
queryWrapper.orderByDesc(CustomerManagement::getUpdateTime);