wuxw
2019-10-13 f3041c38a003af7c26c1a3b1e38a691e7ebedf09
UserService/src/main/java/com/java110/user/smo/impl/OrgInnerServiceSMOImpl.java
@@ -11,6 +11,8 @@
import com.java110.utils.util.BeanConvertUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
@@ -56,6 +58,28 @@
        return orgServiceDaoImpl.queryOrgsCount(BeanConvertUtil.beanCovertMap(orgDto));
    }
    /**
     * <p>查询上级组织信息</p>
     *
     *
     * @param orgDto 数据对象分享
     * @return OrgDto 对象数据
     */
    @Override
    public List<OrgDto> queryParentOrgs(@RequestBody OrgDto orgDto) {
        //校验是否传了 分页信息
        List<OrgDto> orgs = BeanConvertUtil.covertBeanList(orgServiceDaoImpl.getParentOrgInfo(BeanConvertUtil.beanCovertMap(orgDto)), OrgDto.class);
        if(orgs == null){
            orgs = new ArrayList<>();
        }
        return orgs;
    }
    public IOrgServiceDao getOrgServiceDaoImpl() {
        return orgServiceDaoImpl;
    }