| | |
| | | package org.jeecg.modules.dnc.controller; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.modules.dnc.entity.DocInfo; |
| | | import org.jeecg.modules.dnc.entity.ProductInfo; |
| | | import org.jeecg.modules.dnc.request.TreeInfoRequest; |
| | | import org.jeecg.modules.dnc.response.CommonCode; |
| | | import org.jeecg.modules.dnc.response.CommonGenericTree; |
| | | import org.jeecg.modules.dnc.response.QueryListResponseResult; |
| | | import org.jeecg.modules.dnc.response.ResponseResult; |
| | | import org.jeecg.modules.dnc.service.IProductInfoService; |
| | | import org.jeecg.modules.dnc.service.IProductMixService; |
| | | import org.jeecg.modules.dnc.ucenter.Department; |
| | | import org.jeecg.modules.dnc.ucenter.UserDepartExt; |
| | | import org.jeecg.modules.dnc.utils.ValidateUtil; |
| | | import org.jeecg.modules.system.entity.MdcProduction; |
| | |
| | | } |
| | | return Result.error("删除失败!"); |
| | | } |
| | | |
| | | /** |
| | | * 通过零件号、材质等查询对应电子样板 |
| | | * @param treeInfoRequest |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "零件信息表-通过零件号、材质等查询对应电子样板") |
| | | @ApiOperation(value = "零件信息表-通过零件号、材质等查询对应电子样板", notes = "零件信息表-通过零件号、材质等查询对应电子样板") |
| | | @GetMapping("/query") |
| | | public Result<?> queryPartsInfo(TreeInfoRequest treeInfoRequest) { |
| | | List<DocInfo> list = productInfoService.getByTreeOtherFileInfo(treeInfoRequest); |
| | | if (list == null) |
| | | list = Collections.emptyList(); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | /** |
| | | * 通过代号、名称、材质等查询对应NC文件 |
| | | * @param treeInfoRequest |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "零件信息表-通过代号、名称、材质等查询对应NC文件") |
| | | @ApiOperation(value = "零件信息表-通过代号、名称、材质等查询对应NC文件", notes = "零件信息表-通过代号、名称、材质等查询对应NC文件") |
| | | @GetMapping("/query/nc") |
| | | public Result<?> queryOtherFileInfo(TreeInfoRequest treeInfoRequest) { |
| | | List<DocInfo> list = productInfoService.getByTreeNcFileInfo(treeInfoRequest); |
| | | if (list == null) |
| | | list = Collections.emptyList(); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | } |