MES.Service/service/QC/XJService.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
MESApplication/Controllers/QC/XJController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
MES.Service/service/QC/XJService.cs
@@ -166,12 +166,19 @@ } public List<QsQaItemXj01> setJYItem(string itemNo) public List<QsQaItemXj01> setJYItem(string itemNo, string lineNo) { var db = SqlSugarHelper.GetInstance(); //根据线体编号获取工序ID decimal? procid = db.Queryable<MesLine>().Where(s => s.LineNo == lineNo).Select(s => s.ProcId).First(); if (procid == null) { procid = 99999999; }; var count = db.Queryable<MesQa>().Where(s => s.QsType == "2" && s.ItemNo == itemNo && s.Fsubmit == 1).Count(); && s.ItemNo == itemNo && s.Fsubmit == 1 && s.procid == procid).Count(); if (count <= 0) return new List<QsQaItemXj01>(); MESApplication/Controllers/QC/XJController.cs
@@ -165,11 +165,12 @@ public ResponseResult setJYItem([FromBody] JObject data) { var itemNo = data["itemNo"].ToString(); var lineNo = data["lineNo"]?.ToString(); try { dynamic resultInfos = new ExpandoObject(); var tbBillList = new XJService().setJYItem(itemNo); new XJService().setJYItem(itemNo, lineNo); resultInfos.tbBillList = tbBillList; return new ResponseResult {