Browse Source

长处方

trick9191 7 năm trước cách đây
mục cha
commit
6bc6f4b641

+ 17 - 0
common/common-entity/src/main/java/com/yihu/wlyy/entity/patient/prescription/PrescriptionDiagnosis.java

@ -21,6 +21,23 @@ public class PrescriptionDiagnosis  extends IdEntity {
    private Integer type;//1主诊断 2次诊断
    private Date createTime;
    private Date updateTime;
    private String healthProblem;
    private String healthProblemName;
    public String getHealthProblem() {
        return healthProblem;
    }
    public void setHealthProblem(String healthProblem) {
        this.healthProblem = healthProblem;
    }
    public String getHealthProblemName() {
        return healthProblemName;
    }
    public void setHealthProblemName(String healthProblemName) {
        this.healthProblemName = healthProblemName;
    }
    public String getCode() {
        return code;

+ 5 - 3
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/prescription/PrescriptionInfoService.java

@ -90,10 +90,10 @@ public class PrescriptionInfoService extends BaseService {
        rs.put("states",states);
        List<Map<String,Object>> diseases = new ArrayList<>();
        Map<String,Object> dis1 = new HashMap<>();
        dis1.put("code","1");
        dis1.put("code","HP0093");
        dis1.put("name","高血压");
        Map<String,Object> dis2 = new HashMap<>();
        dis2.put("code","2");
        dis2.put("code","HP0047");
        dis2.put("name","糖尿病");
        diseases.add(dis1);
        diseases.add(dis2);
@ -851,10 +851,12 @@ public class PrescriptionInfoService extends BaseService {
                " FROM " +
                " wlyy_prescription pr " +
                " JOIN wlyy_prescription_expressage e ON pr. CODE = e.prescription_code  " +
                " JOIN wlyy_prescription_reviewed r ON pr.code = r.prescription_code " +
                " WHERE " +
                " pr.admin_team_id = ? " +
                " AND pr.dispensary_type = 3 " +
                " AND e.expressage_code IS NULL");
                " AND e.expressage_code IS NULL " +
                " AND r.status=1 ");
        List<Map<String,Object>> list = jdbcTemplate.queryForList(pre_sql.toString(),new Object[]{teamCode});
        if(list!=null&&list.size()>0){