| | |
| | | |
| | | //获取检验下单数据 |
| | | @ValueClassify("检验下单") |
| | | @ApiOperation(value = "查询检验下单数据") |
| | | @ApiOperation(value = "查询单位检验单") |
| | | @PostMapping("/selectInsOrderParameter") |
| | | public Result selectInsOrderParameter(@RequestBody Map<String, Object> data) throws Exception { |
| | | Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); |
| | | SampleOrderDto sampleOrderDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), SampleOrderDto.class); |
| | | return Result.success(insOrderService.selectInsOrderParameter(page, sampleOrderDto)); |
| | | } |
| | | |
| | | @ValueClassify("检验下单") |
| | | @ApiOperation(value = "查看所有检验单") |
| | | @PostMapping("/selectAllInsOrder") |
| | | public Result selectAllInsOrder(){ |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ValueClassify("检验下单") |
| | | @ApiOperation(value = "检验分配") |
| | | @PostMapping("/upInsOrder") |
| | |
| | | @ValueClassify("检验下单") |
| | | @ApiOperation(value = "添加检验下单数据") |
| | | @PostMapping("/addInsOrder") |
| | | public Result<?> addInsOrder(@RequestBody Map<String, Object> map) { |
| | | public Result<?> addInsOrder(String str) { |
| | | Map<String, Object> map = JSON.parseObject(str, Map.class); |
| | | JSONArray jsonArray = JSON.parseArray(map.get("list")+""); |
| | | List<SampleProductDto> list = jsonArray.toJavaList(SampleProductDto.class); |
| | | InsOrder insOrder = JSON.parseObject(JSON.toJSONString(map.get("insOrder")), InsOrder.class); |
| | | return Result.success(insOrderService.addInsOrder(list, insOrder)); |
| | | List<List<Integer>> pairing = JSON.parseArray(map.get("pairing")+""); |
| | | return Result.success(insOrderService.addInsOrder(list, insOrder, pairing)); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询订单最长预计时间") |
| | |
| | | } |
| | | |
| | | @ValueClassify("检验下单") |
| | | @ApiOperation(value = "更新状态") |
| | | @ApiOperation(value = "撤销") |
| | | @PutMapping("/updateStatus") |
| | | public Result<?> updateStatus(Integer id) { |
| | | insOrderService.updateStatus(id); |
| | | return Result.success(); |
| | | } |
| | | @ValueClassify("检验下单") |
| | | @ApiOperation("将待检验的的撤销更改") |
| | | |
| | | @PutMapping("/updateInspected") |
| | | @ValueAuth |
| | | public Result<?> updateInspected(Integer id){ |
| | | insProductService.updateInspected(id); |
| | | return Result.success(); |