diff --git a/pf_transitPF/src/main/java/com/transitPlatForm/transitPF/service/impl/RegInterfaceImpl.java b/pf_transitPF/src/main/java/com/transitPlatForm/transitPF/service/impl/RegInterfaceImpl.java index 57ec4bc..1187271 100644 --- a/pf_transitPF/src/main/java/com/transitPlatForm/transitPF/service/impl/RegInterfaceImpl.java +++ b/pf_transitPF/src/main/java/com/transitPlatForm/transitPF/service/impl/RegInterfaceImpl.java @@ -235,15 +235,21 @@ public class RegInterfaceImpl { Date signTime = sampleSignVO.getSignTime(); String signUserName = sampleSignVO.getSignUserName(); String signUserCode = sampleSignVO.getSignUserCode(); + String dstHospCode = sampleSignVO.getDstHospCode(); //签收机构代码 + String dstHospName = sampleSignVO.getDstHospName(); //签收机构名称 if(signTime == null) return new Result("-1","signTime标本签收时间不能为空!"); if(signUserName == null || signUserName.equals("")) return new Result("-1","signUserName标本签收人员姓名不能为空!"); if(signUserCode == null || signUserCode.equals("")) return new Result("-1","signUserCode标本签收人员不能为空!"); + if(dstHospCode == null || dstHospCode.equals("")) return new Result("-1","dstHospCode标本签收机构代码不能为空!"); + if(dstHospName == null || dstHospName.equals("")) return new Result("-1","dstHospName标本签收机构名称不能为空!"); if(Integer.parseInt(status) >= 50) continue;//return new Result("0","该标本已经签收!"); RegTransitSample regTransitSample50 = new RegTransitSample(); regTransitSample50.setBarcode(barcode); regTransitSample50.setSignInTime(signTime); regTransitSample50.setSignInUserCode(signUserCode); regTransitSample50.setSignInUserName(signUserName); + regTransitSample50.setDstHospCode(dstHospCode); + regTransitSample50.setDstHospCode(dstHospName); regTransitSample50.setStatus("50"); List collect3 = regTransitSampleList1.stream().filter(regTransitSample2 -> diff --git a/pf_transitPF/src/main/resources/mapper/RegLisReportMapper.xml b/pf_transitPF/src/main/resources/mapper/RegLisReportMapper.xml index 16945fd..31df69c 100644 --- a/pf_transitPF/src/main/resources/mapper/RegLisReportMapper.xml +++ b/pf_transitPF/src/main/resources/mapper/RegLisReportMapper.xml @@ -16,7 +16,7 @@ and brlyname = #{brlyname} and yljg = #{yljg} and barcode_zt = #{barcode_zt} - order by barcode_zt + order by dybz ,sqsj desc