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 (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()) {
|
for (XzdCustomertypeInfo customerType : bo.getCustomerTypes()) {
|
||||||
customerType.setType("2");
|
customerType.setType("2");
|
||||||
customerType.setCustomerinformationId(update.getId());
|
customerType.setCustomerinformationId(update.getId());
|
||||||
|
|||||||
Reference in New Issue
Block a user