|
@ -6634,12 +6634,12 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
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);
|
|
|
List<Map<String, Object>> maps = jdbcTemplate.queryForList(sql.toString());
|
|
|
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());
|
|
|
logger.info("sql="+sql.toString());
|
|
|
logger.info("countSql="+countSql.toString());
|
|
|
return PageEnvelop.getSuccessListWithPage(IotRequestMapping.Common.message_success_find, maps,page,size,count);
|
|
|
return PageEnvelop.getSuccessListWithPage(IotRequestMapping.Common.message_success_find, list,page,size,count);
|
|
|
}
|
|
|
|
|
|
|