决因为数据库连接问题导致的插入数据库异常
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user