domain

package
v0.0.0-...-57ed434 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2023 License: AGPL-3.0 Imports: 95 Imported by: 0

Documentation

Index

Constants

View Source
const IterationNumLimit = 2
View Source
const ProjectNumLimit = 6
View Source
const TaskNumLimit = 1000

Variables

This section is empty.

Functions

func AddAttachmentsRelations

func AddAttachmentsRelations(orgId, userId, projectId, issueId int64, resourceIds []int64, columnId string) errs.SystemErrorInfo

添加附件需要处理的资源关联关系 引用项目附件和飞书云文档需要手工处理资源关联关系

func AddMember

func AddMember(projectId, orgId, userId, currentUserId int64, relationType int) (bool, errs.SystemErrorInfo)

func AddOneNewMenu

func AddOneNewMenu(orgId int64) (int64, errs.SystemErrorInfo)

AddOneNewMenu 给组织新增一个左侧菜单。这次增加回收站

func AddProjectCustomFieldBatch

func AddProjectCustomFieldBatch(orgId, userId, projectId int64, fieldIds []int64, projectObjectTypeId int64) errs.SystemErrorInfo

func AddProjectMember

func AddProjectMember(orgId, userId int64, input vo.RemoveProjectMemberReq, sourceChannel string) errs.SystemErrorInfo

func AddRecycleForProjectResource

func AddRecycleForProjectResource(orgId, userId int64, projectId int64, relationIds []int64, resourceTypeMap map[int64]int, tx ...sqlbuilder.Tx) (int64, errs.SystemErrorInfo)

和AddRecycleRecord方法效果一样

func AddRecycleRecord

func AddRecycleRecord(orgId, userId int64, projectId int64, relationIds []int64, relationType int, tx ...sqlbuilder.Tx) (int64, errs.SystemErrorInfo)

func AddResourceRelation

func AddResourceRelation(orgId, userId, projectId, issueId int64, resourceIds []int64, sourceType int, columnId string) errs.SystemErrorInfo

func AppendIterationStat

