作者 陈志颖

feat:调整列表返回结构

正在显示 43 个修改的文件 包含 124 行增加100 行删除
... ... @@ -10,9 +10,9 @@ import (
type ListContractUndertakerFeedbackQuery struct {
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 承接人uid
UnderTakerUid string `cname:"承接人uid" json:"underTakerUid" valid:"Required"`
// 公司ID,通过集成REST上下文获取
... ...
... ... @@ -24,9 +24,9 @@ type SearchContractUndertakerFeedbackQuery struct {
// 查询关键词
MatchWord string `cname:"查询关键词" json:"matchWord,omitempty"`
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
}
func (searchContractUndertakerFeedbackQuery *SearchContractUndertakerFeedbackQuery) Valid(validation *validation.Validation) {
... ...
... ... @@ -177,8 +177,10 @@ func (contractUndertakerFeedbackService *ContractUndertakerFeedbackService) List
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return map[string]interface{}{
"count": count,
"contractUndertakerFeedbacks": contractUndertakerFeedbacks,
"grid": map[string]interface{}{
"total": count,
"list": contractUndertakerFeedbacks,
},
}, nil
}
}
... ...
... ... @@ -10,9 +10,9 @@ import (
type ListCooperationApplicationQuery struct {
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 查询偏离量
Offset int `cname:"查询偏离量" json:"offset" valid:"Required"`
// 查询限制
... ...
... ... @@ -16,9 +16,9 @@ type SearchCooperationApplicationQuery struct {
// 共创申请审核状态,1待审核,2已同意,3已拒绝
CooperationApplicationStatus int32 `cname:"共创申请审核状态,1待审核,2已同意,3已拒绝" json:"cooperationApplicationStatus,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
... ...
... ... @@ -187,8 +187,10 @@ func (cooperationApplicationService *CooperationApplicationService) ListCooperat
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return map[string]interface{}{
"count": count,
"cooperationApplications": cooperationApplications,
"grid": map[string]interface{}{
"total": count,
"list": cooperationApplications,
},
}, nil
}
}
... ...
... ... @@ -10,9 +10,9 @@ import (
type ListCooperationContractQuery struct {
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
... ...
... ... @@ -10,9 +10,9 @@ import (
type SearchCooperationContractQuery struct {
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize" valid:"Required"`
PageSize int64 `cname:"页面大小" json:"pageSize" valid:"Required"`
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber" valid:"Required"`
PageNumber int64 `cname:"页面大小" json:"pageNumber" valid:"Required"`
// 共创合约编号
CooperationContractNumber string `cname:"共创合约编号" json:"cooperationContractNumber" valid:"Required"`
// 发起人姓名
... ...
... ... @@ -10,9 +10,9 @@ import (
type SearchCooperationContractByUndertakerQuery struct {
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 共创合约名称
CooperationContractName string `cname:"共创合约名称" json:"cooperationContractName,omitempty"`
// 项目发起人姓名
... ...
... ... @@ -184,8 +184,10 @@ func (cooperationContractService *CooperationContractService) ListCooperationCon
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return map[string]interface{}{
"count": count,
"cooperationContracts": cooperationContracts,
"grid": map[string]interface{}{
"total": count,
"list": cooperationContracts,
},
}, nil
}
}
... ...
... ... @@ -10,9 +10,9 @@ import (
type ListCooperationContractChangeLogQuery struct {
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
... ...
... ... @@ -14,9 +14,9 @@ type SearchCooperationContractChangeLogQuery struct {
// 共创合约编号
CooperationContractNumber string `cname:"共创合约编号" json:"cooperationContractNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
... ...
... ... @@ -162,8 +162,10 @@ func (cooperationContractChangeLogService *CooperationContractChangeLogService)
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return map[string]interface{}{
"count": count,
"cooperationContractChangeLogs": cooperationContractChangeLogs,
"grid": map[string]interface{}{
"total": count,
"list": cooperationContractChangeLogs,
},
}, nil
}
}
... ...
... ... @@ -10,9 +10,9 @@ import (
type SearchCooperationModeQuery struct {
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber" valid:"Required"`
PageNumber int64 `cname:"页面大小" json:"pageNumber" valid:"Required"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize" valid:"Required"`
PageSize int64 `cname:"页面大小" json:"pageSize" valid:"Required"`
// 共创模式名称
CooperationModeName string `cname:"共创模式名称" json:"cooperationModeName" valid:"Required"`
// 组织机构名称
... ...
... ... @@ -178,8 +178,10 @@ func (cooperationModeService *CooperationModeService) ListCooperationMode(listCo
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return map[string]interface{}{
"count": count,
"cooperationModes": cooperationModes,
"grid": map[string]interface{}{
"list": cooperationModes,
"total": count,
},
}, nil
}
}
... ...
... ... @@ -10,9 +10,9 @@ import (
type ListCooperationProjectQuery struct {
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
... ...
... ... @@ -10,9 +10,9 @@ import (
type SearchCooperationProjectQuery struct {
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 共创项目名称
CooperationProjectName string `cname:"共创项目名称" json:"cooperationProjectName,omitempty"`
// 部门名称
... ...
... ... @@ -219,8 +219,10 @@ func (cooperationProjectService *CooperationProjectService) ListCooperationProje
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return map[string]interface{}{
"count": count,
"cooperationProjects": cooperationProjects,
"grid": map[string]interface{}{
"total": count,
"list": cooperationProjects,
},
}, nil
}
}
... ...
... ... @@ -10,9 +10,9 @@ import (
type ListCreditAccountQuery struct {
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
... ...
... ... @@ -11,9 +11,9 @@ import (
type SearchCreditAccountQuery struct {
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 账期结算单号
CreditAccountOrderNum string `cname:"账期结算单号" json:"creditAccountOrderNum" valid:"Required"`
// 参与人姓名
... ...
... ... @@ -206,8 +206,10 @@ func (creditAccountService *CreditAccountService) ListCreditAccount(listCreditAc
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return map[string]interface{}{
"count": count,
"creditAccounts": creditAccounts,
"grid": map[string]interface{}{
"total": count,
"list": creditAccounts,
},
}, nil
}
}
... ...
... ... @@ -10,13 +10,9 @@ import (
type ListDividendsEstimateQuery struct {
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
// 查询偏离量
Offset int `cname:"查询偏离量" json:"offset" valid:"Required"`
// 查询限制
Limit int `cname:"查询限制" json:"limit" valid:"Required"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
... ...
... ... @@ -9,10 +9,10 @@ import (
)
type ListDividendsIncentivesQuery struct {
// 查询偏离量
Offset int `cname:"查询偏离量" json:"offset" valid:"Required"`
// 查询限制
Limit int `cname:"查询限制" json:"limit" valid:"Required"`
// 页面大小
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
... ...
... ... @@ -9,10 +9,10 @@ import (
)
type ListMoneyIncentivesQuery struct {
// 查询偏离量
Offset int `cname:"查询偏离量" json:"offset" valid:"Required"`
// 查询限制
Limit int `cname:"查询限制" json:"limit" valid:"Required"`
// 页面大小
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
... ...
... ... @@ -21,6 +21,10 @@ type SearchDividendsEstimateQuery struct {
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
// 页面大小
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
}
func (searchDividendsEstimateQuery *SearchDividendsEstimateQuery) Valid(validation *validation.Validation) {
... ...
... ... @@ -21,6 +21,10 @@ type SearchDividendsIncentivesQuery struct {
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
// 页面大小
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
}
func (searchDividendsIncentivesQuery *SearchDividendsIncentivesQuery) Valid(validation *validation.Validation) {
... ...
... ... @@ -21,6 +21,10 @@ type SearchMoneyIncentivesQuery struct {
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据is" json:"userBaseId,string" valid:"Required"`
// 页面大小
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
}
func (searchMoneyIncentivesQuery *SearchMoneyIncentivesQuery) Valid(validation *validation.Validation) {
... ...
... ... @@ -249,8 +249,10 @@ func (dividendsEstimateService *DividendsEstimateService) ListDividendsEstimate(
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return map[string]interface{}{
"count": count,
"dividendsEstimates": dividendsEstimates,
"grid": map[string]interface{}{
"total": count,
"list": dividendsEstimates,
},
}, nil
}
}
... ...
... ... @@ -39,6 +39,8 @@ type CreateDividendsOrderCommand struct {
OrderTime time.Time `cname:"订单产生时间" json:"orderTime" valid:"Required"`
// 备注
Remarks string `cname:"备注" json:"remarks" valid:"Required"`
// 订单区域名称
RegionName string `cname:"订单区域名称" json:"regionName,omitempty"`
// 订单业务员uid
SalesmanUid string `cname:"订单业务员uid" json:"salesmanUid,omitempty"`
// 订单操作人uid
... ...
... ... @@ -10,13 +10,9 @@ import (
type ListDividendsOrdersQuery struct {
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
// 查询偏离量
Offset int `cname:"查询偏离量" json:"offset" valid:"Required"`
// 查询限制
Limit int `cname:"查询限制" json:"limit" valid:"Required"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
... ...
... ... @@ -14,9 +14,9 @@ type SearchDividendsOrderQuery struct {
// 客户名称
CustomerName string `cname:"客户名称" json:"customerName,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
... ...
... ... @@ -19,6 +19,10 @@ type SearchDividendsOrderNumberQuery struct {
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
// 页面大小
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
}
func (searchDividendsOrderNumberQuery *SearchDividendsOrderNumberQuery) Valid(validation *validation.Validation) {
... ...
... ... @@ -10,13 +10,9 @@ import (
type ListDividendsReturnedOrderQuery struct {
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
// 查询偏离量
Offset int `cname:"查询偏离量" json:"offset" valid:"Required"`
// 查询限制
Limit int `cname:"查询限制" json:"limit" valid:"Required"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
... ...
... ... @@ -14,9 +14,9 @@ type SearchDividendsReturnedOrderQuery struct {
// 分红退货单号
DividendsReturnedOrderNumber string `cname:"分红退货单号" json:"dividendsReturnedOrderNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
// 页面大小
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
PageNumber int64 `cname:"页面大小" json:"pageNumber,omitempty"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
... ...
... ... @@ -207,8 +207,10 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) ListDividend
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
return map[string]interface{}{
"count": count,
"dividendsReturnedOrders": dividendsReturnedOrders,
"grid": map[string]interface{}{
"total": count,
"list": dividendsReturnedOrders,
},
}, nil
}
}
... ...
... ... @@ -84,9 +84,9 @@ func (controller *ContractUndertakerFeedbackController) SearchContractUndertaker
searchContractUndertakerFeedbackQuery.UserId = header.UserId
searchContractUndertakerFeedbackQuery.UserBaseId = header.UserBaseId
// 获取路径参数
pageSize, _ := controller.GetInt32("pageSize")
pageSize, _ := controller.GetInt64("pageSize")
searchContractUndertakerFeedbackQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
pageNumber, _ := controller.GetInt64("pageNumber")
searchContractUndertakerFeedbackQuery.PageNumber = pageNumber
data, err := contractUndertakerFeedbackService.SearchContractUndertakerFeedback(searchContractUndertakerFeedbackQuery)
controller.Response(data, err)
... ... @@ -102,9 +102,9 @@ func (controller *ContractUndertakerFeedbackController) ListContractUndertakerFe
listContractUndertakerFeedbackQuery.UserId = header.UserId
listContractUndertakerFeedbackQuery.UserBaseId = header.UserBaseId
// 获取路径参数
pageSize, _ := controller.GetInt32("pageSize")
pageSize, _ := controller.GetInt64("pageSize")
listContractUndertakerFeedbackQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
pageNumber, _ := controller.GetInt64("pageNumber")
listContractUndertakerFeedbackQuery.PageNumber = pageNumber
data, err := contractUndertakerFeedbackService.ListContractUndertakerFeedback(listContractUndertakerFeedbackQuery)
controller.Response(data, err)
... ...
... ... @@ -140,9 +140,9 @@ func (controller *CooperationApplicationController) SearchCooperationApplication
searchCooperationApplicationQuery.UserId = header.UserId
searchCooperationApplicationQuery.UserBaseId = header.UserBaseId
// 解析其他参数
pageSize, _ := controller.GetInt32("pageSize")
pageSize, _ := controller.GetInt64("pageSize")
searchCooperationApplicationQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
pageNumber, _ := controller.GetInt64("pageNumber")
searchCooperationApplicationQuery.PageNumber = pageNumber
data, err := cooperationApplicationService.SearchCooperationApplication(searchCooperationApplicationQuery)
controller.Response(data, err)
... ... @@ -158,9 +158,9 @@ func (controller *CooperationApplicationController) ListCooperationApplication()
listCooperationApplicationQuery.UserId = header.UserId
listCooperationApplicationQuery.UserBaseId = header.UserBaseId
// 解析其他参数
pageSize, _ := controller.GetInt32("pageSize")
pageSize, _ := controller.GetInt64("pageSize")
listCooperationApplicationQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
pageNumber, _ := controller.GetInt64("pageNumber")
listCooperationApplicationQuery.PageNumber = pageNumber
data, err := cooperationApplicationService.ListCooperationApplication(listCooperationApplicationQuery)
controller.Response(data, err)
... ...
... ... @@ -80,9 +80,9 @@ func (controller *CooperationContractController) SearchCooperationContract() {
searchCooperationContractQuery.OrgId = header.OrgId
searchCooperationContractQuery.UserId = header.UserId
searchCooperationContractQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
pageSize, _ := controller.GetInt64("pageSize")
searchCooperationContractQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
pageNumber, _ := controller.GetInt64("pageNumber")
searchCooperationContractQuery.PageNumber = pageNumber
data, err := cooperationContractService.SearchCooperationContract(searchCooperationContractQuery)
controller.Response(data, err)
... ... @@ -97,9 +97,9 @@ func (controller *CooperationContractController) SearchCooperationContractByUnde
searchCooperationContractByUndertakerQuery.OrgId = header.OrgId
searchCooperationContractByUndertakerQuery.UserId = header.UserId
searchCooperationContractByUndertakerQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
pageSize, _ := controller.GetInt64("pageSize")
searchCooperationContractByUndertakerQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
pageNumber, _ := controller.GetInt64("pageNumber")
searchCooperationContractByUndertakerQuery.PageNumber = pageNumber
data, err := cooperationContractService.SearchCooperationContractByUndertaker(searchCooperationContractByUndertakerQuery)
controller.Response(data, err)
... ... @@ -114,9 +114,9 @@ func (controller *CooperationContractController) ListCooperationContract() {
listCooperationContractQuery.OrgId = header.OrgId
listCooperationContractQuery.UserId = header.UserId
listCooperationContractQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
pageSize, _ := controller.GetInt64("pageSize")
listCooperationContractQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
pageNumber, _ := controller.GetInt64("pageNumber")
listCooperationContractQuery.PageNumber = pageNumber
data, err := cooperationContractService.ListCooperationContract(listCooperationContractQuery)
controller.Response(data, err)
... ...
... ... @@ -120,9 +120,9 @@ func (controller *CooperationProjectController) ListCooperationProject() {
listCooperationProjectQuery.OrgId = header.OrgId
listCooperationProjectQuery.UserId = header.UserId
listCooperationProjectQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
pageSize, _ := controller.GetInt64("pageSize")
listCooperationProjectQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
pageNumber, _ := controller.GetInt64("pageNumber")
listCooperationProjectQuery.PageNumber = pageNumber
data, err := cooperationProjectService.ListCooperationProject(listCooperationProjectQuery)
controller.Response(data, err)
... ...
... ... @@ -107,9 +107,9 @@ func (controller *CreditAccountController) ListCreditAccount() {
listCreditAccountQuery.OrgId = header.OrgId
listCreditAccountQuery.UserId = header.UserId
listCreditAccountQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
pageSize, _ := controller.GetInt64("pageSize")
listCreditAccountQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
pageNumber, _ := controller.GetInt64("pageNumber")
listCreditAccountQuery.PageNumber = pageNumber
data, err := creditAccountService.ListCreditAccount(listCreditAccountQuery)
controller.Response(data, err)
... ...
... ... @@ -189,9 +189,9 @@ func (controller *DividendsEstimateController) ListDividendsEstimate() {
listDividendsEstimateQuery.OrgId = header.OrgId
listDividendsEstimateQuery.UserId = header.UserId
listDividendsEstimateQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
pageSize, _ := controller.GetInt64("pageSize")
listDividendsEstimateQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
pageNumber, _ := controller.GetInt64("pageNumber")
listDividendsEstimateQuery.PageNumber = pageNumber
data, err := dividendsEstimateService.ListDividendsEstimate(listDividendsEstimateQuery)
controller.Response(data, err)
... ...
... ... @@ -106,9 +106,9 @@ func (controller *DividendsOrderController) ListDividendsOrders() {
listDividendsOrdersQuery.OrgId = header.OrgId
listDividendsOrdersQuery.UserId = header.UserId
listDividendsOrdersQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
pageSize, _ := controller.GetInt64("pageSize")
listDividendsOrdersQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
pageNumber, _ := controller.GetInt64("pageNumber")
listDividendsOrdersQuery.PageNumber = pageNumber
data, err := dividendsOrderService.ListDividendsOrders(listDividendsOrdersQuery)
controller.Response(data, err)
... ...
... ... @@ -107,9 +107,9 @@ func (controller *DividendsReturnedOrderController) ListDividendsReturnedOrder()
listDividendsReturnedOrderQuery.OrgId = header.OrgId
listDividendsReturnedOrderQuery.UserId = header.UserId
listDividendsReturnedOrderQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
pageSize, _ := controller.GetInt64("pageSize")
listDividendsReturnedOrderQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
pageNumber, _ := controller.GetInt64("pageNumber")
listDividendsReturnedOrderQuery.PageNumber = pageNumber
data, err := dividendsReturnedOrderService.ListDividendsReturnedOrder(listDividendsReturnedOrderQuery)
controller.Response(data, err)
... ...