@Test public void testDeleteNonMedicineById() throws Exception { }
@Override public CommonResult deleteNonMedicineById(Integer id) { if (nonMedicineMapper.get(id) == null) { return CommonResult.fail(E_602); } int count = nonMedicineMapper.delete(id); if (count == 0) { return CommonResult.fail(); } return CommonResult.success(count); }
NonMedicineManagementImpl implements NonMedicineManagementService { @Override public CommonResult deleteNonMedicineById(Integer id) { if (nonMedicineMapper.get(id) == null) { return CommonResult.fail(E_602); } int count = nonMedicineMapper.delete(id); if (count == 0) { return CommonResult.fail(); } return CommonResult.success(count); } }
NonMedicineManagementImpl implements NonMedicineManagementService { @Override public CommonResult deleteNonMedicineById(Integer id) { if (nonMedicineMapper.get(id) == null) { return CommonResult.fail(E_602); } int count = nonMedicineMapper.delete(id); if (count == 0) { return CommonResult.fail(); } return CommonResult.success(count); }  }
NonMedicineManagementImpl implements NonMedicineManagementService { @Override public CommonResult deleteNonMedicineById(Integer id) { if (nonMedicineMapper.get(id) == null) { return CommonResult.fail(E_602); } int count = nonMedicineMapper.delete(id); if (count == 0) { return CommonResult.fail(); } return CommonResult.success(count); }  @Override CommonResult getNonMedicineById(Integer id); @Override CommonResult insertNonMedicine(NonMedicine disease); @Override CommonResult updateNonMedicineById(NonMedicine nonMedicine); @Override CommonResult deleteNonMedicineById(Integer id); @Override CommonResult listAllNonMedicines(); }
NonMedicineManagementImpl implements NonMedicineManagementService { @Override public CommonResult deleteNonMedicineById(Integer id) { if (nonMedicineMapper.get(id) == null) { return CommonResult.fail(E_602); } int count = nonMedicineMapper.delete(id); if (count == 0) { return CommonResult.fail(); } return CommonResult.success(count); }  @Override CommonResult getNonMedicineById(Integer id); @Override CommonResult insertNonMedicine(NonMedicine disease); @Override CommonResult updateNonMedicineById(NonMedicine nonMedicine); @Override CommonResult deleteNonMedicineById(Integer id); @Override CommonResult listAllNonMedicines();  }