|
@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
@RestController
|
|
|
@RequestMapping(value = "/doctor/prescriptionInfo")
|
|
|
@Api("医生端-长处方接口")
|
|
|
public class PrescriptionInfoController extends BaseController{
|
|
|
public class PrescriptionInfoController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private PrescriptionInfoService prescriptionInfoService;
|
|
@ -39,7 +39,10 @@ public class PrescriptionInfoController extends BaseController{
|
|
|
@RequestParam(required = true) @ApiParam(value = "wlyy_prescription_dispensary_code的code", name = "code") String code) {
|
|
|
try {
|
|
|
|
|
|
prescriptionExpressageService.expressage(code,getUID());
|
|
|
Integer status = prescriptionExpressageService.expressage(code, getUID());
|
|
|
if (status == -1) {
|
|
|
return error(-1, "编码不存在");
|
|
|
}
|
|
|
return write(200, "配送成功");
|
|
|
} catch (Exception e) {
|
|
|
return error(-1, "失败");
|