|
@ -35,7 +35,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
|
* Created by Trick on 2017/7/25.
|
|
|
* Created Trick on 2017/7/25.
|
|
|
*/
|
|
|
@Service
|
|
|
@Transactional
|
|
@ -141,7 +141,8 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
" AND p.`status` in ("+states+")";
|
|
|
List<Map<String,Object>> rs = jdbcTemplate.queryForList(sql);
|
|
|
if(rs!=null&&rs.size()>0){
|
|
|
return (Integer) rs.get(0).get("count");
|
|
|
Long r = (Long) rs.get(0).get("count");
|
|
|
return r.intValue();
|
|
|
}
|
|
|
return 0;
|
|
|
}
|
|
@ -510,7 +511,9 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
" pr.`status`, " +
|
|
|
" pr.`code`, " +
|
|
|
" LEFT(pr.create_time,19) AS createTime, " +
|
|
|
" pr.doctor " +
|
|
|
" pr.doctor, " +
|
|
|
" pr.min_drug_day AS minDrugDay," +
|
|
|
" pr.pres_create_time AS presCreateTime" +
|
|
|
" FROM " +
|
|
|
" wlyy_prescription pr " +
|
|
|
" LEFT JOIN wlyy_patient p ON pr.patient = p.`code` ");
|