|
@@ -242,6 +242,23 @@ public class SiZyService {
|
|
|
return zySrvc.uploadMultiplePatientFees(siZyFeeUrl, overviews);
|
|
|
}
|
|
|
|
|
|
+ public ResultVo<String> injuryMultipleUpload(List<Overview> overviews) {
|
|
|
+ for (Overview o : overviews) {
|
|
|
+ if (o.getStatus() == 0) {
|
|
|
+ String message = String.format("【%s床,%s,%s】未进行工伤登记,无法进行费用上传。",
|
|
|
+ o.getBedNo(), o.getInpatientNo(), o.getName());
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, message);
|
|
|
+ }
|
|
|
+ if (!invalidMultipleUploadPatient(o.getMedType())) {
|
|
|
+ String message = String.format("【%s床,%s,%s】是非工伤患者,不支持批量上传。",
|
|
|
+ o.getBedNo(), o.getInpatientNo(), o.getName());
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, message);
|
|
|
+ }
|
|
|
+ o.setStaffId(TokenUtil.getInstance().getTokenUserId());
|
|
|
+ }
|
|
|
+ return zySrvc.uploadWorkInjuryFees(siZyFeeUrl, overviews);
|
|
|
+ }
|
|
|
+
|
|
|
private boolean invalidMultipleUploadPatient(String medtype) {
|
|
|
MedType medType = MedType.get(medtype);
|
|
|
return null == medType || medType == MedType.ZHUYUAN_ZHITI_CAN || medType == MedType.ZHUYUAN_ZHIYE_BING || medType == MedType.ZHUYUAN_KANGFU;
|