Commit d4512b74 by 陶光胜

门店批量导入修改

parent b005fed0
......@@ -19,6 +19,8 @@ import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -33,6 +35,7 @@ import java.util.stream.Stream;
*/
@Service
public class StoreServiceImpl implements StoreService {
private static Logger logger = LogManager.getLogger(StoreServiceImpl.class);
@Autowired
TabStoreInfoMapper tabStoreInfoMapper;
......@@ -278,7 +281,7 @@ public class StoreServiceImpl implements StoreService {
}
} catch (Exception e) {
e.printStackTrace();
logger.warn("异常:", e);
}
return 1;
}
......@@ -309,7 +312,7 @@ public class StoreServiceImpl implements StoreService {
}
} catch (Exception e) {
e.printStackTrace();
logger.warn("异常:", e);
}
return 0;
}
......@@ -335,7 +338,7 @@ public class StoreServiceImpl implements StoreService {
}
} catch (Exception e) {
e.printStackTrace();
logger.warn("异常:", e);
}
return 1;
}
......@@ -354,7 +357,7 @@ public class StoreServiceImpl implements StoreService {
return this.tabStoreInfoMapper.updateStoreBrandBystoreInfoIds(enterpriseId, value, list);
}
} catch (Exception e) {
e.printStackTrace();
logger.warn("异常:", e);
}
return 0;
}
......@@ -373,7 +376,7 @@ public class StoreServiceImpl implements StoreService {
return this.tabStoreMapper.updateStoreGroupBystoreInfoIds(enterpriseId, value, list);
}
} catch (Exception e) {
e.printStackTrace();
logger.warn("异常:", e);
}
return 0;
}
......
......@@ -66,7 +66,4 @@ public class StoreWidgetServiceImpl implements StoreWidgetService {
return this.tabStoreWidgetMapper.updateByPrimaryKeySelective(storeWidget);
}
public static void main(String[] args){
System.out.println(Integer.MAX_VALUE);
}
}
......@@ -1333,7 +1333,7 @@ public class StoreApiServiceImpl implements StoreApiService {
try {
clientInstance.sendMessage("storeIndexMq", json.toJSONString());
} catch (Exception e) {
e.printStackTrace();
logger.warn("异常:", e);
}
return ServiceResponse.success();
}
......
......@@ -271,15 +271,6 @@ public class StoreDictApiServiceImpl implements StoreDictApiService {
return ServiceResponse.success();
}
public static void main(String[] args){
List<String> existList = Arrays.asList("1","2", "3");
List<String> newList = Arrays.asList("2", "3", "4");
List<String> add = newList.stream().filter(s -> !existList.contains(s)).collect(Collectors.toList());
List<String> del = existList.stream().filter(s -> !newList.contains(s)).collect(Collectors.toList());
System.out.println(add);
System.out.println(del);
}
@Override
public ServiceResponse<List<String>> listStoreFieldDictValue(Integer enterpriseId) {
return ServiceResponse.success(this.storeDictService.listStoreField(enterpriseId));
......
......@@ -109,18 +109,6 @@ public class TextField extends FieldBase {
String 数字符号 = 数字 + 符号;
String 字母符号 = 字母 + 符号;
System.out.println("中文:" + textField.validate(中文));
System.out.println("数字:" + textField.validate(数字));
System.out.println("字母:" + textField.validate(字母));
System.out.println("符号:" + textField.validate(符号));
System.out.println("中文数字:" + textField.validate(中文数字));
System.out.println("中文字母:" + textField.validate(中文字母));
System.out.println("中文符号:" + textField.validate(中文符号));
System.out.println("数字字母:" + textField.validate(数字字母));
System.out.println("数字符号:" + textField.validate(数字符号));
System.out.println("字母符号:" + textField.validate(字母符号));
}
}
......@@ -83,7 +83,7 @@ public class ClerkImportController {
}
fo.flush();
} catch (Exception e) {
e.printStackTrace();
logger.warn("异常:", e);
} finally {
if (fo != null) {
fo.close();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment