diff --git a/pf_common/src/main/java/com/transitPlatForm/common/core/domain/entity/SysLoginParam.java b/pf_common/src/main/java/com/transitPlatForm/common/core/domain/entity/SysLoginParam.java index ecebc8a..acc36b6 100644 --- a/pf_common/src/main/java/com/transitPlatForm/common/core/domain/entity/SysLoginParam.java +++ b/pf_common/src/main/java/com/transitPlatForm/common/core/domain/entity/SysLoginParam.java @@ -21,6 +21,10 @@ public class SysLoginParam { * 登录的医疗机构 */ private String loginYLJG; + /** + * 登录的医疗机构名称 + */ + private String loginYLJGName; /** * 默认仪器 */ diff --git a/pf_common/src/main/java/com/transitPlatForm/common/core/domain/model/LoginParam.java b/pf_common/src/main/java/com/transitPlatForm/common/core/domain/model/LoginParam.java index 878c185..0c6e0e1 100644 --- a/pf_common/src/main/java/com/transitPlatForm/common/core/domain/model/LoginParam.java +++ b/pf_common/src/main/java/com/transitPlatForm/common/core/domain/model/LoginParam.java @@ -9,5 +9,6 @@ import lombok.NoArgsConstructor; @NoArgsConstructor public class LoginParam { private String loginYLJG; + private String loginYLJGName; private String localid; } diff --git a/pf_interfaceCommon/src/main/java/com/transitPlatForm/interfaceCommon/mapper/RegApplyMapper.java b/pf_interfaceCommon/src/main/java/com/transitPlatForm/interfaceCommon/mapper/RegApplyMapper.java index d45301f..b64920d 100644 --- a/pf_interfaceCommon/src/main/java/com/transitPlatForm/interfaceCommon/mapper/RegApplyMapper.java +++ b/pf_interfaceCommon/src/main/java/com/transitPlatForm/interfaceCommon/mapper/RegApplyMapper.java @@ -4,7 +4,7 @@ import com.transitPlatForm.common.core.domain.entity.reg.RegApply; public interface RegApplyMapper { void insert(RegApply regApply); - RegApply queryOne(RegApply regApply); + RegApply queryOne(String applyid); void update(RegApply regApply); void delete(String applyid); } diff --git a/pf_interfaceCommon/src/main/java/com/transitPlatForm/interfaceCommon/utils/CommonUtil.java b/pf_interfaceCommon/src/main/java/com/transitPlatForm/interfaceCommon/utils/CommonUtil.java index 290b501..f81e242 100644 --- a/pf_interfaceCommon/src/main/java/com/transitPlatForm/interfaceCommon/utils/CommonUtil.java +++ b/pf_interfaceCommon/src/main/java/com/transitPlatForm/interfaceCommon/utils/CommonUtil.java @@ -70,7 +70,7 @@ public class CommonUtil { */ public synchronized String getMaxNo(String seqid) { RegSeq seqOne = regSeqMapper.getSeqOne(seqid); - if (seqOne != null) return ""; + if (seqOne == null) return ""; long maxno = seqOne.getMaxno() + 1; seqOne.setMaxno(maxno); regSeqMapper.update(seqOne); diff --git a/pf_interfaceCommon/src/main/resources/mapper/RegApplyMapper.xml b/pf_interfaceCommon/src/main/resources/mapper/RegApplyMapper.xml index 7dbad7f..e8082ba 100644 --- a/pf_interfaceCommon/src/main/resources/mapper/RegApplyMapper.xml +++ b/pf_interfaceCommon/src/main/resources/mapper/RegApplyMapper.xml @@ -3,49 +3,88 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > - insert into reg_apply(PatId, PatCardType, PatCardNo, PatType, RegNo, PatName, PatSex, PatAge, AgeUnit, - PatAgeShow, PatBirthday, PatIdentity, Phone, Address, PatFeeType, DepartCode, - DepartName, AreaCode, AreaName, PatBed, DiagnosisCode, DiagnosisName, ReciNumber, - DoctorCode, DoctorName, OrderTime, ExecDeptCode, ExecDeptName, SrcHospCode, SrcHospName, - Amount, ChargeState, PatInvoiceNum, UserCode, UserName, DataSource, applyid, Status) - values (#{PatId}, - #{PatCardType}, - #{PatCardNo}, - #{PatType}, - #{RegNo}, - #{PatName}, - #{PatSex}, - #{PatAge}, - #{AgeUnit}, - #{PatAgeShow}, - #{PatBirthday}, - #{PatIdentity}, - #{Phone}, - #{Address}, - #{PatFeeType}, - #{DepartCode}, - #{DepartName}, - #{AreaCode}, - #{AreaName}, - #{PatBed}, - #{DiagnosisCode}, - #{DiagnosisName}, - #{ReciNumber}, - #{DoctorCode}, - #{DoctorName}, - #{OrderTime}, - #{ExecDeptCode}, - #{ExecDeptName}, - #{SrcHospCode}, - #{SrcHospName}, - #{Amount}, - #{ChargeState}, - #{PatInvoiceNum}, - #{UserCode}, - #{UserName}, - #{DataSource}, - #{applyid}, - #{Status}) + insert into reg_apply( + PatId, + PatCardType, + PatCardNo, + PatType, + RegNo, + PatName, + PatSex, + PatAge, + AgeUnit, + PatAgeShow, + PatBirthday, + PatIdentity, + Phone, + Address, + PatFeeType, + DepartCode, + DepartName, + AreaCode, + AreaName, + PatBed, + DiagnosisCode, + DiagnosisName, + ReciNumber, + DoctorCode, + DoctorName, + OrderTime, + ExecDeptCode, + ExecDeptName, + SrcHospCode, + SrcHospName, + Amount, + ChargeState, + PatInvoiceNum, + UserCode, + UserName, + DataSource, + applyid, + Status, + create_by,create_time + ) + values ( + #{PatId}, + #{PatCardType}, + #{PatCardNo}, + #{PatType}, + #{RegNo}, + #{PatName}, + #{PatSex}, + #{PatAge}, + #{AgeUnit}, + #{PatAgeShow}, + #{PatBirthday}, + #{PatIdentity}, + #{Phone}, + #{Address}, + #{PatFeeType}, + #{DepartCode}, + #{DepartName}, + #{AreaCode}, + #{AreaName}, + #{PatBed}, + #{DiagnosisCode}, + #{DiagnosisName}, + #{ReciNumber}, + #{DoctorCode}, + #{DoctorName}, + #{OrderTime}, + #{ExecDeptCode}, + #{ExecDeptName}, + #{SrcHospCode}, + #{SrcHospName}, + #{Amount}, + #{ChargeState}, + #{PatInvoiceNum}, + #{UserCode}, + #{UserName}, + #{DataSource}, + #{applyid}, + #{Status}, + #{create_by},#{create_time} + ) + + \ No newline at end of file diff --git a/pf_transitPF/src/main/resources/mapper/RegTransitSampleMapper.xml b/pf_transitPF/src/main/resources/mapper/RegTransitSampleMapper.xml index 7785e17..1c9d589 100644 --- a/pf_transitPF/src/main/resources/mapper/RegTransitSampleMapper.xml +++ b/pf_transitPF/src/main/resources/mapper/RegTransitSampleMapper.xml @@ -43,7 +43,7 @@ PatAge, AgeUnit, PatAgeShow, - PatBirthday, + PatBirthday, PatIdentity, Phone, Address, @@ -99,7 +99,7 @@ #{PatAge}, #{AgeUnit}, #{PatAgeShow}, - #{PatBirthday}, + #{PatBirthday}, #{PatIdentity}, #{Phone}, #{Address}, @@ -159,6 +159,10 @@ FeeName, Cost, Status, + applyid, + applyDetailId, + bz1, + bz2, Barcode,OrderItemSerial,create_by,create_time,update_by,update_time )values( #{OrderItemCode}, @@ -171,6 +175,10 @@ #{FeeName}, #{Cost}, #{Status}, + #{applyid}, + #{applyDetailId}, + #{bz1}, + #{bz2}, #{Barcode},#{OrderItemSerial},#{create_by},#{create_time},#{update_by},#{update_time} )