作者 tangxuhui

更新

@@ -6,7 +6,9 @@ type SearchFeedbackCommand struct { @@ -6,7 +6,9 @@ type SearchFeedbackCommand struct {
6 //操作人 6 //操作人
7 Operator domain.Operator `json:"-"` 7 Operator domain.Operator `json:"-"`
8 // 页面大小 8 // 页面大小
9 - PageNumber int64 `cname:"页码" json:"pageNumber,omitempty"` 9 + PageNumber int64 ` json:"pageNumber"`
10 // 页面大小 10 // 页面大小
11 - PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"` 11 + PageSize int64 ` json:"pageSize"`
  12 + ContractName string `json:"contractName"`
  13 + UndertakerName string `json:"undertakerName"`
12 } 14 }
@@ -15,8 +15,10 @@ func (srv UndertakerFeedbackService) SearchFeedback(cmd *command.SearchFeedbackC @@ -15,8 +15,10 @@ func (srv UndertakerFeedbackService) SearchFeedback(cmd *command.SearchFeedbackC
15 gateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation( 15 gateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(
16 cmd.Operator) 16 cmd.Operator)
17 resultMenu, err := gateway.ContractUndertakerFeedbackSearch(allied_creation_cooperation.ReqContractUndertakerFeedbackSearch{ 17 resultMenu, err := gateway.ContractUndertakerFeedbackSearch(allied_creation_cooperation.ReqContractUndertakerFeedbackSearch{
18 - PageNumber: cmd.PageNumber,  
19 - PageSize: cmd.PageSize, 18 + PageNumber: cmd.PageNumber,
  19 + PageSize: cmd.PageSize,
  20 + CooperationContractName: cmd.ContractName,
  21 + UndertakerName: cmd.UndertakerName,
20 }) 22 })
21 if err != nil { 23 if err != nil {
22 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) 24 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
@@ -36,9 +36,11 @@ type ( @@ -36,9 +36,11 @@ type (
36 type ( 36 type (
37 ReqContractUndertakerFeedbackSearch struct { 37 ReqContractUndertakerFeedbackSearch struct {
38 // 页面大小 38 // 页面大小
39 - PageNumber int64 `cname:"页码" json:"pageNumber,omitempty"` 39 + PageNumber int64 `json:"pageNumber"`
40 // 页面大小 40 // 页面大小
41 - PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"` 41 + PageSize int64 `json:"pageSize"`
  42 + UndertakerName string `json:"undertakerName"`
  43 + CooperationContractName string `json:"cooperationContractName"`
42 } 44 }
43 45
44 DataContractUndertakerFeedbackSearch struct { 46 DataContractUndertakerFeedbackSearch struct {
@@ -6,5 +6,5 @@ import ( @@ -6,5 +6,5 @@ import (
6 ) 6 )
7 7
8 func init() { 8 func init() {
9 - web.Router("/v1/web/contract-undertaker-feedbacks/search", &web_client.UndertakerFeedbackController{}, "Put:SearchFeedback") 9 + web.Router("/v1/web/contract-undertaker-feedbacks/search", &web_client.UndertakerFeedbackController{}, "Post:SearchFeedback")
10 } 10 }