|
@ -21,31 +21,6 @@ public class PrescriptionInfoController extends BaseController{
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private PrescriptionInfoService prescriptionInfoService;
|
|
private PrescriptionInfoService prescriptionInfoService;
|
|
@Autowired
|
|
|
|
private PrescriptionExpressageService prescriptionExpressageService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 确认配送 二维码方式
|
|
|
|
* 根据处方code获取处方流程
|
|
|
|
*
|
|
|
|
* @param code wlyy_prescription_dispensary_code的code
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@RequestMapping(value = "/expressage", method = RequestMethod.POST)
|
|
|
|
@ApiOperation(value = "确认配送")
|
|
|
|
@ObserverRequired
|
|
|
|
public String expressage(
|
|
|
|
@RequestParam(required = true) @ApiParam(value = "wlyy_prescription_dispensary_code的code", name = "code") String code) {
|
|
|
|
try {
|
|
|
|
Integer status = prescriptionExpressageService.expressage(code, getUID());
|
|
|
|
if (status == -1) {
|
|
|
|
return error(-1, "编码不存在");
|
|
|
|
}
|
|
|
|
return write(200, "配送成功");
|
|
|
|
} catch (Exception e) {
|
|
|
|
return error(-1, "失败");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@RequestMapping(value = "/getPrescriptionFilter", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/getPrescriptionFilter", method = RequestMethod.GET)
|
|
@ResponseBody
|
|
@ResponseBody
|