|
@ -963,8 +963,8 @@ public class SignWebService extends BaseService {
|
|
|
* @return
|
|
|
*/
|
|
|
public JSONObject getRenewYearCount(Long teamCode){
|
|
|
StringBuffer sql = new StringBuffer("SELECT t.sign_year labelCode,COUNT(1) amount " +
|
|
|
"FROM wlyy_sign_family t WHERE t.admin_team_code ='"+teamCode+"' AND t.end <=NOW() AND t.status=-4 AND sign_year IS NOT NULL GROUP BY t.sign_year DESC");
|
|
|
StringBuffer sql = new StringBuffer("SELECT t.sign_year labelCode,t.sign_year labelName,COUNT(1) amount " +
|
|
|
"FROM wlyy_sign_family t WHERE t.admin_team_code ="+teamCode+" AND t.status=-4 AND sign_year IS NOT NULL GROUP BY t.sign_year DESC");
|
|
|
List<Map<String,Object>> rs = jdbcTemplate.queryForList(sql.toString());
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("result",rs);
|
|
@ -975,12 +975,13 @@ public class SignWebService extends BaseService {
|
|
|
* 获取用户信息
|
|
|
* @return
|
|
|
*/
|
|
|
public JSONObject getOverDuePatients(String year,String doctorCode,Integer page,Integer pageSize){
|
|
|
public JSONObject getOverDuePatients(String year,Long teamCode,Integer page,Integer pageSize){
|
|
|
StringBuffer sql = new StringBuffer("SELECT IFNULL(year( from_days( datediff( now(), p.birthday))),'未知') age," +
|
|
|
"p.code,p.idcard,p.name,p.mobile,p.openid,p.phone,p.photo," +
|
|
|
"p.ssc,t.sign_type,p.sex,t.emer_mobile,t.expenses_time,t.expenses_status " +
|
|
|
"FROM wlyy_sign_family t ,wlyy_patient p " +
|
|
|
"WHERE t.patient = p.code AND t.doctor ='"+doctorCode+"' AND t.sign_year ='"+year+"' LIMIT "+page*pageSize+","+pageSize+";");
|
|
|
"t.patient code,t.idcard,t.name,t.mobile,t.openid," +
|
|
|
"t.ssc,t.sign_type signType,p.sex " +
|
|
|
" FROM wlyy_sign_family t " +
|
|
|
" LEFT JOIN wlyy_patient p ON t.patient = p.code " +
|
|
|
" WHERE t.admin_team_code ="+teamCode+" AND t.sign_year ='"+year+"' AND t.status =-4 LIMIT "+page*pageSize+","+pageSize);
|
|
|
List<Map<String,Object>> rs = jdbcTemplate.queryForList(sql.toString());
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("result",rs);
|