|
@@ -247,8 +247,7 @@ public class UploadWorkeCertificateServiceImpl implements UploadWorkeCertificate
|
|
|
String fileo = "";
|
|
|
|
|
|
// 查看指定网点、师傅的保险数据是否已生成
|
|
|
- WorkerCertGree workerbx = new WorkerCertGree();
|
|
|
- workerCertGreeService.lambdaQuery()
|
|
|
+ WorkerCertGree workerbx = workerCertGreeService.lambdaQuery()
|
|
|
.eq(WorkerCertGree::getWorkerId,owu.getWorkerId())
|
|
|
.eq(WorkerCertGree::getBrandWebsitId,owu.getBrandWebsitId())
|
|
|
.eq(WorkerCertGree::getCertFlag,2)
|
|
@@ -328,6 +327,8 @@ public class UploadWorkeCertificateServiceImpl implements UploadWorkeCertificate
|
|
|
|
|
|
@Override
|
|
|
public Boolean UploadWorkeCert(OutWorkerUpload owu){
|
|
|
+ List<WorkerCertGree> workerbx = new ArrayList<>();
|
|
|
+ List<String> workerbxList = new ArrayList<>();
|
|
|
|
|
|
|
|
|
// 提取师傅的证件数据
|
|
@@ -338,6 +339,16 @@ public class UploadWorkeCertificateServiceImpl implements UploadWorkeCertificate
|
|
|
return Boolean.FALSE;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ // 提取指定网点、师傅的证件数据
|
|
|
+ workerbx = workerCertGreeService.lambdaQuery()
|
|
|
+ .eq(WorkerCertGree::getWorkerId,owu.getWorkerId())
|
|
|
+ .eq(WorkerCertGree::getBrandWebsitId,owu.getBrandWebsitId())
|
|
|
+ .list();
|
|
|
+ if (CollectionUtils.isNotEmpty(workerbx)){
|
|
|
+ // workerbxList=
|
|
|
+ }
|
|
|
+
|
|
|
// 若存在待同步的暂不处理
|
|
|
for (WorkerCert item :recs){
|
|
|
// 证件已同步无需再次同步或是更新
|
|
@@ -348,6 +359,9 @@ public class UploadWorkeCertificateServiceImpl implements UploadWorkeCertificate
|
|
|
}
|
|
|
|
|
|
// 查看证件数据是否已生成
|
|
|
+ for (WorkerCertGree wcg : workerbx){
|
|
|
+ // if ()
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|