futian.liu
2023-12-02 8e41786892a4bd7cff2d63bde8cb0636cdb0650c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.consum.base.service.impl;
 
import com.consum.base.service.FinOrgService;
import com.consum.model.po.FinSysOrg;
import com.walker.infrastructure.utils.StringUtils;
import com.walker.jdbc.service.BaseServiceImpl;
import java.util.List;
import org.springframework.stereotype.Service;
 
@Service
public class FinOrgServiceImpl extends BaseServiceImpl implements FinOrgService {
 
 
    /**
     * 根据机构代码,查询唯一机构对象。
     *
     * @param orgCode
     * @return
     * @date 2023-07-05
     */
    @Override
    public FinSysOrg queryOneByCode(String orgCode) {
        FinSysOrg org = new FinSysOrg();
        org.setOrgCode(orgCode);
        List<FinSysOrg> orgList = this.select(org);
        if (!StringUtils.isEmptyList(orgList)) {
            return orgList.get(0);
        }
        return null;
    }
 
 
}