11-3-修复
This commit is contained in:
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user