春风项目四线(合箱线、总装线)
wujian
2024-07-26 778d3d8b387ca0a8d1b51ef68f783fb0b407ef20
jcdm-main/src/main/java/com/jcdm/main/om/productionOrde/service/impl/OmProductionOrdeInfoServiceImpl.java
@@ -39,6 +39,18 @@
    }
    /**
     * 查询生产工单
     *
     * @param ids 生产工单主键
     * @return 生产工单
     */
    @Override
    public OmProductionOrdeInfo selectOmProductionOrdeInfoByIds(Long[] ids)
    {
        return omProductionOrdeInfoMapper.selectOmProductionOrdeInfoByIds(ids);
    }
    /**
     * 查询生产工单列表
     * 
     * @param omProductionOrdeInfo 生产工单
@@ -47,6 +59,11 @@
    @Override
    public List<OmProductionOrdeInfo> selectOmProductionOrdeInfoList(OmProductionOrdeInfo omProductionOrdeInfo)
    {
        if(omProductionOrdeInfo.getDateConditions()!=null){
            String[] conditions = omProductionOrdeInfo.getDateConditions();
            omProductionOrdeInfo.setStartTime(conditions[0]);
            omProductionOrdeInfo.setEndTime(conditions[1]);
        }
        return omProductionOrdeInfoMapper.selectOmProductionOrdeInfoList(omProductionOrdeInfo);
    }
@@ -60,8 +77,6 @@
    public int insertOmProductionOrdeInfo(OmProductionOrdeInfo omProductionOrdeInfo)
    {
        omProductionOrdeInfo.setCreateTime(DateUtils.getNowDate());
      /*  Integer streamNumber = omProductionOrdeInfoMapper.getMaxStreamNumber();*/
       /* omProductionOrdeInfo.setStreamNumber(String.valueOf(streamNumber+1));*/
        return omProductionOrdeInfoMapper.insertOmProductionOrdeInfo(omProductionOrdeInfo);
    }