|
|
@ -711,6 +711,7 @@ func PageSchoolInfo(c *gin.Context) {
|
|
|
|
// @Param page query int true "第几页"
|
|
|
|
// @Param page query int true "第几页"
|
|
|
|
// @Param limit query int true "一页显示多少条"
|
|
|
|
// @Param limit query int true "一页显示多少条"
|
|
|
|
// @Param areaCode query string true "行政区划编码"
|
|
|
|
// @Param areaCode query string true "行政区划编码"
|
|
|
|
|
|
|
|
// @Param orgId query string false "学校ID,增加学校时无需传,修改学校时需要传被修改学校的ID"
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
// @Success 200 {object} Model.Res
|
|
|
|
// @Router /base/organization/PageMainSchoolInfo [get]
|
|
|
|
// @Router /base/organization/PageMainSchoolInfo [get]
|
|
|
|
// @X-EmptyLimit ["page","limit","areaCode"]
|
|
|
|
// @X-EmptyLimit ["page","limit","areaCode"]
|
|
|
@ -727,6 +728,8 @@ func PageMainSchoolInfo(c *gin.Context) {
|
|
|
|
page := CommonUtil.ConvertStringToInt32(c.Query("page"))
|
|
|
|
page := CommonUtil.ConvertStringToInt32(c.Query("page"))
|
|
|
|
//一页显示多少条
|
|
|
|
//一页显示多少条
|
|
|
|
limit := CommonUtil.ConvertStringToInt32(c.Query("limit"))
|
|
|
|
limit := CommonUtil.ConvertStringToInt32(c.Query("limit"))
|
|
|
|
|
|
|
|
//学校ID
|
|
|
|
|
|
|
|
orgId := c.Query("orgId")
|
|
|
|
//行政区划编码
|
|
|
|
//行政区划编码
|
|
|
|
areaCode := c.Query("areaCode")
|
|
|
|
areaCode := c.Query("areaCode")
|
|
|
|
//操作人
|
|
|
|
//操作人
|
|
|
@ -740,7 +743,7 @@ func PageMainSchoolInfo(c *gin.Context) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//操作IP
|
|
|
|
//操作IP
|
|
|
|
actionIpAddress := c.ClientIP()
|
|
|
|
actionIpAddress := c.ClientIP()
|
|
|
|
r, err := BaseOrganizationService.PageMainSchoolInfo(page, limit, areaCode, actionPersonId, actionIpAddress)
|
|
|
|
r, err := BaseOrganizationService.PageMainSchoolInfo(page, limit, areaCode, orgId, actionPersonId, actionIpAddress)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
c.JSON(http.StatusOK, Model.Res{
|
|
|
|
c.JSON(http.StatusOK, Model.Res{
|
|
|
|
Success: false,
|
|
|
|
Success: false,
|
|
|
|