|
|
|
@ -7,6 +7,7 @@ import com.docus.infrastructure.web.api.ResultCode;
|
|
|
|
|
import com.docus.server.collection.converter.FirstPageCheckoutConverter;
|
|
|
|
|
import com.docus.server.collection.dto.FirstPageCheckoutInDTO;
|
|
|
|
|
import com.docus.server.collection.dto.FirstPageCheckoutRequest;
|
|
|
|
|
import com.docus.server.collection.feign.service.MedicalrecordService;
|
|
|
|
|
import com.docus.server.collection.service.MzZyHisService;
|
|
|
|
|
import com.docus.server.collection.util.PersistRequestUtil;
|
|
|
|
|
import com.docus.server.collection.validator.RequestValidator;
|
|
|
|
@ -15,10 +16,7 @@ import com.docus.server.collection.validator.impl.FirstPageCheckoutRequestValida
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
@ -31,6 +29,9 @@ public class MzZyHisController {
|
|
|
|
|
@Resource
|
|
|
|
|
private MzZyHisService mzZyHisService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private MedicalrecordService medicalrecordService;
|
|
|
|
|
|
|
|
|
|
@ApiOperation("首页签出")
|
|
|
|
|
@PostMapping("/firstPageCheckout")
|
|
|
|
|
public CommonResult<String> firstPageCheckout(@RequestBody FirstPageCheckoutRequest firstPageCheckoutRequest, HttpServletRequest servletRequest) {
|
|
|
|
@ -57,5 +58,10 @@ public class MzZyHisController {
|
|
|
|
|
return CommonResult.failed("系统出错啦,请稍后再试!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation("测试")
|
|
|
|
|
@GetMapping("/test")
|
|
|
|
|
public CommonResult<String> test(@RequestParam("pid") String pid) {
|
|
|
|
|
medicalrecordService.signOutOrBackRepair(pid);
|
|
|
|
|
return CommonResult.success("ok");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|