|
|
@@ -103,8 +103,11 @@ public class SynaServiceImpl implements SynaService {
|
|
|
|
|
|
private POS getPOS(Integer id){
|
|
|
POS pos =baseDao.getJdbcTemplate().queryForObject("select * from POSREPORT_SYNA where ps_id=?", new BeanPropertyRowMapper<POS>(POS.class), id);
|
|
|
- List<POSDetail> detail = baseDao.getJdbcTemplate().query("select * FROM posreport_syna_det WHERE PD_PsID=? ORDER BY PD_DETNO",
|
|
|
+ List<POSDetail> detail = baseDao.getJdbcTemplate().query("select * FROM posreport_syna_det WHERE PD_PsID=? ORDER BY PD_DETNO",
|
|
|
new BeanPropertyRowMapper<POSDetail>(POSDetail.class), id);
|
|
|
+ /*测试用 否则数据太多 不好核对
|
|
|
+ List<POSDetail> detail = baseDao.getJdbcTemplate().query("select * FROM (select * from posreport_syna_det WHERE PD_PsID=? ORDER BY PD_DETNO) where rownum<5",
|
|
|
+ new BeanPropertyRowMapper<POSDetail>(POSDetail.class), id);*/
|
|
|
pos.setItems(detail);
|
|
|
return pos;
|
|
|
}
|