|
@@ -40,7 +40,7 @@ public class QCTestController {
|
|
|
|
|
|
@ApiOperation(value = "质控测试接口,无需token信息", notes = "")
|
|
@ApiOperation(value = "质控测试接口,无需token信息", notes = "")
|
|
@PostMapping("rec_test")
|
|
@PostMapping("rec_test")
|
|
- public Response<OutputInfo> extract(String caseIds, int length, String cid, String txtId) {
|
|
|
|
|
|
+ public Response<OutputInfo> extract(String caseIds, int length, String cid, String txtId, String hospitalId) {
|
|
Response response = new Response();
|
|
Response response = new Response();
|
|
PropertiesUtil propertiesUtil = new PropertiesUtil("kernel.properties");
|
|
PropertiesUtil propertiesUtil = new PropertiesUtil("kernel.properties");
|
|
|
|
|
|
@@ -54,15 +54,18 @@ public class QCTestController {
|
|
List<Map<String, Object>> updates = new ArrayList<>();
|
|
List<Map<String, Object>> updates = new ArrayList<>();
|
|
List<Map<String, Object>> wheres = new ArrayList<>();
|
|
List<Map<String, Object>> wheres = new ArrayList<>();
|
|
try {
|
|
try {
|
|
- String textSql = "select id, text from qc_inputcases ";
|
|
|
|
|
|
+ String textSql = "select id, text from qc_inputcases where 1 = 1 ";
|
|
if (StringUtils.isNotEmpty(txtId)) {
|
|
if (StringUtils.isNotEmpty(txtId)) {
|
|
- textSql = textSql + " where id >= " + txtId;
|
|
|
|
|
|
+ textSql = textSql + " and id >= " + txtId;
|
|
|
|
+ }
|
|
|
|
+ if (StringUtils.isNotEmpty(hospitalId)) {
|
|
|
|
+ textSql = textSql + " and hospital_id = " + hospitalId;
|
|
}
|
|
}
|
|
textSql = textSql + " order by id limit 0, " + length;
|
|
textSql = textSql + " order by id limit 0, " + length;
|
|
//更新pass状态
|
|
//更新pass状态
|
|
mysqlJdbc.update("update qc_inputcases_mapping_all qim, " +
|
|
mysqlJdbc.update("update qc_inputcases_mapping_all qim, " +
|
|
"(" + textSql + ") qi\n" +
|
|
"(" + textSql + ") qi\n" +
|
|
- "set qim.pass = 0 where qim.text_id = qi.id");
|
|
|
|
|
|
+ "set qim.check_label = 0 where qim.text_id = qi.id");
|
|
|
|
|
|
st = conn.createStatement();
|
|
st = conn.createStatement();
|
|
//测试数据查询
|
|
//测试数据查询
|
|
@@ -151,9 +154,9 @@ public class QCTestController {
|
|
Map<String, Object> m = new HashMap<>();
|
|
Map<String, Object> m = new HashMap<>();
|
|
Map<String, Object> w = new HashMap<>();
|
|
Map<String, Object> w = new HashMap<>();
|
|
if (outputInfo.getResult().get(entry.getKey()) == null) {
|
|
if (outputInfo.getResult().get(entry.getKey()) == null) {
|
|
- m.put("pass", "-2");
|
|
|
|
|
|
+ m.put("check_label", "-2");
|
|
} else {
|
|
} else {
|
|
- m.put("pass", outputInfo.getResult().get(entry.getKey()).get("status"));
|
|
|
|
|
|
+ m.put("check_label", outputInfo.getResult().get(entry.getKey()).get("status"));
|
|
}
|
|
}
|
|
w.put("id", catalogue_map.get(entry.getKey()));
|
|
w.put("id", catalogue_map.get(entry.getKey()));
|
|
|
|
|