|
@ -202,10 +202,10 @@ public class BaseServiceNewsService {
|
|
|
|
|
|
String sql = "SELECT p.id,p.`name`,p.address,p.photo,p.mobile,p.lat_lon latLon,sex,idcard,archive_type type,p.pad_imei,p.openid " +
|
|
|
" from base_patient p " +
|
|
|
"WHERE p.del =1 and p.sign_status=0 "+filter+" limit "+page*size+","+size;
|
|
|
"WHERE p.del =1 and p.archive_type=1 and p.sign_status=0 "+filter+" limit "+page*size+","+size;
|
|
|
String sqlCount = "SELECT count(p.id) " +
|
|
|
" from base_patient p " +
|
|
|
"WHERE p.del =1 and p.sign_status=0 "+filter ;
|
|
|
"WHERE p.del =1 and p.archive_type=1 and p.sign_status=0 "+filter ;
|
|
|
Long count = jdbcTemplate.queryForObject(sqlCount,Long.class);
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
|
for (Map<String,Object> map:list){
|