Commit 5cf59b87 by 阮思源

Merge branch 'feat-zdw-1002347' into 'master'

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

See merge request rays/pcloud-book!403
parents 07ef7a96 0d7e68be
......@@ -90,7 +90,7 @@ public class PcloudRobotBizImpl implements PcloudRobotBiz {
}
//校验编号是否重复
PcloudRobot robot = pcloudRobotDao.getByUniqueNumber(pcloudRobot.getUniqueNumber());
if (null != robot){
if (null != robot && !robot.getId().equals(pcloudRobot.getId())){
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