Parcourir la source

更改保存客户时缺少默认地址提示

liyuan il y a 2 semaines
Parent
commit
d8cb0ceb5e

+ 1 - 1
blade-service/blade-sales-part/src/main/java/org/springblade/salesPart/corps/service/impl/CorpsDescServiceImpl.java

@@ -1555,7 +1555,7 @@ public class CorpsDescServiceImpl extends ServiceImpl<CorpsDescMapper, PjCorpsDe
 		if (CollectionUtils.isNotEmpty(corpsDesc.getCorpsAddrList())) {
 			long count = corpsDesc.getCorpsAddrList().stream().filter(e -> "1".equals(e.getDefaultAddres())).count();
 			if (count != 1) {
-				throw new RuntimeException("默认地址唯一");
+				throw new RuntimeException("请为该客户选择一个默认地址");
 			}
 			corpsDesc.getCorpsAddrList().stream().forEach(addr -> {
 				addr.setPid(pId);