|
@ -307,8 +307,8 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
}
|
|
|
|
|
|
|
|
|
if (prescription != null && prescription.getStatus() == PrescriptionLog.PrescriptionLogStatus.wait_pay.getValue()) {
|
|
|
Long s = (prescription.getCreateTime().getTime() - new Date().getTime()) / 1000;
|
|
|
if (prescription!=null&&reviewed != null && prescription.getStatus() == PrescriptionLog.PrescriptionLogStatus.wait_pay.getValue()&&reviewed.getReviewedTime()!=null) {
|
|
|
Long s = (new Date().getTime()-reviewed.getReviewedTime().getTime()) / 1000;
|
|
|
//rs.put("time",s);
|
|
|
if (s > 172800) {
|
|
|
prescription.setStatus(PrescriptionLog.PrescriptionLogStatus.pay_outtime.getValue());
|
|
@ -1162,4 +1162,10 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
List<Map<String, Object>> rs = jdbcTemplate.queryForList(sql.toString());
|
|
|
return new JSONArray(rs);
|
|
|
}
|
|
|
|
|
|
public JSONArray getPhysicMinDose(String code) {
|
|
|
StringBuffer sql = new StringBuffer("SELECT t.min_dose AS minDose,t.physicCode FROM zy_iv_physic_dict t WHERE t.physic_code = ?");
|
|
|
List<Map<String, Object>> rs = jdbcTemplate.queryForList(sql.toString());
|
|
|
return new JSONArray(rs);
|
|
|
}
|
|
|
}
|