|
@@ -44,7 +44,7 @@ public class SupplierServiceImpl extends ServiceImpl<ChannelSupplierMapper, Chan
|
|
|
|
|
|
if (supplierList != null) {
|
|
|
for (ChannelSupplier supplier : supplierList.getRecords()) {
|
|
|
- supplier.setBankCards(bankCardService.getBankCardList(supplier.getRelationId()));
|
|
|
+ supplier.setBankCards(bankCardService.getBankCardList(supplier.getSupplierId()));
|
|
|
}
|
|
|
return supplierList;
|
|
|
} else {
|
|
@@ -64,7 +64,7 @@ public class SupplierServiceImpl extends ServiceImpl<ChannelSupplierMapper, Chan
|
|
|
channelSupplier.setUpdator("admin");
|
|
|
channelSupplier.setUpdateTime(new Date());
|
|
|
LambdaUpdateWrapper<ChannelSupplier> lambdaUpdateWrapper = new LambdaUpdateWrapper<>();
|
|
|
- lambdaUpdateWrapper.eq(channelSupplier.getRelationId() != null, ChannelSupplier::getRelationId, channelSupplier.getRelationId());
|
|
|
+ lambdaUpdateWrapper.eq(channelSupplier.getSupplierId() != null, ChannelSupplier::getSupplierId, channelSupplier.getSupplierId());
|
|
|
int result = baseMapper.update(channelSupplier, lambdaUpdateWrapper);
|
|
|
if (result > 0) {
|
|
|
// TODO: 2021/5/18 向MQ推送消息
|