正在显示
1 个修改的文件
包含
4 行增加
和
3 行删除
| @@ -2,6 +2,9 @@ package service | @@ -2,6 +2,9 @@ package service | ||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "fmt" | 4 | "fmt" |
| 5 | + "strconv" | ||
| 6 | + "time" | ||
| 7 | + | ||
| 5 | "github.com/linmadan/egglib-go/core/application" | 8 | "github.com/linmadan/egglib-go/core/application" |
| 6 | "github.com/linmadan/egglib-go/utils/tool_funs" | 9 | "github.com/linmadan/egglib-go/utils/tool_funs" |
| 7 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationContract/command" | 10 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/application/cooperationContract/command" |
| @@ -13,8 +16,6 @@ import ( | @@ -13,8 +16,6 @@ import ( | ||
| 13 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/dao" | 16 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/dao" |
| 14 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/utils" | 17 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/utils" |
| 15 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log" | 18 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log" |
| 16 | - "strconv" | ||
| 17 | - "time" | ||
| 18 | ) | 19 | ) |
| 19 | 20 | ||
| 20 | // CooperationContractService 共创合约服务 | 21 | // CooperationContractService 共创合约服务 |
| @@ -828,7 +829,7 @@ func (cooperationContractService *CooperationContractService) SearchCooperationC | @@ -828,7 +829,7 @@ func (cooperationContractService *CooperationContractService) SearchCooperationC | ||
| 828 | if count, cooperationContractByUndertakers, err := cooperationContractDao.SearchCooperationContractByUndertaker(tool_funs.SimpleStructToMap(searchCooperationContractByUndertakerQuery)); err != nil { | 829 | if count, cooperationContractByUndertakers, err := cooperationContractDao.SearchCooperationContractByUndertaker(tool_funs.SimpleStructToMap(searchCooperationContractByUndertakerQuery)); err != nil { |
| 829 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | 830 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) |
| 830 | } else { | 831 | } else { |
| 831 | - var cooperationContractByUndertakerDtos []*dto.CooperationContractByUndertakerDto | 832 | + cooperationContractByUndertakerDtos := []*dto.CooperationContractByUndertakerDto{} |
| 832 | for _, cooperationContractByUndertaker := range cooperationContractByUndertakers { | 833 | for _, cooperationContractByUndertaker := range cooperationContractByUndertakers { |
| 833 | cooperationContractByUndertakerDto := &dto.CooperationContractByUndertakerDto{} | 834 | cooperationContractByUndertakerDto := &dto.CooperationContractByUndertakerDto{} |
| 834 | if err := cooperationContractByUndertakerDto.LoadDto(cooperationContractByUndertaker); err != nil { | 835 | if err := cooperationContractByUndertakerDto.LoadDto(cooperationContractByUndertaker); err != nil { |
-
请 注册 或 登录 后发表评论