|
|
|
@ -12,22 +12,21 @@ import org.apache.struts2.convention.annotation.Namespace; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// HIS病历
|
|
|
|
// 病历
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Slf4j |
|
|
|
@Slf4j |
|
|
|
@Action |
|
|
|
@Action |
|
|
|
@Namespace("/medicalRecord") |
|
|
|
@Namespace("/his_med_record") |
|
|
|
public class MedicalRecordAction extends BaseAction { |
|
|
|
public class HisMedRecordAction extends BaseAction { |
|
|
|
|
|
|
|
|
|
|
|
@Action("getMedicalRecord") |
|
|
|
@Action("getHisMedRecord") |
|
|
|
public Result getMedicalRecord(@AesDecode String treatNum, @AesDecode String openId) { |
|
|
|
public Result getHisMedRecord(@AesDecode String treatNum, @AesDecode String openId) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
log.info("[病历]查询门诊病历 treatNum={}, openId={}", treatNum, openId); |
|
|
|
log.info("[病历]查询门诊病历 treatNum={}, openId={}", treatNum, openId); |
|
|
|
if (treatNum == null || openId == null) { |
|
|
|
if (treatNum == null || openId == null) { |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
} |
|
|
|
} |
|
|
|
List<HisMedicalRecord> dataList = new HisMedicalRecordDao().queryMedicalRecordByTreatNum(treatNum); |
|
|
|
List<HisMedicalRecord> dataList = new HisMedicalRecordDao().queryHisMedRecordByTreatNum(treatNum); |
|
|
|
return Result.success(dataList); |
|
|
|
return Result.success(dataList); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
return Result.error(e); |
|
|
|
return Result.error(e); |