多分区-动态数据增加地区查询字段
This commit is contained in:
@@ -37,4 +37,6 @@ public class DynamicVerifyDto {
|
||||
private Integer topStatus;
|
||||
|
||||
private String dynamicLab;
|
||||
|
||||
private Integer partitionId;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user