3 changed files with 50 additions and 5 deletions
@ -1,10 +1,19 @@ |
|||
package cn.chjyj.szwh.mapper; |
|||
|
|||
import cn.chjyj.szwh.bean.GoodsSource; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 商品来源 |
|||
*/ |
|||
@Component |
|||
public interface GoodsSourceMapper { |
|||
/** |
|||
* 根据授权编码查询用户信息 |
|||
* @param goodsIsli |
|||
* @return |
|||
*/ |
|||
List<GoodsSource> getGoodsSourceByIsli(String goodsIsli); |
|||
} |
|||
|
|||
@ -0,0 +1,36 @@ |
|||
package cn.chjyj.szwh.mapper; |
|||
|
|||
import cn.chjyj.szwh.bean.GoodsSource; |
|||
import org.junit.jupiter.api.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.SpringRunner; |
|||
|
|||
import javax.xml.ws.soap.Addressing; |
|||
|
|||
import java.util.List; |
|||
|
|||
import static org.junit.jupiter.api.Assertions.*; |
|||
|
|||
/** |
|||
* author: iege@163.com |
|||
* create: 2022/7/18 15:05 |
|||
* copyright: All Rights Are Reseved (C) xyiege.com |
|||
* desc: |
|||
*/ |
|||
@SpringBootTest |
|||
@RunWith(SpringRunner.class) |
|||
class GoodsSourceMapperTest { |
|||
@Autowired |
|||
private GoodsSourceMapper goodsSourceMapper; |
|||
|
|||
@Test |
|||
void getGoodsSourceByIsli() { |
|||
String gisl="010007-00000000187199999999-4"; |
|||
List<GoodsSource> gslist = goodsSourceMapper.getGoodsSourceByIsli(gisl); |
|||
for(GoodsSource gs:gslist){ |
|||
System.out.println(gs.getRegistrant()); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue