浏览代码

修改提示语

tags/v1.1.0^2
chengwang 1年前
父节点
当前提交
053c51b76b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/road/RoadInformationServiceImpl.java

+ 2
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/road/RoadInformationServiceImpl.java 查看文件

@@ -121,13 +121,13 @@ public class RoadInformationServiceImpl extends BaseServiceImpl<RoadInformationM
}
if (StringUtils.isEmpty(entity.getId())) {
//新增
if (this.getInformationListByCode(entity)) return JsonResult.error("公路代号存在不能重复");
if (this.getInformationListByCode(entity)) return JsonResult.error("公路已存在");
entity.setCreateUser(userId);
entity.setCreateTime(DateUtils.now());
entity.setTenantId(CurrentUserUtil.getTenantId());
} else {
//更新
if (this.getInformationListByCode(entity)) return JsonResult.error("公路代号存在不能重复");
if (this.getInformationListByCode(entity)) return JsonResult.error("公路已存在");
entity.setUpdateUser(userId);
entity.setUpdateTime(DateUtils.now());
entity.setTenantId(CurrentUserUtil.getTenantId());

正在加载...
取消
保存