|
@@ -1311,6 +1311,7 @@ public class UserLogic {
|
|
|
user.updateById();
|
|
|
|
|
|
if (CollectionUtils.isNotEmpty(workerImgs)) {
|
|
|
+ workerImgService.lambdaUpdate().eq(WorkerImg::getWebsitId,currentCompanyWechat.getUserId()).remove();
|
|
|
for (WorkerImg workerImg : workerImgs) {
|
|
|
workerImg.setWebsitId(websitId);
|
|
|
workerImg.setWorkerId(currentCompanyWechat.getUserId());
|
|
@@ -1318,7 +1319,7 @@ public class UserLogic {
|
|
|
workerImgService.saveBatch(workerImgs);
|
|
|
}
|
|
|
|
|
|
- if (userApplyBean.getWorkerPolicy()!= null) {
|
|
|
+ if (userApplyBean.getWorkerPolicy()!= null && userApplyBean.getStartTime() != null) {
|
|
|
userApplyBean.getWorkerPolicy().insert();
|
|
|
}
|
|
|
}
|