Commit e2653b1c by 邓实川

注册时默认企业讯息添加

parent aff1bff9
...@@ -34,6 +34,7 @@ import cn.timer.api.aspect.lang.annotation.Log; ...@@ -34,6 +34,7 @@ import cn.timer.api.aspect.lang.annotation.Log;
import cn.timer.api.aspect.lang.enums.BusinessType; import cn.timer.api.aspect.lang.enums.BusinessType;
import cn.timer.api.bean.jxgl.JxglBasicSetting; import cn.timer.api.bean.jxgl.JxglBasicSetting;
import cn.timer.api.bean.kqmk.KqglAssoLeaveRules; import cn.timer.api.bean.kqmk.KqglAssoLeaveRules;
import cn.timer.api.bean.qyxx.CmsContent;
import cn.timer.api.bean.qyzx.QyzxEmpEntAsso; import cn.timer.api.bean.qyzx.QyzxEmpEntAsso;
import cn.timer.api.bean.qyzx.QyzxEmpLogin; import cn.timer.api.bean.qyzx.QyzxEmpLogin;
import cn.timer.api.bean.qyzx.QyzxEntInfoM; import cn.timer.api.bean.qyzx.QyzxEntInfoM;
...@@ -140,6 +141,15 @@ public class LoginController { ...@@ -140,6 +141,15 @@ public class LoginController {
@Value("${config-8timer.Aliyun.expirationTime_pri}") @Value("${config-8timer.Aliyun.expirationTime_pri}")
private String expirationTime_pri; private String expirationTime_pri;
@Value("${config-8timer.qyxx.title}")
private String title;
@Value("${config-8timer.qyxx.author}")
private String author;
@Value("${config-8timer.qyxx.cover}")
private String cover;
@Value("${config-8timer.qyxx.summary}")
private String summary;
@Autowired @Autowired
private HttpSession session; private HttpSession session;
...@@ -461,7 +471,7 @@ public class LoginController { ...@@ -461,7 +471,7 @@ public class LoginController {
@Autowired @Autowired
SpmkServiceImpl SpmkService; SpmkServiceImpl SpmkService;
@Autowired @Autowired
JxglService jxglService; JxglService jxglService;
...@@ -570,7 +580,7 @@ public class LoginController { ...@@ -570,7 +580,7 @@ public class LoginController {
} else { } else {
System.out.println("重复初始化数据!"); System.out.println("重复初始化数据!");
} }
JxglBasicSetting bS = jxglService.selectAT(qyId); JxglBasicSetting bS = jxglService.selectAT(qyId);
if (bS == null) { if (bS == null) {
boolean res = jxglService.initJxglBasicSetting(qyId); boolean res = jxglService.initJxglBasicSetting(qyId);
...@@ -579,6 +589,24 @@ public class LoginController { ...@@ -579,6 +589,24 @@ public class LoginController {
} }
} }
/********** 默认企业讯息添加 ***********/
CmsContent cmsContent = CmsContent.builder().build();
cmsContent.setTitle(title);
cmsContent.setPublisherName(author);
cmsContent.setAuthor(author);
cmsContent.setModularid(1);
cmsContent.setFmtpath(cover);
cmsContent.setSummary(summary);
cmsContent.setStatus(1);
cmsContent.setOrganizationId(qyId);
cmsContent.setReleasestate(0);
cmsContent.setAddeddate(new Date().getTime());
cmsContent.setReleasetime(String.valueOf(new Date().getTime()));
cmsContent.insert();
/********** 默认企业讯息添加 ***********/
return ResultUtil.success("注册企业成功"); return ResultUtil.success("注册企业成功");
} catch (Exception e) { } catch (Exception e) {
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
......
...@@ -34,7 +34,6 @@ import cn.timer.api.bean.qyxx.CmsIsRead; ...@@ -34,7 +34,6 @@ import cn.timer.api.bean.qyxx.CmsIsRead;
import cn.timer.api.bean.yggl.YgglMainEmp; import cn.timer.api.bean.yggl.YgglMainEmp;
import cn.timer.api.config.annotation.CurrentUser; import cn.timer.api.config.annotation.CurrentUser;
import cn.timer.api.config.annotation.UserBean; import cn.timer.api.config.annotation.UserBean;
import cn.timer.api.dao.qyxx.CmsAnnouncementMapper;
import cn.timer.api.dao.qyxx.CmsContentMapper; import cn.timer.api.dao.qyxx.CmsContentMapper;
import cn.timer.api.dao.qyxx.CmsIsReadMapper; import cn.timer.api.dao.qyxx.CmsIsReadMapper;
import cn.timer.api.dto.qyxx.CmsContentDto; import cn.timer.api.dto.qyxx.CmsContentDto;
...@@ -57,8 +56,8 @@ public class CmsController { ...@@ -57,8 +56,8 @@ public class CmsController {
@Autowired @Autowired
private CmsIsReadMapper cmsIsReadMapper; private CmsIsReadMapper cmsIsReadMapper;
@Autowired // @Autowired
private CmsAnnouncementMapper cmsAnnouncementMapper; // private CmsAnnouncementMapper cmsAnnouncementMapper;
/** /**
* 查询所有讯息 * 查询所有讯息
......
...@@ -201,7 +201,12 @@ config-8timer: ...@@ -201,7 +201,12 @@ config-8timer:
two: 7 two: 7
three: 30 three: 30
init-password: 123456 init-password: 123456
# 创建企业默认添加讯息
qyxx:
title: '欢迎来到8小时'
cover: 'https://8time-v2.oss-cn-shenzhen.aliyuncs.com/8timer2.0/common/qyxx/welcome/fb3558d8d91e16efe9b6eec5fa81447.png'
summary: '<h1>欢迎来到8小时!可先前往组织管理-组织架构添加公司架构及岗位,再前往员工管理-员工名册添加企业员工。</h1>'
author: 'System'
# 客户管理导入服务器保存路径 # 客户管理导入服务器保存路径
crm-excel: crm-excel:
realPath: 'D:/excel/' realPath: 'D:/excel/'
......
...@@ -173,6 +173,13 @@ config-8timer: ...@@ -173,6 +173,13 @@ config-8timer:
three: 30 three: 30
init-password: 123456 init-password: 123456
# 创建企业默认添加讯息
qyxx:
title: '欢迎来到8小时'
cover: 'https://8time-v2.oss-cn-shenzhen.aliyuncs.com/8timer2.0/common/qyxx/welcome/fb3558d8d91e16efe9b6eec5fa81447.png'
summary: '<h1>欢迎来到8小时!可先前往组织管理-组织架构添加公司架构及岗位,再前往员工管理-员工名册添加企业员工。</h1>'
author: 'System'
# 客户管理导入服务器保存路径 # 客户管理导入服务器保存路径
crm-excel: crm-excel:
realPath: '/data/crm-excel/' realPath: '/data/crm-excel/'
\ No newline at end of file
...@@ -172,6 +172,13 @@ config-8timer: ...@@ -172,6 +172,13 @@ config-8timer:
three: 30 three: 30
init-password: 123456 init-password: 123456
# 创建企业默认添加讯息
qyxx:
title: '欢迎来到8小时'
cover: 'https://8time-v2.oss-cn-shenzhen.aliyuncs.com/8timer2.0/common/qyxx/welcome/fb3558d8d91e16efe9b6eec5fa81447.png'
summary: '<h1>欢迎来到8小时!可先前往组织管理-组织架构添加公司架构及岗位,再前往员工管理-员工名册添加企业员工。</h1>'
author: 'System'
# 客户管理导入服务器保存路径 # 客户管理导入服务器保存路径
crm-excel: crm-excel:
realPath: '/data/crm-excel/' realPath: '/data/crm-excel/'
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment