|
@@ -29,11 +29,11 @@ public class SupplierServiceImpl extends ServiceImpl<ChannelSupplierMapper,Chann
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void updateSupplierBySupplierCode(ChannelSupplier channelSupplier) {
|
|
|
+ public void updateSupplierBySupplierId(ChannelSupplier channelSupplier) {
|
|
|
UpdateWrapper<ChannelSupplier> updateWrapper = new UpdateWrapper<>();
|
|
|
- updateWrapper.eq("supplier_code",channelSupplier.getSupplierCode());
|
|
|
+ updateWrapper.eq("supplier_id", channelSupplier.getSupplierId());
|
|
|
int result = baseMapper.update(channelSupplier, updateWrapper);
|
|
|
- if (result>0) {
|
|
|
+ if (result > 0) {
|
|
|
// TODO: 2021/5/18 向MQ推送消息
|
|
|
}
|
|
|
}
|
|
@@ -41,20 +41,19 @@ public class SupplierServiceImpl extends ServiceImpl<ChannelSupplierMapper,Chann
|
|
|
@Override
|
|
|
public void saveSupplier(ChannelSupplier channelSupplier) {
|
|
|
int result = baseMapper.insert(channelSupplier);
|
|
|
- if (result>0) {
|
|
|
+ if (result > 0) {
|
|
|
// TODO:2021/5/18 向MQ推送消息
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void deleteSupplierBySupplierCode(String supplierCode) {
|
|
|
+ public void deleteSupplierBySupplierId(String supplierId) {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
- map.put("supplier_code",supplierCode);
|
|
|
+ map.put("supplier_id", supplierId);
|
|
|
int result = baseMapper.deleteByMap(map);
|
|
|
- if (result>0) {
|
|
|
+ if (result > 0) {
|
|
|
// TODO:2021/5/18 向MQ推送消息
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-}
|
|
|
+}
|