|
@@ -61,6 +61,7 @@ func PermissionList(c *gin.Context) {
|
|
|
list = append(list, v)
|
|
|
}
|
|
|
lastEditPermissionId := 0
|
|
|
+ lastEditPermissionName := ""
|
|
|
// 查询最近被编辑过的品种ID
|
|
|
matter, e := matterOb.GetLaststModifyMatter()
|
|
|
if e != nil && e.Error() != utils.NotEmpty() {
|
|
@@ -69,9 +70,11 @@ func PermissionList(c *gin.Context) {
|
|
|
}
|
|
|
if e == nil {
|
|
|
lastEditPermissionId = matter.ChartPermissionId
|
|
|
+ lastEditPermissionName = matter.ChartPermissionName
|
|
|
}
|
|
|
|
|
|
resp.CheckedPermissionId = lastEditPermissionId
|
|
|
+ resp.CheckedPermissionName = lastEditPermissionName
|
|
|
resp.List = list
|
|
|
response.OkData("获取成功", resp, c)
|
|
|
}
|