11-3-修复

This commit is contained in:
2025-11-03 20:15:44 +08:00
parent c83af6df6d
commit f2301264ea

View File

@ -468,9 +468,12 @@ public class XzdSupplierInfoServiceImpl extends ServiceImpl<XzdSupplierInfoMappe
//处理供应商类型
if (bo.getCustomerTypes() != null && !bo.getCustomerTypes().isEmpty()){
if (old.getCustomerTypes() != null && !old.getCustomerTypes().isEmpty()){
xzdCustomertypeInfoService.removeByIds(old.getCustomerTypes());
}
//删除原来的再新增
LambdaQueryWrapper<XzdCustomertypeInfo> xzdCustomertypeInfoLambdaQueryWrapper = new LambdaQueryWrapper<>();
xzdCustomertypeInfoLambdaQueryWrapper.eq(XzdCustomertypeInfo::getType,"2");
xzdCustomertypeInfoLambdaQueryWrapper.eq(XzdCustomertypeInfo::getCustomerinformationId, update.getId());
xzdCustomertypeInfoService.remove(xzdCustomertypeInfoLambdaQueryWrapper);
for (XzdCustomertypeInfo customerType : bo.getCustomerTypes()) {
customerType.setType("2");
customerType.setCustomerinformationId(update.getId());