domain

package
v0.0.0-...-2b54507 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 107 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var VersionV3 = "v3"
View Source
var VersionV4 = "v4"

Functions

func AddCollaboratorsToChat

func AddCollaboratorsToChat(outOrgId string, chatId string, openIds []string) errs.SystemErrorInfo

拉人进群

func AddFsChatMembers

func AddFsChatMembers(orgId int64, projectId int64, addIds []int64, delIds []int64, addDeptIds []int64, delDeptIds []int64) errs.SystemErrorInfo

增加/移除飞书群聊成员

func AddOneNewMenu

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

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

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 AddUserToChat

func AddUserToChat(outOrgId, addOpenId, chatId string) errs.SystemErrorInfo

AddUserToChat 将用户加入项目群聊中

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 ApplyFieldMappingCreateMissingSelectOptions

func ApplyFieldMappingCreateMissingSelectOptions(data, newData map[string]interface{}, fieldMapping map[string][]string,
	selectOptions map[string]map[string]*projectvo.ColumnSelectOption,
	oldTableColumns, newTableColumns map[string]*projectvo.TableColumnData,
	newProjectTypeId int64, isCreateMissingSelectOptions bool)

ApplyFieldMappingCreateMissingSelectOptions 字段映射 && 表头选项补齐信息收集

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)

拼装卡片内容,包括标题、起止时间和一些自定义字段 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 AsyncBatchCreateIssue

func AsyncBatchCreateIssue(req *projectvo.BatchCreateIssueReqVo, withoutAuth bool, triggerBy *projectvo.TriggerBy, asyncTaskId string)

AsyncBatchCreateIssue 每 BATCH_SIZE 条为一个批次,执行异步批量插入

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 BatchAuditIssue

func BatchAuditIssue(reqVo *projectvo.BatchAuditIssueReqVo) ([]int64, errs.SystemErrorInfo)

func BatchCreateIssue

func BatchCreateIssue(req *projectvo.BatchCreateIssueReqVo, withoutAuth bool, triggerBy *projectvo.TriggerBy,
	asyncTaskId string, createCount int64) (
	[]map[string]interface{}, map[string]*uservo.MemberDept, map[string]map[string]interface{}, errs.SystemErrorInfo)

func BatchUpdateIssue

func BatchUpdateIssue(reqVo *projectvo.BatchUpdateIssueReqInnerVo, withoutAuth bool, triggerBy *projectvo.TriggerBy) errs.SystemErrorInfo

func BatchUrgeIssue

func BatchUrgeIssue(reqVo *projectvo.BatchUrgeIssueReqVo) ([]int64, errs.SystemErrorInfo)

func BuildIssueChildDataByCopy

func BuildIssueChildDataByCopy(parentData map[string]interface{}, childrenIds []int64, allData map[int64]map[string]interface{},
	parentChildrenMapping map[int64][]int64, iterationMapping map[int64]int64, fieldMapping map[string][]string, issueIdMapping map[int64]int64,
	relatingColumnIds []string, selectOptions map[string]map[string]*projectvo.ColumnSelectOption,
	oldTableColumns, newTableColumns map[string]*projectvo.TableColumnData, newProjectTypeId int64,
	isStaticCopy, isCreateMissingSelectOptions, isCreateTemplate, isUploadTemplate bool) (int64, errs.SystemErrorInfo)

BuildIssueChildDataByCopy 复制一条任务的子任务,来构造新任务的子任务 parentData 需复制子任务的父任务 childrenIds 需复制的子任务id allData 任务数据id->数据 parentChildrenMapping 父任务id->子任务id mapping iterationMapping 迭代值映射mapping。传nil则保留原值(同一个项目中复制可以沿用迭代值,跨项目则需要映射) fieldMapping 字段映射,将其中的字段key值映射成新的,删掉不存在的key值。传nil则全量复制并且不进行映射 (注:同一张表中复制任务可以全量复制不用映射,应用模板时由于目标表格复制了原表的表头,也可以全量复制)

func BuildIssueDataByCopy

func BuildIssueDataByCopy(data map[string]interface{},
	iterationMapping map[int64]int64, fieldMapping map[string][]string, issueIdMapping map[int64]int64,
	relatingColumnIds []string, selectOptions map[string]map[string]*projectvo.ColumnSelectOption,
	oldTableColumns, newTableColumns map[string]*projectvo.TableColumnData,
	newProjectTypeId int64,
	isStaticCopy, isCreateMissingSelectOptions, isCreateTemplate, isUploadTemplate bool) map[string]interface{}

BuildIssueDataByCopy 通过复制一条任务数据构造一条新任务数据 data 复制数据源 iterationMapping 迭代值映射,传nil则保留原值(同一个项目中复制可以沿用迭代值,跨项目则需要映射) fieldMapping 字段映射,将其中的字段key值映射成新的,删掉不存在的key值。传nil则全量复制并且不进行映射 (注:同一张表中复制任务可以全量复制不用映射,应用模板时由于目标表格复制了原表的表头,也可以全量复制)

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 ChangeWorkerIdWhenChangedIssueOwner

func ChangeWorkerIdWhenChangedIssueOwner(orgId, issueId, oldOwner, newOwner int64) errs.SystemErrorInfo

当任务的负责人变更之后,对应的工时的执行人也发生变更

func ChatInfo

func ChatInfo(chatIds []string, projectId int64, orgId int64) (*[]po.PpmProProjectRelation, errs.SystemErrorInfo)

func ChatInfoNew

func ChatInfoNew(orgId, projectId int64, chatIds []string) ([]po.ProjectChatObj, errs.SystemErrorInfo)

