123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- package tmp
- //万一以后用到了呢,文件保留吧
- //
- //import (
- // companyResp "hongze/hongze_open_api/models/response/company"
- // "hongze/hongze_open_api/models/tables/company"
- // "hongze/hongze_open_api/utils"
- //)
- //
- //// Company 客户模块
- //type Company struct {
- // BaseAuth
- //}
- //
- //// GetList
- //// @Title 获取客户数据报表
- //// @Description 客户数据接口
- //// @Param company_name query string true "客户名称,模糊匹配"
- //// @Param credit_code query string true "客户组织社会信用码,全等匹配"
- //// @Success 200 {object} company.CompanyListResp
- //func (c *Company) GetList() {
- // pageSize := c.PageSize
- // startSize := c.StartSize
- // currentIndex := c.StartPage
- //
- // var condition string
- // var pars []interface{}
- // //客户名称
- // companyName := c.GetString("company_name")
- // if companyName!=""{
- // condition += ` a.company_name like "%`+companyName+`" `
- // }
- // //组织社会信用码
- // creditCode := c.GetString("credit_code")
- // if creditCode!=""{
- // condition += ` a.credit_code = ? `
- // pars = append(pars,creditCode)
- // }
- //
- // total, list,err := company.GetList(condition,pars,startSize,pageSize)
- // if err != nil {
- // c.FailWithMessage("获取失败")
- // return
- // }
- //
- // page := utils.GetPaging(currentIndex, pageSize, total)
- // resp := companyResp.CompanyListResp{
- // List: list,
- // Paging: page,
- // }
- // c.OkDetailed(resp,"获取成功")
- //}
|