| | |
| | | // @PreAuthorize("@ss.hasPermi('check:check:confirmOrder')") |
| | | @Transactional |
| | | public AjaxResult confirmOrder(@ApiParam(value = "tjNumber") @RequestParam String tjNumber, |
| | | @ApiParam(value = "状态 0同意1拒绝 默认同意") @RequestParam(defaultValue = "0") Integer status, |
| | | @ApiParam(value = "状态 0同意 1拒绝 默认同意") @RequestParam(defaultValue = "0") Integer status, |
| | | @ApiParam(value = "驳回理由") @RequestParam(required = false) String remark) { |
| | | int num = orderRemarkService.getTjYqOrderRemarkByTjNum(tjNumber); |
| | | if (num > 0) return AjaxResult.error("有延期项目暂不能审核!"); |
| | |
| | | tjOrder.setConfirmStatus(remark); |
| | | if (status == 0) { |
| | | tjOrder.setStatus(TjConstants.TJ_CHECK); |
| | | asyncService.updateCheckType(tjNumber); |
| | | } else { |
| | | tjOrder.setStatus(TjConstants.TJ_REFUSED); |
| | | } |
| | |
| | | customers = redisCache.getCacheMapValue("check", "ys"); |
| | | } |
| | | if (customers != null && customers.size() > 0) { |
| | | // asyncService.addRedis(customers); |
| | | List<TjCustomer> customerLists = customers.stream().skip((long) (page - 1) * pageSize).limit(pageSize).collect(Collectors.toList()); |
| | | map.put("customers", customerLists); |
| | | map.put("total", customers.size()); |
| | |
| | | @ApiOperation(value = "总检点击体检信息详情") |
| | | // @PreAuthorize("@ss.hasPermi('check:check:updateCheckType')") |
| | | public AjaxResult updateCheckType(@ApiParam(value = "客户体检号") @RequestParam String tjNumber) { |
| | | if(redisCache.hasKey("updateCheckType"+tjNumber)) { |
| | | return redisCache.getCacheMapValue("updateCheckType" + tjNumber, tjNumber); |
| | | } |
| | | return getAjaxResult(tjNumber); |
| | | } |
| | | |
| | | private AjaxResult getAjaxResult(String tjNumber) { |
| | | final long l = System.currentTimeMillis(); |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | | TjOrder one = orderService.getOrderByTjNum(tjNumber); |