|
@ -1138,6 +1138,22 @@ public class PrescriptionInfoService extends BaseService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 判断丹田
|
|
|
|
* @param patient
|
|
|
|
* @param currentDay
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public String checkPre(String patient,String currentDay){
|
|
|
|
StringBuffer sql = new StringBuffer("SELECT code from wlyy_prescription WHERE patient = ? and `status`> "+PrescriptionLog.PrescriptionLogStatus.revieweding.getValue()+" and create_time>? and jw_pay_status = '0'");
|
|
|
|
List<Map<String, Object>> mp = jdbcTemplate.queryForList(sql.toString(), patient,currentDay);
|
|
|
|
if (mp != null && mp.size() > 0) {
|
|
|
|
return "0";
|
|
|
|
} else {
|
|
|
|
return "1";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
public String presCheckStateObj(String code) {
|
|
public String presCheckStateObj(String code) {
|
|
StringBuffer sql = new StringBuffer(" SELECT pr.code FROM wlyy_prescription pr JOIN wlyy_prescription_reviewed r ON pr.code = r.prescription_code WHERE pr.parent_code = ? AND pr.status >= " + PrescriptionLog.PrescriptionLogStatus.revieweding.getValue() + " AND pr.status < " + PrescriptionLog.PrescriptionLogStatus.wait_pay.getValue());
|
|
StringBuffer sql = new StringBuffer(" SELECT pr.code FROM wlyy_prescription pr JOIN wlyy_prescription_reviewed r ON pr.code = r.prescription_code WHERE pr.parent_code = ? AND pr.status >= " + PrescriptionLog.PrescriptionLogStatus.revieweding.getValue() + " AND pr.status < " + PrescriptionLog.PrescriptionLogStatus.wait_pay.getValue());
|
|
List<Map<String, Object>> mp = jdbcTemplate.queryForList(sql.toString(), code);
|
|
List<Map<String, Object>> mp = jdbcTemplate.queryForList(sql.toString(), code);
|