JD名称重复校验

This commit is contained in:
dxfeng 2024-01-12 18:08:04 +08:00
parent 2e75ee089c
commit 9055ca9d3e
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ public class JdDescriptionModeServiceImpl extends Service implements JdDescripti
if (StringUtils.isBlank(billId)) {
rs.executeQuery("select id from uf_JD_Description where status = 0 and jdname = ?", jdName);
} else {
rs.executeQuery("select id from uf_JD_Description where status = 0 and id = ? and jdname = ?", billId, jdName);
rs.executeQuery("select id from uf_JD_Description where status = 0 and id != ? and jdname = ?", billId, jdName);
}
if (rs.next()) {
returnMap.put("repeat", true);