|
@@ -14,6 +14,7 @@ import com.gree.mall.manager.plus.entity.*;
|
|
|
import com.gree.mall.manager.plus.service.*;
|
|
|
import com.gree.mall.manager.zfire.bean.ZfireParamBean;
|
|
|
import com.gree.mall.manager.zfire.util.FieldUtils;
|
|
|
+import com.gree.mall.miniapp.bean.user.CurrentCompanyWechat;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -173,4 +174,39 @@ public class WorkerInvolveLogic {
|
|
|
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ public WorkerApplyCount count() {
|
|
|
+
|
|
|
+ AdminUserCom adminUser = commonLogic.getAdminUser();
|
|
|
+
|
|
|
+ Integer dwdsp = workerInvolveApplyService.lambdaQuery()
|
|
|
+ .in(WorkerInvolveApply::getWebsitId, adminUser.getAdminWebsitIds())
|
|
|
+ .in(WorkerInvolveApply::getStatus, 1).count();
|
|
|
+
|
|
|
+ Integer dzxsp = workerInvolveApplyService.lambdaQuery()
|
|
|
+ .in(WorkerInvolveApply::getWebsitId, adminUser.getAdminWebsitIds())
|
|
|
+ .in(WorkerInvolveApply::getStatus, 3).count();
|
|
|
+
|
|
|
+ Integer tgsp = workerInvolveApplyService.lambdaQuery()
|
|
|
+ .in(WorkerInvolveApply::getWebsitId, adminUser.getAdminWebsitIds())
|
|
|
+ .in(WorkerInvolveApply::getStatus, 5).count();
|
|
|
+
|
|
|
+ Integer bhcs = workerInvolveApplyService.lambdaQuery()
|
|
|
+ .in(WorkerInvolveApply::getWebsitId, adminUser.getAdminWebsitIds())
|
|
|
+ .in(WorkerInvolveApply::getStatus, 2).count();
|
|
|
+
|
|
|
+ Integer bhbkcs = workerInvolveApplyService.lambdaQuery()
|
|
|
+ .in(WorkerInvolveApply::getWebsitId, adminUser.getAdminWebsitIds())
|
|
|
+ .in(WorkerInvolveApply::getStatus, 4).count();
|
|
|
+
|
|
|
+ WorkerApplyCount workerApplyCount = new WorkerApplyCount();
|
|
|
+ workerApplyCount.setDwdsp(dwdsp);
|
|
|
+ workerApplyCount.setDzxsp(dzxsp);
|
|
|
+ workerApplyCount.setZxsptg(tgsp);
|
|
|
+ workerApplyCount.setBhcs(bhcs);
|
|
|
+ workerApplyCount.setBhbkcx(bhbkcs);
|
|
|
+ return workerApplyCount;
|
|
|
+
|
|
|
+ }
|
|
|
}
|