| | |
| | | /** |
| | | * 查询体检记录列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:order:list')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:order:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询体检记录列表(默认)") |
| | | public TableDataInfo list(TjOrder tjOrder) { |
| | |
| | | /** |
| | | * 导出体检记录列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:order:export')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:order:export')") |
| | | @Log(title = "体检记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出体检记录列表") |
| | |
| | | /** |
| | | * 获取体检记录详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:order:query')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:order:query')") |
| | | @GetMapping(value = "/{orderId}") |
| | | @ApiOperation(value = "获取体检记录详细信息") |
| | | public AjaxResult getInfo(@PathVariable("orderId") Long orderId) { |
| | |
| | | |
| | | //个人 |
| | | if ("2".equals(tjOrder.getTjType())) { |
| | | asyncService.extracted(tjOrder, tjCustomer, discount, sysUser, tjReservation, tjFlowingWater); |
| | | // asyncService.extracted(tjOrder, tjCustomer, discount, sysUser, tjReservation, tjFlowingWater); |
| | | |
| | | asyncService.newSaveextracted(tjOrder, tjCustomer, discount, sysUser, tjReservation, tjFlowingWater); |
| | | } |
| | | return AjaxResult.success(tjNumber); |
| | | } |
| | |
| | | /** |
| | | * 修改体检记录 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:order:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:order:edit')") |
| | | @Log(title = "体检记录", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改体检记录") |
| | |
| | | /** |
| | | * 删除体检记录 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:order:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:order:remove')") |
| | | @Log(title = "体检记录", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{orderIds}") |
| | | @ApiOperation(value = "删除体检记录") |
| | |
| | | tbTransition.setPacPrice(projectService.getTjProjectById(String.valueOf(tbTransition.getParentProId())).getProPrice()); |
| | | } |
| | | } |
| | | map.put("ordPrice", money1.setScale(Integer.parseInt(configService.selectConfigByKey("sys.price.save")), Integer.parseInt(configService.selectConfigByKey("sys.price")))); |
| | | map.put("nowPrice", money2.setScale(Integer.parseInt(configService.selectConfigByKey("sys.price.save")), Integer.parseInt(configService.selectConfigByKey("sys.price")))); |
| | | // map.put("ordPrice", money1.setScale(Integer.parseInt(configService.selectConfigByKey("sys.price.save")), Integer.parseInt(configService.selectConfigByKey("sys.price")))); |
| | | // map.put("nowPrice", money2.setScale(Integer.parseInt(configService.selectConfigByKey("sys.price.save")), Integer.parseInt(configService.selectConfigByKey("sys.price")))); |
| | | |
| | | map.put("ordPrice", money1); |
| | | map.put("nowPrice", money2); |
| | | } |
| | | list.add(map); |
| | | } |
| | |
| | | |
| | | @PostMapping("/deletedTbTransitionByCusId") |
| | | @ApiOperation(value = "根据身份证号删除临时表数据") |
| | | public AjaxResult deletedTbTransitionByCusId(@RequestBody String cusId) { |
| | | transitionService.deletedTbTransitionByCusId(cusId); |
| | | return AjaxResult.success(); |
| | | public AjaxResult deletedTbTransitionByCusId(@RequestParam @ApiParam(value = "身份证号") String cusId) { |
| | | LambdaQueryWrapper<TbTransition> wq=new LambdaQueryWrapper<>(); |
| | | wq.between(TbTransition::getCreateTime,transitionService.getTbTransitionCreateTimeByCusId(cusId),new Date()); |
| | | wq.eq(TbTransition::getCusId,cusId); |
| | | return AjaxResult.success(transitionService.remove(wq)); |
| | | } |
| | | } |