@Test public void getSignTest() { SmsSignBO smsSignBO = smsService.getSign(3); Assert.assertNotNull("不能为空!", smsSignBO); }
@Override public SmsSignBO getSign(Integer signId) { SmsSignDO smsSignDO = smsSignMapper.selectOne( new QueryWrapper<SmsSignDO>() .eq("id", signId) .eq("deleted", DeletedStatusEnum.DELETED_NO.getValue())); if (smsSignDO == null) { throw new ServiceException(AdminErrorCodeEnum.SMS_SIGN_NOT_EXISTENT.getCode(), AdminErrorCodeEnum.SMS_SIGN_NOT_EXISTENT.getMessage()); } return SmsSignConvert.INSTANCE.convert(smsSignDO); }
SmsServiceImpl implements SmsService { @Override public SmsSignBO getSign(Integer signId) { SmsSignDO smsSignDO = smsSignMapper.selectOne( new QueryWrapper<SmsSignDO>() .eq("id", signId) .eq("deleted", DeletedStatusEnum.DELETED_NO.getValue())); if (smsSignDO == null) { throw new ServiceException(AdminErrorCodeEnum.SMS_SIGN_NOT_EXISTENT.getCode(), AdminErrorCodeEnum.SMS_SIGN_NOT_EXISTENT.getMessage()); } return SmsSignConvert.INSTANCE.convert(smsSignDO); } }
SmsServiceImpl implements SmsService { @Override public SmsSignBO getSign(Integer signId) { SmsSignDO smsSignDO = smsSignMapper.selectOne( new QueryWrapper<SmsSignDO>() .eq("id", signId) .eq("deleted", DeletedStatusEnum.DELETED_NO.getValue())); if (smsSignDO == null) { throw new ServiceException(AdminErrorCodeEnum.SMS_SIGN_NOT_EXISTENT.getCode(), AdminErrorCodeEnum.SMS_SIGN_NOT_EXISTENT.getMessage()); } return SmsSignConvert.INSTANCE.convert(smsSignDO); }  }
SmsServiceImpl implements SmsService { @Override public SmsSignBO getSign(Integer signId) { SmsSignDO smsSignDO = smsSignMapper.selectOne( new QueryWrapper<SmsSignDO>() .eq("id", signId) .eq("deleted", DeletedStatusEnum.DELETED_NO.getValue())); if (smsSignDO == null) { throw new ServiceException(AdminErrorCodeEnum.SMS_SIGN_NOT_EXISTENT.getCode(), AdminErrorCodeEnum.SMS_SIGN_NOT_EXISTENT.getMessage()); } return SmsSignConvert.INSTANCE.convert(smsSignDO); }  @Override PageSmsSignBO pageSmsSign(PageQuerySmsSignDTO queryDTO); @Override PageSmsTemplateBO pageSmsTemplate(PageQuerySmsTemplateDTO queryDTO); @Override @Transactional void addSign(String sign, Integer platform); @Override SmsSignBO getSign(Integer signId); @Override @Transactional void updateSign(Integer id, String newSign, Integer platform); @Override void deleteSign(Integer id); @Override @Transactional void addTemplate(Integer smsSignId, String templateCode,
                            String template, Integer platform, Integer smsType); @Override SmsTemplateBO getTemplate(Integer id, Integer platform); @Override @Transactional void updateTemplate(Integer id, Integer smsSignId, String templateCode,
                               String template, Integer platform, Integer smsType); @Override @Transactional void deleteTemplate(Integer id); @Override void singleSend(String mobile, Integer smsTemplateId, Map<String, String> params); @Override void batchSend(List<String> mobileList, Integer smsTemplateId, Map<String, String> params); }
SmsServiceImpl implements SmsService { @Override public SmsSignBO getSign(Integer signId) { SmsSignDO smsSignDO = smsSignMapper.selectOne( new QueryWrapper<SmsSignDO>() .eq("id", signId) .eq("deleted", DeletedStatusEnum.DELETED_NO.getValue())); if (smsSignDO == null) { throw new ServiceException(AdminErrorCodeEnum.SMS_SIGN_NOT_EXISTENT.getCode(), AdminErrorCodeEnum.SMS_SIGN_NOT_EXISTENT.getMessage()); } return SmsSignConvert.INSTANCE.convert(smsSignDO); }  @Override PageSmsSignBO pageSmsSign(PageQuerySmsSignDTO queryDTO); @Override PageSmsTemplateBO pageSmsTemplate(PageQuerySmsTemplateDTO queryDTO); @Override @Transactional void addSign(String sign, Integer platform); @Override SmsSignBO getSign(Integer signId); @Override @Transactional void updateSign(Integer id, String newSign, Integer platform); @Override void deleteSign(Integer id); @Override @Transactional void addTemplate(Integer smsSignId, String templateCode,
                            String template, Integer platform, Integer smsType); @Override SmsTemplateBO getTemplate(Integer id, Integer platform); @Override @Transactional void updateTemplate(Integer id, Integer smsSignId, String templateCode,
                               String template, Integer platform, Integer smsType); @Override @Transactional void deleteTemplate(Integer id); @Override void singleSend(String mobile, Integer smsTemplateId, Map<String, String> params); @Override void batchSend(List<String> mobileList, Integer smsTemplateId, Map<String, String> params);  }