Commit e4b83cf0 by 李小龙

fix:

parent 95573178
......@@ -26,7 +26,7 @@ public class SaasPrivacyConfigDTO implements Serializable {
@ApiModelProperty("标题")
private String title;
@Size(max = 5000, message = "申请说明最长为5000字符")
@Size(max = 5000, message = "内容长度最长为5000字符")
@ApiModelProperty(value="内容")
private String content;
......
......@@ -433,7 +433,11 @@ public class PlatAlarmRecordServiceImpl extends ServiceImpl<PlatAlarmRecordMappe
m.reset();
int i = 0;
while (m.find()) {
m.appendReplacement(sb, param.get(i));
String paramValue = "";
if(param.size()>i) {
paramValue = param.get(i);
}
m.appendReplacement(sb, paramValue);
i++;
}
m.appendTail(sb);
......
......@@ -169,10 +169,12 @@ public class PlatMenuServiceImpl extends ServiceImpl<PlatMenuMapper, PlatMenu>
* @param dto
*/
private void checkCode(PlatMenuDTOVO dto) {
PlatMenu old = getOne(new QueryWrapper<PlatMenu>().lambda()
.eq(PlatMenu::getCode, dto.getCode()));
if (old != null && !old.getId().equals(dto.getId())) {
throw new BusinessException(CodeMessageEnum.SYSTEM_ERROR_MENU_CODE_DUPLICATE);
if(StringUtils.isNotBlank(dto.getCode())) {
PlatMenu old = getOne(new QueryWrapper<PlatMenu>().lambda()
.eq(StringUtils.isNotBlank(dto.getCode()), PlatMenu::getCode, dto.getCode()));
if (old != null && !old.getId().equals(dto.getId())) {
throw new BusinessException(CodeMessageEnum.SYSTEM_ERROR_MENU_CODE_DUPLICATE);
}
}
}
......
......@@ -107,7 +107,7 @@ public class IotSyncTask {
}
platDevice.setOriDeviceId(iotDevice.getId());
platDevice.setName(iotDevice.getName());
platDevice.setOrgId(tenantId);
//platDevice.setOrgId(tenantId);
String productName = iotDevice.getProductName();
platDevice.setProductName(productName);
platDevice.setProductId(iotDevice.getProductId());
......
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 sign in to comment