public ShopResult selectGood(String number, String littleCode, String bigCode, String noBatchCode, String type, HttpServletRequest request) throws CustomException {
if (type == "") {
throw new CustomException("");
}
List<String> stringList= (List<String>) request.getSession().getAttribute("list");
if (type.equals("0")) {//批量
List<EcsGoodCode> goodCodeList = new ArrayList<EcsGoodCode>();
//扫码输入
if (littleCode.equals("") && bigCode.equals("") && noBatchCode.equals("")) {
if (stringList == null) {
stringList=new ArrayList<>();
goodCodeList = getList(number, number, stringList, request);
return ShopResult.build(ResultType.result_success, "", goodCodeList);
} else {
if (stringList.size() == 1) {
goodCodeList = getList(stringList.get(0), number, stringList, request);
return ShopResult.build(ResultType.result_success, "", goodCodeList);
} else if (stringList.size() > 1) {