|
@ -82,9 +82,10 @@ public class PrescriptionDispensaryCodeService extends BaseService {
|
|
|
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<>();
|