Browse Source

Merge branch 'zhangxin' of http://192.168.40.220/etc_codes/9901Xz/qt.afl.after.sales into zhangxin

shuiqilin
zhangxin 1 year ago
parent
commit
66985c1f2a

+ 12
- 0
src/main/java/com/qtzl/alterSales/dao/repo/jpa/second/AflCenterUserInfoRepo.java View File

@@ -3,6 +3,7 @@ package com.qtzl.alterSales.dao.repo.jpa.second;
import com.qtzl.alterSales.dao.entity.second.AflCenterUserInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

@@ -28,4 +29,15 @@ public interface AflCenterUserInfoRepo extends JpaRepository<AflCenterUserInfo,
* @return 、
*/
List<AflCenterUserInfo> findByIdTypeAndIdNum(Integer idType, String idNum);

/**
* 根据accountId获取用户信息
* @param accountId
* @return
*/
@Query(" from AflCenterUserInfo where accountId=?1 ")
AflCenterUserInfo findByAccountId(String accountId);
@Query(" select count(id) from AflCenterUserInfo")
int byCount();

}

Loading…
Cancel
Save