商用车Excel单条导入车型数据去重复校验
This commit is contained in:
parent
3f76a271ed
commit
2e105cd520
@ -53,8 +53,8 @@ public class ModelLibraryImport extends BaseImportExcelCallBack{
|
||||
sql1="SELECT brand FROM li_cardata_commercial WHERE cars='"+cars+"' AND brand='"+brand+"' AND models='"+models+"'";
|
||||
List<Map<String, String>> dataList = DataOperatorUtil.getDataBySql(Sqlca, sql1, null);
|
||||
// 有结果集, 说明重复
|
||||
if(dataList !=null || !dataList.isEmpty()){
|
||||
error="【品牌: "+brand+", 车系: "+cars+", 车型 : "+models+"】";
|
||||
if(dataList.size()>0){
|
||||
error=",【品牌: "+brand+", 车系: "+cars+", 车型 : "+models+"】";
|
||||
flag=true;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user