| | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.jcdm.common.core.domain.AjaxResult; |
| | | import com.jcdm.common.utils.DateUtils; |
| | | import com.jcdm.main.om.productionOrde.domain.OmProductionOrdeInfo; |
| | | import com.jcdm.main.om.productionOrde.mapper.OmProductionOrdeInfoMapper; |
| | | import com.jcdm.main.om.productionOrde.service.IOmProductionOrdeInfoService; |
| | | import com.jcdm.main.restful.factoryMes.service.RestfulService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | * @date 2023-12-11 |
| | | */ |
| | | @Service |
| | | public class OmProductionOrdeInfoServiceImpl implements IOmProductionOrdeInfoService |
| | | public class OmProductionOrdeInfoServiceImpl extends ServiceImpl<OmProductionOrdeInfoMapper,OmProductionOrdeInfo> implements IOmProductionOrdeInfoService |
| | | { |
| | | @Autowired |
| | | private OmProductionOrdeInfoMapper omProductionOrdeInfoMapper; |
| | |
| | | omProductionOrdeInfoService.updateOmProductionOrdeInfo(currentOrdeInfos.get(0)); |
| | | return AjaxResult.success("移动成功"); |
| | | } |
| | | |
| | | @Override |
| | | public void overrideSaveBatch(List<OmProductionOrdeInfo> omProductionOrdeInfoList) { |
| | | try { |
| | | this.saveBatch(omProductionOrdeInfoList); |
| | | }catch (Exception e){ |
| | | return; |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public AjaxResult receivingWorkOrders() { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public AjaxResult trolleyYardBinDing(OmProductionOrdeInfo omProductionOrdeInfo) { |
| | | OmProductionOrdeInfo one = omProductionOrdeInfoService.getOne(new LambdaQueryWrapper<OmProductionOrdeInfo>().eq(OmProductionOrdeInfo::getProductNum, omProductionOrdeInfo.getProductNum())); |
| | | one.setTrolleyYard(omProductionOrdeInfo.getTrolleyYard()); |
| | | omProductionOrdeInfoService.saveOrUpdate(one); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @Override |
| | | public AjaxResult getCarCodeSize(OmProductionOrdeInfo omProductionOrdeInfo) { |
| | | // omProductionOrdeInfo. |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public AjaxResult findBytrolleyYardGetOne(OmProductionOrdeInfo omProductionOrdeInfo) { |
| | | String str = ""; |
| | | OmProductionOrdeInfo one = omProductionOrdeInfoService.getOne(new LambdaQueryWrapper<OmProductionOrdeInfo>().eq(OmProductionOrdeInfo::getTrolleyYard, omProductionOrdeInfo.getTrolleyYard())); |
| | | if(one == null){ |
| | | str = "2"; |
| | | }else { |
| | | str = one.getProductNum(); |
| | | } |
| | | return AjaxResult.success(str); |
| | | } |
| | | } |