Base64签名值:signValue
/**
* 新增usbkey注册管理
*
* @param tbKeyManager usbkey注册管理
* @return 结果
*/
@Override
public int insertTbKeyManager(TbKeyManager tbKeyManager)
{
tbKeyManager.setCreateTime(DateUtils.getNowDate());
//生成签名值protect
String toSign = tbKeyManager.getKeyNumber()+tbKeyManager.getStatus();
try {
String signValue = HashUtil.createSignValue(toSign);
tbKeyManager.setProtect(signValue);
} catch (Exception e) {
e.printStackTrace();
}
//介质推送
doPushKey(tbKeyManager);
return tbKeyManagerMapper.insertTbKeyManager(tbKeyManager);
}