he wei
2022-08-04 85b13344a3da1b0a1be605a4f5f33dd20f5a38a8
'lxw提交'
2个文件已修改
5 ■■■■■ 已修改文件
src/main/java/com/whyc/controller/ComponentController.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/ComponentMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/controller/ComponentController.java
@@ -17,12 +17,12 @@
    @Autowired
    private ComponentService service;
    @ApiOperation(value = "查询所有的散装件信息分页(带上关联的子件信息)")
    @ApiOperation(value = "查询所有的散装件信息分页(带上关联的子件信息,status状态不做处理))")
    @GetMapping("getAllComponent")
    public Response getAllComponent(@RequestParam int pageCurr, @RequestParam int pageSize){
        return service.getAllComponent(pageCurr,pageSize);
    }
    @ApiOperation(tags = "产品管理",value = "查询所有的散装件信息不分页(不包含被关联的散装件)")
    @ApiOperation(tags = "产品管理",value = "查询所有的散装件信息不分页(不包含被关联的散装件,status=1可用)")
    @GetMapping("getComponentWithoutSub")
    public Response getComponentWithoutSub(@RequestParam String parentModel, @RequestParam String subName){
        return service.getComponentWithoutSub(parentModel,subName);
src/main/resources/mapper/ComponentMapper.xml
@@ -35,7 +35,6 @@
    <select id="getAllComponent" resultMap="productBomList">
        select distinct * from  db_doc.tb_component
        where status=1
        order by id asc
    </select>
    <select id="selectProductBom"  resultType="com.whyc.pojo.ProductBom">