|
@ -73,18 +73,19 @@ public class PrescriptionDispensaryCodeService extends BaseService {
|
|
|
precriptionSql += " and p1.status = ? ";
|
|
|
params.add(status);
|
|
|
}else {
|
|
|
precriptionSql += " and p1.status in (?,?,?,?,?,?)" ;
|
|
|
precriptionSql += " and p1.status in (?,?,?,?,?)" ;
|
|
|
params.add(PrescriptionLog.PrescriptionLogStatus.wait_expressage.getValue());
|
|
|
params.add(PrescriptionLog.PrescriptionLogStatus.expressageing_error.getValue());
|
|
|
params.add(PrescriptionLog.PrescriptionLogStatus.expressageJGS.getValue());
|
|
|
params.add(PrescriptionLog.PrescriptionLogStatus.expressageing.getValue());
|
|
|
params.add(PrescriptionLog.PrescriptionLogStatus.expressage2hospital.getValue());
|
|
|
params.add(PrescriptionLog.PrescriptionLogStatus.finish.getValue());
|
|
|
// params.add(PrescriptionLog.PrescriptionLogStatus.finish.getValue());
|
|
|
}
|
|
|
if(timeType!=null){
|
|
|
precriptionSql += "and TIMESTAMPDIFF(SECOND, p2.create_Time, CURRENT_TIME) < ? ORDER BY p1.status desc ,p2.create_Time desc ";
|
|
|
precriptionSql += "AND TIMESTAMPDIFF(SECOND, p2.create_Time, CURRENT_TIME) < ? ";
|
|
|
params.add(timeLimit);
|
|
|
}
|
|
|
precriptionSql += " ORDER BY p1.status asc ,p2.create_Time desc ";
|
|
|
precriptionSql += " limit "+(page-1)*pagesize+","+pagesize;
|
|
|
List<Map<String, Object>> result = jdbcTemplate.queryForList(precriptionSql,params.toArray());
|
|
|
List<Map<String, Object>> result2 = new ArrayList<>();
|