Subversion Repositories SmartDukaan

Rev

Rev 9230 | Rev 9351 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9230 Rev 9284
Line 2... Line 2...
2
 
2
 
3
import java.text.ParseException;
3
import java.text.ParseException;
4
import java.text.SimpleDateFormat;
4
import java.text.SimpleDateFormat;
5
import java.util.ArrayList;
5
import java.util.ArrayList;
6
import java.util.Collection;
6
import java.util.Collection;
-
 
7
import java.util.Collections;
7
import java.util.Date;
8
import java.util.Date;
8
import java.util.HashMap;
9
import java.util.HashMap;
9
import java.util.List;
10
import java.util.List;
10
import java.util.Map;
11
import java.util.Map;
11
 
12
 
Line 912... Line 913...
912
		} catch (CatalogServiceException e) {
913
		} catch (CatalogServiceException e) {
913
			e.printStackTrace();
914
			e.printStackTrace();
914
		} catch (TException e) {
915
		} catch (TException e) {
915
			e.printStackTrace();
916
			e.printStackTrace();
916
		}
917
		}
917
		
-
 
-
 
918
		List<Long> itemPriceList = new ArrayList<Long>();
918
		for(Item item : itemList){
919
		for(Item item : itemList){
919
			if(status.ACTIVE==item.getItemStatus()){
-
 
920
				itemPrice = ((long)item.getSellingPrice()) + "";
920
			itemPriceList.add((long)item.getSellingPrice());
921
				break;
-
 
922
			}
921
		}
-
 
922
		if(itemPriceList!=null && itemPriceList.size()>0){
-
 
923
			Collections.sort(itemPriceList);
-
 
924
			itemPrice = itemPriceList.get(0).longValue()+"";
923
		}
925
		}
924
				
926
				
925
		return itemPrice;
927
		return itemPrice;
926
	}
928
	}
927
	public String getAdgroupList(){
929
	public String getAdgroupList(){