func AppendIterationStat(iterationBo bo.IterationBo, date string, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

date: yyyy-MM-dd

func AppendIterationStatWithLc

func AppendIterationStatWithLc(iterationBo bo.IterationBo, date string, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

AppendIterationStatWithLc 查询无码的数据,进而计算新的迭代状态并保存

func AppendProjectDayStat

func AppendProjectDayStat(projectBo bo.ProjectBo, date string, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

date: yyyy-MM-dd

func AssembleDataIds

func AssembleDataIds(data map[string]interface{})

func AssembleLcDataRelated

func AssembleLcDataRelated(data map[string]interface{},
	tableColumns map[string]*projectvo.TableColumnData,
	users map[int64]*uservo.GetAllUserByIdsRespDataUser,
	depts map[int64]*uservo.GetAllDeptByIdsRespDataUser)

无码数据:组装成员、部门信息

func AssembleUserDeptsByIds

func AssembleUserDeptsByIds(orgId int64, userIds, deptIds []int64) map[string]*uservo.MemberDept

func AssemblyAttachment

func AssemblyAttachment(resourceList *vo.Resource, issueBo *bo.IssueBo, relationMap map[int64][]int64) (*bo.AttachmentBo, errs.SystemErrorInfo)

func AssemblyAttachmentList

func AssemblyAttachmentList(resourceList []*vo.Resource, issueBoList []*bo.IssueBo, relationMap map[int64][]int64) ([]bo.AttachmentBo, errs.SystemErrorInfo)

func AssemblyCardForUpdateIssueOtherColumn

func AssemblyCardForUpdateIssueOtherColumn(headers map[string]lc_table.LcCommonField, changeItem *bo.TrendChangeListBo, cardMeta *pushV1.TemplateCard)

AssemblyCardForUpdateIssueOtherColumn 拼装卡片内容,包括标题、起止时间和一些自定义字段 AssemblyFsCardForUpdateIssueWorkHour

func AssemblyFsCardForUpdateIssue

func AssemblyFsCardForUpdateIssue(headers map[string]lc_table.LcCommonField, issueTrendsBo *bo.IssueTrendsBo, card *pushPb.TemplateCard) ([]string, []string)

func AssemblyFsCardForUpdateIssueWorkHour

func AssemblyFsCardForUpdateIssueWorkHour(headers map[string]lc_table.LcCommonField, issueTrendsBo *bo.IssueTrendsBo, cardMeta *pushPb.TemplateCard) []string

AssemblyFsCardForUpdateIssueWorkHour 任务工时更新后的卡片组装

func AssemblyIssueRelationCondForLcQueryIssue

func AssemblyIssueRelationCondForLcQueryIssue(relateValMap map[int]interface{}) []*tablev1.Condition

AssemblyIssueRelationCondForLcQueryIssue 组装查询任务的条件

func AssemblyUpdateContentForUpdateIssue

func AssemblyUpdateContentForUpdateIssue(headers map[string]lc_table.LcCommonField, issueTrendsBo *bo.IssueTrendsBo, card *pushPb.TemplateCard) ([]string, []string)

func AsyncTaskCompleteSendCard

func AsyncTaskCompleteSendCard(orgId, projectId, tableId, userId int64, taskId string, isApplyTpl bool, taskInfo *projectvo.AsyncTask) errs.SystemErrorInfo

AsyncTaskCompleteSendCard 异步任务完成后,发送卡片

func AuthIssue

func AuthIssue(orgId, userId int64, issueBo *bo.IssueBo, path string, operation string, authFields ...string) errs.SystemErrorInfo

验证任务操作权,已归档的项目下的任务不允许编辑

func AuthIssueWithAppId

func AuthIssueWithAppId(orgId, userId int64, issueBo *bo.IssueBo, path string, operation string, inputAppId int64, authFields ...string) errs.SystemErrorInfo

验证任务(有传入appId,可能是镜像id的权限)

func AuthOrg

func AuthOrg(orgId, userId int64, path string, operation string) errs.SystemErrorInfo

func AuthPayProjectIteration

func AuthPayProjectIteration(orgId int64, functionCode string, projectId int64) errs.SystemErrorInfo

func AuthPayProjectNum

func AuthPayProjectNum(orgId int64, functionCode string) errs.SystemErrorInfo

func AuthPayTask

func AuthPayTask(orgId int64, functionCode string, needAddNum int) errs.SystemErrorInfo

func AuthProject

func AuthProject(orgId, userId, projectId int64, path string, operation string, authFields ...string) errs.SystemErrorInfo

同时会校验项目是否已归档

func AuthProjectWithAppId

func AuthProjectWithAppId(orgId, userId, projectId int64, path string, operation string, inputAppId int64, authFields ...string) errs.SystemErrorInfo

同时会校验项目是否已归档(有传入appId,可能是镜像id的权限)

func AuthProjectWithCond

func AuthProjectWithCond(orgId, userId, projectId int64, path string, operation string, authFiling bool, skipAuthPermission bool, inputAppId int64, authFields ...string) errs.SystemErrorInfo

func AuthProjectWithOutArchivedCheck

func AuthProjectWithOutArchivedCheck(orgId, userId, projectId int64, path string, operation string) errs.SystemErrorInfo

项目权限校验,不需要检测是否已归档

func AuthProjectWithOutPermission

func AuthProjectWithOutPermission(orgId, userId, projectId int64, path string, operation string) errs.SystemErrorInfo

校验项目,跳过角色权限

func CalDateRangeCond

func CalDateRangeCond(startDate *types.Time, endDate *types.Time, defaultDay int) (*time.Time, *time.Time, errs.SystemErrorInfo)

计算日期范围条件 startDate: 开始时间 endDate: 结束时间 cond: 条件 defaultDay: 默认查询多少天前

func ChangeIssueChildren

func ChangeIssueChildren(operatorId int64, issueBo *bo.IssueBo, parentId int64, parentPath string) ([]int64, []*bo.IssueBo, errs.SystemErrorInfo)

func ChangeProjectCustomField

func ChangeProjectCustomField(orgId, userId, projectId int64, fieldId int64, isAdd bool, projectObjectTypeId int64) errs.SystemErrorInfo

func CheckAppOptFieldAuth

func CheckAppOptFieldAuth(payLevel int, tableId int64, operation string, checkAuthFields []string, appAuth appauth.GetAppAuthData) bool

根据APP AUTH信息校验OPT权限、FIELD权限

func CheckAsyncTaskIsRunning

func CheckAsyncTaskIsRunning(orgId, appId, tableId int64) bool

CheckAsyncTaskIsRunning 检查是否有异步任务(异步批量创建任务)在执行

func CheckCodeRepetition

func CheckCodeRepetition(orgId int64, code string) (bool, errs.SystemErrorInfo)

func CheckDataForCreateIssueView

func CheckDataForCreateIssueView(view *vo.CreateIssueViewReq) (*vo.CreateIssueViewReq, errs.SystemErrorInfo)

检查数据并对缺省值初始化

func CheckHasWriteForWorkHourColumn

func CheckHasWriteForWorkHourColumn(orgId, curUserId, proAppId int64, issueBo *bo.IssueBo) (bool, errs.SystemErrorInfo)

CheckHasWriteForWorkHourColumn 检查某个用户是否可以编辑工时列

func CheckIsAdmin

func CheckIsAdmin(orgId, curUserId, appId int64) bool

func CheckIsProAdmin

func CheckIsProAdmin(orgId, appId, curUserId int64, appAuthInfo *appauth.GetAppAuthData) (bool, errs.SystemErrorInfo)

CheckIsProAdmin 检查是否是项目的管理员

func CheckIssuesAllowUrge

func CheckIssuesAllowUrge(orgId, projectId int64, issueIds []int64, keyTpl string) ([]bool, errs.SystemErrorInfo)

func CheckNeedCollaborateFilter

func CheckNeedCollaborateFilter(orgId, currentUserId, tableId int64, projectBo *bo.ProjectBo) bool

CheckNeedCollaborateFilter 检查是否需要协作人条件进行查询。不是管理员,则需要协作人条件

func CheckProFsChatSetIsOpen

func CheckProFsChatSetIsOpen(orgId, projectId int64) (int, errs.SystemErrorInfo)

CheckProFsChatSetIsOpen 检查群聊(主动创建的群聊)是否开启 1 开启;2没有关联群聊;群聊调整后,该方法是检查是否有关联的群聊。

func CheckProIsEnablePrivacyMode

func CheckProIsEnablePrivacyMode(fsChatSettingPtr *string) bool

CheckProIsEnablePrivacyMode 检查项目是否开启了隐私模式

func CheckTableName

func CheckTableName(orgId, userId, appId int64, name string) errs.SystemErrorInfo

func ClearAsyncTaskCacheForCreateIssue

func ClearAsyncTaskCacheForCreateIssue(orgId int64, taskId string) errs.SystemErrorInfo

func ClearSomeCache

func ClearSomeCache(keyTpl string, param map[string]interface{}) errs.SystemErrorInfo

ClearSomeCache 清除缓存

func CollectUserDeptIds

func CollectUserDeptIds(data map[string]interface{}, tableColumns map[string]*projectvo.TableColumnData) ([]int64, []int64)

CollectUserDeptIds 收集成员/部门Id

func ConvertBaseUserInfoToHomeIssueOwnerInfo

func ConvertBaseUserInfoToHomeIssueOwnerInfo(baseUserInfo bo.BaseUserInfoBo) *bo.HomeIssueOwnerInfoBo

func ConvertInterfaceIntoInt64

func ConvertInterfaceIntoInt64(interfaceVal interface{}) int64

ConvertInterfaceIntoInt64 将存在 interface{} 中的数值取出并转为 int64

func ConvertIssueDataToIssueBo

func ConvertIssueDataToIssueBo(data map[string]interface{}) (*bo.IssueBo, errs.SystemErrorInfo)

func ConvertIssueStatusFilterReqForAll

func ConvertIssueStatusFilterReqForAll(lessReq vo.LessCondsData) vo.LessCondsData

任务模块:任务状态筛选条件转换,前端其实筛选的是issueStatusType

func ConvertIssueStatusFilterReqForNormalProject

func ConvertIssueStatusFilterReqForNormalProject(lessReq *vo.LessCondsData) *vo.LessCondsData

单个老通用项目:任务状态筛选条件转换,主要处理待确认状态-1

func ConvertIssueTagBosToHomeIssueTagBos

func ConvertIssueTagBosToHomeIssueTagBos(issueTagBos []bo.IssueTagBo) []bo.HomeIssueTagInfoBo

func ConvertIssueTagBosToMapGroupByIssueId

func ConvertIssueTagBosToMapGroupByIssueId(issueTagBos []bo.IssueTagBo) maps.LocalMap

func ConvertMapIntoIssueDetailAndUnionBo

func ConvertMapIntoIssueDetailAndUnionBo(issueInfoMap map[string]interface{}) bo.IssueAndDetailUnionBo

ConvertMapIntoIssueDetailAndUnionBo 将无码查询出来的任务信息转换为任务对象

func ConvertPriorityCacheInfoToHomeIssuePriorityInfo

func ConvertPriorityCacheInfoToHomeIssuePriorityInfo(priorityCacheInfo bo.PriorityBo) *bo.HomeIssuePriorityInfoBo

func ConvertProjectCacheInfoToHomeIssueProjectInfo

func ConvertProjectCacheInfoToHomeIssueProjectInfo(projectCacheInfo bo.ProjectAuthBo) *bo.HomeIssueProjectInfoBo

func ConvertStatusInfoToHomeIssueStatusInfo

func ConvertStatusInfoToHomeIssueStatusInfo(statusInfo bo.CacheProcessStatusBo) *status.StatusInfoBo

func CreateAppInLessCode

func CreateAppInLessCode(orgId, opUserId int64, proName string, extendsId int64, lcFolderId *int64, projectId int64,
	config string, projectType int,
) (*permissionvo.CreateLessCodeAppRespData, errs.SystemErrorInfo)

CreateAppInLessCode 创建项目对应的应用。 notNeedSummeryColumnIds 创建不同类型的项目,对应的表不允许有一些特定的列

func CreateAsyncTask

func CreateAsyncTask(orgId int64, totalCount int64, taskId string, params map[string]string) errs.SystemErrorInfo

CreateAsyncTask 将新的异步任务信息存入 redis

func CreateDefaultViewsForIssue

func CreateDefaultViewsForIssue(orgId, summaryAppId int64) errs.SystemErrorInfo

CreateDefaultViewsForIssue 为汇总表创建默认的视图

func CreateDefaultViewsForProject

func CreateDefaultViewsForProject(orgId, proFormAppId, projectFolderId int64) errs.SystemErrorInfo

CreateDefaultViewsForProject 为项目表单串创建默认的**项目视图**主要包含:进行中、已完成、已归档、全部

func CreateExternalApp

func CreateExternalApp(orgId, userId int64, name, icon, linkUrl string) *permissionvo.CreateLessCodeAppResp

func CreateIssueComment

func CreateIssueComment(issueBo bo.IssueBo, comment string, mentionedUserIds []int64, operatorId int64, attachmentIds []int64) (int64, errs.SystemErrorInfo)

func CreateIssueResource

func CreateIssueResource(orgId, userId int64, input *vo.CreateIssueResourceReq) (int64, errs.SystemErrorInfo)

func CreateIssueSource

func CreateIssueSource(bo *bo.IssueSourceBo) errs.SystemErrorInfo

func CreateIssueView

func CreateIssueView(orgId, opUserId int64, view *vo.CreateIssueViewReq) (*po.PpmPriIssueView, errs.SystemErrorInfo)

创建任务视图

func CreateIssueWorkHours

func CreateIssueWorkHours(newId int64, param projectvo.CreateIssueWorkHoursReqVo, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

创建一条工时记录

func CreateIteration

func CreateIteration(bo *bo.IterationBo, tx sqlbuilder.Tx) errs.SystemErrorInfo

func CreateIterationFromTemplate

func CreateIterationFromTemplate(orgId, userId, projectId int64, projectIterationTemplates []projectvo.ProjectIterationTemplate) (map[int64]int64, errs.SystemErrorInfo)

旧迭代->新迭代

func CreateIterationStat

func CreateIterationStat(bo *bo.IterationStatBo) errs.SystemErrorInfo

func CreateMultiIssueWorkHours

func CreateMultiIssueWorkHours(param []*po.PpmPriIssueWorkHours, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

新增多个工时

func CreateProject

func CreateProject(entity bo.ProjectBo, orgId, currentUserId int64, input vo.CreateProjectReq, remarkObj orgvo.OrgRemarkConfigType) (int64, bo.ProjectBo, []int64, errs.SystemErrorInfo)

func CreateProjectDayStat

func CreateProjectDayStat(bo *bo.ProjectDayStatBo) errs.SystemErrorInfo

func CreateProjectDefaultView

func CreateProjectDefaultView(orgId int64, projectId int64, appId int64, projectTypeId int64, isFirst *bool, tableId *int64) errs.SystemErrorInfo

CreateProjectDefaultView 创建项目时创建无码默认视图(isFirst:新手指南表格视图增加筛选项)

func CreateProjectDetail

func CreateProjectDetail(bo *bo.ProjectDetailBo) errs.SystemErrorInfo

func CreateProjectFolder

func CreateProjectFolder(reqBo bo.CreateFolderBo) (int64, errs.SystemErrorInfo)

func CreateProjectResource

func CreateProjectResource(createResourceReqBo bo.ProjectCreateResourceReqBo) (int64, errs.SystemErrorInfo)

func CutComment

func CutComment(input string, limit int) string

func DelWorkHours

func DelWorkHours(orgId int64, issueIds []int64, upd mysql.Upd) errs.SystemErrorInfo

DelWorkHours 批量删除任务的工时

func DeleteAllIssueRelation

func DeleteAllIssueRelation(tx sqlbuilder.Tx, operatorId int64, orgId int64, issueIds []int64, recycleVersionId int64) errs.SystemErrorInfo

func DeleteAllIssueRelationByIds

func DeleteAllIssueRelationByIds(orgId, operatorId int64, relationIds []int64, recycleVersionId int64, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

func DeleteAttachmentsForColumn

func DeleteAttachmentsForColumn(orgId, userId, projectId, tableId int64, columnId string) errs.SystemErrorInfo

DeleteAttachmentsForColumn 删除附件字段列,把涉及到的附件资源全部删除 不进入回收站

func DeleteAttachmentsForOneTable

func DeleteAttachmentsForOneTable(orgId, userId, projectId, tableId int64) errs.SystemErrorInfo

DeleteAttachmentsForOneTable 删除一个table,把所有附件都删除,不进入回收站

func DeleteCustomField

func DeleteCustomField(orgId, userId, fieldId int64) errs.SystemErrorInfo

func DeleteIssue

func DeleteIssue(issueBo *bo.IssueBo, operatorId int64, sourceChannel string, takeChildren *bool) ([]int64, errs.SystemErrorInfo)

func DeleteIssueBatch

func DeleteIssueBatch(orgId int64, issueAndChildrenBos []*bo.IssueBo, allIssueId []int64, operatorId int64, sourceChannel string, projectId int64, tableId int64) ([]int64, errs.SystemErrorInfo)

func DeleteIssueInLcByProject

func DeleteIssueInLcByProject(orgId, opUserId int64, projectId int64, templateFlag int) errs.SystemErrorInfo

DeleteIssueInLcByProject 根据项目 id 删除存于无码的任务数据(软删除)

func DeleteIssueRelation

func DeleteIssueRelation(operatorId int64, issueBo bo.IssueBo, relationType int) errs.SystemErrorInfo

func DeleteIssueRelationByIds

func DeleteIssueRelationByIds(operatorId int64, issueBo bo.IssueBo, relationType int, relationIds []int64) errs.SystemErrorInfo

func DeleteIssueResource

func DeleteIssueResource(issueBo bo.IssueBo, deletedResourceIds []int64, operatorId int64) errs.SystemErrorInfo

func DeleteIssueSource

func DeleteIssueSource(bo *bo.IssueSourceBo, operatorId int64) errs.SystemErrorInfo

func DeleteIssueSourceListCache

func DeleteIssueSourceListCache(orgId int64) errs.SystemErrorInfo

func DeleteIteration

func DeleteIteration(bo *bo.IterationBo, operatorId int64) errs.SystemErrorInfo

func DeleteIterationStat

func DeleteIterationStat(bo *bo.IterationStatBo, operatorId int64) errs.SystemErrorInfo

func DeleteLcIssueAuditStatusDetailByUsers

func DeleteLcIssueAuditStatusDetailByUsers(orgId, appId, userId, issueId int64, userIds ...int64) errs.SystemErrorInfo

func DeleteLessIssueAttachmentsData

func DeleteLessIssueAttachmentsData(orgId, userId int64, projectId, issueId int64, resourceIds []int64, columnId string) errs.SystemErrorInfo

func DeleteMember

func DeleteMember(projectId, orgId, userId, currentUserId int64, relationType int) (bool, errs.SystemErrorInfo)

func DeleteProjectAttachment

func DeleteProjectAttachment(orgId, operatorId, projectId int64, resourceIds []int64) errs.SystemErrorInfo

func DeleteProjectCalendarInfo

func DeleteProjectCalendarInfo(orgId, projectId int64) errs.SystemErrorInfo

func DeleteProjectDayStat

func DeleteProjectDayStat(bo *bo.ProjectDayStatBo, operatorId int64) errs.SystemErrorInfo

func DeleteProjectDetail

func DeleteProjectDetail(bo *bo.ProjectDetailBo, operatorId int64) errs.SystemErrorInfo

func DeleteProjectFolder

func DeleteProjectFolder(deleteBo bo.DeleteFolderBo) ([]int64, errs.SystemErrorInfo)

func DeleteProjectResource

func DeleteProjectResource(deleteBo bo.DeleteResourceBo) ([]int64, errs.SystemErrorInfo)

func DeleteRecycleBin

func DeleteRecycleBin(id, userId int64) errs.SystemErrorInfo

func DeleteRelationByDeleteMember

func DeleteRelationByDeleteMember(tx sqlbuilder.Tx, delMembers []interface{}, projectOwner int64, projectId int64, orgId int64, currentUserId int64) errs.SystemErrorInfo

func DeleteTableIssues

func DeleteTableIssues(orgId, operatorId, projectId, appId, tableId int64, templateFlag int) ([]int64, errs.SystemErrorInfo)

DeleteTableIssues 删除一个table,把所有任务都删除,不进入回收站

func DeleteWorkHourForIssues

func DeleteWorkHourForIssues(orgId int64, delIssueIds []int64, recycleVersionId int64) errs.SystemErrorInfo

DeleteWorkHourForIssues 删除一批任务对应的所有工时记录 目前,有权删除任务,就视为有权删除任务对应的工时

func ExecUpdateIterStatus

func ExecUpdateIterStatus(orgId int64, oldStatusId []int64, oldStatusIdMap2NewStatusId map[int64]int64) errs.SystemErrorInfo

ExecUpdateIterStatus 请求 MySQL 执行更新

func FilterCustomFieldForAgilePro

func FilterCustomFieldForAgilePro(columnKeyArr []string, columns []*projectvo.TableColumnData,
	allColumnsMap map[string]*projectvo.TableColumnData, needHidden bool, hiddenColumnKeys []interface{},
) []*projectvo.TableColumnData

FilterCustomFieldForAgilePro 敏捷项目过滤隐藏字段

func FilterCustomFieldForCommonPro

func FilterCustomFieldForCommonPro(columnKeyArr []string, columns, originalColumns []*projectvo.TableColumnData,
	allColumnsMap map[string]*projectvo.TableColumnData, needHidden bool, hiddenColumnKeys []interface{},
) []*projectvo.TableColumnData

FilterCustomFieldForCommonPro 通用项目过滤隐藏字段

func FilterEmptyColumnKey

func FilterEmptyColumnKey(columnKeyArr []string) []string

func FilterEmptyRowForImportIssue

func FilterEmptyRowForImportIssue(groupData []*sortedmap.SortMap) ([]*sortedmap.SortMap, errs.SystemErrorInfo)

FilterEmptyRowForImportIssue 导入任务时,检查每一行是否有数据,如果是空行则忽略

func FilterExistTrashOrgArr

func FilterExistTrashOrgArr(orgArr []bo.OrganizationBo) ([]bo.OrganizationBo, errs.SystemErrorInfo)

FilterExistTrashOrgArr 过滤掉已经存在“回收站目录”的组织

func FilterForBuiltInAndCustomColumns

func FilterForBuiltInAndCustomColumns(columns []*projectvo.TableColumnData, proTypeId int64, usingType string, isNeedDocument bool,
) ([]*projectvo.TableColumnData, []*projectvo.TableColumnData, []*projectvo.TableColumnData, errs.SystemErrorInfo)

FilterForBuiltInAndCustomColumns 对任务的字段进行一些过滤

func FilterProTableChatSettingForManyChat

func FilterProTableChatSettingForManyChat(settingBoArr []bo.GetFsTableSettingOfProjectChatBo,
	pushType consts.IssueNoticePushType,
) []bo.GetFsTableSettingOfProjectChatBo

FilterProTableChatSettingForManyChat 为多个群聊配置过滤

func GenAsyncTaskIdForApplyTemplate

func GenAsyncTaskIdForApplyTemplate(appId int64) string

GenAsyncTaskIdForApplyTemplate 为应用模板的异步任务生成task id

func GenAsyncTaskIdForImport

func GenAsyncTaskIdForImport(appId, tableId int64) string

GenAsyncTaskIdForImport 为导入任务的异步任务生成task id

func GetAdminUserIdsOfOrg

func GetAdminUserIdsOfOrg(orgId, appId int64) ([]int64, errs.SystemErrorInfo)

获取组织的管理员 ids,包含了组织超管、组织普通管理员

func GetAfterIterationSort

func GetAfterIterationSort(orgId, projectId int64, beforeSort int64) (int64, errs.SystemErrorInfo)

获取指定迭代后一个迭代sort值

func GetAllMyProjectIds

func GetAllMyProjectIds(orgId int64, userId int64) ([]int64, errs.SystemErrorInfo)

我参与的所有项目

func GetAllMyProjectIdsWithDeptIds

func GetAllMyProjectIdsWithDeptIds(orgId, userId int64, deptIds []int64, needFilterArchive bool) ([]int64, errs.SystemErrorInfo)

我参与的所有项目(需排除已被删除的项目)(因ppm_pro_project_relation未删除已删除的项目的关联数据)

func GetAllNotFillingAnEmptyProjectIds

func GetAllNotFillingAnEmptyProjectIds(orgId int64, isGetAllType bool) ([]int64, errs.SystemErrorInfo)

过滤掉归档的project和空项目

func GetAllProjectIdsInterface

func GetAllProjectIdsInterface(orgId int64) ([]interface{}, errs.SystemErrorInfo)

func GetAppDashboards

func GetAppDashboards(orgId, appId int64) ([]*projectvo.DashboardInfo, errs.SystemErrorInfo)

func GetAppIdFromProjectId

func GetAppIdFromProjectId(orgId, projectId int64) (int64, errs.SystemErrorInfo)

func GetAppSortMapOfWorkHour

func GetAppSortMapOfWorkHour(orgIds []int64) (map[int64]int64, errs.SystemErrorInfo)

GetAppSortMapOfWorkHour 获取工时目录的 appId 对应到 sort 的 map orgMapSort:{appId: sort}

func GetAppTableList

func GetAppTableList(orgId int64, appId int64) ([]*projectvo.TableMetaData, errs.SystemErrorInfo)

func GetAsyncTask

func GetAsyncTask(orgId int64, taskId string) (*projectvo.AsyncTask, errs.SystemErrorInfo)

GetAsyncTask 获取异步任务的进度信息

func GetBasicFields

func GetBasicFields(projectTypeId int) ([]string, errs.SystemErrorInfo)

func GetBeforeIterationSort

func GetBeforeIterationSort(orgId, projectId int64, afterSort int64) (int64, errs.SystemErrorInfo)

获取指定迭代前一个迭代sort值

func GetBelongProjectIdsByIssueId

func GetBelongProjectIdsByIssueId(issueId int64) ([]int64, errs.SystemErrorInfo)

GetBelongProjectIdsByIssueId 获取一个任务所属的项目ids [warning] 截至 20211112,这种关联关系只开放一个关联关系,即,一个任务只会属于一个项目

func GetBelongProjectRelationsByIssueId

func GetBelongProjectRelationsByIssueId(issueIds []int64) ([]bo.IssueRelationBo, errs.SystemErrorInfo)

GetBelongProjectRelationsByIssueId 获取一个任务所属的项目关联,被存在 issue_relation 表中。

func GetCalendarInfo

func GetCalendarInfo(orgId, projectId int64) (isOk bool, info bo.CalendarInfo)

func GetCardInfoForStartAudit

func GetCardInfoForStartAudit(starter int64, issue *bo.IssueBo) (*projectvo.BaseInfoBoxForIssueCard, errs.SystemErrorInfo)

GetCardInfoForStartAudit 获取并向 cardInfo 设置组装卡片时的信息 starter 审批发起人的 id

func GetChangeMembersAndDeleteOld

func GetChangeMembersAndDeleteOld(tx sqlbuilder.Tx, input bo.UpdateProjectBo, orgId int64, oldOwnerIds []int64, updPoint *mysql.Upd, currentUserId int64) ([]int64, []int64, set.Interface, set.Interface, errs.SystemErrorInfo)

func GetCollaborateDataQueryConds

func GetCollaborateDataQueryConds(orgId, currentUserId int64, deptIds []int64) *vo.LessCondsData

func GetColumnMapByColumns

func GetColumnMapByColumns(columns []map[string]interface{}) map[string]map[string]interface{}

GetColumnMapByColumns 通过字段信息列表组装成对应的 map

func GetColumnMapByColumnsForTableColumn

func GetColumnMapByColumnsForTableColumn(columns []*projectvo.TableColumnData) map[string]*projectvo.TableColumnData

GetColumnMapByColumnsForTableColumn 通过字段信息列表组装成对应的 map,只不过列信息是改造后查询到的列信息

func GetColumnMapByColumnsForTableMode

func GetColumnMapByColumnsForTableMode(columns []*projectvo.TableColumnData) map[string]*projectvo.TableColumnData

func GetColumnNameWithAlias

func GetColumnNameWithAlias(column *projectvo.TableColumnData) string

GetColumnNameWithAlias 获取带有别名的字段名。如:标题(标题别名)

func GetCondForFollower

func GetCondForFollower(valArr []interface{}) *vo.LessCondsData

func GetCondForOwner

func GetCondForOwner(valArr []interface{}) *vo.LessCondsData

func GetCopyIssueWorkHours

func GetCopyIssueWorkHours(orgId, projectId, issueId int64) ([]po.PpmPriIssueWorkHours, errs.SystemErrorInfo)

给复制任务用的

func GetCountOfStatisticWorkHourByCond

func GetCountOfStatisticWorkHourByCond(condParam bo.IssueWorkHoursBoListCondBo) (uint64, errs.SystemErrorInfo)

func GetCustomFieldInfo

func GetCustomFieldInfo(orgId, fieldId int64) (*bo.CustomFieldBo, errs.SystemErrorInfo)

func GetCustomFieldInfoFromViewList

func GetCustomFieldInfoFromViewList(orgId, appId, tableId int64, usingType string,
) ([]appvo.GetAppViewListRespDataListItem, *appvo.GetAppViewListRespDataListItemConfig, errs.SystemErrorInfo)

GetCustomFieldInfoFromViewList 从表格视图中取出视图的列信息

func GetDefaultColumnForTaskBar

func GetDefaultColumnForTaskBar() lc_table.LcCtSelect

GetDefaultColumnForTaskBar 通用项目,默认的任务栏,taskBar <==> projectObjectType。select 类型

func GetDefaultViews

func GetDefaultViews(defaultHiddenColumnIds []string, projectTypeId int64) []bo.LcAppView

func GetDeletedIssueNum

func GetDeletedIssueNum(orgId int64) (int64, errs.SystemErrorInfo)

func GetDeptFullNameByIds

func GetDeptFullNameByIds(orgId int64, deptIds []int64, sep string) (map[int64]string, errs.SystemErrorInfo)

GetDeptFullNameByIds 获取部门的全路径部门名称信息,如:职能部/技术部/运维组 sep 拼接多部门名称时的分隔符,如:"/"

func GetDeptListForImportIssue

func GetDeptListForImportIssue(orgId int64) (map[string]orgvo.SimpleDeptForCustomField, errs.SystemErrorInfo)

GetDeptListForImportIssue 导入任务时,自定义字段(部门类型)处理时,查询组织的部门列表

func GetFeiShuAtContent

func GetFeiShuAtContent(orgId int64, content string) string

func GetHasWorkHourRecordIssueIds

func GetHasWorkHourRecordIssueIds(orgId int64, projectIds []int64) ([]int64, errs.SystemErrorInfo)

GetHasWorkHourRecordIssueIds 查询组织内,有工时记录的任务id

func GetHomeIssuePriorityInfoBo

func GetHomeIssuePriorityInfoBo(orgId, tableId, priorityId int64) (*bo.HomeIssuePriorityInfoBo, errs.SystemErrorInfo)

func GetHomeProjectInfoBo

func GetHomeProjectInfoBo(orgId, projectId int64) (*bo.HomeIssueProjectInfoBo, errs.SystemErrorInfo)

func GetImportNoticeTextA1

func GetImportNoticeTextA1(proTypeId int64) []excelize.RichTextRun

GetImportNoticeText 任务导入时的注意事项文案

func GetImportNoticeTextA1LangEn

func GetImportNoticeTextA1LangEn(proTypeId int64) []excelize.RichTextRun

GetImportNoticeTextA1LangEn 任务导入时的注意事项文案英文版

func GetImportNoticeTextB1

func GetImportNoticeTextB1(columnNames []string) []excelize.RichTextRun

GetImportNoticeTextB1 任务导入时的注意事项文案

func GetIssueAllStatus

func GetIssueAllStatus(orgId int64, projectIds, tableIds []int64) (map[int64][]status.StatusInfoBo, errs.SystemErrorInfo)

GetIssueAllStatus 先通过 projectObjectTypeIds 查询 tableId 再查询对应的表头中的状态配置 改造后,projectObjectTypeIds 的意义变成 tableIds @param projectIds 这个参数暂且用不上,可以传 0 返回值是按 tableId 分组

func GetIssueAllStatusByType

func GetIssueAllStatusByType(orgId int64, tableIds []int64, statusType int) (map[int64][]status.StatusInfoBo, errs.SystemErrorInfo)

GetIssueAllStatusByType 获取表中的某个类型的状态,按表分组返回

func GetIssueAllStatusIdsByType

func GetIssueAllStatusIdsByType(status []status.StatusInfoBo, statusType int) []int64

func GetIssueAllStatusIdsByTypes

func GetIssueAllStatusIdsByTypes(status []status.StatusInfoBo, statusTypes []int) []int64

func GetIssueAndChildrenIds

func GetIssueAndChildrenIds(orgId int64, issueIds []int64) ([]int64, errs.SystemErrorInfo)

GetIssueAndChildrenIds 查询任务以及所有子任务的任务ID

func GetIssueAuthBo

func GetIssueAuthBo(issueBo *bo.IssueBo, currentUserId int64) (*bo.IssueAuthBo, errs.SystemErrorInfo)

func GetIssueCountByOwnerId

func GetIssueCountByOwnerId(orgId, ownerId int64) (int64, errs.SystemErrorInfo)

func GetIssueFinishedStatForProjects

func GetIssueFinishedStatForProjects(orgId int64, curUserId int64, summaryAppId int64, projectIds []int64) (map[int64]bo.IssueStatistic, errs.SystemErrorInfo)

GetIssueFinishedStatForProjects 获取多个项目下任务完成进度。逾期任务数、已完成未完成任务数等 参考 `SelectIssueAssignCount` 函数

func GetIssueIdDetailQueryConds

func GetIssueIdDetailQueryConds(issueId int64, path string) vo.LessCondsData

func GetIssueIdList

func GetIssueIdList(orgId int64, conds []*tablePb.Condition, page, size int64) ([]*bo.IssueIdData, errs.SystemErrorInfo)

GetIssueIdList 通过无码查询任务 id 数据

func GetIssueIdsByProIds

func GetIssueIdsByProIds(orgId int64, projectIds []int64) ([]int64, errs.SystemErrorInfo)

GetIssueIdsByProIds 通过项目id,获取项目下所有的任务 id

func GetIssueIdsByProject

func GetIssueIdsByProject(projectId int64) ([]int64, errs.SystemErrorInfo)

GetIssueIdsByProject 获取一个项目下的所有的任务 id,被存在 issue_relation 表中。

func GetIssueInfoByIterationForLc

func GetIssueInfoByIterationForLc(iterationIds []int64, orgId int64, projectId int64) (map[int64]bo.IssueStatistic, errs.SystemErrorInfo)

GetIssueInfoByIterationForLc 统计迭代下完成的、逾期的任务数,按迭代分组,通过无码接口查询。

func GetIssueInfoLc

func GetIssueInfoLc(orgId, userId int64, issueId int64, filterColumns ...string) (*bo.IssueBo, errs.SystemErrorInfo)

func GetIssueInfosLc

func GetIssueInfosLc(orgId, userId int64, issueIds []int64, filterColumns ...string) ([]*bo.IssueBo, errs.SystemErrorInfo)

func GetIssueInfosLcByDataIds

func GetIssueInfosLcByDataIds(orgId, userId int64, dataIds []int64) ([]*bo.IssueBo, errs.SystemErrorInfo)

func GetIssueInfosMapLc

func GetIssueInfosMapLc(orgId, userId int64, condition *tablePb.Condition, filterColumns []string, page, size int64, noExtraIdFlag ...bool) ([]map[string]interface{}, errs.SystemErrorInfo)

func GetIssueInfosMapLcByDataIds

func GetIssueInfosMapLcByDataIds(orgId, userId int64, dataIds []int64, filterColumns ...string) ([]map[string]interface{}, errs.SystemErrorInfo)

GetIssueInfosMapLcByDataIds 从无码获取多条数据

func GetIssueInfosMapLcByIssueIds

func GetIssueInfosMapLcByIssueIds(orgId, userId int64, issueIds []int64, filterColumns ...string) ([]map[string]interface{}, errs.SystemErrorInfo)

GetIssueInfosMapLcByIssueIds 从无码获取多条数据

func GetIssueLinks(sourceChannel string, orgId int64, issueId int64) *projectvo.IssueLinks

func GetIssueListByTableIdWithChaId

func GetIssueListByTableIdWithChaId(orgId int64, tableId int64) ([]map[string]interface{}, errs.SystemErrorInfo)

GetIssueListByTableIdWithChaId 根据tableId查询表下outChatId不为空的所有任务

func GetIssueListWithRefColumn

func GetIssueListWithRefColumn(req formvo.LessIssueListReq, columns []*projectvo.TableColumnData, appAuthInfo string) (*projectvo.ListRowsReply, []string)

GetIssueListWithRefColumn 获取字段的同时获取引用相关字段

func GetIssueMembers

func GetIssueMembers(orgId int64, issueId int64) (*bo.IssueMembersBo, errs.SystemErrorInfo)

func GetIssueParticipantBatch

func GetIssueParticipantBatch(orgId, projectId int64, issueIds []int64, relationTypes []int) (map[int64][]int64, errs.SystemErrorInfo)

GetIssueParticipantBatch 获取多个任务的参与人 id。参与人的定义根据传入的 relationTypes 而定。

func GetIssueProRelationsByIssueIdAndProId

func GetIssueProRelationsByIssueIdAndProId(projectId, issueId int64) ([]bo.IssueRelationBo, errs.SystemErrorInfo)

GetIssueProRelationsByIssueIdAndProId 获取任务和项目的关联关系集合

func GetIssueProRelationsByProject

func GetIssueProRelationsByProject(projectId int64) ([]bo.IssueRelationBo, errs.SystemErrorInfo)

GetIssueProRelationsByProject 获取任务和项目的关联关系集合

func GetIssuePropertyBos

func GetIssuePropertyBos(orgId, projectId int64, projectObjectTypeId int64) ([]bo.IssuePropertyBo, errs.SystemErrorInfo)

func GetIssuePropertyById

func GetIssuePropertyById(orgId, sourceId int64, projectId int64) (*bo.IssuePropertyBo, errs.SystemErrorInfo)

func GetIssuePropertyList

func GetIssuePropertyList(orgId int64, projectId int64) ([]bo.IssuePropertyBo, errs.SystemErrorInfo)

func GetIssuePropertyListByProjectObjectTypeId

func GetIssuePropertyListByProjectObjectTypeId(orgId, projectTypeId int64, projectId int64) ([]bo.IssuePropertyBo, errs.SystemErrorInfo)

func GetIssueRelationByRelateTypeList

func GetIssueRelationByRelateTypeList(orgId int64, issueId int64, relationTypes []int) ([]bo.IssueRelationBo, errs.SystemErrorInfo)

func GetIssueRelationByResource

func GetIssueRelationByResource(orgId int64, projectId int64, resourceIds []int64) (*[]po.PpmPriIssueRelation, errs.SystemErrorInfo)

func GetIssueRelationIdsByRelateType

func GetIssueRelationIdsByRelateType(orgId int64, issueId int64, relationType int) (*[]int64, errs.SystemErrorInfo)

func GetIssueRelationResource

func GetIssueRelationResource(page, size int) ([]bo.IssueRelationBo, errs.SystemErrorInfo)

func GetIssueRelationsByCond

func GetIssueRelationsByCond(issueIds []int64, relationTypes []int, baseCond db.Cond) ([]bo.IssueRelationBo, errs.SystemErrorInfo)

GetIssueRelationsByCond 根据条件查询 issue relation

func GetIssueRelationsByCondAndOrgId

func GetIssueRelationsByCondAndOrgId(orgId int64, relationTypes []int, baseCond db.Cond) ([]bo.IssueRelationBo, errs.SystemErrorInfo)

GetIssueRelationsByCondAndOrgId 通过条件和组织 id 查询 issue relations

func GetIssueRelationsByCondAndProId

func GetIssueRelationsByCondAndProId(projectId int64, relationTypes []int, baseCond db.Cond) ([]bo.IssueRelationBo, errs.SystemErrorInfo)

GetIssueRelationsByCondAndProId 通过条件查询 issue relations

func GetIssueReport

func GetIssueReport(id string) (bo.ShareBo, error)

func GetIssueResourceIdsByCreator

func GetIssueResourceIdsByCreator(orgId int64, issueId int64, ids []int64, creatorId int64) (*[]int64, errs.SystemErrorInfo)

创建者也可以删除资源

func GetIssueSourceBo

func GetIssueSourceBo(id int64) (*bo.IssueSourceBo, errs.SystemErrorInfo)

func GetIssueSourceBoList

func GetIssueSourceBoList(page uint, size uint, cond db.Cond) (*[]bo.IssueSourceBo, int64, errs.SystemErrorInfo)

func GetIssueSourceBos

func GetIssueSourceBos(orgId, projectId int64, projectObjectTypeId int64) ([]bo.IssueSourceBo, errs.SystemErrorInfo)

func GetIssueSourceById

func GetIssueSourceById(orgId, sourceId int64, projectId int64) (*bo.IssueSourceBo, errs.SystemErrorInfo)

func GetIssueSourceInfo

func GetIssueSourceInfo(orgId int64, sourceIds []int64) ([]bo.IssueSourceBo, errs.SystemErrorInfo)

func GetIssueSourceList

func GetIssueSourceList(orgId int64, projectId int64) ([]bo.IssueSourceBo, errs.SystemErrorInfo)

func GetIssueSourceListByProjectObjectTypeId

func GetIssueSourceListByProjectObjectTypeId(orgId, projectTypeId int64, projectId int64) ([]bo.IssueSourceBo, errs.SystemErrorInfo)

func GetIssueStatusBoArr

func GetIssueStatusBoArr(orgId, proAppId int64) ([]bo.CacheProcessStatusBo, errs.SystemErrorInfo)

GetIssueStatusBoArr 查询项目下任务的状态列的状态列表 todo proAppId: 项目的 appId

func GetIssueStatusIdsByType

func GetIssueStatusIdsByType(orgId, proAppId int64, typ int) ([]int64, errs.SystemErrorInfo)

GetIssueStatusIdsByType 通过状态分类查询对应的任务状态 ids todo proAppId: 项目的 appId typ 状态分类: 1未开始;2进行中;3已完成

func GetIssueStatusStatWithLc

func GetIssueStatusStatWithLc(issueStatusStatCondBo bo.IssueStatusStatCondBo) ([]bo.IssueStatusStatBo, errs.SystemErrorInfo)

GetIssueStatusStatWithLc 查询和计算迭代下的任务统计信息 主要统计各个 table 的各种任务数

func GetIssueWorkHoursList

func GetIssueWorkHoursList(condParam bo.IssueWorkHoursBoListCondBo, tx ...sqlbuilder.Tx) ([]po.PpmPriIssueWorkHours, errs.SystemErrorInfo)

获取工时记录列表

func GetIssueWorkHoursStatisticList

func GetIssueWorkHoursStatisticList(condParam bo.IssueWorkHoursBoListCondBo) ([]po.PpmPriIssueWorkHours, errs.SystemErrorInfo)

针对统计时用的工时列表查询

func GetIssuesWorkHourList

func GetIssuesWorkHourList(orgId int64, projectIds, issueIds []int64) ([]*bo.SimpleWorkHourBo, errs.SystemErrorInfo)

func GetIterationBo

func GetIterationBo(id int64) (*bo.IterationBo, errs.SystemErrorInfo)

func GetIterationBoByOrgId

func GetIterationBoByOrgId(id int64, orgId int64) (*bo.IterationBo, errs.SystemErrorInfo)

func GetIterationBoList

func GetIterationBoList(page uint, size uint, cond db.Cond, orderBy *int) (*[]bo.IterationBo, int64, errs.SystemErrorInfo)

func GetIterationInfoBo

func GetIterationInfoBo(iterationBo bo.IterationBo) (*bo.IterationInfoBo, errs.SystemErrorInfo)

func GetIterationRelationStatusInfo

func GetIterationRelationStatusInfo(orgId int64, iterationId int64) ([]bo.PpmPriIterationStatusRelationBo, errs.SystemErrorInfo)

func GetIterationRelationStatusInfoBatch

func GetIterationRelationStatusInfoBatch(orgId int64, iterationIds []int64) ([]bo.PpmPriIterationStatusRelationBo, errs.SystemErrorInfo)

func GetIterationStatBo

func GetIterationStatBo(id int64) (*bo.IterationStatBo, errs.SystemErrorInfo)

func GetIterationStatBoList

func GetIterationStatBoList(page uint, size uint, cond db.Cond) (*[]bo.IterationStatBo, int64, errs.SystemErrorInfo)

func GetIterationStatusInfo

func GetIterationStatusInfo(statusId int64) status.StatusInfoBo

func GetIterationStatusList

func GetIterationStatusList() []*vo.HomeIssueStatusInfo

func GetIterationStatusMap2Type

func GetIterationStatusMap2Type() map[int64]int

func GetIterationStatusMapById

func GetIterationStatusMapById() map[int64]status.StatusInfoBo

func GetIterationsInfo

func GetIterationsInfo(orgId int64, ids []int64) ([]bo.IterationBo, errs.SystemErrorInfo)

func GetLastUrgeIssue

func GetLastUrgeIssue(orgId, projectId, issueId int64, keyTpl string) (int64, errs.SystemErrorInfo)

func GetLcAppList

func GetLcAppList(orgIds []int64, types []int, names []string) ([]po.LcApp, errs.SystemErrorInfo)

GetLcAppList 查询 app 列表

func GetMenu

func GetMenu(orgId int64, appId int64) (*bo.GetMenuInfoBo, errs.SystemErrorInfo)

func GetMinIterationSort

func GetMinIterationSort(orgId, projectId int64) (int64, errs.SystemErrorInfo)

func GetMoveRelateColumnIds

func GetMoveRelateColumnIds() []string

func GetNewIssuePropertyId

func GetNewIssuePropertyId(orgId int64, oldProjectId, oldId int64, newProjectId, projectObjectTypeId int64) int64

func GetNewIssueSourceId

func GetNewIssueSourceId(oldId int64, projectObjectTypeId int64, orgId int64) int64

func GetNoNeedColumnByProjectType

func GetNoNeedColumnByProjectType(projectType int64) []string

func GetNoRecycleCondition

func GetNoRecycleCondition(conditions ...*tablev1.Condition) []*tablev1.Condition

func GetNormalAdminManageApps

func GetNormalAdminManageApps(orgId int64) ([]*orgvo.NormalAdminAppIds, errs.SystemErrorInfo)

func GetNotCompletedIterationBoList

func GetNotCompletedIterationBoList(orgId int64, projectId int64) ([]bo.IterationBo, errs.SystemErrorInfo)

获取未完成的的迭代列表

func GetOneIssueWorkHoursById

func GetOneIssueWorkHoursById(id int64) (*po.PpmPriIssueWorkHours, errs.SystemErrorInfo)

获取一条工时记录

func GetOneOptionOfPriority

GetOneOptionOfPriority 从优先级的 option 中,选出一个作为默认选中的 option

func GetOneOrgAllStatusMap2Type

func GetOneOrgAllStatusMap2Type(orgId int64) (map[int64]int, errs.SystemErrorInfo)

func GetOneTaskView

func GetOneTaskView(orgId, viewId int64) (*po.PpmPriIssueView, errs.SystemErrorInfo)

获取一个任务视图

func GetOrgFunctionInfoMap

func GetOrgFunctionInfoMap(functions []orgvo.FunctionLimitObj) map[string]orgvo.FunctionLimitObj

func GetOrgInfo

func GetOrgInfo(orgId int64) (*bo.BaseOrgInfoBo, errs.SystemErrorInfo)

获取组织信息。

func GetOrgSummaryAppId

func GetOrgSummaryAppId(orgId int64) (int64, errs.SystemErrorInfo)

GetOrgSummaryAppId 获取某个组织的汇总表 appId

func GetParticipantMembers

func GetParticipantMembers(orgId, currentUserId int64) ([]int64, errs.SystemErrorInfo)

我参与的

func GetParticipantMembersAndOwner

func GetParticipantMembersAndOwner(orgId, currentUserId int64) ([]int64, errs.SystemErrorInfo)

我参与的和我负责的

func GetPayFunctionLimitResourceNum

func GetPayFunctionLimitResourceNum(orgId int64, functionCode string) (int, errs.SystemErrorInfo)

GetPayFunctionLimitResourceNum 获取功能限制的资源数量。仅适用于:项目、迭代、任务

func GetPriorityById

func GetPriorityById(orgId, tableId, priorityId int64) (*bo.PriorityBo, errs.SystemErrorInfo)

func GetPriorityListFromTableSchema

func GetPriorityListFromTableSchema(orgId int64, tableId int64) ([]*bo.PriorityBo, errs.SystemErrorInfo)

GetPriorityListFromTableSchema 从 table 的 schema 中查询出优先级列表

func GetProAdminUserIdsForLessCodeApp

func GetProAdminUserIdsForLessCodeApp(orgId, userId, appId int64) ([]int64, errs.SystemErrorInfo)

查询无码应用管理员角色对应的成员 ids (不包含普通管理员、系统管理员、组织拥有者)

func GetProAppIdMap

func GetProAppIdMap(orgId int64, projectIds []int64) (map[int64]int64, errs.SystemErrorInfo)

GetProAppIdMap 通过 projectId 获取对应的 appId

func GetProcessStatusListFromCache

func GetProcessStatusListFromCache() ([]bo.CacheProcessStatusBo, errs.SystemErrorInfo)

GetProcessStatusListFromCache test for 14396

func GetProcessStatusWithGroup

func GetProcessStatusWithGroup(projectRelationListGroup map[int64][]po.PpmProProjectRelation, orgId int64) (map[int64][]bo.CacheProcessStatusBo, errs.SystemErrorInfo)

查询分组了的项目的任务”状态列表“

func GetProject

func GetProject(orgId int64, projectId int64) (*bo.ProjectBo, errs.SystemErrorInfo)

获取项目信息以及 关联项目的管理员(不包含系统管理员)

func GetProjectAdminIds

func GetProjectAdminIds(orgId int64, appId int64) ([]int64, errs.SystemErrorInfo)

GetProjectAdminIds 获取项目管理员ids,包括组织管理员ids

func GetProjectAllMember

func GetProjectAllMember(orgId, projectId int64, page, size int) (int64, []bo.ProjectRelationBo, errs.SystemErrorInfo)

func GetProjectAppIdsByProjectIds

func GetProjectAppIdsByProjectIds(orgId int64, projectIds []int64) ([]int64, errs.SystemErrorInfo)

func GetProjectAuthBoBatch

func GetProjectAuthBoBatch(orgId int64, projectIds []int64) ([]bo.ProjectAuthBo, errs.SystemErrorInfo)

func GetProjectBoList

func GetProjectBoList(orgId int64, ids []int64) ([]bo.ProjectBo, errs.SystemErrorInfo)

func GetProjectBoListByProjectTypeLangCode

func GetProjectBoListByProjectTypeLangCode(orgId int64, projectTypeLangCode *string) ([]bo.ProjectBo, errs.SystemErrorInfo)

通过项目类型langCode获取项目列表

func GetProjectByAppId

func GetProjectByAppId(orgId int64, proAppId int64) (*bo.ProjectBo, errs.SystemErrorInfo)

func GetProjectCalendarInfo

func GetProjectCalendarInfo(orgId, projectId int64) (*bo.CacheProjectCalendarInfoBo, errs.SystemErrorInfo)

func GetProjectCountByOwnerId

func GetProjectCountByOwnerId(orgId, ownerId int64) (int64, errs.SystemErrorInfo)

func GetProjectCustomField

func GetProjectCustomField(orgId int64, projectIds []int64, isIgnoreStatus bool) ([]bo.CustomFieldBo, errs.SystemErrorInfo)

func GetProjectCustomFieldIds

func GetProjectCustomFieldIds(orgId int64, projectIds []int64) ([]int64, errs.SystemErrorInfo)

func GetProjectDayStatBo

func GetProjectDayStatBo(id int64) (*bo.ProjectDayStatBo, errs.SystemErrorInfo)

func GetProjectDayStatBoList

func GetProjectDayStatBoList(page uint, size uint, cond db.Cond) (*[]bo.ProjectDayStatBo, int64, errs.SystemErrorInfo)

func GetProjectDetailBo

func GetProjectDetailBo(id int64) (*bo.ProjectDetailBo, errs.SystemErrorInfo)

func GetProjectDetailBoList

func GetProjectDetailBoList(page uint, size uint, cond db.Cond) (*[]bo.ProjectDetailBo, int64, errs.SystemErrorInfo)

func GetProjectDetailByProjectIdBo

func GetProjectDetailByProjectIdBo(projectId, orgId int64) (*bo.ProjectDetailBo, errs.SystemErrorInfo)

func GetProjectDetails

func GetProjectDetails(orgId int64, projectIds []int64) (*[]bo.ProjectDetailBo, errs.SystemErrorInfo)

func GetProjectDetailsByOrgId

func GetProjectDetailsByOrgId(orgId int64) ([]*bo.ProjectDetailBo, errs.SystemErrorInfo)

GetProjectDetailsByOrgId 通过组织获取项目详情列表

func GetProjectFolder

func GetProjectFolder(bo bo.GetFolderBo) (*vo.FolderList, errs.SystemErrorInfo)

func GetProjectFormAppId

func GetProjectFormAppId(orgId int64) (int64, errs.SystemErrorInfo)

获取保存项目的表单的 appId

func GetProjectFormAppIdBatch

func GetProjectFormAppIdBatch(orgIds []int64) (map[int64]int64, errs.SystemErrorInfo)

func GetProjectIdByAppId

func GetProjectIdByAppId(appId string) (int64, int64, errs.SystemErrorInfo)

func GetProjectIdByOpenChatId

func GetProjectIdByOpenChatId(openChatId string) (int64, int64, errs.SystemErrorInfo)

GetProjectIdByOpenChatId 通过飞书的 chatId 获取项目id。如果项目不存在或者删除了,则返回 0 值。

func GetProjectIdColForIssues

func GetProjectIdColForIssues(issues []map[string]interface{}, key string) ([]int64, errs.SystemErrorInfo)

GetProjectIdColForIssues 获取任务数据中的 projectId 列

func GetProjectIdsByAppIds

func GetProjectIdsByAppIds(orgId int64, appIds []int64) ([]int64, errs.SystemErrorInfo)

func GetProjectIdsQueryConds

func GetProjectIdsQueryConds(projectIds []int64) *vo.LessCondsData

func GetProjectInfoByAppId

func GetProjectInfoByAppId(appId int64) (*po.PpmProProject, errs.SystemErrorInfo)

func GetProjectInfoByOrgIds

func GetProjectInfoByOrgIds(orgIds []int64) ([]bo.ProjectBo, errs.SystemErrorInfo)

func GetProjectInfoWithOwnerIds

func GetProjectInfoWithOwnerIds(id int64, orgId int64) (bo.ProjectBo, errs.SystemErrorInfo)

目前只有在 UpdateProjectWithoutAuth 这里用到了 ownerIds,所以暂时改了个函数名 让UpdateProjectWithoutAuth调用,其他 原来调用 GetProjectInfo的地方去掉查询负责人的逻辑

func GetProjectIterationInfo

func GetProjectIterationInfo(orgId, projectId int64) ([]projectvo.ProjectIterationTemplate, errs.SystemErrorInfo)

func GetProjectIterationRelationStatusInfo

func GetProjectIterationRelationStatusInfo(orgId int64, projectId int64) ([]bo.PpmPriIterationStatusRelationBo, errs.SystemErrorInfo)

获取项目所有的迭代状态关联

func GetProjectList

func GetProjectList(currentUserId int64, joinParams db.Cond, union *db.Union, order []*string, size int, page int) ([]*bo.ProjectBo, int64, errs.SystemErrorInfo)

func GetProjectMemberDepartmentsInfo

func GetProjectMemberDepartmentsInfo(orgId, projectId int64) ([]bo.DepartmentSimpleInfoBo, errs.SystemErrorInfo)

func GetProjectMemberInfo

func GetProjectMemberInfo(projectIds []int64, orgId int64, creatorIds []int64) (map[int64][]bo.UserIDInfoBo, map[int64][]bo.UserIDInfoBo, map[int64][]bo.UserIDInfoBo, map[int64]bo.UserIDInfoBo, errs.SystemErrorInfo)

func GetProjectMembers

func GetProjectMembers(orgId, projectId int64, relationTypes []int64) ([]bo.ProjectRelationBo, errs.SystemErrorInfo)

func GetProjectParticipantIds

func GetProjectParticipantIds(orgId, projectId int64) ([]int64, error)

项目的负责人、关注人 id。

func GetProjectRelatedStatus

func GetProjectRelatedStatus(orgId int64, projectId int64, tableId int64) ([]status.StatusInfoBo, errs.SystemErrorInfo)

GetProjectRelatedStatus 获取项目对象类型对应的任务状态。,

func GetProjectRelationBoIgnoreStatus

func GetProjectRelationBoIgnoreStatus(orgId, projectId int64, relationType int, relationId int64, projectObjectTypeId int64) (*bo.ProjectRelationBo, errs.SystemErrorInfo)

func GetProjectRelationByCond

func GetProjectRelationByCond(cond db.Cond) (*[]bo.ProjectRelationBo, errs.SystemErrorInfo)

func GetProjectRelationByCondSort

func GetProjectRelationByCondSort(cond db.Cond, order interface{}) (*[]bo.ProjectRelationBo, errs.SystemErrorInfo)

func GetProjectRelationByType

func GetProjectRelationByType(projectId int64, relationTypes []int64) (*[]bo.ProjectRelationBo, errs.SystemErrorInfo)

func GetProjectRelationByTypeAndUserId

func GetProjectRelationByTypeAndUserId(orgId, userId int64, relationTypes []int64) (*[]bo.ProjectRelationBo, errs.SystemErrorInfo)

func GetProjectResource

func GetProjectResource(bo bo.GetResourceBo) (*vo.ResourceList, errs.SystemErrorInfo)

func GetProjectResourceInfo

func GetProjectResourceInfo(bo bo.GetResourceInfoBo) (*vo.Resource, errs.SystemErrorInfo)

func GetProjectSimple

func GetProjectSimple(orgId int64, projectId int64, tx ...sqlbuilder.Tx) (*bo.ProjectBo, errs.SystemErrorInfo)

GetProjectSimple 仅仅是获取项目的信息,不包括项目的管理员

func GetProjectStatus

func GetProjectStatus(orgId, projectId int64) ([]bo.CacheProcessStatusBo, errs.SystemErrorInfo)

GetProjectStatus 所有的项目状态都一样,因此 projectId 可以不传

func GetProjectStatusBatch

func GetProjectStatusBatch(orgId int64, projectIds []int64) (map[int64][]bo.CacheProcessStatusBo, errs.SystemErrorInfo)

批量查询项目中的状态列表

func GetProjectStatusBoMap

func GetProjectStatusBoMap() map[int64]bo.CacheProcessStatusBo

func GetProjectTypeByLangCode

func GetProjectTypeByLangCode(orgId int64, langCode string) (*bo.ProjectTypeBo, errs.SystemErrorInfo)

func GetProjectTypeList

func GetProjectTypeList(orgId int64) (*[]bo.ProjectTypeBo, errs.SystemErrorInfo)

func GetRawRows

func GetRawRows(orgId, userId int64, req *tablev1.ListRawRequest) (*formvo.LessIssueRawListResp, errs.SystemErrorInfo)

func GetRecoverRecord

func GetRecoverRecord(orgId, relationId int64, relationType int) (*bo.PpmPrsRecycleBin, errs.SystemErrorInfo)

func GetRecycleInfo

func GetRecycleInfo(orgId, recycleId, relationId int64, relationType int) (*bo.PpmPrsRecycleBin, errs.SystemErrorInfo)

func GetRecycleList

func GetRecycleList(orgId, projectId int64, relationType int, page, size int) (uint64, []bo.PpmPrsRecycleBin, errs.SystemErrorInfo)

func GetRecycleListWithAuth

func GetRecycleListWithAuth(orgId, currentUserId, projectId int64, relationType int, page, size int) (uint64, []bo.PpmPrsRecycleBin, errs.SystemErrorInfo)

GetRecycleListWithAuth 只获取当前登陆者有权访问的资源。不相关的数据不展示

func GetRelateIssueCount

func GetRelateIssueCount(orgId int64, issueIds []int64, relationType int) (map[int64]int64, errs.SystemErrorInfo)

func GetRelatedIssues

func GetRelatedIssues(currentUserId, orgId int64) ([]bo.IssueRelationBo, error)

获取我参与的和我负责的任务

func GetRelationInfoByIssueIds

func GetRelationInfoByIssueIds(issueIds []int64, relationTypes []int) ([]bo.IssueRelationBo, errs.SystemErrorInfo)

func GetResourceTypeByResourceIds

func GetResourceTypeByResourceIds(orgId, projectId int64, resourceIds []int64) (map[int64]int, errs.SystemErrorInfo)

GetResourceTypeByResourceIds 获取资源id和sourceType的对应关系

func GetRows

func GetRows(req *formvo.LessIssueListReq, appAuthInfo ...string) *projectvo.ListRowsReply

func GetRowsAndCondition

func GetRowsAndCondition(conditions ...*tablev1.Condition) *tablev1.Condition

func GetRowsCondition

func GetRowsCondition(columnId string, columnType tablev1.ConditionType, value, values interface{}) *tablev1.Condition

func GetRunningIterationStat

func GetRunningIterationStat(projectIds []int64, orgId int64) (map[int64]bo.IssueStatistic, errs.SystemErrorInfo)

func GetSameNameDeptByList

func GetSameNameDeptByList(deptList []*vo.Department) ([]*vo.Department, []int64)

GetSameNameDeptByList 通过部门列表取出有同名情况的部门

func GetSameNameDeptList

func GetSameNameDeptList(orgId int64) ([]uservo.GetDeptListRespDataItem, errs.SystemErrorInfo)

GetSameNameDeptList 获取有同名情况的部门列表

func GetSameNameDeptNames

func GetSameNameDeptNames(orgId int64) ([]string, errs.SystemErrorInfo)

GetSameNameDeptNames 获取同名部门的名称列表

func GetSameNameUserAndDeptSimpleInfo

func GetSameNameUserAndDeptSimpleInfo(orgId int64, dataType string) ([]bo.UserOrDeptInfoItem, []bo.UserOrDeptInfoItem,
	errs.SystemErrorInfo,
)

GetSameNameUserAndDeptSimpleInfo 获取同名的用户和部门 dataType 获取的数据类型, `user` 同名用户; `dept` 同名部门; all 所有

func GetSameNameUserIdList

func GetSameNameUserIdList(userList []bo.SimpleUserInfoBo) ([]int64, errs.SystemErrorInfo)

func GetSameNameUserList

func GetSameNameUserList(userList []bo.SimpleUserInfoBo) ([]bo.UserOrDeptInfoItem, errs.SystemErrorInfo)

GetSameNameUserList 通过用户列表去除同名的用户

func GetStatDailyAppList

func GetStatDailyAppList(page uint, size uint, cond db.Cond) ([]*po.LcStatDailyApp, int64, errs.SystemErrorInfo)

func GetStatusIdMap2NewStatusId

func GetStatusIdMap2NewStatusId(statusIds []int64, orgAllStatusMap2Type map[int64]int, newStatusIdMapByType map[int]int64) map[int64]int64

func GetStatusListByCategoryRelaxed

func GetStatusListByCategoryRelaxed(orgId int64, category int) ([]bo.CacheProcessStatusBo, errs.SystemErrorInfo)

GetStatusListByCategoryRelaxed 根据 category 获取对应的状态列表

func GetStatusListFromStatusColumn

func GetStatusListFromStatusColumn(column *projectvo.TableColumnData) []status.StatusInfoBo

GetStatusListFromStatusColumn 将表头信息中状态列,获取状态值列表

func GetSumWorkHourSumNeedTime

func GetSumWorkHourSumNeedTime(cond db.Cond) (totalNeedTime int64, err errs.SystemErrorInfo)

获取符合条件的工时总数

func GetTabStrForColumnName

func GetTabStrForColumnName(columnName string) string

计算制表符

func GetTableByTableId

func GetTableByTableId(orgId int64, userId int64, tableId int64) (*projectvo.TableMetaData, errs.SystemErrorInfo)

GetTableByTableId 通过表格id,查询tablelist

func GetTableColumnByAppId

func GetTableColumnByAppId(orgId int64, userId int64, appId int64, columnIds []string) (*projectvo.TablesColumnsRespData, errs.SystemErrorInfo)

GetTableColumnByAppId 通appId获取表的列信息

func GetTableColumnConfig

func GetTableColumnConfig(orgId int64, tableId int64, columnIds []string, isNeedCommonColumn bool) (*projectvo.TableColumnConfigInfo, errs.SystemErrorInfo)

GetTableColumnConfig 获取一个表的指定列信息 @columnIds 获取的列的 key/name(列的标识符)

func GetTableColumns

func GetTableColumns(orgId int64, userId int64, tableId int64, isNeedDescription bool) ([]*projectvo.TableColumnData, errs.SystemErrorInfo)

func GetTableColumnsForImport

func GetTableColumnsForImport(orgId, tableId int64) ([]*projectvo.TableColumnData, map[string]map[string]interface{}, errs.SystemErrorInfo)

GetTableColumnsForImport 导入导出-获取表头信息

func GetTableColumnsMap

func GetTableColumnsMap(orgId int64, tableId int64, columnIds []string, flags ...bool) (map[string]*projectvo.TableColumnData, errs.SystemErrorInfo)

GetTableColumnsMap 获取一个表的列信息,以列的 name 为 key,返回 map

func GetTableColumnsPropsMap

func GetTableColumnsPropsMap(columns []*projectvo.TableColumnData) map[string]map[string]interface{}

GetTableColumnsPropsMap 将字段列表中的 props 统一放到一个 map 中,方便取用

func GetTableIdsQueryCondsByAppAuth

func GetTableIdsQueryCondsByAppAuth(appAuth *appauth.GetAppAuthData) *vo.LessCondsData

func GetTableIdsQueryCondsByAppAuths

func GetTableIdsQueryCondsByAppAuths(appAuths map[int64]appauth.GetAppAuthData) *vo.LessCondsData

func GetTableInfo

func GetTableInfo(orgId int64, appId, tableId int64) (*projectvo.TableMetaData, errs.SystemErrorInfo)

func GetTableIssueMaxOrder

func GetTableIssueMaxOrder(orgId, userId int64) (float64, errs.SystemErrorInfo)

func GetTableListByProAppIds

func GetTableListByProAppIds(orgId int64, proAppIds []int64) ([]*projectvo.AppTables, errs.SystemErrorInfo)

GetTableListByProAppIds 通过项目对应的 appIds,查询其下的 table list

func GetTableListMapByProAppIds

func GetTableListMapByProAppIds(orgId int64, proAppIds []int64) (map[int64][]*projectvo.TableMetaData, errs.SystemErrorInfo)

GetTableListMapByProAppIds 通过项目对应的 appIds, 查询其下的 table list,返回以 appId 为 key,值为 tables list 的 map

func GetTableStatus

func GetTableStatus(orgId int64, tableId int64) ([]status.StatusInfoBo, errs.SystemErrorInfo)

func GetTablesColumnsByTableIds

func GetTablesColumnsByTableIds(orgId, userId int64, tableIds []int64, columnIds []string, isNeedDescription bool) (*projectvo.TablesColumnsRespData, errs.SystemErrorInfo)

GetTablesColumnsByTableIds 通过tableIds获取表头信息

func GetTaskViewList

func GetTaskViewList(orgId, userId int64, input *vo.GetIssueViewListReq) (int64, []po.PpmPriIssueView, errs.SystemErrorInfo)

获取任务视图列表

func GetTodoCard

func GetTodoCard(orgId, userId int64, sourceChannel string, todo *automationPb.Todo) (*pushPb.TemplateCard, errs.SystemErrorInfo)

GetTodoCard

func GetTotalResourceByRelationCond

func GetTotalResourceByRelationCond(cond db.Cond) (*[]po.PpmPriIssueRelation, errs.SystemErrorInfo)

func GetTrashMenuItem

func GetTrashMenuItem() projectvo.ScheduleOrgMenuOption

func GetTypeAndStatus

func GetTypeAndStatus(projectTypeId int64) (int64, int64, errs.SystemErrorInfo)

GetTypeAndStatus 获取项目类型和初始状态

func GetTypeNameForExportSameUserDept

func GetTypeNameForExportSameUserDept(typeFlag string, isEnglish bool, langTextMap map[string]string) string

GetTypeNameForExportSameUserDept 导出同名用户或部门时,渲染“类型” cell 中的值

func GetUniquelyCode

func GetUniquelyCode(orgId int64, code string) (string, errs.SystemErrorInfo)

func GetUserCollaboratorRoleIdsByAppId

func GetUserCollaboratorRoleIdsByAppId(orgId, appId, userId int64, deptIds []int64, datas []map[string]interface{}) ([]int64, errs.SystemErrorInfo)

func GetUserCollaboratorRoleIdsByTableId

func GetUserCollaboratorRoleIdsByTableId(orgId, appId, tableId, userId int64, deptIds []int64, datas []map[string]interface{}) ([]int64, errs.SystemErrorInfo)

func GetUserDeptFullNameArr

func GetUserDeptFullNameArr(orgId int64, userIds []int64) (map[int64][]string, errs.SystemErrorInfo)

GetUserDeptFullNameArr 获取用户的完整部门名称列表,一个用户可能在多个部门中。

func GetUserDeptFullNameStr

func GetUserDeptFullNameStr(orgId int64, userIds []int64, sep string) (map[int64]string, errs.SystemErrorInfo)

GetUserDeptFullNameStr 获取用户的部门名称,字符串拼接,如:`"职能部/技术部;职能部/财务部"` sep 拼接的分隔符,如:`;`

func GetUserDeptIdsMap

func GetUserDeptIdsMap(orgId int64, userIds []int64) (map[int64][]int64, errs.SystemErrorInfo)

GetUserDeptIdsMap 获取用户的部门id列表,一个用户可能在多个部门中

func GetUserMapForImportIssue

func GetUserMapForImportIssue(orgId int64) (map[string]bo.SimpleUserWithUserIdBo, map[string]int64, []string, errs.SystemErrorInfo)

GetUserMapForImportIssue 导入任务时,获取用于匹配成员名的用户 map 信息。map 中还设定了针对重名用户特殊的 key 信息映射。

func GetUserOrDeptNameMap

func GetUserOrDeptNameMap(orgId int64, dataList []bo.UserOrDeptInfoItem, idType string) (map[int64]string, errs.SystemErrorInfo)

GetUserOrDeptNameMap 获取用户所在部门或部门数据的全路径 ids 可能是用户id,也可能是部门id

func GetWorkHourCond1

func GetWorkHourCond1(condParam bo.IssueWorkHoursBoListCondBo) db.Cond

func GetWorkHourListForOneIssue

func GetWorkHourListForOneIssue(orgId int64, issueId int64) ([]po.PpmPriIssueWorkHours, errs.SystemErrorInfo)

GetWorkHourListForOneIssue 查询一个任务的现有的工时记录

func GetWrongAppIdsIssue

func GetWrongAppIdsIssue(orgId, summaryAppId int64, page, size int) ([]map[string]interface{}, int64, errs.SystemErrorInfo)

GetWrongAppIdsIssue 查询有错误的任务数据

func HandleProjectDynSetting

func HandleProjectDynSetting()

处理群聊中的指令:“项目动态设置”

func HandleProjectIssue

func HandleProjectIssue()

处理群聊中的指令:“项目任务”

func HandleProjectMember

func HandleProjectMember(orgId int64, currentUserId int64, owner int64, projectId int64, memberIds []int64, followerIds []int64, isAllMember *bool, departmentIds []int64, ownerIds []int64) ([]interface{}, []int64, errs.SystemErrorInfo)

func HandleProjectProgress

func HandleProjectProgress()

处理群聊中的指令:“项目进展”

func InitProjectStatus

func InitProjectStatus(orgId, projectId int64, operatorId int64, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

func InsertIssueReport

func InsertIssueReport(orgId, currentUserId, total int64, startTime, endTime string, homeIssueBos []bo.HomeIssueInfoBo) (bo.IssueReportDetailBo, error)

func IsIssueParticipant

func IsIssueParticipant(orgId, curUserId, projectId, issueId int64, relationTypes []int) (bool, errs.SystemErrorInfo)

IsIssueParticipant 检查当前用户是否是项目参与人,参与人的关系自定义(根据入参 relationTypes 而定)

func IsProjectMemberWithDeptIds

func IsProjectMemberWithDeptIds(orgId, userId, projectId int64, deptIds []int64) (bool, errs.SystemErrorInfo)

我是否是项目成员(需排除已被删除的项目)(因ppm_pro_project_relation未删除已删除的项目的关联数据)

func IsProjectOwner

func IsProjectOwner(orgId, userId, projectId int64) (bool, errs.SystemErrorInfo)

func IsProjectParticipant

func IsProjectParticipant(orgId, userId, projectId int64) (bool, errs.SystemErrorInfo)

IsProjectParticipant 检查一个用户是否是项目/应用参与人

func IssueCondLastUpdateTimeCondAssembly

func IssueCondLastUpdateTimeCondAssembly(queryCond db.Cond, input *vo.HomeIssueInfoReq)

增量查询条件封装

func IssueDailyPersonalWorkCompletionStatForLc

func IssueDailyPersonalWorkCompletionStatForLc(orgId, ownerId int64, startDate *types.Time, endDate *types.Time) ([]bo.IssueDailyPersonalWorkCompletionStatBo, errs.SystemErrorInfo)

IssueDailyPersonalWorkCompletionStatForLc 任务完成统计图,根据endTime做groupBy,统计当前负责人在指定时间段之内的每天任务完成数量 通过无码查询统计

func IssueTagStatByCache

func IssueTagStatByCache(orgId, projectId int64) ([]bo.IssueTagStatBo, errs.SystemErrorInfo)

func IterationCondStatusAssembly

func IterationCondStatusAssembly(cond *db.Cond, orgId int64, statusType int) errs.SystemErrorInfo

statusType定义(1:未开始,2:进行中,3:已完成)

func JudgeIsMember

func JudgeIsMember(projectId, currentUserId, orgId int64) (bool, errs.SystemErrorInfo)

func JudgeIsProjectMember

func JudgeIsProjectMember(currentUserId, orgId, projectId int64) (po.PpmProProjectRelation, errs.SystemErrorInfo)

func JudgeIsStarProject

func JudgeIsStarProject(projectId, currentUserId, orgId int64) (bool, errs.SystemErrorInfo)

func JudgeProjectIsExist

func JudgeProjectIsExist(orgId, id int64) bool

func JudgeRepeatProjectName

func JudgeRepeatProjectName(name *string, orgId int64, projectId *int64) (string, errs.SystemErrorInfo)

判断项目名是否重复

func JudgeRepeatProjectPreCode

func JudgeRepeatProjectPreCode(preCode *string, orgId int64, projectId *int64) (string, errs.SystemErrorInfo)

判断前缀编号是否重复

func LoadProjectAuthBo

func LoadProjectAuthBo(orgId int64, projectId int64) (*bo.ProjectAuthBo, errs.SystemErrorInfo)

func MakeTree

func MakeTree(vs []*bo.IssueNode, node *bo.IssueNode)

func MoveIssueProTableBatch

func MoveIssueProTableBatch(orgId, operatorId int64, issueAndChildrenBos []*bo.IssueBo, inputIssueIds []int64,
	fromTableId int64, fromProjectId int64, targetTableId int64, targetProjectId int64, chooseFields []string, issueTitleMap map[int64]string) ([]int64, errs.SystemErrorInfo)

批量更新任务所属项目/表

func NeedUrgeForOnlyIssue

func NeedUrgeForOnlyIssue(orgId, projectId, issueId int64) (bool, errs.SystemErrorInfo)

检查**任务**是否需要催办

func NeedUrgeIssue

func NeedUrgeIssue(orgId, projectId, issueId int64) (bool, errs.SystemErrorInfo)

检查**任务审批**是否需要催办

func NoticeIssueAudit

func NoticeIssueAudit(orgId int64, userId int64, orgBaseInfo *bo.BaseOrgInfoBo, issueBo *bo.IssueBo, notNeedNoticeIds []int64)

func PaginationInsert

func PaginationInsert(list []interface{}, domainObj mysql.Domain, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

分组插入新数据

func ParseExcelDatetime

func ParseExcelDatetime(cellVal string) (time.Time, error)

func ParseInstruction

func ParseInstruction(text string)

解析指令

func PriorityInit

func PriorityInit(orgId int64, tx sqlbuilder.Tx) errs.SystemErrorInfo

优先级初始化

func ProjectType

func ProjectType(orgId, id int64) (*bo.ProjectTypeBo, errs.SystemErrorInfo)

func ProjectTypes

func ProjectTypes(orgId int64) (*[]bo.ProjectTypeBo, errs.SystemErrorInfo)

func PushBatchCreateIssue

func PushBatchCreateIssue(batch *mqbo.PushBatchCreateIssue)

func PushCreateIssue

func PushCreateIssue(createIssueBo mqbo.PushCreateIssueBo)

func PushInfoToChat

func PushInfoToChat(orgId int64, projectId int64, info *bo.IssueTrendsBo, sourceChanel string) errs.SystemErrorInfo

PushInfoToChat 任务更新后,发送群聊卡片

func PushIssueThirdPlatformNotice

func PushIssueThirdPlatformNotice(issueTrendsBo *bo.IssueTrendsBo)

func PushIssueTrends

func PushIssueTrends(issueTrendsBo *bo.IssueTrendsBo)

func PushProjectThirdPlatformNotice

func PushProjectThirdPlatformNotice(projectMemberChangeBo bo.ProjectTrendsBo)

func PushProjectTrends

func PushProjectTrends(projectMemberChangeBo bo.ProjectTrendsBo)

func QuitProject

func QuitProject(currentUserId, orgId, owner, projectId, memberId int64) errs.SystemErrorInfo

func RecoverAttachment

func RecoverAttachment(orgId, userId, projectId, relationId int64, recycleId int64) errs.SystemErrorInfo

func RecoverFolder

func RecoverFolder(orgId, userId, projectId, relationId int64, recycleId int64) errs.SystemErrorInfo

func RecoverIssue

func RecoverIssue(orgId, userId, relationId int64, recycleId int64, sourceChannel string) ([]int64, int64, errs.SystemErrorInfo)

func RecoverLessAttachments

func RecoverLessAttachments(orgId, userId, projectId, resourceId int64, recycleId int64, sourceChannel string) errs.SystemErrorInfo

从回收站恢复无码附件

func RecoverResource

func RecoverResource(orgId, userId, projectId, relationId int64, recycleId int64) errs.SystemErrorInfo

func RecoverWorkHours

func RecoverWorkHours(orgId int64, issueIds []int64, recycleVersion int64) errs.SystemErrorInfo

RecoverWorkHours 从回收站恢复任务时,恢复对应的工时

func RecycleIssueResources

func RecycleIssueResources(orgId, userId, projectId, issueId int64, deleteResourceIds []int64, recycleVersionId int64, columnId string) errs.SystemErrorInfo

将附件字段的 附件资源 关联删除

func RefreshProjectAuthBo

func RefreshProjectAuthBo(orgId int64, projectId int64) error

func RemoveColumnByProjectType

func RemoveColumnByProjectType(columns []*projectvo.TableColumnData, projectType int64, extraColumns ...string) []*projectvo.TableColumnData

RemoveColumnByProjectType 有些项目类型不需要某些表头

func RemoveProjectMember

func RemoveProjectMember(orgId, userId int64, input vo.RemoveProjectMemberReq, sourceChannel string) errs.SystemErrorInfo

func RenderChangeDescForUpdateIssueInCard

func RenderChangeDescForUpdateIssueInCard(oldDesc, newDesc string) string

func RenderChangeDescForUpdateIssueOneDescInCard

func RenderChangeDescForUpdateIssueOneDescInCard(actionStr, changeDesc string) string

func RenderSameNameKey

func RenderSameNameKey(userId int64, userName string) string

RenderSameNameKey 获取用户/部门名称及其id组成的值。导入时,对于同名用户,推荐用户以 `张三#123#` 的样式作为成员名导入,部门同理。

func RenderWorkHourTimeRangeDesc

func RenderWorkHourTimeRangeDesc(workHour vo1.OneWorkHourRecord) string

RenderWorkHourTimeRangeDesc 展示工时信息时的日期文本展示

func ReportMoveEvent

func ReportMoveEvent(userId int64, oldIssue *bo.IssueBo, newData map[string]interface{}, userDepts map[string]*uservo.MemberDept)

func SaveMenu

func SaveMenu(orgId int64, appId int64, config string) (int64, errs.SystemErrorInfo)

func SelectIssueAssignCount

func SelectIssueAssignCount(orgId int64, projectId int64, rankTop int) ([]bo.IssueAssignCountBo, errs.SystemErrorInfo)

func SelectIssueAssignTotalCount

func SelectIssueAssignTotalCount(orgId int64, projectId int64) (int64, errs.SystemErrorInfo)

func SetAsyncTaskHasSendCard

func SetAsyncTaskHasSendCard(orgId int64, taskId string) errs.SystemErrorInfo

SetAsyncTaskHasSendCard 异步任务处理完成,发送卡片后,标记已发送卡片

func SetDeletedIssuesNum

func SetDeletedIssuesNum(orgId, issueNums int64) errs.SystemErrorInfo

func SetWorkHourMap

func SetWorkHourMap(orgId int64, projectIds, issueIds []int64, workHourMap map[int64]bo.IssueWorkHour)

func SortStatus

func SortStatus(statusInfos []status.StatusInfoBo) []status.StatusInfoBo

func SourceExist

func SourceExist(orgId, sourceId int64) bool

func StatisticIterationCountGroupByStatus

func StatisticIterationCountGroupByStatus(orgId, projectId int64) (*bo.IterationStatusTypeCountBo, errs.SystemErrorInfo)

func StatisticProIssueFinishedOrNot

func StatisticProIssueFinishedOrNot(orgId int64, curUserId int64, summaryAppId int64, projectIds []int64) ([]map[string]interface{}, errs.SystemErrorInfo)

StatisticProIssueFinishedOrNot 查询逾期未完成任务数、已完成任务数,并按项目分组

func StatisticProIssuesRelateSomeone

func StatisticProIssuesRelateSomeone(orgId int64, curUserId int64, summaryAppId int64, projectIds []int64) ([]bo.RelateIssueTotal, errs.SystemErrorInfo)

StatisticProIssuesRelateSomeone 查询一些项目下,和我相关的任务数统计。查询我关注或者我负责的未完成的任务数,按项目分组

func TodoUrge

func TodoUrge(orgId, userId, todoId int64, msg string) errs.SystemErrorInfo

func TransferSyncOutCalendarStatus

func TransferSyncOutCalendarStatus(syncFlag int) []*int

日历同步的状态转换。因为数据库中存储的是一个聚合的状态值,需要将其转换为单独的状态值集合。

func TransferSyncOutCalendarStatusIntoOne

func TransferSyncOutCalendarStatusIntoOne(statusList []*int) int

将前端传过来的日历同步配置,转换为一个配置值,存放在数据库中。

func UpdateAsyncTaskWithError

func UpdateAsyncTaskWithError(orgId, projectId, tableId, userId int64, taskId string, isApplyTemplate bool, errCode errs.SystemErrorInfo, count int64)

UpdateAsyncTaskWithError 异步任务异常时,将异常 code 放入缓存信息中,并更新缓存中失败的计数

func UpdateAsyncTaskWithSucc

func UpdateAsyncTaskWithSucc(orgId, projectId, tableId, userId int64, taskId string, isApplyTemplate bool, count int64)

UpdateAsyncTaskWithSucc 异步任务完成时,向任务信息中更新进度

func UpdateIssueProjectTable

func UpdateIssueProjectTable(orgId, operatorId int64, issueBo *bo.IssueBo, targetTableId int64, targetProjectId int64, takeChildren bool, updatePath bool) errs.SystemErrorInfo

UpdateIssueProjectTable 更新任务所属项目/表

func UpdateIssueRelation

func UpdateIssueRelation(operatorId int64, issueBo *bo.IssueBo, relationType int, newUserIds []int64, relationCode string) ([]bo.IssueRelationBo, errs.SystemErrorInfo)

func UpdateIssueRelationSingle

func UpdateIssueRelationSingle(operatorId int64, issueBo *bo.IssueBo, relationType int, newUserIds []int64) (*bo.IssueRelationBo, errs.SystemErrorInfo)

func UpdateIssueSource

func UpdateIssueSource(bo *bo.IssueSourceBo) errs.SystemErrorInfo

func UpdateIssueWorkHourByCond

func UpdateIssueWorkHourByCond(cond db.Cond, paramBo bo.UpdateOneIssueWorkHoursBo, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

根据条件,编辑工时记录

func UpdateIssueWorkHours

func UpdateIssueWorkHours(paramBo bo.UpdateOneIssueWorkHoursBo, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

根据主键,编辑一条工时记录

func UpdateIssuesUrgeTime

func UpdateIssuesUrgeTime(orgId, projectId int64, issueIds []int64, keyTpl string) errs.SystemErrorInfo

func UpdateIterStatusToFixed

func UpdateIterStatusToFixed(orgId int64) errs.SystemErrorInfo

UpdateIterStatusToFixed 跑批处理迭代状态,迭代状态更新为固定的状态值 取出对应的 status 查询 status 对应的对象,获取对应的 type 通过 type 映射出目标状态值, 更新 iteration 表的 status 更新 ppm_pri_iteration_status_relation 表的 status

func UpdateIteration

func UpdateIteration(updateBo *bo.IterationUpdateBo) errs.SystemErrorInfo

func UpdateIterationStat

func UpdateIterationStat(bo *bo.IterationStatBo) errs.SystemErrorInfo

func UpdateIterationStatus

func UpdateIterationStatus(iterationBo bo.IterationBo, nextStatusId, operationId int64, beforeEndTime, nextStartTime types.Time) errs.SystemErrorInfo

func UpdateLcAppSortBatch

func UpdateLcAppSortBatch(appMapSort map[int64]int64) errs.SystemErrorInfo

UpdateLcAppSortBatch 批量更新 app 的排序值

func UpdateLcIssueAuditStatusDetailByUser

func UpdateLcIssueAuditStatusDetailByUser(orgId, appId, userId, issueId int64, auditStatus int) errs.SystemErrorInfo

func UpdateOrInsertIterationRelation

func UpdateOrInsertIterationRelation(orgId int64, projectId int64, iterationId int64, statusId int64, planStartTime, planEndTime, startTime, endTime *types.Time, operatorId int64, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

有则更新,无则添加

func UpdateProject

func UpdateProject(orgId int64, currentUserId int64, updPoint *mysql.Upd, oldOwnerIds []int64, input bo.UpdateProjectBo, appId int64) ([]int64, []int64, []int64, []int64, []int64, []int64, errs.SystemErrorInfo)

func UpdateProjectAppId

func UpdateProjectAppId(currentUserId int64, input bo.UpdateProjectBo, upd mysql.Upd) errs.SystemErrorInfo

根据 input 中的 id 更新项目的 app_id 数据

func UpdateProjectCondAssembly

func UpdateProjectCondAssembly(input bo.UpdateProjectBo, orgId int64, old, new *map[string]interface{}, originProjectInfo bo.ProjectBo, changeList *[]bo.TrendChangeListBo) (mysql.Upd, errs.SystemErrorInfo)

func UpdateProjectDayStat

func UpdateProjectDayStat(bo *bo.ProjectDayStatBo) errs.SystemErrorInfo

func UpdateProjectDetail

func UpdateProjectDetail(bo *bo.ProjectDetailBo) errs.SystemErrorInfo

func UpdateProjectFileResource

func UpdateProjectFileResource(updateResourceBo bo.UpdateResourceInfoBo) (int64, errs.SystemErrorInfo)

func UpdateProjectFolder

func UpdateProjectFolder(updateBo bo.UpdateFolderBo) (*int64, errs.SystemErrorInfo)

func UpdateProjectRelation

func UpdateProjectRelation(operatorId, orgId, projectId int64, relationType int, relationIds []int64) errs.SystemErrorInfo

更新项目关联,带分布式锁

func UpdateProjectRelationWithRelationTypes

func UpdateProjectRelationWithRelationTypes(operatorId, orgId, projectId int64, relationTypes []int, targetRelationType int, relationIds []int64) ([]int64, errs.SystemErrorInfo)

更新项目关联,多关联类型check relationTypes: 使用该类型范围内的数据与relationIds做过滤,得到真正需要关联的id targetRelationType: 目标关联类型,新增的关联以此类型为准

func UpdateProjectResourceFolder

func UpdateProjectResourceFolder(updateResourceBo bo.UpdateResourceFolderBo) ([]int64, errs.SystemErrorInfo)

func UpdateProjectResourceName

func UpdateProjectResourceName(updateResourceBo bo.UpdateResourceInfoBo) (int64, errs.SystemErrorInfo)

func UpdateProjectStatus

func UpdateProjectStatus(projectBo bo.ProjectBo, nextStatusId int64) errs.SystemErrorInfo

func UpdateUrgeIssueTime

func UpdateUrgeIssueTime(orgId, projectId, issueId int64) errs.SystemErrorInfo

func UpdateUrgeOnlyIssueTime

func UpdateUrgeOnlyIssueTime(orgId, projectId, issueId int64) errs.SystemErrorInfo

**任务**催办时间记录/更新

func UpdateWorkHourProjectId

func UpdateWorkHourProjectId(orgId, oldProjectId, newProjectId int64, issueIds []int64, isDelete bool, tx ...sqlbuilder.Tx) errs.SystemErrorInfo

移动任务时,更新任务对应的工时的项目id。

func WordTranslate

func WordTranslate(word string) string

func WriteUserOrDeptSameNameListToExcel

func WriteUserOrDeptSameNameListToExcel(orgId int64, fullFileName string, userList, deptList []bo.UserOrDeptInfoItem) errs.SystemErrorInfo

WriteUserOrDeptSameNameListToExcel 写入 excel 数据 typeStr 数据类型:部门(dept),成员(user)

Types

type ExportIssue

type ExportIssue struct {
	InAndExportBase
	ImageDownloadDir string
	Iteration        *bo.IterationBo
}

ExportIssue 任务导出

func NewExportIssue

func NewExportIssue(orgId int64, projectId int64, tableId, iterationId int64) (*ExportIssue, errs.SystemErrorInfo)

NewExportIssue 初始化任务导出实例

func (*ExportIssue) MakeDirForExport

func (ei *ExportIssue) MakeDirForExport() errs.SystemErrorInfo

func (*ExportIssue) TransferLcDataIntoExportData

func (ei *ExportIssue) TransferLcDataIntoExportData(exportObj *ExportIssue, lcData map[string]interface{}, userDepts map[string]*uservo.MemberDept) *bo.ExportIssueBo

type ImportIssue

type ImportIssue struct {
	InAndExportBase
	FilePath             string
	ColumnKeyRowTh       int // 列 key 所在的行;索引值是从 1 开始
	DataStartRowTh       int // excel 中正式数据开始的行;索引值是从 1 开始
	ColumnMaps           map[string]*projectvo.TableColumnData
	FileColumnsArr       []*projectvo.TableColumnData // 当前导入的 excel 的列信息
	UnknownImportColumns []string
	Rows                 [][]string // 当前 excel 文件解析出的数据,包含表头等行
	OptionsMap           map[string]map[string]*projectvo.ColumnSelectOption
	// 用户信息
	UserInfoMap        map[string]bo.SimpleUserWithUserIdBo `json:"userInfoMap"`
	UserIdMapKeyByName map[string]int64                     `json:"userIdMapKeyByName"`
	// 重名的用户
	DuplicateUserNames []string `json:"duplicateUserNames"`
	// 重名的部门
	DuplicateDeptNames []string `json:"duplicateDeptNames"`
	DeptMap            map[string]orgvo.SimpleDeptForCustomField
	AsyncTaskId        string `json:"asyncTaskId"`

	ErrMsgList map[int][]string
}

ImportIssue 任务导入

func NewImportIssue

func NewImportIssue(orgId, projectId, tableId int64, filePath string) (*ImportIssue, errs.SystemErrorInfo)

func (*ImportIssue) GetColumnInfoInTable

func (ii *ImportIssue) GetColumnInfoInTable() (map[string]*projectvo.TableColumnData, errs.SystemErrorInfo)

func (*ImportIssue) HandleImportData

func (ii *ImportIssue) HandleImportData(row *sortedmap.SortMap, colIndexMap map[string]int) (map[string]interface{}, errs.SystemErrorInfo)

func (*ImportIssue) ParseColumnKey

func (ii *ImportIssue) ParseColumnKey() *sortedmap.SortMap

ParseColumnKey 解析列 key 行,返回对应的列信息数组

func (*ImportIssue) ParseCustomColumnMobileForImport

func (ii *ImportIssue) ParseCustomColumnMobileForImport(cellValue string) string

ParseCustomColumnMobileForImport 导入时,转换单元格中的“手机号”值

func (*ImportIssue) ParseDataList

func (ii *ImportIssue) ParseDataList() []*sortedmap.SortMap

func (*ImportIssue) ParseExcel

func (ii *ImportIssue) ParseExcel() (dataList interface{}, ignoreRowNum int, headerMap *sortedmap.SortMap, businessErr errs.SystemErrorInfo)

ParseExcel 解析导入任务场景的 excel 基于 excelize 库:https://github.com/qax-os/excelize https://xuri.me/excelize @param dataList 返回解析后的数据集合 @param ignoreRowNum 忽略的行数。两种情况:1.第一行的表头需要忽略;2.存在注意事项行也需要忽略;

func (*ImportIssue) PrepareImportInfo

func (ii *ImportIssue) PrepareImportInfo() errs.SystemErrorInfo

PrepareImportInfo 导入任务时,组装用于匹配任务信息的 map 数据

func (*ImportIssue) SetAmountDataForImport

func (ii *ImportIssue) SetAmountDataForImport(data map[string]interface{}, cellVal string, column *projectvo.TableColumnData)

SetAmountDataForImport 自定义字段(货币)值的转换:将渲染后的值转换为无码字段的值。如:excel 中的 `$1.45`,根据规则将其转化为:`1.45`

func (*ImportIssue) SetColumns

func (ii *ImportIssue) SetColumns(columns []*projectvo.TableColumnData) errs.SystemErrorInfo

func (*ImportIssue) SetDeptDataForImport

func (ii *ImportIssue) SetDeptDataForImport(data map[string]interface{}, cellValue string, column *projectvo.TableColumnData) errs.SystemErrorInfo

SetDeptDataForImport 导入时,将单元格中的“部门名”转换为部门 id 值

func (*ImportIssue) SetGroupSelectDataForImport

func (ii *ImportIssue) SetGroupSelectDataForImport(data map[string]interface{}, column *projectvo.TableColumnData, cellValue string,
	colIndexMap map[string]int,
) errs.SystemErrorInfo

SetGroupSelectDataForImport 导入时,转换单元格中的“分组单选”值

func (*ImportIssue) SetImportColumnValueForStatus

func (ii *ImportIssue) SetImportColumnValueForStatus(data map[string]interface{}, cellValue string)

SetImportColumnValueForStatus 导入任务时,设置任务状态。导入时,将 excel 的 cell 中的值设置到任务对象中

func (*ImportIssue) SetImportColumnValueForTitle

func (ii *ImportIssue) SetImportColumnValueForTitle(data map[string]interface{}, cellValue string, colIndexMap map[string]int)

SetImportColumnValueForTitle 导入任务时,处理标题

func (*ImportIssue) SetMemberDataForImport

func (ii *ImportIssue) SetMemberDataForImport(data map[string]interface{}, cellValue string, column *projectvo.TableColumnData) errs.SystemErrorInfo

SetMemberDataForImport 导入时,成员类型值的转换。包含创建人、关注人 等等

func (*ImportIssue) SetMultiSelectDataForImport

func (ii *ImportIssue) SetMultiSelectDataForImport(data map[string]interface{}, cellValue string, column *projectvo.TableColumnData)

SetMultiSelectDataForImport 导入时,转换单元格中的“多选”值

func (*ImportIssue) SetNumberDataForImport

func (ii *ImportIssue) SetNumberDataForImport(data map[string]interface{}, cellVal string, column *projectvo.TableColumnData)

SetNumberDataForImport 导入时,将数值类型的值转换为无码存储的值

func (*ImportIssue) SetPickerDataForImport

func (ii *ImportIssue) SetPickerDataForImport(data map[string]interface{}, cellValue string, column *projectvo.TableColumnData, colIndexMap map[string]int)

SetPickerDataForImport 导入时,转换单元格中的“日期时间”值

func (*ImportIssue) SetPlanTimesForImport

func (ii *ImportIssue) SetPlanTimesForImport(data map[string]interface{}, row *sortedmap.SortMap, colIndexMap map[string]int)

SetPlanTimesForImport 导入任务时,处理起止时间的匹配

func (*ImportIssue) SetSelectDataForImport

func (ii *ImportIssue) SetSelectDataForImport(data map[string]interface{}, cellValue string, column *projectvo.TableColumnData)

type ImportIssueTemplate

type ImportIssueTemplate struct {
	InAndExportBase
	Lang           string // 语言。用于多语言适配。en:英文;zh:中文
	IsEnglish      bool
	DataStartRowTh int // 正式数据开始的行。头部、注意事项行不计算在内。一般,导入模板文件中,注意事项行是第1行。
	DataEndRowTh   int
}

func NewImportIssueTemplate

func NewImportIssueTemplate(orgId, projectId, tableId int64) (*ImportIssueTemplate, errs.SystemErrorInfo)

func (*ImportIssueTemplate) GetAxis

func (nef *ImportIssueTemplate) GetAxis(col string, row int) string

func (*ImportIssueTemplate) Save

func (*ImportIssueTemplate) SetExcelHeadForImportTpl

func (nef *ImportIssueTemplate) SetExcelHeadForImportTpl()

SetExcelHeadForImportTpl 任务导入模板,设置头部数据,列名称

func (*ImportIssueTemplate) SetExcelHeadKeyAndLockSomeRow

func (nef *ImportIssueTemplate) SetExcelHeadKeyAndLockSomeRow() errs.SystemErrorInfo

SetExcelHeadKeyAndLockSomeRow 向导入模板中设置列的 key,并隐藏和锁定特殊的行

func (*ImportIssueTemplate) SetNoticeText

func (nef *ImportIssueTemplate) SetNoticeText(projectTypeId int64, ignoreColumnNames []string) errs.SystemErrorInfo

SetNoticeText 在 A1 设置”注意事项“

func (*ImportIssueTemplate) SetNoticeTextB1

func (nef *ImportIssueTemplate) SetNoticeTextB1(ignoreColumnNames []string) errs.SystemErrorInfo

SetNoticeTextB1 在 B1 设置”注意事项“

func (*ImportIssueTemplate) SetValidateDropList

func (nef *ImportIssueTemplate) SetValidateDropList(colFlag string, enumValList []string)

type InAndExportBase

type InAndExportBase struct {
	OrgId            int64
	FileName         string
	FileNameWithPath string
	FileUrl          string
	Fd               *excelize.File
	ActiveSheet      string
	ProjectInfo      *bo.ProjectBo
	TableInfo        *projectvo.TableMetaData
	Columns          []*projectvo.TableColumnData
	ColumnsMap       map[string]*projectvo.TableColumnData
	Col              int // 当前所在的列
	Row              int // 当前所在的行
	RowMaxHeight     float64
}

func (*InAndExportBase) AddCell

func (ei *InAndExportBase) AddCell() *InAndExportBase

func (*InAndExportBase) AddImage

func (ei *InAndExportBase) AddImage(documents []*bo.DocumentBo)

func (*InAndExportBase) AddRow

func (ei *InAndExportBase) AddRow() *InAndExportBase

func (*InAndExportBase) AddSheet

func (ei *InAndExportBase) AddSheet(sheetName string)

func (*InAndExportBase) GetColumnOptions

func (ei *InAndExportBase) GetColumnOptions(column *projectvo.TableColumnData) []*projectvo.ColumnSelectOption

func (*InAndExportBase) SetCell

func (ei *InAndExportBase) SetCell(value interface{})

func (*InAndExportBase) SetColumns

func (ei *InAndExportBase) SetColumns(columns []*projectvo.TableColumnData) errs.SystemErrorInfo

func (*InAndExportBase) SetProjectAndTableInfo

func (ei *InAndExportBase) SetProjectAndTableInfo(orgId, projectId, tableId int64) (err errs.SystemErrorInfo)

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL