| | |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | //获取检验下单数据 |
| | | @ApiOperation(value = "查看所属单位检验单") |
| | | @GetMapping("/selectInsOrderParameter") |
| | | @PreAuthorize("@ss.hasPermi('business:order:queryAll')") |
| | | public Result selectInsOrderParameter(Page page, SampleOrderDto sampleOrderDto) { |
| | | return Result.success(insOrderService.selectInsOrderParameter(page, sampleOrderDto)); |
| | | } |
| | | |
| | | |
| | | |
| | | //用于检验下单区别查看所有订单和只查看同一个委托单位的订单 |
| | | @ApiOperation(value = "判断当前客户紧急额度是否用完") |
| | |
| | | } |
| | | |
| | | //用于检验下单区别查看所有订单和只查看同一个委托单位的订单 |
| | | @ApiOperation(value = "查看所有检验单") |
| | | @PostMapping("/selectAllInsOrderParameter") |
| | | public Result selectAllInsOrderParameter() { |
| | | return Result.success(); |
| | | } |
| | | // @ApiOperation(value = "查看所有检验单") |
| | | // @PostMapping("/selectAllInsOrderParameter") |
| | | // public Result selectAllInsOrderParameter() { |
| | | // return Result.success(); |
| | | // } |
| | | |
| | | |
| | | @ApiOperation(value = "分配按钮") |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "查询订单最长预计时间") |
| | | @PostMapping("/selectOrderManDay") |
| | | @GetMapping("/selectOrderManDay") |
| | | public Result<?> selectOrderManDay(Integer id) { |
| | | int day = insProductService.selectOrderManDay(id); |
| | | return Result.success("成功", LocalDateTime.now().plusHours(day).format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询检验下单内容详情") |
| | | @PostMapping("/getInsOrder") |
| | | @GetMapping("/getInsOrder") |
| | | public Result<?> getInsOrder(Integer orderId) { |
| | | return Result.success(insOrderService.getInsOrder(orderId)); |
| | | } |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "通过检验单模板id获取检验单模板内容") |
| | | @PostMapping("/selectInsOrderTemplateById") |
| | | @GetMapping("/selectInsOrderTemplateById") |
| | | public Result<?> selectInsOrderTemplateById(Integer id) { |
| | | return Result.success( insOrderTemplateService.selectInsOrderTemplateById(id),"成功"); |
| | | } |
| | | |
| | | @ApiOperation(value = "通过检验单查询检验数据(数据查看)") |
| | | @PostMapping("/selectSampleAndProductByOrderId") |
| | | @GetMapping("/selectSampleAndProductByOrderId") |
| | | public Result<?> selectSampleAndProductByOrderId(@RequestBody Map<String, Object> data) throws Exception { |
| | | SampleProductDto2 sampleProductDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), SampleProductDto2.class); |
| | | return Result.success(insOrderService.selectSampleAndProductByOrderId(sampleProductDto)); |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "费用统计获取总价") |
| | | @PostMapping("/costStatistics2") |
| | | @GetMapping("/costStatistics2") |
| | | public Result<?> costStatistics2(@RequestBody Map<String, Object> data) throws Exception { |
| | | CostStatisticsDto costStatisticsDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), CostStatisticsDto.class); |
| | | return Result.success(insOrderService.costStatistics2(costStatisticsDto)); |
| | |
| | | } |
| | | |
| | | //待检的撤销的查询待检项目 |
| | | @PostMapping("/selectNoProducts") |
| | | @GetMapping("/selectNoProducts") |
| | | public Result<?> selectNoProducts(@RequestBody Map<String, Object> data,Integer orderId ,String ids) throws Exception { |
| | | Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); |
| | | InsProduct insProduct = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), InsProduct.class); |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "标签打印按钮") |
| | | @PostMapping("/labelPrinting") |
| | | @GetMapping("/labelPrinting") |
| | | public Result<?> labelPrinting(String ids) { |
| | | return Result.success(insOrderService.labelPrinting(ids)); |
| | | } |
| | | |
| | | @ApiOperation(value = "查看费用统计列表") |
| | | @PostMapping("/costStatistics") |
| | | @GetMapping("/costStatistics") |
| | | public Result<?> costStatistics(@RequestBody Map<String, Object> data) throws Exception { |
| | | Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); |
| | | CostStatisticsDto costStatisticsDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), CostStatisticsDto.class); |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "查看结果按钮(温度循环)") |
| | | @PostMapping("/getInsOrderTemList") |
| | | @GetMapping("/getInsOrderTemList") |
| | | public Result getInsOrderTemList(@RequestBody Map<String, Object> data) { |
| | | return Result.success(insOrderService.getInsOrderTemList(data)); |
| | | } |