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