|
@@ -238,6 +238,9 @@ public class TimingTask {
|
|
private void autoApprove() {
|
|
private void autoApprove() {
|
|
if (isDev) return;
|
|
if (isDev) return;
|
|
List<TimeType> timeTypeList = timeTypeMapper.selectList(new QueryWrapper<TimeType>().eq("report_auto_approve", 1));
|
|
List<TimeType> timeTypeList = timeTypeMapper.selectList(new QueryWrapper<TimeType>().eq("report_auto_approve", 1));
|
|
|
|
+ if(timeTypeList.size()<=0){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
for (TimeType timeType : timeTypeList) {
|
|
for (TimeType timeType : timeTypeList) {
|
|
Integer companyId = timeType.getCompanyId();
|
|
Integer companyId = timeType.getCompanyId();
|
|
Integer reportAutoApproveDays = timeType.getReportAutoApproveDays();
|
|
Integer reportAutoApproveDays = timeType.getReportAutoApproveDays();
|