This commit is contained in:
linfso 2024-04-29 18:23:21 +08:00
parent 1317760d14
commit c83d887f32

View File

@ -99,9 +99,13 @@ public class EmisBaseService {
* @return
*/
public EmisTransLine getTransLineByCode(String code) {
QueryWrapper<EmisTransLine> queryWrapper = new QueryWrapper();
queryWrapper.eq("line_code", code);
return emisTransLineMapper.selectOne(queryWrapper);
EmisTransLine queryEmisTransLine = new EmisTransLine();
queryEmisTransLine.setLineCode(code);
List<EmisTransLine> list=emisTransLineMapper.selectEmisTransLineList(queryEmisTransLine);
if(!CollectionUtils.isEmpty(list)) {
return list.get(0);
}
return null;
}
/**
@ -110,9 +114,13 @@ public class EmisBaseService {
* @return
*/
public EmisTransProduct getTransProductByCode(String code) {
QueryWrapper<EmisTransProduct> queryWrapper = new QueryWrapper();
queryWrapper.eq("prod_code", code);
return emisTransProductMapper.selectOne(queryWrapper);
EmisTransProduct emisTransProduct = new EmisTransProduct();
emisTransProduct.setProdCode(code);
List<EmisTransProduct> list=emisTransProductMapper.selectEmisTransProductList(emisTransProduct);
if(!CollectionUtils.isEmpty(list)) {
return list.get(0);
}
}
/**