whycxzp
2022-08-17 8a935b1627f1ffdbe222ad9b156c8e9e8573a9c7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.whyc.service;
 
import com.whyc.dto.Response;
import com.whyc.mapper.ProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service
public class ProductService {
    @Autowired(required = false)
    private ProductMapper mapper;
    //根据物料编码查询所有包含该物料的产品信息
    public Response getProductByMaterial(String subCode) {
        List list=mapper.getProductByMaterial(subCode);
        return new Response().setII(1,list.size()>0?true:false,list,"");
    }
}