This commit is contained in:
jhd
2026-07-04 10:29:39 +08:00
2 changed files with 5 additions and 5 deletions

View File

@@ -513,7 +513,7 @@ public class SqlServerApiClient {
params.put("endRow", endRow);
StringBuilder where = new StringBuilder();
if (coilId != null && !coilId.trim().isEmpty()) {
where.append(" AND UPPER(EXCOILID) LIKE '%' || UPPER(:coilId) || '%'");
where.append(" AND (UPPER(EXCOILID) LIKE '%' || UPPER(:coilId) || '%' OR UPPER(HOT_COILID) LIKE '%' || UPPER(:coilId) || '%')");
params.put("coilId", coilId.trim());
}
if (startDate != null && !startDate.trim().isEmpty()) {
@@ -533,7 +533,7 @@ public class SqlServerApiClient {
Map<String, Object> params = new java.util.HashMap<>();
StringBuilder where = new StringBuilder();
if (coilId != null && !coilId.trim().isEmpty()) {
where.append(" AND UPPER(EXCOILID) LIKE '%' || UPPER(:coilId) || '%'");
where.append(" AND (UPPER(EXCOILID) LIKE '%' || UPPER(:coilId) || '%' OR UPPER(HOT_COILID) LIKE '%' || UPPER(:coilId) || '%')");
params.put("coilId", coilId.trim());
}
if (startDate != null && !startDate.trim().isEmpty()) {

View File

@@ -172,10 +172,10 @@
<div class="search-panel">
<div class="panel-title">查找</div>
<div class="search-type-group">
<el-radio v-model="searchType" label="coil">按钢卷号</el-radio>
<el-radio v-model="searchType" label="coil">按钢卷号/热卷号</el-radio>
<div v-if="searchType === 'coil'" class="search-field">
<span class="search-label">钢卷号</span>
<el-input v-model="searchCoilId" size="mini" style="width:140px" placeholder="EXCOILID" />
<span class="search-label">钢卷号/热卷号</span>
<el-input v-model="searchCoilId" size="mini" style="width:140px" placeholder="子卷号或热卷号" />
</div>
</div>
<div class="search-type-group">