Commit 933718ac by fudahua

小程序1fix

parent 2b5335ff
......@@ -98,7 +98,9 @@ public class HandoverServiceImpl implements HandoverService {
//保存
List<TabHandoverExternal> needAdd = externalList.stream().filter(dto -> dto.getHandoverExternalId() == null).collect(Collectors.toList());
saveHandoverStaff(handoverStaff);
handoverExternalMapper.insertBatch(needAdd);
if (CollectionUtils.isNotEmpty(needAdd)) {
handoverExternalMapper.insertBatch(needAdd);
}
});
//删除不需要的staff数据
......@@ -162,7 +164,7 @@ public class HandoverServiceImpl implements HandoverService {
handoverStaff.setStaffId(haobanStaff.getStaffId());
handoverStaff.setHandoverUserId(wxUserId);
handoverStaff.setWxEnterpriseId(wxEnterpriseId);
handoverStaff.setHandoverStaffId(ToolUtil.randomUUID());
// handoverStaff.setHandoverStaffId(ToolUtil.randomUUID());
handoverStaff.setCreateTime(new Date());
handoverStaff.setUpdateTime(new Date());
handoverStaff.setStatusFlag(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment