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

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

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