| | |
| | | |
| | | //æ¥æ¾å½åå¨è½¦è½´çº¿æ«ç«¯éè¦agvæ¬è¿ç车轴 |
| | | |
| | | List<Dt_CZInfo_mes> CZInfotlist = _task_CZInfoRepository.QueryData(x => x.CurrentStatue == "3" /*|| x.CurrentStatue == "4" || x.CurrentStatue == "5"*/ || x.CurrentStatue == "13"); |
| | | List<Dt_CZInfo_mes> CZInfotlist = _task_CZInfoRepository.QueryData(x => x.CurrentStatue == "4" || x.CurrentStatue == "5" ); |
| | | |
| | | if (CZInfotlist.Count >= 2) { return content.Error($"å·²æagv任塿£å¨è¿è¡ä¸ï¼ä¸å失败ï¼ï¼ï¼"); } |
| | | |
| | | Dt_CZInfo_mes CZInfot = CZInfotlist.FirstOrDefault(x => x.CurrentStatue == "3" || x.CurrentStatue == "13"); |
| | | if (CZInfot == null) { return content.Error($"æªæ¾å°ç°æè¾éçº¿å®æç车轴信æ¯"); } |
| | | Dt_CZInfo_mes CZInfot = null; |
| | | |
| | | if (input.RequestType == "888") |
| | | { |
| | | CZInfot = _task_CZInfoRepository.QueryFirst(x =>x.CZTM==input.PalletCode && (x.CurrentStatue == "11" || x.CurrentStatue == "12" || x.CurrentStatue == "13")); |
| | | if (CZInfot == null) { return content.Error($"æªæ¾å°ç°æè¾éçº¿å®æç车轴信æ¯"); } |
| | | } |
| | | else |
| | | { |
| | | CZInfot = _task_CZInfoRepository.QueryFirst(x => x.CurrentStatue == "3"); |
| | | if (CZInfot == null) { return content.Error($"æªæ¾å°ç°æè¾éçº¿å®æç车轴信æ¯"); } |
| | | } |
| | | |
| | | |
| | | CZInfot.CurrentStatue = "4"; |
| | | |