ChatInfoNew 配置独立到表后,查询已存在的群聊信息

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 CheckCalendarIsSyncToFollower

func CheckCalendarIsSyncToFollower(syncFlag int) bool

检查同步到日历配置是否需要同步给关注人

func CheckCalendarIsSyncToOwner

func CheckCalendarIsSyncToOwner(syncFlag int) bool

检查同步到日历配置是否需要同步给负责人

func CheckCalendarIsSyncToSubCalendar

func CheckCalendarIsSyncToSubCalendar(syncFlag int) bool

检查是否同步到"订阅日历"中

func CheckChatIdIsMainChat

func CheckChatIdIsMainChat(orgId int64, projectId int64, chatId string) (bool, errs.SystemErrorInfo)

func CheckChatIsValid

func CheckChatIsValid(clientSdk *sdk.Tenant, chatId string) (bool, errs.SystemErrorInfo)

CheckChatIsValid 根据 chatId 检查群聊是否有效

func CheckChatSettingIsForAllTable

func CheckChatSettingIsForAllTable(orgId int64, projectId int64) (bool, errs.SystemErrorInfo)

CheckChatSettingIsForAllTable 检查用户的配置是否是针对项目下所有的表,用于新建表时检查

func CheckCodeRepetition

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

func CheckColumnIsCollaborate

func CheckColumnIsCollaborate(columnId string, columnProps lc_table.LcProps) bool

CheckColumnIsCollaborate 检查列是否是开启协作人

func CheckDataForCreateIssueView

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

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

func CheckHasCalendarPower

func CheckHasCalendarPower(outOrgId string) (bool, error)

检查极星应用是否有访问日历的权限。

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 CheckIsAppCollaborator

func CheckIsAppCollaborator(orgId, appId int64, curUserId int64) bool

CheckIsAppCollaborator 检查当前用户是当前应用的协作人

func CheckIsProAdmin

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

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

func CheckIsUpdateCalendarOwnerOrFollower

func CheckIsUpdateCalendarOwnerOrFollower(old, new int) bool

对比新旧的值,看是否更改了 syncCalendarStatusList 中的 关注人、负责人配置

func CheckIssueHasChat

func CheckIssueHasChat(orgId int64, issueId int64) (bool, string, errs.SystemErrorInfo)

查询是否有任务群聊

func CheckIssueHasProBelong

func CheckIssueHasProBelong(issue *bo.IssueBo) bool

CheckIssueHasProBelong 检查任务是否有项目归属

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 CheckUserIsInFsChat

func CheckUserIsInFsChat(orgInfo *bo.BaseOrgInfoBo, userInfo *bo.BaseUserInfoBo, chatId string) (bool, errs.SystemErrorInfo)

CheckUserIsInFsChat 检查用户是否在群聊中

func ClearAsyncTaskCacheForCreateIssue

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

func ClearProjectFsPushSettingsCache

func ClearProjectFsPushSettingsCache(orgId, projectId int64) errs.SystemErrorInfo

func ClearProjectMainChatCache

func ClearProjectMainChatCache(orgId, projectId int64) errs.SystemErrorInfo

func ClearSomeCache

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

ClearSomeCache 清除缓存

func CollectCardInfo

func CollectCardInfo(orgId, issueId, opUserId int64, sourceMap map[string]interface{}) (*projectvo.CardInfoBoxForStartIssueChat, errs.SystemErrorInfo)

CollectCardInfo 有些地方调用该方法可能已经有数据了,因此提供传入 sourceMap 请确保传入 sourceMap 的数据源符合 projectvo.CardInfoBoxForStartIssueChat 中对应的类型,如果不确定,请不要传

func CollectCardInfoForAsyncTask

func CollectCardInfoForAsyncTask(orgId, userId, projectId, tableId int64, isApplyTemplate bool, sourceChannel, outOrgId string) (*projectvo.AsyncTaskCard, errs.SystemErrorInfo)

CollectCardInfoForAsyncTask 收集异步任务卡片需用到的信息

func CollectUserDeptIds

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

CollectUserDeptIds 收集成员/部门Id

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 ConvertOneTableChatSettingToBo

func ConvertOneTableChatSettingToBo(settingPo po.PpmProProjectChat) bo.GetFsTableSettingOfProjectChatBo

func ConvertOneTableChatSettingToBoBatch

func ConvertOneTableChatSettingToBoBatch(settingPoArr []po.PpmProProjectChat) []bo.GetFsTableSettingOfProjectChatBo

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 CreateCalendar

func CreateCalendar(isSyncOutCalendar *int, orgId int64, projectId int64, userId int64, addMemberIds []int64)

创建日历

func CreateCalendarEvent

func CreateCalendarEvent(issueBo *bo.IssueBo, userId int64, followers []int64)

创建日程

func CreateChat

func CreateChat(orgId, currentUserId int64, projectId int64, chatIds []string) (int64, errs.SystemErrorInfo)

func CreateChatNew

func CreateChatNew(orgId, currentUserId int64, projectId int64, chatIds []string, chatType int) (int64, errs.SystemErrorInfo)

CreateChatNew 新增群聊信息关联/新增群聊配置 关联后,会有一个默认配置,如:开启任务创建更新通知等

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 CreateGroupChatSettingForNewTable

func CreateGroupChatSettingForNewTable(orgId, projectId, tableId int64, opUserId int64) errs.SystemErrorInfo

CreateGroupChatSettingForNewTable 为新 table 增加一个群聊配置(被哪些群聊绑定了,则对应群聊都需要加上该 table 的配置)

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 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 CreateMainChat

