装置模板表新增字段
This commit is contained in:
@@ -41,7 +41,6 @@ public class CsDevModelRelationServiceImpl extends ServiceImpl<CsDevModelRelatio
|
||||
List<CsDevModelRelationVO> csDevModelRelationVOS = this.queryDevModelRelation (queryParm);
|
||||
if(csDevModelRelationVOS.size ()>0){
|
||||
throw new BusinessException (AlgorithmResponseEnum.DATA_ERROR);
|
||||
|
||||
}
|
||||
CsDevModelRelationPO csDevModelRelationPO = new CsDevModelRelationPO();
|
||||
BeanUtils.copyProperties (addParm, csDevModelRelationPO);
|
||||
|
||||
@@ -30,7 +30,7 @@ public class MqttUserServiceImpl extends ServiceImpl<MqttUserMapper, MqttUser> i
|
||||
mqttUser.setUsername(password);
|
||||
mqttUser.setSalt("mqtt");
|
||||
mqttUser.setIsSuperuser(1);
|
||||
mqttUser.setPassword(DigestUtil.sha256Hex(password + "mqtt"));
|
||||
mqttUser.setPassword(DigestUtil.sha256Hex(password + mqttUser.getSalt()));
|
||||
this.save(mqttUser);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user