Commit 74d6c09e authored by 赵啸非's avatar 赵啸非

测试~~~~~~~~~~~

parent 5dbf6754
......@@ -45,6 +45,7 @@ public class LicenseServiceImpl extends AbstractCRUDServiceImpl<LicenseDao, Lice
if(between <= 0){
throw new AppException("开始时间必须小于结束时间");
}
entity.setLicenseCode(String.format("mac=%s&ip=%s",entity.getMac(),entity.getIp()));
//存放文件 xxx/
if (!ObjectUtils.isEmpty(entity.getLicenseCode())) {
String pubPath = uploadService.getFilePath(entity.getLicenseCode() + "/license.pub");
......@@ -55,13 +56,12 @@ public class LicenseServiceImpl extends AbstractCRUDServiceImpl<LicenseDao, Lice
entity.setLicensePriPath(priPath);
}
entity.setLicenseCode(entity.getMac()+entity.getIp());
super.saveBefore(entity, context);
}
@Override
protected void updateBefore(LicenseEntity entity, Context context) throws AppException {
entity.setLicenseCode(entity.getMac()+entity.getIp());
entity.setLicenseCode(String.format("mac=%s&ip=%s",entity.getMac(),entity.getIp()));
super.updateBefore(entity, context);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment