| | |
| | | @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); |
| | | } |
| | | |