多分区-动态数据增加地区查询字段

This commit is contained in:
liaozetao
2024-04-18 17:22:30 +08:00
committed by khalil
parent f5d277f2f8
commit 62edb5a820
3 changed files with 7 additions and 1 deletions

View File

@@ -37,4 +37,6 @@ public class DynamicVerifyDto {
private Integer topStatus;
private String dynamicLab;
private Integer partitionId;
}

View File

@@ -196,6 +196,9 @@ public class DynamicVerifyAdminService extends BaseService {
queryWrapper.like("dynamic_lab", "%" + dto.getDynamicLab() + "%");
}
}
if (dto.getPartitionId() != null) {
queryWrapper.eq("partition_id", dto.getPartitionId());
}
queryWrapper.orderByDesc("create_time");
return queryWrapper;
}

View File

@@ -13,6 +13,7 @@ import com.accompany.community.constant.HotChangeTipEnum;
import com.accompany.community.entity.Dynamic;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@@ -33,7 +34,7 @@ public class DynamicDataAdminController extends BaseController {
@Autowired
private DynamicVerifyAdminService dynamicVerifyAdminService;
@RequestMapping("/list")
@GetMapping("/list")
public void list(DynamicVerifyDto dto){
dto.setStatusEnums(Arrays.asList(DynamicStatusEnum.PASS.getValue(), DynamicStatusEnum.PASS_MACHINE.getValue(), DynamicStatusEnum.SHELVE.getValue()));
PageInfo<DynamicVerifyVo> voPageInfo = dynamicVerifyAdminService.getPageList(dto);