package logic import ( "context" "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXCore/rpc/service" "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXCore/rpc/internal/svc" "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXCore/rpc/type/bxcore" "github.com/zeromicro/go-zero/core/logx" ) type ProjectStatisticsLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewProjectStatisticsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProjectStatisticsLogic { return &ProjectStatisticsLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 参标项目统计 func (l *ProjectStatisticsLogic) ProjectStatistics(in *bxcore.StatisticsListReq) (*bxcore.ProjectStatisticsDataRes, error) { // todo: add your logic here and delete this line participateService := service.ParticipateStatistics{ PositionId: in.PositionId, EntId: in.EntId, DeptId: in.EntId, EntUserId: in.EntUserId, } data := participateService.ProjectStatistics(in.EntUserIdArr, in.StartTime, in.EndTime, in.BidWay) return &bxcore.ProjectStatisticsDataRes{ ErrCode: 0, ErrMsg: "", Data: data, }, nil }