|
@@ -172,4 +172,27 @@ public class SettledCompanyInfoServiceImpl extends ServiceImpl<SettledCompanyInf
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 删除
|
|
|
|
+ * @param id
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public void deleteSettledCompanyInfo(String id) {
|
|
|
|
+ //查询销售计划信息
|
|
|
|
+ SettledCompanyInfo settledCompanyInfo = this.selectById(id);
|
|
|
|
+ if(settledCompanyInfo != null){
|
|
|
|
+ //删除销售计划信息
|
|
|
|
+ this.deleteById(settledCompanyInfo.getId());
|
|
|
|
+ // 联系人
|
|
|
|
+ boolean result = settledCompanyContactsService.delete(new EntityWrapper<SettledCompanyContacts>()
|
|
|
|
+ .eq("info_id",settledCompanyInfo.getId()));
|
|
|
|
+ // 举报
|
|
|
|
+ boolean res = settledCompanyErrorService.delete(new EntityWrapper<SettledCompanyError>()
|
|
|
|
+ .eq("info_id",settledCompanyInfo.getId()));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|