فهرست منبع

修改测试类BUG

louhr 5 سال پیش
والد
کامیت
652698da4e
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      kernel/src/main/java/com/lantone/qc/kernel/web/controller/QCTestController.java

+ 4 - 1
kernel/src/main/java/com/lantone/qc/kernel/web/controller/QCTestController.java

@@ -37,7 +37,7 @@ public class QCTestController {
 
     @ApiOperation(value = "质控测试接口,无需token信息", notes = "")
     @PostMapping("rec_test")
-    public Response<OutputInfo> extract(String caseIds, int length, String cid) {
+    public Response<OutputInfo> extract(String caseIds, int length, String cid, String txtId) {
         Response response = new Response();
         PropertiesUtil propertiesUtil = new PropertiesUtil("kernel.properties");
 
@@ -60,6 +60,9 @@ public class QCTestController {
             if (!StringUtils.isNotEmpty(caseIds)) {
                 sql = sql + " and entry.cases_id in (" + caseIds + ")";
             }
+            if (!StringUtils.isNotEmpty(txtId)) {
+                sql = sql + " and qi.id = " + txtId;
+            }
             sql = sql + " order by qi.id";
 
             Map<String, String> map = new HashMap<>();