| | |
| | | if (updateId == null) { |
| | | |
| | | queryWrapper.eq("project_name", entity.getProjectName()); |
| | | |
| | | queryWrapper.eq("deleted",0); |
| | | if (StringUtils.isNotEmpty(entity.getProjectCode())) { |
| | | queryWrapper.eq("project_code", entity.getProjectCode()); |
| | | } |
| | |
| | | <id column="id" property="id"/> |
| | | </resultMap> |
| | | <select id="checkProjectNameAndIdIsUnique" resultMap="pInfo"> |
| | | select p.id from t_project_info p where p.project_name =#{name} and p.id != #{id} |
| | | select p.id from t_project_info p where p.project_name =#{name} and p.id != #{id} and p.deleted = 0 |
| | | <if test="code !=null and code !=''"> |
| | | and p.project_code =#{code} |
| | | </if> |