|
@@ -1,11 +1,14 @@
|
|
|
package com.diagbot.util;
|
|
|
|
|
|
import com.diagbot.vo.his.FeedbackHosVO;
|
|
|
+import com.google.common.base.Joiner;
|
|
|
import com.google.common.collect.Lists;
|
|
|
|
|
|
import java.sql.*;
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
import java.util.ResourceBundle;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
public class PushFeedbackConn {
|
|
|
private static final String DRIVER = getValue("jdbc.driverClassName1");
|
|
@@ -137,7 +140,11 @@ public class PushFeedbackConn {
|
|
|
"values(?,?,?,?,to_date(?,'yyyy-mm-dd hh24:mi:ss'),?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
|
|
|
state.setString(1, patientId);
|
|
|
state.setString(2, visitId);
|
|
|
- state.setString(3,feedbackHosVO.getQcresultDetailMsg());
|
|
|
+ if(feedbackHosVO.getOperationType().equals("4")){
|
|
|
+ state.setString(3,feedbackHosVO.getExplainInfo());
|
|
|
+ }else{
|
|
|
+ state.setString(3,feedbackHosVO.getQcresultDetailMsg());
|
|
|
+ }
|
|
|
state.setString(4,"评价质控");
|
|
|
state.setString(5, DateUtil.formatDateTime(DateUtil.now()));
|
|
|
state.setString(6,Long.toString(feedbackHosVO.getId()));
|
|
@@ -291,11 +298,12 @@ public class PushFeedbackConn {
|
|
|
|
|
|
public List<FeedbackHosVO> statusQuery(FeedbackHosVO feedbackHosVO){
|
|
|
List<FeedbackHosVO> statusList= Lists.newLinkedList();
|
|
|
+ String ret="'"+feedbackHosVO.getIds().replace(",", "','")+"'";
|
|
|
try {
|
|
|
connection = getConnection();
|
|
|
connection.setAutoCommit(false);//事物开始
|
|
|
String sql =" select TOPIC_ID,MSG_STATUS from MEDICAL_QC_MSG ";
|
|
|
- sql+=" where DETAILCODE in("+feedbackHosVO.getIds()+") or TOPIC_ID in("+ feedbackHosVO.getIds() +")";
|
|
|
+ sql+=" where DETAILCODE in("+ret+") or TOPIC_ID in("+ ret +")";
|
|
|
rs =this.Query(sql, null);
|
|
|
while(rs.next()){
|
|
|
FeedbackHosVO hosVO=new FeedbackHosVO();
|