...
|
...
|
@@ -74,6 +74,10 @@ func (noticePersonalService *NoticePersonalService) AgreeJoinCreationProject(agr |
|
|
extendData := map[string]interface{}{
|
|
|
"creationProjectId": agreeJoinCreationProjectCommand.CreationProjectId,
|
|
|
}
|
|
|
noticeAction, err := domain.GetNoticeModuleAction(domain.Module01, domain.Action01_01)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
extendStr, _ := json.Marshal(extendData)
|
|
|
noticePersonal := domain.NoticePersonal{
|
|
|
CreatedAt: time.Now(),
|
...
|
...
|
@@ -82,11 +86,12 @@ func (noticePersonalService *NoticePersonalService) AgreeJoinCreationProject(agr |
|
|
CompanyId: agreeJoinCreationProjectCommand.CompanyId,
|
|
|
Content: tplResult.String(),
|
|
|
IsRead: domain.NoticePersonalIsNotRead,
|
|
|
Module: domain.Action01_01,
|
|
|
Module: domain.Module01,
|
|
|
ModuleAction: domain.Action01_01,
|
|
|
UserBaseId: agreeJoinCreationProjectCommand.UserBaseId,
|
|
|
OrgId: agreeJoinCreationProjectCommand.OrgId,
|
|
|
UserId: agreeJoinCreationProjectCommand.UserId,
|
|
|
MsgType: noticeAction.MsgType,
|
|
|
}
|
|
|
var noticePersonalRepository domain.NoticePersonalRepository
|
|
|
if value, err := factory.CreateNoticePersonalRepository(map[string]interface{}{
|
...
|
...
|
@@ -225,6 +230,10 @@ func (noticePersonalService *NoticePersonalService) InformExpectedDividends(info |
|
|
"creationContractId": informExpectedDividendsCommand.CreationContractId,
|
|
|
"dividendsEstimateId": informExpectedDividendsCommand.DividendsEstimateId,
|
|
|
}
|
|
|
noticeAction, err := domain.GetNoticeModuleAction(domain.Module01, domain.Action01_01)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
extendStr, _ := json.Marshal(extendData)
|
|
|
noticePersonal := domain.NoticePersonal{
|
|
|
CreatedAt: time.Now(),
|
...
|
...
|
@@ -238,6 +247,7 @@ func (noticePersonalService *NoticePersonalService) InformExpectedDividends(info |
|
|
UserBaseId: informExpectedDividendsCommand.UserBaseId,
|
|
|
OrgId: informExpectedDividendsCommand.OrgId,
|
|
|
UserId: informExpectedDividendsCommand.UserId,
|
|
|
MsgType: noticeAction.MsgType,
|
|
|
}
|
|
|
var noticePersonalRepository domain.NoticePersonalRepository
|
|
|
if value, err := factory.CreateNoticePersonalRepository(map[string]interface{}{
|
...
|
...
|
@@ -318,6 +328,10 @@ func (noticePersonalService *NoticePersonalService) InformJoinCreationContract(i |
|
|
}
|
|
|
extendData := map[string]interface{}{}
|
|
|
extendStr, _ := json.Marshal(extendData)
|
|
|
noticeAction, err := domain.GetNoticeModuleAction(domain.Module01, domain.Action01_01)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
noticePersonal := domain.NoticePersonal{
|
|
|
CreatedAt: time.Now(),
|
|
|
UpdatedAt: time.Now(),
|
...
|
...
|
@@ -330,6 +344,7 @@ func (noticePersonalService *NoticePersonalService) InformJoinCreationContract(i |
|
|
UserBaseId: informJoinCreationContractCommand.UserBaseId,
|
|
|
OrgId: informJoinCreationContractCommand.OrgId,
|
|
|
UserId: informJoinCreationContractCommand.UserId,
|
|
|
MsgType: noticeAction.MsgType,
|
|
|
}
|
|
|
var noticePersonalRepository domain.NoticePersonalRepository
|
|
|
if value, err := factory.CreateNoticePersonalRepository(map[string]interface{}{
|
...
|
...
|
@@ -409,6 +424,10 @@ func (noticePersonalService *NoticePersonalService) RefuseJoinCreationProject(re |
|
|
"creationProjectId": refuseJoinCreationProjectCommand.CreationProjectId,
|
|
|
}
|
|
|
extendStr, _ := json.Marshal(extendData)
|
|
|
noticeAction, err := domain.GetNoticeModuleAction(domain.Module01, domain.Action01_01)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
noticePersonal := domain.NoticePersonal{
|
|
|
CreatedAt: time.Now(),
|
|
|
UpdatedAt: time.Now(),
|
...
|
...
|
@@ -421,6 +440,7 @@ func (noticePersonalService *NoticePersonalService) RefuseJoinCreationProject(re |
|
|
UserBaseId: refuseJoinCreationProjectCommand.UserBaseId,
|
|
|
OrgId: refuseJoinCreationProjectCommand.OrgId,
|
|
|
UserId: refuseJoinCreationProjectCommand.UserId,
|
|
|
MsgType: noticeAction.MsgType,
|
|
|
}
|
|
|
var noticePersonalRepository domain.NoticePersonalRepository
|
|
|
if value, err := factory.CreateNoticePersonalRepository(map[string]interface{}{
|
...
|
...
|
@@ -503,6 +523,10 @@ func (noticePersonalService *NoticePersonalService) CreditAccountEstimate(credit |
|
|
"dividendsEstimateId": creditAccountEstimateCommand.DividendsEstimateId,
|
|
|
}
|
|
|
extendStr, _ := json.Marshal(extendData)
|
|
|
noticeAction, err := domain.GetNoticeModuleAction(domain.Module01, domain.Action01_01)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
noticePersonal := domain.NoticePersonal{
|
|
|
CreatedAt: time.Now(),
|
|
|
UpdatedAt: time.Now(),
|
...
|
...
|
@@ -515,6 +539,7 @@ func (noticePersonalService *NoticePersonalService) CreditAccountEstimate(credit |
|
|
UserBaseId: creditAccountEstimateCommand.UserBaseId,
|
|
|
OrgId: creditAccountEstimateCommand.OrgId,
|
|
|
UserId: creditAccountEstimateCommand.UserId,
|
|
|
MsgType: noticeAction.MsgType,
|
|
|
}
|
|
|
var noticePersonalRepository domain.NoticePersonalRepository
|
|
|
if value, err := factory.CreateNoticePersonalRepository(map[string]interface{}{
|
...
|
...
|
@@ -596,6 +621,10 @@ func (noticePersonalService *NoticePersonalService) CreditAccountPayment(creditA |
|
|
"creditAccountId": creditAccountPaymentCommand.CreditAccountId,
|
|
|
}
|
|
|
extendStr, _ := json.Marshal(extendData)
|
|
|
noticeAction, err := domain.GetNoticeModuleAction(domain.Module01, domain.Action01_01)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
noticePersonal := domain.NoticePersonal{
|
|
|
CreatedAt: time.Now(),
|
|
|
UpdatedAt: time.Now(),
|
...
|
...
|
@@ -608,6 +637,7 @@ func (noticePersonalService *NoticePersonalService) CreditAccountPayment(creditA |
|
|
UserBaseId: creditAccountPaymentCommand.UserBaseId,
|
|
|
OrgId: creditAccountPaymentCommand.OrgId,
|
|
|
UserId: creditAccountPaymentCommand.UserId,
|
|
|
MsgType: noticeAction.MsgType,
|
|
|
}
|
|
|
var noticePersonalRepository domain.NoticePersonalRepository
|
|
|
if value, err := factory.CreateNoticePersonalRepository(map[string]interface{}{
|
...
|
...
|
@@ -628,7 +658,7 @@ func (noticePersonalService *NoticePersonalService) CreditAccountPayment(creditA |
|
|
return noticePersonal, nil
|
|
|
}
|
|
|
|
|
|
// 设置消息:账期结算消息-分红预算
|
|
|
// 读取消息
|
|
|
func (noticePersonalService *NoticePersonalService) ReadNotice(readNoticeCommand *command.ReadNoticeCommand) (interface{}, error) {
|
|
|
if err := readNoticeCommand.ValidateCommand(); err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
...
|
...
|
|