当前位置: 首页 > wzjs >正文

大庆做网站公司保健品的营销及推广方案

大庆做网站公司,保健品的营销及推广方案,学销售去哪个学校好,阿里云应用镜像wordpress场景 在IDEA中的SpringBoot项目使用Junit进行单元测试。 1.使用Test标明的方法不能有参数和返回值。 2.使用Autowired实现自动注入时需要在测试类上添加注解。 实现 在test目录下新建单元测试类 package com.ws.test.common;import com.baomidou.mybatisplus.core.conditi…

 场景

在IDEA中的SpringBoot项目使用Junit进行单元测试。

1.使用@Test标明的方法不能有参数和返回值。

2.使用@Autowired实现自动注入时需要在测试类上添加注解。

实现

在test目录下新建单元测试类

package com.ws.test.common;import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ws.sys.entity.SysEnterpriseOrg;
import com.ws.sys.mapper.SysEnterpriseOrgMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;import java.util.ArrayList;
import java.util.List;@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
@WebAppConfiguration
public class diguiTest  {@Autowiredprivate SysEnterpriseOrgMapper sysEnterpriseOrgMapper;List<Long> result = new ArrayList<Long>();@Testpublic void test(){List<Long> canshu = new ArrayList<Long>();canshu.add(1l);selectChild(canshu);for (Long s :result) {System.out.print(s);}}public void selectChild(List<Long> ids){List<Long> temp= new ArrayList<Long>();List<SysEnterpriseOrg> sysEnterpriseOrgList = new ArrayList<SysEnterpriseOrg>();for (Long id :ids) {//查询子级架构QueryWrapper<SysEnterpriseOrg> sysEnterpriseOrgChildQueryWrapper = new QueryWrapper<SysEnterpriseOrg>();sysEnterpriseOrgChildQueryWrapper.eq("pid",id.toString());sysEnterpriseOrgList= sysEnterpriseOrgMapper.selectList(sysEnterpriseOrgChildQueryWrapper);for (SysEnterpriseOrg s:sysEnterpriseOrgList) {temp.add(s.getId());result.add(s.getId());}}if(temp.size()!=0&&temp!=null)selectChild(temp);}
}

http://www.dtcms.com/wzjs/156361.html

相关文章:

  • 徐汇网站建设公司武汉seo系统
  • 太原响应式网站建设企业网站模板下载
  • 深圳宝安医院的网站建设如何拿高权重网站外链进行互换?
  • 城市绿化建设英文网站seo百科大全
  • 网页制作和网站开发实验报告南宁优化网站网络服务
  • html5高端网站建设重庆网站建设与制作
  • 做阿里巴巴怎么进公司网站武汉网站seo推广
  • 制作网制作网站建设的公司营销渠道的三个类型
  • 微网站功能介绍seo学校培训班
  • 湖北做网站公司一级域名二级域名三级域名的区别
  • 海口装饰设计网站建设色盲和色弱的区别
  • 重庆联通的网站建设怎么样进行网络推广
  • 网站策划内容杭州关键词优化外包
  • 黄岩网站建设百度平台订单查询
  • 海南网站优化网络营销专业是干嘛的
  • 我的世界做壁纸的网站广州线上教学
  • wordpress模板位置广州seo招聘
  • 茂名网站建设咨询爱网站关键词挖掘
  • 宁远做网站msoer搜索引擎优化自然排名的优点
  • 邢台专业做网站价格自己如何优化网站排名
  • 网站关键词做的越多越好吗百度网络推广营销
  • 葡萄牙语网站设计哪家好免费建立个人网站
  • 合肥最好的网站建设公司排名网站百度权重查询
  • wordpress4.7.4 for sae搜索引擎优化英文简称为
  • 商标与logo的区别优化神马排名软件
  • 临沂做网站的西安网站建设公司排名
  • 网站开发收费产品市场调研怎么做
  • 做网站一般都选哪家百度推广河南总部
  • 长宁区网站建设广东seo快速排名
  • 公司设计网站有哪些百度搜索引擎api