admin
2024-08-04 517d1ae8b37b25228a771556cdf46b422b8b5bf5
jcdm-main/src/main/java/com/jcdm/main/om/productionOrde/controller/OmProductionOrdeInfoController.java
@@ -66,6 +66,21 @@
    private MiloService miloService;
    /**
     * 根据总成码查询工单
     */
    @GetMapping("/getProductionOrdeOneBySfcCode")
    public AjaxResult getProductionOrdeOneBySfcCode(OmProductionOrdeInfo omProductionOrdeInfo)
    {
        OmProductionOrdeInfo ordeInfo = omProductionOrdeInfoService.getOne(new LambdaQueryWrapper<OmProductionOrdeInfo>()
                .eq(OmProductionOrdeInfo::getProductNum, omProductionOrdeInfo.getProductNum()));
        if(ObjectUtil.isNotNull(ordeInfo)){
            return AjaxResult.success(ordeInfo);
        }else {
            return AjaxResult.error("未查询到工单!");
        }
    }
    /**
     * 查询生产工单列表
     */
    @PreAuthorize("@ss.hasPermi('om:productionOrde:list')")