Browse Source

单位客户查询性能优化

anderx 7 years ago
parent
commit
c3143f6007

+ 0 - 4
src/main/java/com/goafanti/common/mapper/UserMapperExt.xml

@@ -367,10 +367,6 @@
 			count(0)
 		from user a 
 		left join organization_identity b on a.id = b.uid
-		left join district_glossory dg1 on b.location_province = dg1.id
-		left join district_glossory dg2 on b.location_city = dg2.id
-		left join district_glossory dg3 on b.location_area = dg3.id
-		left join admin d on a.aid = d.id
 		where a.type = 1 and a.status != 1
 		<if test="aid != null and aid !=''">
 			and a.aid = #{aid,jdbcType=VARCHAR}

+ 1 - 2
src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

@@ -163,8 +163,7 @@ public class CustomerServiceImpl  extends BaseMybatisDao<UserMapper> implements
 	public Pagination<CustomerListOut> listAllOrganizationCustomer(CustomerListIn cli, Integer pageNo,Integer pageSize) {
 		cli.setType(AFTConstants.USER_TYPE_ORGANIZATION);
 		Map<String,Object> params = disposeParams(cli);
-		Pagination<CustomerListOut> list = (Pagination<CustomerListOut>) findPage("selectOrganizationCustomerList","selectOrganizationCustomerCount",params,pageNo,pageSize);
-		return list;
+		return (Pagination<CustomerListOut>) findPage("selectOrganizationCustomerList","selectOrganizationCustomerCount",params,pageNo,pageSize);
 	}
 	
 	@Override