|
@ -6633,7 +6633,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
sql.append(" and b.status IN(20,21,30,31,32,100,101)");
|
|
|
countSql.append(" and b.status IN(20,21,30,31,32,100,101) ");
|
|
|
}
|
|
|
sql.append(" order by b.prescribe_time limit ").append((page-1)*size).append(",").append(size);
|
|
|
sql.append(" order by b.prescribe_time DESC limit ").append((page-1)*size).append(",").append(size);
|
|
|
List<WlyyPrescriptionVO> list = jdbcTemplate.query(sql.toString(), new BeanPropertyRowMapper<>(WlyyPrescriptionVO.class));
|
|
|
List<Map<String, Object>> mapList = jdbcTemplate.queryForList(countSql.toString());
|
|
|
long count = Long.parseLong(mapList.get(0).get("count").toString());
|