|
|
|
@ -2,10 +2,6 @@ package digital.laboratory.platform.entrustment.controller; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.lang.Assert; |
|
|
|
|
import com.amazonaws.services.s3.model.AmazonS3Exception; |
|
|
|
|
// import com.jacob.activeX.ActiveXComponent;
|
|
|
|
|
// import com.jacob.com.ComThread;
|
|
|
|
|
// import com.jacob.com.Dispatch;
|
|
|
|
|
// import com.jacob.com.Variant;
|
|
|
|
|
import digital.laboratory.platform.common.feign.RemoteGenerateWordService; |
|
|
|
|
import digital.laboratory.platform.common.feign.RemoteWord2PDFService; |
|
|
|
|
import digital.laboratory.platform.sys.dto.entrustment.CommonIdDto; |
|
|
|
@ -32,16 +28,8 @@ import digital.laboratory.platform.entrustment.enums.EntrustmentStatusConstants; |
|
|
|
|
import digital.laboratory.platform.entrustment.vo.CaseEventVO; |
|
|
|
|
import digital.laboratory.platform.entrustment.vo.EntrustmentVO; |
|
|
|
|
import digital.laboratory.platform.sys.entity.SysUser; |
|
|
|
|
// import fr.opensagres.poi.xwpf.converter.pdf.PdfConverter;
|
|
|
|
|
// import fr.opensagres.poi.xwpf.converter.pdf.PdfOptions;
|
|
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
|
|
// import org.jodconverter.JodConverter;
|
|
|
|
|
// import org.jodconverter.LocalConverter;
|
|
|
|
|
// import org.jodconverter.document.DefaultDocumentFormatRegistry;
|
|
|
|
|
// import org.jodconverter.office.LocalOfficeManager;
|
|
|
|
|
// import org.jodconverter.office.OfficeException;
|
|
|
|
|
// import org.jodconverter.office.OfficeUtils;
|
|
|
|
|
import org.apache.commons.lang.StringUtils; |
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
@ -80,8 +68,6 @@ import java.util.List; |
|
|
|
|
@Api(tags = "003-委托管理") |
|
|
|
|
@SuppressWarnings("all") |
|
|
|
|
public class EntrustmentController { |
|
|
|
|
// @Autowired
|
|
|
|
|
// private final HttpServletRequest httpServletRequest;
|
|
|
|
|
|
|
|
|
|
private final CaseEventService caseEventService; |
|
|
|
|
private final EntrustmentService entrustmentService; |
|
|
|
@ -2372,4 +2358,15 @@ public class EntrustmentController { |
|
|
|
|
boolean success = entrustmentService.alertTimeFiledInfoByEntrustDate(entrustment); |
|
|
|
|
return success ? R.ok("修改成功") : R.failed("修改失败"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ApiOperation("20250103 - 新增判断当前委托保存的检材是否和用户当前页面填写的检材数量是否匹配,是则返回true,否返回false") |
|
|
|
|
@GetMapping("/isEligibleForSubmission") |
|
|
|
|
public R<Boolean> isEligibleForSubmission(@RequestParam("entrustId") String entrustId, @RequestParam("materialCount") Integer materialCount) { |
|
|
|
|
Boolean allowSubmit = entrustmentService.isEligibleForSubmission(entrustId, materialCount); |
|
|
|
|
if (allowSubmit) { |
|
|
|
|
return R.ok(allowSubmit, "检材数量匹配,可以提交审核!"); |
|
|
|
|
} else { |
|
|
|
|
return R.ok(allowSubmit, "有检材未保存,请先保存检材后在提交!"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|