|
@@ -1,14 +1,14 @@
|
|
|
package com.management.platform.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
-import com.baomidou.mybatisplus.extension.api.R;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.management.platform.entity.*;
|
|
|
import com.management.platform.mapper.*;
|
|
|
-import com.management.platform.service.*;
|
|
|
+import com.management.platform.service.CompanyService;
|
|
|
+import com.management.platform.service.ReportService;
|
|
|
+import com.management.platform.service.UserService;
|
|
|
import com.management.platform.util.HttpRespMsg;
|
|
|
import com.mysql.cj.util.StringUtils;
|
|
|
-import org.apache.commons.beanutils.BeanUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
@@ -377,6 +377,27 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
str += "标志为CRO企业,";
|
|
|
}
|
|
|
}
|
|
|
+ if (timeType.getProjectWithDept() != null && old.getProjectWithDept().intValue() != timeType.getProjectWithDept().intValue()) {
|
|
|
+ if (timeType.getProjectWithDept() == 0) {
|
|
|
+ str += "关闭了项目所属部门功能,";
|
|
|
+ } else if (timeType.getProjectWithDept() == 1) {
|
|
|
+ str += "启动了项目所属部门功能,";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (timeType.getFinanceJobnumEnabled() != null && old.getFinanceJobnumEnabled().intValue() != timeType.getFinanceJobnumEnabled().intValue()) {
|
|
|
+ if (timeType.getFinanceJobnumEnabled() == 0) {
|
|
|
+ str += "关闭了财务导入薪资支持工号功能,";
|
|
|
+ } else if (timeType.getFinanceJobnumEnabled() == 1) {
|
|
|
+ str += "开启了财务导入薪资支持工号功能,";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (timeType.getReportApproveMsgpush() != null && old.getReportApproveMsgpush().intValue() != timeType.getReportApproveMsgpush().intValue()) {
|
|
|
+ if (timeType.getReportApproveMsgpush() == 0) {
|
|
|
+ str += "关闭了日报审核通过推送消息功能,";
|
|
|
+ } else if (timeType.getReportApproveMsgpush() == 1) {
|
|
|
+ str += "启动了日报审核通过推送消息功能,";
|
|
|
+ }
|
|
|
+ }
|
|
|
saveLog(str);
|
|
|
return new HttpRespMsg();
|
|
|
}
|