|
@@ -252,7 +252,7 @@ func (this *FeCalendarAiArticleController) Save() {
|
|
|
article.ChartPermissionName = permissionItem.PermissionName
|
|
|
article.EdbCode = edbInfo.EdbCode
|
|
|
article.EdbInfoId = edbInfo.EdbInfoId
|
|
|
- article.MatterDate = req.MatterDate
|
|
|
+ article.MatterDate = matterDateTime
|
|
|
article.MatterMonth = matterDateTime.Format("2006-01")
|
|
|
article.SysUserId = sysUser.AdminId
|
|
|
article.SysUserName = sysUser.RealName
|
|
@@ -278,7 +278,7 @@ func (this *FeCalendarAiArticleController) Save() {
|
|
|
br.Msg = "指标不匹配"
|
|
|
return
|
|
|
}
|
|
|
- if articleOb.MatterDate != req.MatterDate {
|
|
|
+ if articleOb.MatterDate.Format(utils.FormatDate) != req.MatterDate {
|
|
|
br.Msg = "日期不匹配"
|
|
|
return
|
|
|
}
|