提交 2d90f5dd 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码,后台体系[Spring Boot]

上级 d11d1651
...@@ -41,6 +41,7 @@ public interface IRes_supplier_res_partner_category_relService extends IService< ...@@ -41,6 +41,7 @@ public interface IRes_supplier_res_partner_category_relService extends IService<
List<Res_supplier_res_partner_category_rel> selectByCategoryId(Long id); List<Res_supplier_res_partner_category_rel> selectByCategoryId(Long id);
void removeByCategoryId(Long id); void removeByCategoryId(Long id);
List<Res_supplier_res_partner_category_rel> selectByPartnerId(Long id); List<Res_supplier_res_partner_category_rel> selectByPartnerId(Long id);
void removeByPartnerId(Collection<Long> ids);
void removeByPartnerId(Long id); void removeByPartnerId(Long id);
/** /**
*自定义查询SQL *自定义查询SQL
......
...@@ -142,6 +142,7 @@ public class Res_supplierServiceImpl extends EBSServiceImpl<Res_supplierMapper, ...@@ -142,6 +142,7 @@ public class Res_supplierServiceImpl extends EBSServiceImpl<Res_supplierMapper,
@Override @Override
@Transactional @Transactional
public boolean remove(Long key) { public boolean remove(Long key) {
resSupplierResPartnerCategoryRelService.removeByPartnerId(key);
boolean result=removeById(key); boolean result=removeById(key);
return result ; return result ;
} }
...@@ -149,6 +150,7 @@ public class Res_supplierServiceImpl extends EBSServiceImpl<Res_supplierMapper, ...@@ -149,6 +150,7 @@ public class Res_supplierServiceImpl extends EBSServiceImpl<Res_supplierMapper,
@Override @Override
@Transactional @Transactional
public void removeBatch(Collection<Long> idList) { public void removeBatch(Collection<Long> idList) {
resSupplierResPartnerCategoryRelService.removeByPartnerId(idList);
removeByIds(idList); removeByIds(idList);
} }
......
...@@ -205,6 +205,11 @@ public class Res_supplier_res_partner_category_relServiceImpl extends EBSService ...@@ -205,6 +205,11 @@ public class Res_supplier_res_partner_category_relServiceImpl extends EBSService
public List<Res_supplier_res_partner_category_rel> selectByPartnerId(Long id) { public List<Res_supplier_res_partner_category_rel> selectByPartnerId(Long id) {
return baseMapper.selectByPartnerId(id); return baseMapper.selectByPartnerId(id);
} }
@Override
public void removeByPartnerId(Collection<Long> ids) {
this.remove(new QueryWrapper<Res_supplier_res_partner_category_rel>().in("partner_id",ids));
}
@Override @Override
public void removeByPartnerId(Long id) { public void removeByPartnerId(Long id) {
this.remove(new QueryWrapper<Res_supplier_res_partner_category_rel>().eq("partner_id",id)); this.remove(new QueryWrapper<Res_supplier_res_partner_category_rel>().eq("partner_id",id));
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册