|
@@ -14,6 +14,7 @@ import com.diagbot.util.DateUtil;
|
|
|
import com.diagbot.util.EntityUtil;
|
|
|
import com.diagbot.util.ReadProperties;
|
|
|
import com.diagbot.util.TZDBConn;
|
|
|
+import com.diagbot.vo.OldInfoVo;
|
|
|
import com.diagbot.vo.data.AHomePageIngVO;
|
|
|
import com.diagbot.vo.data.AHomePageVO;
|
|
|
import com.diagbot.vo.data.XyHomePageVo;
|
|
@@ -38,6 +39,7 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
import java.text.ParsePosition;
|
|
|
import java.text.SimpleDateFormat;
|
|
@@ -149,17 +151,23 @@ public class ViewFacade {
|
|
|
/**
|
|
|
* 根据住院号来拉取历史数据
|
|
|
*
|
|
|
- * @param behospitalCode
|
|
|
+ * @param
|
|
|
*/
|
|
|
- public String executeOldDataOne(String behospitalCode) {
|
|
|
- //分割住院号与住院次数
|
|
|
- String hospitalCode = behospitalCode.substring(0, behospitalCode.indexOf("_"));
|
|
|
- String hospitalNum = behospitalCode.substring(hospitalCode.length() + 1, behospitalCode.length());
|
|
|
- //获取入院登记表中的信息
|
|
|
- String infoSql = "select * from admission_pat_regist where behospitalCode = '" + hospitalCode + "' and behospitalNum = '" + hospitalNum + "'";
|
|
|
- List<BehospitalInfo> behospitalInfoList = this.getInfo(infoSql);
|
|
|
- this.a(behospitalInfoList);
|
|
|
- return "true";
|
|
|
+ public String executeOldDataOne(OldInfoVo oldInfoVo) {
|
|
|
+ try{
|
|
|
+ String behospitalCode=oldInfoVo.getBehospitalCode();
|
|
|
+ //分割住院号与住院次数
|
|
|
+ String hospitalCode = behospitalCode.substring(0, behospitalCode.indexOf("_"));
|
|
|
+ String hospitalNum = behospitalCode.substring(hospitalCode.length() + 1, behospitalCode.length());
|
|
|
+ //获取入院登记表中的信息
|
|
|
+ String infoSql = "select * from admission_pat_regist where behospitalCode = '" + hospitalCode + "' and behospitalNum = '" + hospitalNum + "'";
|
|
|
+ List<BehospitalInfo> behospitalInfoList = this.getInfo(infoSql);
|
|
|
+ this.a(behospitalInfoList);
|
|
|
+ return "true";
|
|
|
+ }catch (Exception e){
|
|
|
+ return e.getMessage();
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -579,7 +587,9 @@ public class ViewFacade {
|
|
|
aMedicalRecordFacade.remove(new QueryWrapper<MedicalRecord>()
|
|
|
.eq("behospital_code", code)
|
|
|
.eq("hospital_id", Long.valueOf("35")));
|
|
|
- this.executeOldDataOne(code);
|
|
|
+ OldInfoVo oldInfoV =new OldInfoVo();
|
|
|
+ oldInfoV.setBehospitalCode(code);
|
|
|
+ this.executeOldDataOne(oldInfoV);
|
|
|
aMedAbnormalInfoFacade.saveAbnormalInfo("补传数据成功", code, "视图文书数量为" + count, "本地数量为" + myCount, "");
|
|
|
}
|
|
|
}
|