Commit 0d7e68be by zhangdongwei-intern

fix-1020355: 编号未重复时修改提示编号重复

parent 07ef7a96
...@@ -90,7 +90,7 @@ public class PcloudRobotBizImpl implements PcloudRobotBiz { ...@@ -90,7 +90,7 @@ public class PcloudRobotBizImpl implements PcloudRobotBiz {
} }
//校验编号是否重复 //校验编号是否重复
PcloudRobot robot = pcloudRobotDao.getByUniqueNumber(pcloudRobot.getUniqueNumber()); PcloudRobot robot = pcloudRobotDao.getByUniqueNumber(pcloudRobot.getUniqueNumber());
if (null != robot){ if (null != robot && !robot.getId().equals(pcloudRobot.getId())){
throw new BookBizException(BookBizException.PARAM_IS_ERROR, "编号重复,请重新输入"); throw new BookBizException(BookBizException.PARAM_IS_ERROR, "编号重复,请重新输入");
} }
} }
......
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