| | |
| | | } |
| | | |
| | | /** |
| | | * 查询生产工单 |
| | | * |
| | | * @param ids 生产工单主键 |
| | | * @return 生产工单 |
| | | */ |
| | | @Override |
| | | public OmProductionOrdeInfo selectOmProductionOrdeInfoByIds(Long[] ids) |
| | | { |
| | | return omProductionOrdeInfoMapper.selectOmProductionOrdeInfoByIds(ids); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<OmProductionOrdeInfo> selectOmProductionOrderListById(Long[] ids) |
| | | { |
| | | return omProductionOrdeInfoMapper.selectOmProductionOrderListById(ids); |
| | | } |
| | | |
| | | /** |
| | | * 查询生产工单列表 |
| | | * |
| | | * @param omProductionOrdeInfo 生产工单 |
| | |
| | | @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); |
| | | } |
| | | |
| | |
| | | public int insertOmProductionOrdeInfo(OmProductionOrdeInfo omProductionOrdeInfo) |
| | | { |
| | | omProductionOrdeInfo.setCreateTime(DateUtils.getNowDate()); |
| | | Integer streamNumber = omProductionOrdeInfoMapper.getMaxStreamNumber(); |
| | | omProductionOrdeInfo.setStreamNumber(String.valueOf(streamNumber+1)); |
| | | return omProductionOrdeInfoMapper.insertOmProductionOrdeInfo(omProductionOrdeInfo); |
| | | } |
| | | |