|
|
@@ -27,17 +27,6 @@ public interface AddressDao extends JpaSpecificationExecutor<Address>, JpaReposi
|
|
|
*/
|
|
|
public List<Address> findByUseruuAndTypeAndUsetypeOrderByNumAsc(Long useruu, Integer type, Short usetype);
|
|
|
|
|
|
- /**
|
|
|
- * 根据uu号,enuu为空类型 查找收货地址
|
|
|
- *
|
|
|
- * @param useruu the useruu 个人uu
|
|
|
- * @param type the type 类型 发货,收货
|
|
|
- * @param usetype the usetype 使用类型,1 个人,2 企业
|
|
|
- * @return list 返回查找的address列表
|
|
|
- */
|
|
|
-// @Query("select a from Address a where a.useruu=:useruu and a.enuu is null and a.type=:type and a.usetype=:usetype")
|
|
|
- List<Address> findByUseruuAndTypeAndUsetype(Long useruu, Integer type, Short usetype);
|
|
|
-
|
|
|
/**
|
|
|
* 根据企业uu号,类型查询平台收货地址
|
|
|
*
|
|
|
@@ -71,15 +60,6 @@ public interface AddressDao extends JpaSpecificationExecutor<Address>, JpaReposi
|
|
|
*/
|
|
|
List<Address> findByEnuuAndTypeAndNumAndUsetypeOrderByNumAsc(Long enuu, Integer type, Integer num, Short usertype);
|
|
|
|
|
|
- /**
|
|
|
- * 2016年5月4日 下午8:11:30
|
|
|
- * @author yujia 获取企业的收/发货地址
|
|
|
- *
|
|
|
- * @param enuu the enuu 企业enuu
|
|
|
- * @param usetype the usetype 使用类型
|
|
|
- * @return list 返回查找的address列表
|
|
|
- */
|
|
|
- public List<Address> getByEnuuAndUsetypeOrderByNumAsc(Long enuu, Short usetype);
|
|
|
|
|
|
/**
|
|
|
* 2016年5月25日 下午3:20:23
|
|
|
@@ -90,8 +70,8 @@ public interface AddressDao extends JpaSpecificationExecutor<Address>, JpaReposi
|
|
|
* @param usetype the usetype
|
|
|
* @return Integer 返回地址总数
|
|
|
*/
|
|
|
- @Query(value="select count(*) from Address a where a.enuu =:enuu and a.type=:type and a.usetype =:usetype")
|
|
|
- Integer getCountByTypeAndUsetype(@Param("enuu") Long enuu, @Param("type") int type, @Param("usetype") Short usetype);
|
|
|
+ @Query(value="select count(1) from Address a where a.enuu =:enuu and a.type=:type and a.usetype =:usetype")
|
|
|
+ Integer getCountByEnuuAndTypeAndUsetype(@Param("enuu") Long enuu, @Param("type") int type, @Param("usetype") Short usetype);
|
|
|
|
|
|
/**
|
|
|
* @author yujia 获取个人地址某种类型的个数
|
|
|
@@ -99,22 +79,8 @@ public interface AddressDao extends JpaSpecificationExecutor<Address>, JpaReposi
|
|
|
* @param useruu 个人uu号
|
|
|
* @param type 地址的类型
|
|
|
* @param usetype 使用类型
|
|
|
- * @param dissociative 是否为个人用户
|
|
|
* @return Integer 返回地址总数
|
|
|
*/
|
|
|
@Query(value="select count(1) from Address a where a.useruu=:useruu and a.dissociative=:dissociative and a.type=:type and a.usetype =:usetype")
|
|
|
- Integer getCountByUseruuTypeUsetypeAndDissociative(@Param("useruu") Long useruu, @Param("type") int type, @Param("usetype") Short usetype, @Param("dissociative") Integer dissociative);
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 2016年5月25日 下午3:23:15
|
|
|
- * @author yujia 获取企业地址某种类型的个数
|
|
|
- *
|
|
|
- * @param enuu 企业的uu号
|
|
|
- * @param type 地址类型
|
|
|
- * @param usetype 使用类型
|
|
|
- * @return Integer 返回地址总数
|
|
|
- */
|
|
|
- @Query(value = "select count(*) from Address a where a.enuu =:enuu and a.type =:type and a.usetype =:usetype")
|
|
|
- Integer getCountByEnuuAndTypeAndUsetype(@Param("enuu") Long enuu, @Param("type") int type, @Param("usetype") Short usetype);
|
|
|
+ Integer getCountByUseruuAndTypeAndUsetype(@Param("useruu") Long useruu, @Param("type") int type, @Param("usetype") Short usetype);
|
|
|
}
|