@@ -60,7 +60,7 @@ public class GLPPWXGQueryAdd {
}
// 创建目录
- SimpleDateFormat sdfs = new SimpleDateFormat("yyyyMM/");
+ SimpleDateFormat sdfs = new SimpleDateFormat("yyyyMMd/");
File file =new File(sdfs.format(new Date()));
if (!file .exists() && !file .isDirectory()){
file .mkdir();
@@ -343,6 +343,11 @@ public class GLPPGFWebsitWorkerServiceImpl implements GLPPGFWebsitWorkerService
continue;
+ // 平台的网点也必须在平台网点中存在
+ if (!ptPpWebsitMap.containsKey(i.getWebsitId())){
+ continue;
+ }
+
// 生成品牌师傅网点信息对像
WorkerBrandAccount add = getWorkerBrandAccount(workerIdCardMap, ptPpWebsitMap, m, addwbas, i);
// 主键: worker_id + websit_id 已添加过就不再添加