.接口排序
@ApiSupport(order = 202)
@ApiOperationSupport(order = 1)
/**
- 项目信息Controller
* - @author wangwei
@date 2024-03-14
*/
@ApiSupport(order = 202)
@Api(tags = "xx管理-项目信息")
@RestController
@RequestMapping("/research/project")
public class CmrxRpmProjectController extends BaseController {
@Autowired
private ICmrxRpmProjectService cmrxRpmProjectService;@Autowired
private CmrxRpmProjectMapper cmrxRpmProjectMapper;/**
- 查询项目信息列表
*/
@ApiOperationSupport(order = 1)
@ApiOperation(value = "查询项目信息列表")
@PreAuthorize("@ss.hasPermi('research:project:list')")
@GetMapping("/list")
public TableDataInfo list(CmrxRpmProject cmrxRpmProject) {
startPage();
List list = cmrxRpmProjectService.selectCmrxRpmProjectList(cmrxRpmProject);
return getDataTable(list);
}
- 查询项目信息列表
2.字段排序
position = 1
@ApiModelProperty(value = "xx项目", position = 1)
@ExcelProperty(value = {"xx名称", "xx名称"}, index = 0)
@ColumnWidth(15)
@ApiModelProperty(value = "xx名称", position = 0)
private String deptName;
@ExcelProperty(value = {"xx统计", "xx项目"}, index = 1)
@ColumnWidth(15)
@ApiModelProperty(value = "xx项目", position = 1)
private int sbxmsnum;
3.字段不给前台展示
3.1 @ApiModelProperty(hidden = true)
private String ctSci;
3.2
@JsonIgnore