|
@@ -6,6 +6,7 @@ import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import thyyxxk.webserver.config.auth.PassToken;
|
|
|
import thyyxxk.webserver.config.exception.ExceptionEnum;
|
|
|
+import thyyxxk.webserver.dao.his.zhuyuanyisheng.YiZhuLuRuDao;
|
|
|
import thyyxxk.webserver.entity.ResultVo;
|
|
|
import thyyxxk.webserver.entity.datamodify.GetDropdownBox;
|
|
|
import thyyxxk.webserver.entity.datamodify.SelectV2;
|
|
@@ -36,12 +37,13 @@ import java.util.Map;
|
|
|
@RequestMapping("/yiZhuLuRu")
|
|
|
public class YizhuLuRuController {
|
|
|
private final YiZhuLuRuServer server;
|
|
|
+ private final YiZhuLuRuDao dao;
|
|
|
|
|
|
- public YizhuLuRuController(YiZhuLuRuServer server) {
|
|
|
+ public YizhuLuRuController(YiZhuLuRuServer server, YiZhuLuRuDao dao) {
|
|
|
this.server = server;
|
|
|
+ this.dao = dao;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
@GetMapping("/getOrderNo")
|
|
|
public ResultVo<String> getOrderNo() {
|
|
|
return server.getOrderNo();
|
|
@@ -235,5 +237,9 @@ public class YizhuLuRuController {
|
|
|
return server.copyTableOrder(param);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/getItemInstructions")
|
|
|
+ public ResultVo<List<JSONObject>> getItemInstructions(@RequestParam(value = "code", defaultValue = "") String code) {
|
|
|
+ return ResultVoUtil.success(dao.getItemInstructions(code));
|
|
|
+ }
|
|
|
|
|
|
}
|