func CreateMainChat(orgId, currentUserId int64, projectId int64, chatId string, tx sqlbuilder.Tx) (int64, errs.SystemErrorInfo)

CreateMainChat 创建主群聊(创建项目时主动创建的群聊)的关联关系

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, tableId *int64, isSummary bool) 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 DealChatWithUpdateCollaborators

func DealChatWithUpdateCollaborators(orgId, appId int64, updateIssueVo projectvo.UpdateChatIssueVo, tableColumns map[string]*projectvo.TableColumnData) errs.SystemErrorInfo

处理协作人变更 被拉进群还是被踢出群

func DealCollaboratorsColumnsToIssueChat

func DealCollaboratorsColumnsToIssueChat(orgId int64, tableId int64, newTableColumn *projectvo.TableColumnData, columnAction int) errs.SystemErrorInfo

创建/更新/删除列,处理协作人字段开启/关闭,涉及到的成员同步到群

func DealTransForUpdateGroupChatSettings

func DealTransForUpdateGroupChatSettings(orgId, userId int64, params *vo.UpdateFsProjectChatPushSettingsReq, tableIdsForUpdate, tableIdsForAdd, tableIdsForDel []int64,
	tableIdMapKeyByTableId map[int64]int64, proIdsForMain []int64,
) errs.SystemErrorInfo

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 DeleteCalendarEventBatch

func DeleteCalendarEventBatch(orgId, projectId int64, issueIds []int64) error

批量删除日程。 遍历,1.调用删除日程接口,2删除日程与任务的关联 因为删除任务的操作已执行,因此需要将删除状态的 Calendar issue relation 查询出来,删除对应的日程。

func DeleteCalendarEventByProjectId

func DeleteCalendarEventByProjectId(orgId, projectId int64) error

删除一个项目下所有的日程

func DeleteDingCoolApp

func DeleteDingCoolApp(orgId, projectId int64)

删除钉钉酷应用

func DeleteFsProjectChatSettingByChatIdAndTableIds

func DeleteFsProjectChatSettingByChatIdAndTableIds(tx sqlbuilder.Tx, orgId, userId int64, chatId string,
	tableIds []int64) errs.SystemErrorInfo

func DeleteGroupChatSettingForOneTable

func DeleteGroupChatSettingForOneTable(orgId, projectId, tableId int64, opUserId int64) errs.SystemErrorInfo

DeleteGroupChatSettingForOneTable 删除一个表的群聊配置

func DeleteGroupChatSettings

func DeleteGroupChatSettings(orgId int64, projectId int64, chatId string) errs.SystemErrorInfo

DeleteGroupChatSettings 删除一个项目的某个群聊配置

func DeleteGroupChatSettingsByProjectId

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

DeleteGroupChatSettingsByProjectId 删除一个项目的群聊配置

func DeleteGroupSettingsByChatId

func DeleteGroupSettingsByChatId(orgId int64, chatId string) 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 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 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 DeleteOneCalendar

func DeleteOneCalendar(orgId, projectId int64) error

删除一个日历,以及日历对应的日程

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 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 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 GetAppScopes

func GetAppScopes(outOrgId string) (*vo2.GetScopesResp, error)

获取应用(极星)的授权状态,检查是否有需要的权限。

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 GetCalendarInfo

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

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 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 GetDefaultGroupChatSetting

func GetDefaultGroupChatSetting() *bo.GetFsTableSettingOfProjectChatBo

GetDefaultGroupChatSetting 群聊交互调整后,创建群聊,需要将群聊默认一个配置,存入配置表(ppm_pro_project_chat 表)中

func GetDefaultViews

func GetDefaultViews(defaultHiddenColumnIds []string, projectTypeId int64, isSummary bool) []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 GetDiffCollaborators

func GetDiffCollaborators(updateIssueVo projectvo.UpdateChatIssueVo, tableColumns map[string]*projectvo.TableColumnData) ([]int64, []int64, errs.SystemErrorInfo)

找出更新的协作人

func GetFeiShuAtContent

func GetFeiShuAtContent(orgId int64, content string) string

func GetFieldMappingCache

func GetFieldMappingCache(orgId, fromTableId, toTableId int64) map[string]string

func GetFsChatPushSettings

func GetFsChatPushSettings(orgId int64, chatId string,
) (*bo.GetFsProjectChatPushSettingsForChatBo, errs.SystemErrorInfo)

func GetGroupChatDynSettingDefaultVal

func GetGroupChatDynSettingDefaultVal() *bo.GetFsProjectChatPushSettingsBo

GetGroupChatDynSettingDefaultVal 一些设置值存储,包含群聊中“项目动态设置”的默认值

func GetGroupChatDynSettingDefaultValOld

func GetGroupChatDynSettingDefaultValOld() *bo.GetFsProjectChatPushSettingsOldBo

func GetHasWorkHourRecordIssueIds

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

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

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 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

todo 上下文传递项目信息 表信息 记录信息

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 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 GetIssueReport

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

func GetIssueResourceIdsByCreator

