啊鑫
2025-07-29 c53a461aef16902ca78cdb7bd0c62305e2fee809
Update OQC search API functionality

- Add item code and item name search support in MesOqcItemsDetect02Manager
- Enhanced GetPage method with fuzzy search for ItemNo and ItemName
- Improved response format in MesOqcItemsDetect02Controller to match API documentation
已修改2个文件
10 ■■■■ 文件已修改
MES.Service/service/QC/MesOqcItemsDetect02Manager.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MESApplication/Controllers/QC/MesOqcItemsDetect02Controller.cs 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/QC/MesOqcItemsDetect02Manager.cs
@@ -46,6 +46,12 @@
                !"未完成".Equals(queryObj.result),
                (a, b, c, d, e) => a.FcheckResu != null && a.Fsubmit == 1)
            .WhereIF(id > 0, (a, b, c, d, e) => a.Id == id)
            .WhereIF(StringUtil.IsNotNullOrEmpty(queryObj.createUser),
                (a, b, c, d, e) => c.Fname.Contains(queryObj.createUser))
            .WhereIF(StringUtil.IsNotNullOrEmpty(queryObj.ItemNo),
                (a, b, c, d, e) => b.ItemNo.Contains(queryObj.ItemNo))
            .WhereIF(StringUtil.IsNotNullOrEmpty(queryObj.ItemName),
                (a, b, c, d, e) => b.ItemName.Contains(queryObj.ItemName))
            .OrderByDescending((a, b, c, d, e) => a.Id)
            .Select((a, b, c, d, e) => new MesOqcItemsDetect02()
            {
MESApplication/Controllers/QC/MesOqcItemsDetect02Controller.cs
@@ -219,10 +219,8 @@
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            var (item, totalCount) = m.GetPage(queryObj);
            var tbBillList =
                resultInfos.tbBillList = item;
            var tbBillList  = item;
            return new ResponseResult
            {
                status = 0,