|
@ -695,7 +695,7 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
}
|
|
|
}
|
|
|
if(StringUtils.isNotBlank(teamCode)){
|
|
|
pre_sql.append(" AND p.admin_team_id = ? ");
|
|
|
pre_sql.append(" AND pr.admin_team_id = ? ");
|
|
|
param.add(teamCode);
|
|
|
}
|
|
|
if(StringUtils.isNotBlank(nameKey)){
|
|
@ -1051,7 +1051,7 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
* @return 0 审核中,1为处理完成
|
|
|
*/
|
|
|
public String presCheckState(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+" AND pr.status < "+PrescriptionLog.PrescriptionLogStatus.wait_pay);
|
|
|
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);
|
|
|
if(mp!=null&&mp.size()>0){
|
|
|
return "0";
|
|
@ -1061,7 +1061,7 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
}
|
|
|
|
|
|
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+" AND pr.status < "+PrescriptionLog.PrescriptionLogStatus.wait_pay);
|
|
|
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);
|
|
|
if(mp!=null&&mp.size()>0){
|
|
|
return (String)((mp.get(0)).get("code"));
|