func GetIssueResourceIdsByCreator(orgId int64, issueId int64, ids []int64, creatorId int64) (*[]int64, 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 GetMainChatIdByProjectId

func GetMainChatIdByProjectId(orgId, projectId int64) (string, errs.SystemErrorInfo)

func GetMainChatIdMapByProjectIds

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

func GetMenu

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

func GetMinIterationSort

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

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 GetOneOrgAllStatusMap2Type

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

func GetOneTaskView

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

获取一个任务视图

func GetOpenIdMapByUserIds

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

GetOpenIdMapByUserIds 获取协作人和一些额外成员的 openId map: {uid: openId}

func GetOpenIdsByUserIds

func GetOpenIdsByUserIds(orgId int64, sourceChannel string,
	userIds []int64,
) ([]string, errs.SystemErrorInfo)

GetOpenIdsByUserIds 获取协作人和一些额外成员的 openId 列表

func GetOrgFunctionInfoMap

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

func GetOrgSummaryAppId

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

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

func GetParticipantMembers

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

我参与的

func GetPayFunctionLimitResourceNum

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

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

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 GetProChatObjsGroupByProjectIdByChatId

func GetProChatObjsGroupByProjectIdByChatId(orgId int64, chatId string) ([]po.ProjectChatObj, errs.SystemErrorInfo)

GetProChatObjsGroupByProjectIdByChatId 获取项目关联的群聊配置,按项目 id 分组

func GetProChatSettingBoArrByTableIds

func GetProChatSettingBoArrByTableIds(orgId int64, projectId int64, tableIds []int64) ([]po.PpmProProjectChat,
	errs.SystemErrorInfo)

GetProChatSettingBoArrByTableIds 项目下,根据 tableId 查询群聊配置

func GetProChatSettingByChatId

func GetProChatSettingByChatId(orgId int64, chatId string) ([]po.PpmProProjectChat, errs.SystemErrorInfo)

func GetProChatSettingByCond

func GetProChatSettingByCond(orgId int64, condition db.Cond) ([]po.PpmProProjectChat, errs.SystemErrorInfo)

func GetProChatSettingByProIdsAndChatId

func GetProChatSettingByProIdsAndChatId(orgId int64, projectIds []int64,
	chatId string) ([]po.PpmProProjectChat, errs.SystemErrorInfo)

func GetProChatSettingByProIdsAndTableIdsAndChatId

func GetProChatSettingByProIdsAndTableIdsAndChatId(orgId int64, projectIds, tableIds []int64,
	chatId string) ([]po.PpmProProjectChat, errs.SystemErrorInfo)

func GetProChatSettingsBatchByProIds

func GetProChatSettingsBatchByProIds(orgId int64, projectIds []int64, isOrigin int) ([]po.PpmProProjectChat,
	errs.SystemErrorInfo)

GetProChatSettingsBatchByProIds 获取一批项目绑定的群聊设置 isOrigin 是否只获取项目自带群聊 1只获取主群聊配置;2只获取非主群聊配置;-1都包含

func GetProChatSettingsByProId

func GetProChatSettingsByProId(orgId int64, projectId int64, isOrigin int) ([]po.PpmProProjectChat,
	errs.SystemErrorInfo)

GetProChatSettingsByProId 通过 projectId 查询项目下所有的群聊配置 isOrigin 是否只获取项目自带群聊 1只获取主群聊配置;2只获取非主群聊配置;-1都包含

func GetProChatSettingsByProIdForOrigin

func GetProChatSettingsByProIdForOrigin(orgId int64, projectId int64) (*po.PpmProProjectChat, errs.SystemErrorInfo)

GetProChatSettingsByProIdForOrigin 项目的自带群聊配置只有一个

func GetProTableChatSetting

func GetProTableChatSetting(orgId int64, projectId int64, tableId int64) ([]po.PpmProProjectChat, errs.SystemErrorInfo)

GetProTableChatSetting 获取表的的群聊设置

func GetProTableChatSettingBoArrByProId

func GetProTableChatSettingBoArrByProId(orgId int64, projectId int64) ([]bo.GetFsTableSettingOfProjectChatBo, errs.SystemErrorInfo)

GetProTableChatSettingBoArrByProId 通过项目获取群聊配置,每个群,取该项目中随机一个表关联的配置

func GetProTableChatSettingBoArrByTableId

func GetProTableChatSettingBoArrByTableId(orgId int64, projectId int64, tableId int64) ([]bo.GetFsTableSettingOfProjectChatBo, errs.SystemErrorInfo)

func GetProTableChatSettingBoByChatId

func GetProTableChatSettingBoByChatId(orgId int64, projectId int64, tableId int64, chatId string) (bo.GetFsTableSettingOfProjectChatBo, errs.SystemErrorInfo)

func GetProTableChatSettingOfOriginChat

func GetProTableChatSettingOfOriginChat(orgId int64, projectId int64, tableId int64) (po.PpmProProjectChat, errs.SystemErrorInfo)

GetProTableChatSettingOfOriginChat 获取项目自带的群的表的群聊配置

func GetProTableChatSettingPoByChatId

func GetProTableChatSettingPoByChatId(orgId int64, projectId int64, tableId int64, chatId string) (po.PpmProProjectChat, errs.SystemErrorInfo)

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 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 GetProjectChatList

func GetProjectChatList(orgId, projectId int64, otherCond db.Cond) ([]po.ProjectChatObj, errs.SystemErrorInfo)

GetProjectChatList 获取项目的群聊列表(非主群聊) chatType 1主群聊;2非主群聊 projectId 为 -1 表示忽略这个查询条件

func GetProjectChatListOfNotMain

func GetProjectChatListOfNotMain(orgId, projectId int64, chatType int) ([]po.ProjectChatObj, errs.SystemErrorInfo)

func GetProjectCountByOwnerId

func GetProjectCountByOwnerId(orgId, ownerId 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 GetProjectFsPushSettingsOfTable

func GetProjectFsPushSettingsOfTable(orgId int64, chatId string, projectIds,
	tableIds []int64, tx sqlbuilder.Tx,
) (*bo.GetFsTableSettingOfProjectChatBo, errs.SystemErrorInfo)

GetProjectFsPushSettingsOfTable 获取项目下,单个表的群聊(项目自带的群聊)配置信息

func GetProjectIdByAppId

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

func GetProjectIdByChatId

func GetProjectIdByChatId(orgId int64, chatId string) ([]po.PpmProProjectChat, errs.SystemErrorInfo)

GetProjectIdByChatId 查找群聊对应的推送配置,包含主群聊、非主群聊

func GetProjectIdByMainChatId

func GetProjectIdByMainChatId(orgId int64, chatId string) (int64, errs.SystemErrorInfo)

GetProjectIdByMainChatId 查找该群聊对应的主项目

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 GetProjectIdsByChatId

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

GetProjectIdsByChatId 根据群聊 id,查询与其关联的项目 id 列表

func GetProjectIdsInChatIsMain

func GetProjectIdsInChatIsMain(orgId int64, projectIds []int64, chatId string) ([]int64, errs.SystemErrorInfo)

GetProjectIdsInChatIsMain 在群聊中,查询一批项目中,该群聊是否是主动创建的关系,返回对应的 projectId 集合

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 GetProjectMainChatId

func GetProjectMainChatId(orgId, projectId int64) (string, errs.SystemErrorInfo)

func GetProjectMainChatIdInChatTable

func GetProjectMainChatIdInChatTable(orgId, projectId int64) (string, errs.SystemErrorInfo)

GetProjectMainChatIdInChatTable 群聊配置独立的表中后的查询方式

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 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 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 GetStatusListFromLcStatusColumn

func GetStatusListFromLcStatusColumn(column *lc_table.LcCommonField) []status.StatusInfoBo

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

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 GetTableIssueMaxOrderOfTable

func GetTableIssueMaxOrderOfTable(orgId, userId, tableId 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 GetTodoLinks(sourceChannel string, orgId int64, todoId int64) *projectvo.TodoLinks

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 GetUserIdsByCollaboratorInfo

func GetUserIdsByCollaboratorInfo(collaborateInfo []*projectvo.DataCollaborators, extraUserIds []int64,
) ([]int64, errs.SystemErrorInfo)

GetUserIdsByCollaboratorInfo 获取协作人和一些额外成员的 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 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 IterationCondStatusAssembly

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

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

func JudgeCalendarSdkVersion

func JudgeCalendarSdkVersion(outOrgId string) (string, 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 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 OpenCollaboratorColumnWithIssueChat

func OpenCollaboratorColumnWithIssueChat(orgId int64, outOrgId string, userIds []int64, chatUsersMap map[string][]int64) errs.SystemErrorInfo

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 PushAuditToAuditStarter

func PushAuditToAuditStarter(orgId, userId int64, issueInfo *bo.IssueBo, auditStatus int, comment string, attachments []*vo1.AttachmentSimpleInfo)

PushAuditToAuditStarter 飞书卡片-发送审批结果给发起人

func PushBatchCreateIssue

func PushBatchCreateIssue(batch *mqbo.PushBatchCreateIssue)

func PushCardTodoAuditDone

func PushCardTodoAuditDone(orgId, userId int64, issueInfo *bo.IssueBo, todoType automationPb.TodoType, msg string)

func PushCreateIssue

func PushCreateIssue(createIssueBo mqbo.PushCreateIssueBo)

func PushHelpCardAfterUpdateSetting

func PushHelpCardAfterUpdateSetting(orgId int64, chatId string, projectIds []int64) errs.SystemErrorInfo

PushHelpCardAfterUpdateSetting 飞书群聊-保存了推送配置后,向群聊中推送一个帮助卡片 todo projectIds 群聊绑定的项目 id 列表

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 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 RecoveryCalendarEventBatch

func RecoveryCalendarEventBatch(orgId, projectId int64, issueIds []int64, opUserId int64) error

恢复若干个日程。任务从回收站恢复时触发。 恢复子任务/父任务,1创建日程,2创建日程与任务的关联。

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 RemoveCollaboratorsFromChat

func RemoveCollaboratorsFromChat(outOrgId string, chatId string, openIds []string) errs.SystemErrorInfo

移除协作人 群聊

func RemoveColumnByProjectType

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

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

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 SaveFieldMappingCache

func SaveFieldMappingCache(orgId, fromTableId, toTableId int64, fieldMapping map[string]string)

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 SortStatus

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

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 SwitchCalendar

func SwitchCalendar(orgId, oldProjectId int64, issueIds []int64, operatorId int64, newProjectId int64) errs.SystemErrorInfo

func SyncBatchCreateIssue

func SyncBatchCreateIssue(req *projectvo.BatchCreateIssueReqVo, withoutAuth bool, triggerBy *projectvo.TriggerBy) (
	[]map[string]interface{}, map[string]*uservo.MemberDept, map[string]map[string]interface{}, errs.SystemErrorInfo)

SyncBatchCreateIssue 每 BATCH_SIZE 条为一个批次,执行同步批量插入

func SyncBatchUpdateIssue

func SyncBatchUpdateIssue(req *projectvo.BatchUpdateIssueReqInnerVo, withoutAuth bool, triggerBy *projectvo.TriggerBy) errs.SystemErrorInfo

SyncBatchUpdateIssue 每BATCH_SIZE条为一个批次,执行同步批量更新

func SyncCalendarConfirm

func SyncCalendarConfirm(orgId, userId, projectId int64)

中途同步日历

func SyncIssueChatTitle

func SyncIssueChatTitle(orgId, issueId int64, chatGroupName string, sourceChannel string) errs.SystemErrorInfo

同步任务群名称

func TodoUrge

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

func TransferChatSettingForOneProject

func TransferChatSettingForOneProject(proChatSettingArr []po.PpmProProjectChat) (*bo.GetFsProjectChatPushSettingsBo, errs.SystemErrorInfo)

TransferChatSettingForOneProject 一个项目下的群聊配置转换为 bo 对象

func TransferProjectChatSettingBatch

func TransferProjectChatSettingBatch(proChatSettingArr []po.PpmProProjectChat) ([]bo.GetFsProjectChatPushSettingsBo, errs.SystemErrorInfo)

TransferProjectChatSettingBatch 查询到的群聊配置转为前端可识别的配置对象,针对项目的结构

func TransferProjectChatSettingToChat

func TransferProjectChatSettingToChat(proChatSettingArr []po.PpmProProjectChat) ([]bo.
	GetFsProjectChatPushSettingsForChatBo, errs.SystemErrorInfo,
)

TransferProjectChatSettingToChat 将配置数据转换为针对群聊的推送配置数据结构 proChatSettingArr 必须是同一个群聊下的所有配置

func TransferSyncOutCalendarStatus

func TransferSyncOutCalendarStatus(syncFlag int) []*int

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

func TransferSyncOutCalendarStatusIntoOne

func TransferSyncOutCalendarStatusIntoOne(statusList []*int) int

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

func TriggerWorkHourWhenChangedPlanStartOrEndTime

func TriggerWorkHourWhenChangedPlanStartOrEndTime(orgId, issueId int64, updateField string, oldValue, newValue types.Time) errs.SystemErrorInfo

更新任务时,触发更新总预估工时的某个字段。

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 UpdateCalendar

func UpdateCalendar(input vo.UpdateProjectReq, orgId int64, userId int64, oldCalendarInfo *bo.CacheProjectCalendarInfoBo, oldProjectInfo bo.ProjectBo)

更新日历

func UpdateCalendarAttendees

func UpdateCalendarAttendees(orgId int64, calendarId string, creatorUserId int64, addMembers []int64, delMembers []int64, projectId int64)

更新日历订阅者

func UpdateCalendarEvent

func UpdateCalendarEvent(orgId int64, operatorId int64, issueId int64, oldIssueBo *bo.IssueBo, newIssueBo *bo.IssueBo, beforeFollowers, afterFollowers []int64)

UpdateCalendarEvent 更新日程 标题、起止时间、负责人、关注人的变更会触发日程的变更

func UpdateChatTitle

func UpdateChatTitle(orgId int64, projectId int64, title string) errs.SystemErrorInfo

UpdateChatTitle 更新群聊名称

func UpdateDingTopCard

func UpdateDingTopCard(orgId, projectId int64)

func UpdateFsProjectChatSettingForOneTable

func UpdateFsProjectChatSettingForOneTable(orgId, userId int64, chatId string, projectId int64, tableIdStr string,
	params vo.UpdateFsProjectChatPushSettingsReq, tx sqlbuilder.Tx) errs.SystemErrorInfo

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 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, upd mysql.Upd, input *bo.UpdateProjectBo, appId int64) errs.SystemErrorInfo

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 ValidFieldMapping

func ValidFieldMapping(orgId, fromProjectId, fromTableId, toProjectId, toTableId int64,
	fromTableColumns, toTableColumns map[string]*projectvo.TableColumnData, fieldMapping map[string]string) map[string][]string

ValidFieldMapping 检查字段隐射的合法性

func ValidateAndFixInputForUpdateChatSetting

func ValidateAndFixInputForUpdateChatSetting(orgId int64, input *vo.UpdateFsProjectChatPushSettingsReq) errs.SystemErrorInfo

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 AuditIssueVo

type AuditIssueVo struct {
	IssueId    int64
	OldIssueBo *bo.IssueBo
	OldData    map[string]interface{} // 老的无码pg表数据(所有字段)
	Data       map[string]interface{}
}

type AutoScheduleIssueVo

type AutoScheduleIssueVo struct {
	Id                 string
	IssueId            int64
	PlanStartTime      types.Time
	PlanEndTime        types.Time
	PlanStartTimeDelta time.Duration
	PlanEndTimeDelta   time.Duration
	BaRelating         map[string][]string
	LinkTo             []*AutoScheduleIssueVo
	LinkFrom           []*AutoScheduleIssueVo
}

自动排期任务信息

type BatchAuditIssueContext

type BatchAuditIssueContext struct {
	Req                *projectvo.BatchAuditIssueReqVo
	AuditIssues        map[int64]*AuditIssueVo
	AuditIssueIds      []int64 // 真正需要审批/驳回的任务
	RunningIssueStatus int64   // 进行中的第一个任务状态 用于审批驳回时使用
	AppId              int64
	ProjectId          int64
	TableId            int64
	Data               []map[string]interface{}
}

type BatchCreateIssueContext

type BatchCreateIssueContext struct {
	TriggerBy        *projectvo.TriggerBy
	AsyncTaskId      string
	Req              *projectvo.BatchCreateIssueReqVo
	OrgBaseInfo      *bo.BaseOrgInfoBo
	Project          *bo.ProjectBo
	TableMeta        *projectvo.TableMetaData
	TableColumns     map[string]*projectvo.TableColumnData         // 表头
	TableColumnsDeep map[string]*lc_table.LcCommonField            // 表头(解析props信息)
	AllIssueStatus   []status.StatusInfoBo                         // IssueStatus表头
	CreateColumnMap  map[string]struct{}                           // 涉及创建的字段
	CreateColumns    []string                                      // 涉及创建的字段
	UserIds          []int64                                       // 涉及的人员Id
	DeptIds          []int64                                       // 涉及的部门Id
	Users            map[int64]*uservo.GetAllUserByIdsRespDataUser // 涉及的用户
	Depts            map[int64]*uservo.GetAllDeptByIdsRespDataUser // 涉及的部门
	UserDepts        map[string]*uservo.MemberDept                 // 组装好的用户、部门
	RelateData       map[string]map[string]interface{}             // 关联/引用的相关数据
	RelatingIssueIds []int64                                       // 关联前后置修改涉及到的任务Id
	RelatingIssues   map[int64]*bo.IssueBo                         // 关联前后置修改涉及到的任务
	AllParentIds     map[int64]struct{}                            // 涉及的父任务id
	AllParentPaths   map[int64]string                              // 涉及的父任务path
	BeforeOrder      *float64                                      // 涉及的beforeId的order
	AfterOrder       *float64                                      // 涉及的afterId的order
	Now              string                                        // 当前时间

	IssueIds            *bo.IdCodes                    // 创建的IssueIds
	IssueCodes          *bo.IdCodes                    // 创建的IssueCodes
	CreateCount         int64                          // 创建任务数
	CreateIndex         int64                          // 创建index
	CreateIssueIds      []int64                        // 需要创建的任务Id
	CreateIssues        []*CreateIssueVo               // 需要创建的任务
	CreateIssuesMap     map[int64]*CreateIssueVo       // 需要创建的任务
	CreateAttachments   map[int64]*bo.IssueAttachments // 需添加关联的附件
	IssueTrends         []*bo.IssueTrendsBo            // 任务动态结果集
	CreateResults       []map[string]interface{}       // 创建结果
	UpdateColumnHeaders []*projectvo.TableColumnData   // 要更新的表头

}

type BatchUpdateIssueContext

type BatchUpdateIssueContext struct {
	TriggerBy           *projectvo.TriggerBy
	Req                 *projectvo.BatchUpdateIssueReqInnerVo
	OrgBaseInfo         *bo.BaseOrgInfoBo
	Project             *bo.ProjectBo
	TableMeta           *projectvo.TableMetaData
	TableColumns        map[string]*projectvo.TableColumnData // 表头
	TableColumnsDeep    map[string]*lc_table.LcCommonField    // 表头
	AllIssueStatus      []status.StatusInfoBo                 // IssueStatus表头
	Todo                *automationPb.Todo                    // 待办
	UpdateColumnMap     map[string]struct{}                   // 涉及更新的字段
	UpdateColumns       []string                              // 涉及更新的字段
	UpdateIssueIds      []int64                               // 涉及更新的任务IssueID
	UpdateDataIds       []int64                               // 涉及更新的任务DataID
	UpdateIssues        map[int64]*UpdateIssueVo              // 需更新的任务相关信息
	CreateRecycleBins   []*po.PpmPrsRecycleBin                // 需要放入回收站的数据
	CreateAttachments   map[int64]*bo.IssueAttachments        // 需要添加的附件
	RecycleAttachments  map[int64]*bo.IssueAttachments        // 需要删除的附件
	DeleteAuditors      map[int64][]int64                     // 需要删除的确认人 issueId, userId
	BeforeOrder         *float64                              // 涉及的beforeId的order
	AfterOrder          *float64                              // 涉及的afterId的order
	Now                 string                                // 当前时间
	UpdateColumnHeaders []*projectvo.TableColumnData          // 要更新的表头

	// 动态相关
	HandledTrendColumnIds map[string]struct{}                           // 需特别处理动态的字段,其余都走通用流程
	IssueTrends           []*bo.IssueTrendsBo                           // 任务动态结果集
	IterationIds          []int64                                       // 涉及到的迭代Id
	UserIds               []int64                                       // 涉及到的UserIds
	DeptIds               []int64                                       // 涉及到的DeptIds
	Iterations            map[int64]*bo.IterationBo                     // 涉及的迭代
	Users                 map[int64]*uservo.GetAllUserByIdsRespDataUser // 涉及的用户
	Depts                 map[int64]*uservo.GetAllDeptByIdsRespDataUser // 涉及的部门
	RelatingIssueIds      []int64                                       // 关联/前后置/单向关联涉及到的`变化的`任务ID
	AllRelatingIssueIds   []int64                                       // 关联/前后置/单向关联涉及到的`所有的`任务ID
	RelatingIssues        map[int64]*bo.IssueBo                         // 关联前后置修改涉及到的任务

	// 自动排期相关
	AutoScheduleSourceIssues []*UpdateIssueVo

	// 待办相关
	UpdateTodo *commonvo.UpdateTodoReq
	TodoResult int
}

type BatchUrgeIssueContext

type BatchUrgeIssueContext struct {
	Req                     *projectvo.BatchUrgeIssueReqVo
	UrgeIssues              map[int64]*UrgeIssueVo
	OrgBaseInfo             *bo.BaseOrgInfoBo
	Project                 *bo.ProjectBo
	TableMeta               *projectvo.TableMetaData
	UserBaseInfos           map[int64]*bo.BaseUserInfoBo
	AppId                   int64
	ProjectId               int64
	TableId                 int64
	UrgeOwnerIssueIds       []int64
	UrgeAuditorIssueIds     []int64
	UrgeOwnerSuccIssueIds   []int64
	UrgeAuditorSuccIssueIds []int64
	AllParentTitles         map[int64]string
}

type CreateIssueVo

type CreateIssueVo struct {
	IssueId              int64
	Data                 map[string]interface{}
	IssueBo              *bo.IssueBo
	UpdateColumns        []string
	RelatingChange       map[string]*bo.RelatingChangeBo
	BaRelatingChange     map[string]*bo.RelatingChangeBo
	SingleRelatingChange map[string]*bo.RelatingChangeBo
}

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

todo 关联字段导出标题

type FeiShuIssueChat

type FeiShuIssueChat struct {
	Org                  *bo.BaseOrgInfoBo
	Project              *bo.ProjectBo
	IssueId              int64 `json:"issueId"`
	Issue                *bo.IssueBo
	ChatId               string `json:"chatId"`
	IsNewChat            bool   `json:"isNewChat"` // 是否新创建的群
	OpUserId             int64  `json:"opUserId"`  // 操作人的 userId
	MemberIds            []int64
	Topic                string
	TenantSdk            *sdk.Tenant
	MemberUserIds        []int64  // 包含任务协作人的 id,群聊发起人 id
	InitialMemberOpenIds []string // 包含任务协作人的 openId 和讨论群发起人的 openId
	UserOpenIdMap        map[int64]string
	ProjectAdminIds      []int64 // 项目管理员。不包括组织管理员(虽然组织管理员一定是项目管理员,但这里仅保存关联项目管理员角色的成员)
	OrgAdminIds          []int64 // 组织项目管理员
	ChatIsValid          bool    `json:"chatIsValid"`
	HasProBelong         bool    `json:"hasProBelong"` // 当前任务是否有项目归属
}

FeiShuIssueChat 任务群聊-飞书实现

func NewFsIssueChat

func NewFsIssueChat(orgId, opUserId, issueId int64, topic string) (*FeiShuIssueChat, errs.SystemErrorInfo)

NewFsIssueChat 查询实例化任务群聊所需的一些信息

func (FeiShuIssueChat) AddMembers

func (ic FeiShuIssueChat) AddMembers(addMemberOpenIds []string) errs.SystemErrorInfo

AddMembers 向群聊中增加部分成员

func (*FeiShuIssueChat) AuthCreateChat

func (ic *FeiShuIssueChat) AuthCreateChat() errs.SystemErrorInfo

func (*FeiShuIssueChat) CollectBaseInfo

func (ic *FeiShuIssueChat) CollectBaseInfo() errs.SystemErrorInfo

CollectBaseInfo 收集一些基础信息,用于创建群聊

func (FeiShuIssueChat) DeleteMembers

func (ic FeiShuIssueChat) DeleteMembers(delMemberIds []int64) errs.SystemErrorInfo

DeleteMembers 从群聊中移除部分成员 todo

func (*FeiShuIssueChat) GenIssueTrend

func (ic *FeiShuIssueChat) GenIssueTrend() errs.SystemErrorInfo

GenIssueTrend 发起任务群聊时,生成动态

func (*FeiShuIssueChat) NewIssueChat

func (ic *FeiShuIssueChat) NewIssueChat() (string, errs.SystemErrorInfo)

NewIssueChat 创建一个新的任务群聊

func (*FeiShuIssueChat) SaveIssueToLc

func (ic *FeiShuIssueChat) SaveIssueToLc() errs.SystemErrorInfo

func (FeiShuIssueChat) SendTopicCard

func (ic FeiShuIssueChat) SendTopicCard() errs.SystemErrorInfo

func (*FeiShuIssueChat) StartIssueChat

func (ic *FeiShuIssueChat) StartIssueChat() (string, errs.SystemErrorInfo)

StartIssueChat 创建一个新的任务讨论群

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)

todo 后缀名 jpeg改成jpg

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)

type IssueChat

type IssueChat interface {
	// StartIssueChat 发起讨论
	StartIssueChat() (string, errs.SystemErrorInfo)
	NewIssueChat() (string, errs.SystemErrorInfo)
	// DeleteMembers 删除讨论群的成员
	DeleteMembers(delMemberIds []int64) errs.SystemErrorInfo
	// AddMembers 新增讨论群的成员
	AddMembers(addMemberIds []int64) errs.SystemErrorInfo
	// SendTopicCard 向讨论群发送讨论主题卡片
	SendTopicCard() errs.SystemErrorInfo
	// GenIssueTrend 生成发起讨论的动态
	GenIssueTrend() errs.SystemErrorInfo
	// AuthCreateChat 检查是否有权限创建讨论群
	AuthCreateChat() errs.SystemErrorInfo
}

IssueChat 任务群聊 目前只有飞书的实现,后续如果需要接入钉钉,则只需实现该接口。

type UpdateIssueVo

type UpdateIssueVo struct {
	IssueId                        int64
	PData                          map[string]interface{} // 极星issue表需要更新的字段及数据
	LcData                         map[string]interface{} // 无码pg表需要更新的字段及数据
	OldLcData                      map[string]interface{} // 老的无码pg表数据(所有字段)
	OldIssueBo                     *bo.IssueBo
	NewIssueBo                     *bo.IssueBo
	TrendChangeList                []bo.TrendChangeListBo
	UpdateColumns                  []string
	UpdateTitle                    bool
	UpdateOwner                    bool
	UpdateFollower                 bool
	UpdateAuditor                  bool
	NoticeAuditorChange            bool
	NoticeAuditorIssueStatusChange bool
	DeltaPlanEndTime               time.Duration
	RelatingChange                 map[string]*bo.RelatingChangeBo
	BaRelatingChange               map[string]*bo.RelatingChangeBo
	SingleRelatingChange           map[string]*bo.RelatingChangeBo
}

type UrgeIssueVo

type UrgeIssueVo struct {
	IssueId    int64
	OldLcData  map[string]interface{} // 老的无码pg表数据(所有字段)
	OldIssueBo *bo.IssueBo
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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