|  | @@ -290,7 +290,7 @@ public class promotion extends Controller {
 | 
	
		
			
				|  |  |              JSONObject whereObject = content.getJSONObject("where");
 | 
	
		
			
				|  |  |              if (whereObject.containsKey("condition") && !"".equals(whereObject.getString("condition"))) {
 | 
	
		
			
				|  |  |                  where.append(" and(");
 | 
	
		
			
				|  |  | -                where.append("t1.agentnum like'%").append(whereObject.getString("condition")).append("%' ");
 | 
	
		
			
				|  |  | +                where.append("t2.agentnum like'%").append(whereObject.getString("condition")).append("%' ");
 | 
	
		
			
				|  |  |                  where.append("or t3.abbreviation like'%").append(whereObject.getString("condition")).append("%' ");
 | 
	
		
			
				|  |  |                  where.append(")");
 | 
	
		
			
				|  |  |              }
 | 
	
	
		
			
				|  | @@ -316,8 +316,8 @@ public class promotion extends Controller {
 | 
	
		
			
				|  |  |              JSONObject whereObject = content.getJSONObject("where");
 | 
	
		
			
				|  |  |              if (whereObject.containsKey("condition") && !"".equals(whereObject.getString("condition"))) {
 | 
	
		
			
				|  |  |                  where.append(" and(");
 | 
	
		
			
				|  |  | -                where.append("t1.itemno like'%").append(whereObject.getString("condition")).append("%' ");
 | 
	
		
			
				|  |  | -                where.append("or t1.itemname like'%").append(whereObject.getString("condition")).append("%' ");
 | 
	
		
			
				|  |  | +                where.append("t2.itemno like'%").append(whereObject.getString("condition")).append("%' ");
 | 
	
		
			
				|  |  | +                where.append("or t2.itemname like'%").append(whereObject.getString("condition")).append("%' ");
 | 
	
		
			
				|  |  |                  where.append(")");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 |