class DiseaseManagementImpl implements DiseaseManagementService {

    @Override
    public CommonResult updateDiseaseById(Disease disease) {
        if (diseaseMapper.get(disease.getId()) == null) {
            return CommonResult.fail(E_602);
        }
        int count = diseaseMapper.update(disease);
        if (count == 0) {
            return CommonResult.fail();
        }
        return CommonResult.success(count);
    }

}