|
@@ -270,7 +270,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
returnMzChargeDetail.setAmount(BigDecimal.ZERO);
|
|
|
returnMzChargeDetail.setNotDiscountAmount(BigDecimal.ZERO);
|
|
|
for (MzChargeDetail md : mzChargeDetails) {
|
|
|
- if(md==null){
|
|
|
+ if (md == null) {
|
|
|
continue;
|
|
|
}
|
|
|
if (StringUtils.isBlank(returnMzChargeDetail.getName())) {
|
|
@@ -512,7 +512,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
for (int i = 0; i < first.size(); i++) {
|
|
|
MzChargeDetail tempMzChargeDetail = first.get(i);
|
|
|
ZdChargeItem zdChargeItem = (ZdChargeItem) zdChargeItemMap.get(tempMzChargeDetail.getChargeItemCode());
|
|
|
- if(zdChargeItem==null || StringUtils.isBlank(zdChargeItem.getAuditCode())){
|
|
|
+ if (zdChargeItem == null || StringUtils.isBlank(zdChargeItem.getAuditCode())) {
|
|
|
continue;
|
|
|
}
|
|
|
if (!Constants.AUDIT_ITEM_DR.equals(zdChargeItem.getAuditCode())) {
|
|
@@ -543,7 +543,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
for (int i = 0; i < secondTempMzChargeDetailList.size(); i++) {
|
|
|
MzChargeDetail tempMzChargeDetail = secondTempMzChargeDetailList.get(i);
|
|
|
ZdChargeItem zdChargeItem = (ZdChargeItem) zdChargeItemMap.get(tempMzChargeDetail.getChargeItemCode());
|
|
|
- if(zdChargeItem==null || StringUtils.isBlank(zdChargeItem.getAuditCode())){
|
|
|
+ if (zdChargeItem == null || StringUtils.isBlank(zdChargeItem.getAuditCode())) {
|
|
|
continue;
|
|
|
}
|
|
|
if (!Constants.AUDIT_ITEM_DR.equals(zdChargeItem.getAuditCode())) {
|
|
@@ -622,7 +622,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
Set<String> hasHandle = new HashSet<>();
|
|
|
MzChargeDetail mzChargeDetail = new MzChargeDetail();
|
|
|
for (Map<String, Object> map : unPaidChargeDetails) {
|
|
|
- if(map==null){
|
|
|
+ if (map == null) {
|
|
|
continue;
|
|
|
}
|
|
|
String key = map.get("patient_id") + "-" + map.get("times");
|
|
@@ -651,7 +651,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
|
|
|
@Override
|
|
|
@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, timeout = 36000, rollbackFor = Exception.class)
|
|
|
- public int chargeFee(String opId, MzDepositFileVo mzDepositFileVo,String ipAddress) throws MzException {
|
|
|
+ public int chargeFee(String opId, MzDepositFileVo mzDepositFileVo, String ipAddress) throws MzException {
|
|
|
Windows windows = windowsMapper.selectLastWindowsByIpAddress(ipAddress);
|
|
|
if (windows == null) {
|
|
|
throw new MzException("当前操作人未设置窗口号,请先设置!");
|
|
@@ -693,7 +693,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
if (Constants.YBJZ.equals(m.getChequeType())) {
|
|
|
PayInfo payInfo = tsmzService.calculateCost(opId, mzDepositFileVo.getPatientId(), mzDepositFileVo.getTimes(), receiptNo);
|
|
|
if (payInfo == null) {
|
|
|
- throw new MzException("特门费用结算失败,错误原因:获取特门费用失败" );
|
|
|
+ throw new MzException("特门费用结算失败,错误原因:获取特门费用失败");
|
|
|
}
|
|
|
if (payInfo.getCode() == -1) {
|
|
|
throw new MzException("特门费用结算失败,错误原因:" + payInfo.getErrorMessage());
|
|
@@ -1988,7 +1988,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
mzZyReq.setReqWard(mzZyReq.getReqDept());
|
|
|
mzZyReq.setIcdCode(mzPrescriptionVo.getIcdCode());
|
|
|
mzZyReq.setIcdText(mzPrescriptionVo.getIcdText());
|
|
|
- if(StringUtils.isBlank(mzZyReq.getIcdText())){
|
|
|
+ if (StringUtils.isBlank(mzZyReq.getIcdText())) {
|
|
|
mzZyReq.setIcdText(mzPrescriptionVo.getMzBlRecord().getTentativeDiagnosis());
|
|
|
}
|
|
|
if (mzZyReq.getIcdCode() == null) {
|
|
@@ -2016,6 +2016,24 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ @Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, timeout = 36000, rollbackFor = Exception.class)
|
|
|
+ public int modifyReceiveFlagAndConfirmFlag(String flag, String opId, Integer reqNo) throws MzException {
|
|
|
+ if(StringUtils.isBlank(flag)){
|
|
|
+ throw new MzException("确认标志不能为空");
|
|
|
+ }
|
|
|
+ if(StringUtils.isBlank(opId)){
|
|
|
+ throw new MzException("确认人ID不能为空");
|
|
|
+ }
|
|
|
+ if(reqNo==null){
|
|
|
+ throw new MzException("申请单号不能为空");
|
|
|
+ }
|
|
|
+ Date now = new Date();
|
|
|
+ mzYjReqMapper.updateReceiveFlagAndConfirmFlag(flag, opId, now, reqNo);
|
|
|
+ mzChargeDetailMapper.updateReceiveFlagAndConfirmFlag(flag, opId, now, reqNo);
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public Clinic nucleicAcidApplication(String patientId) throws MzException {
|
|
@@ -2733,7 +2751,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
|
|
|
@Override
|
|
|
@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, timeout = 36000, rollbackFor = Exception.class)
|
|
|
- public int refundFee(String opId, MzDepositFileVo mzDepositFileVo,String ipAddress) throws MzException {
|
|
|
+ public int refundFee(String opId, MzDepositFileVo mzDepositFileVo, String ipAddress) throws MzException {
|
|
|
Windows windows = windowsMapper.selectLastWindowsByIpAddress(ipAddress);
|
|
|
if (windows == null) {
|
|
|
throw new MzException("当前操作人未设置窗口号,请先设置!");
|