|
@@ -316,15 +316,20 @@ public class MarkMtFeesService {
|
|
|
public Map<String, Object> uploadMtFees(UploadMtFeeParam param) {
|
|
|
log.info("上传门特费用:{}", param);
|
|
|
Map<String, Object> resultMap = new HashMap<>(Capacity.TWO);
|
|
|
- String responceType = dao.selectResponceType(param.getPatientId(), param.getTimes());
|
|
|
- if (null == responceType) {
|
|
|
+ MtPartInfo mtPartInfo = dao.selectMtPartInfo(param.getPatientId(), param.getTimes());
|
|
|
+ if (null == mtPartInfo) {
|
|
|
resultMap.put("code", -1);
|
|
|
resultMap.put("msg", "未查询到此人的门特身份记录。");
|
|
|
return resultMap;
|
|
|
}
|
|
|
+ if (StringUtil.notBlank(mtPartInfo.getStaffId()) && StringUtil.notBlank(mtPartInfo.getCertificateNo())) {
|
|
|
+ resultMap.put("code", -1);
|
|
|
+ resultMap.put("msg", "此患者已存在有效的结算信息,请勿重复收费。");
|
|
|
+ return resultMap;
|
|
|
+ }
|
|
|
String urlHead = YbLinksUtil.normalLinks.get("mtBase");
|
|
|
String urlEnd;
|
|
|
- if (responceType.equals(ResponceType.HUNAN_PROVINCIAL_MEDICAL_INSURANCE)) {
|
|
|
+ if (mtPartInfo.getResponceType().equals(ResponceType.HUNAN_PROVINCIAL_MEDICAL_INSURANCE)) {
|
|
|
urlEnd = ":2000/shengyb/mt/uploadFees";
|
|
|
} else {
|
|
|
urlEnd = ":1000/mzsyb/mzCalculate";
|
|
@@ -339,15 +344,22 @@ public class MarkMtFeesService {
|
|
|
public Map<String, Object> retractMtFees(UploadMtFeeParam param) {
|
|
|
log.info("撤销门特费用:{}", param);
|
|
|
Map<String, Object> resultMap = new HashMap<>(Capacity.TWO);
|
|
|
- String responceType = dao.selectResponceType(param.getPatientId(), param.getTimes());
|
|
|
- if (null == responceType) {
|
|
|
+ MtPartInfo mtPartInfo = dao.selectMtPartInfo(param.getPatientId(), param.getTimes());
|
|
|
+ if (null == mtPartInfo) {
|
|
|
resultMap.put("code", -1);
|
|
|
resultMap.put("msg", "未查询到此人的门特身份记录。");
|
|
|
return resultMap;
|
|
|
}
|
|
|
+ if (StringUtil.notBlank(mtPartInfo.getStaffId())) {
|
|
|
+ if (!mtPartInfo.getStaffId().trim().equals(param.getStaffId().trim())) {
|
|
|
+ resultMap.put("code", -1);
|
|
|
+ resultMap.put("msg", "您无法撤销其他操作员上传的费用。");
|
|
|
+ return resultMap;
|
|
|
+ }
|
|
|
+ }
|
|
|
String urlHead = YbLinksUtil.normalLinks.get("mtBase");
|
|
|
String urlEnd;
|
|
|
- if (responceType.equals(ResponceType.HUNAN_PROVINCIAL_MEDICAL_INSURANCE)) {
|
|
|
+ if (mtPartInfo.getResponceType().equals(ResponceType.HUNAN_PROVINCIAL_MEDICAL_INSURANCE)) {
|
|
|
urlEnd = ":2000/shengyb/mt/retractFees";
|
|
|
} else {
|
|
|
urlEnd = ":1000/mzsyb/mzCancelCalculate";
|
|
@@ -361,15 +373,15 @@ public class MarkMtFeesService {
|
|
|
public Map<String, Object> calculateMtFees(UploadMtFeeParam param) {
|
|
|
log.info("结算门特费用:{}", param);
|
|
|
Map<String, Object> resultMap = new HashMap<>(Capacity.TWO);
|
|
|
- String responceType = dao.selectResponceType(param.getPatientId(), param.getTimes());
|
|
|
- if (null == responceType) {
|
|
|
+ MtPartInfo mtPartInfo = dao.selectMtPartInfo(param.getPatientId(), param.getTimes());
|
|
|
+ if (null == mtPartInfo) {
|
|
|
resultMap.put("code", -1);
|
|
|
resultMap.put("msg", "未查询到此人的门特身份记录。");
|
|
|
return resultMap;
|
|
|
}
|
|
|
String urlHead = YbLinksUtil.normalLinks.get("mtBase");
|
|
|
String urlEnd;
|
|
|
- if (responceType.equals(ResponceType.HUNAN_PROVINCIAL_MEDICAL_INSURANCE)) {
|
|
|
+ if (mtPartInfo.getResponceType().equals(ResponceType.HUNAN_PROVINCIAL_MEDICAL_INSURANCE)) {
|
|
|
urlEnd = ":2000/shengyb/mt/calculateCost";
|
|
|
} else {
|
|
|
urlEnd = ":1000/mzsyb/mzCalculate";
|