jiangshuai
2023-11-22 d1fa69153ac1e7536291d5a999564f5a8b3bac3c
修改合同管理别表bug
4个文件已修改
16 ■■■■■ 已修改文件
api/v1/contract.go 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/v1/contract.go
@@ -161,11 +161,11 @@
        return
    }
    if params.SearchMap == nil {
        params.SearchMap = make(map[string]interface{}, 0)
    }
    userInfo := utils.GetUserInfo(c)
    if userInfo.UserType == constvar.UserTypeSub {
        if params.SearchMap == nil {
            params.SearchMap = make(map[string]interface{}, 0)
        }
        params.SearchMap["member_ids"] = userInfo.SubUserIds
    }
docs/docs.go
@@ -15659,6 +15659,9 @@
        "request.GetContractList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
@@ -19656,8 +19659,6 @@
    Description:      "",
    InfoInstanceName: "swagger",
    SwaggerTemplate:  docTemplate,
    LeftDelim:        "{{",
    RightDelim:       "}}",
}
func init() {
docs/swagger.json
@@ -15647,6 +15647,9 @@
        "request.GetContractList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
docs/swagger.yaml
@@ -3674,6 +3674,8 @@
    type: object
  request.GetContractList:
    properties:
      keyword:
        type: string
      page:
        description: 页码
        type: integer