uapbd: 查询 bom 组织编码和版本时增加逻辑删除条件
- 在查询组织编码的 SQL 中添加了 dr = 0 条件,以确保只获取未删除的记录 - 在查询 BOM 版本的 SQL 中也添加了 dr = 0条件,保证只获取有效记录
This commit is contained in:
parent
4cac17c8bd
commit
c4cc1be139
|
@ -1558,7 +1558,7 @@ public class APIBomBusinessServiceImpl implements IAPIBomBusinessService {
|
|||
|
||||
try {
|
||||
// ²éѯ×éÖ¯±àÂë
|
||||
String sql = "SELECT code FROM org_orgs WHERE pk_org = ?";
|
||||
String sql = "SELECT code FROM org_orgs WHERE dr = 0 and pk_org = ?";
|
||||
SQLParameter param = new SQLParameter();
|
||||
param.addParam(pk_org);
|
||||
String orgCode = (String) DAO.executeQuery(sql, param, new ColumnProcessor());
|
||||
|
@ -1588,7 +1588,7 @@ public class APIBomBusinessServiceImpl implements IAPIBomBusinessService {
|
|||
StringBuilder sql = new StringBuilder();
|
||||
sql.append("SELECT MAX(TO_NUMBER(hversion)) as max_version ");
|
||||
sql.append("FROM bd_bom ");
|
||||
sql.append("WHERE pk_org = ? ");
|
||||
sql.append("WHERE dr = 0 and pk_org = ? ");
|
||||
|
||||
SQLParameter param = new SQLParameter();
|
||||
param.addParam(pk_org);
|
||||
|
|
Loading…
Reference in New Issue