|
@@ -35,7 +35,7 @@ public class DataTask implements ITask {
|
|
// TODO Auto-generated method stub
|
|
// TODO Auto-generated method stub
|
|
try {
|
|
try {
|
|
List<Exams> exams = Exams.dao.use("zskk").find(
|
|
List<Exams> exams = Exams.dao.use("zskk").find(
|
|
- "SELECT * FROM pacsonline.exams where exam_status=3 and institution_id='02400003' order by createdAt desc limit 30");
|
|
|
|
|
|
+ "SELECT * FROM pacsonline.exams where exam_status=3 and institution_id='02400001' order by createdAt desc limit 30");
|
|
for (Exams exams2 : exams) {
|
|
for (Exams exams2 : exams) {
|
|
try {
|
|
try {
|
|
// Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
|
|
// Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
|
|
@@ -80,7 +80,7 @@ public class DataTask implements ITask {
|
|
Map<String, String> data = new HashMap<String, String>();
|
|
Map<String, String> data = new HashMap<String, String>();
|
|
// 获取data数据
|
|
// 获取data数据
|
|
// 医院id
|
|
// 医院id
|
|
- data.put("hospital_id", "02400003");
|
|
|
|
|
|
+ data.put("hospital_id", "02400001");
|
|
// 影像所见
|
|
// 影像所见
|
|
data.put("description", record.getStr("description"));
|
|
data.put("description", record.getStr("description"));
|
|
// 意见建议
|
|
// 意见建议
|
|
@@ -276,14 +276,14 @@ public class DataTask implements ITask {
|
|
}
|
|
}
|
|
name = name.replace(" ", "");
|
|
name = name.replace(" ", "");
|
|
Doctors doctors = Doctors.dao.use("zskk").findFirst(
|
|
Doctors doctors = Doctors.dao.use("zskk").findFirst(
|
|
- "SELECT * FROM doctors where instr(?,realname) and institution_id='02400003' and realname <>''", name);
|
|
|
|
|
|
+ "SELECT * FROM doctors where instr(?,realname) and institution_id='02400001' and realname <>''", name);
|
|
if (doctors == null) {
|
|
if (doctors == null) {
|
|
Doctors newDoctors = new Doctors().use("zskk");
|
|
Doctors newDoctors = new Doctors().use("zskk");
|
|
newDoctors.setId(creatId());
|
|
newDoctors.setId(creatId());
|
|
newDoctors.setUsername("none");
|
|
newDoctors.setUsername("none");
|
|
newDoctors.setRealname(name);
|
|
newDoctors.setRealname(name);
|
|
newDoctors.setPassword("123456");
|
|
newDoctors.setPassword("123456");
|
|
- newDoctors.setInstitutionId("02400003");
|
|
|
|
|
|
+ newDoctors.setInstitutionId("02400001");
|
|
newDoctors.setCreatedAt(new Date());
|
|
newDoctors.setCreatedAt(new Date());
|
|
newDoctors.setUpdatedAt(new Date());
|
|
newDoctors.setUpdatedAt(new Date());
|
|
newDoctors.save();
|
|
newDoctors.save();
|