| | |
| | | import freemarker.template.TemplateException; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.apache.ibatis.annotations.Options; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | * @author ruoyi |
| | | * @date 2022-01-24 |
| | | */ |
| | | @Slf4j |
| | | @Api("报销申请") |
| | | @RestController |
| | | @RequestMapping("/project/reimbursement") |
| | |
| | | @Log(title = "审核费用", businessType = BusinessType.OTHER) |
| | | @PostMapping("/checkfund") |
| | | public AjaxResult checkFund(@RequestBody CheckFundVO checkFundVO) { |
| | | log.info("审核费用的入参 : {}", checkFundVO); |
| | | ServiceReimbursement serviceReimbursement = serviceReimbursementService.getById(checkFundVO.getFundid()); |
| | | |
| | | log.info("审核费用的serviceReimbursementService.getById返参 : {}", serviceReimbursement); |
| | | if (serviceReimbursement != null) { |
| | | Integer totalLevel = 0; |
| | | LoginUser loginUser = getLoginUser(); |
| | |
| | | serviceFundflowrule.setApplytype("0"); |
| | | serviceFundflowrule.setCheckuserno(loginUser.getUsername()); |
| | | List<ServiceFundflowrule> serviceFundflowrules = serviceFundflowruleService.queryList(serviceFundflowrule); |
| | | |
| | | log.info("审核费用的serviceFundflowruleService.queryList返参 : {}", serviceFundflowrules.size()); |
| | | if (serviceFundflowrules == null || serviceFundflowrules.stream().count() == 0) { |
| | | return AjaxResult.error(HttpStatus.ERROR, "当前人员无此记录审核权限"); |
| | | } |
| | |
| | | serviceFundflowService.save(serviceFundflow); |
| | | |
| | | List<Integer> postids = postService.selectPostListByUserId(loginUser.getUserId()); |
| | | |
| | | log.info("postService.selectPostListByUserId : {}", postids.size()); |
| | | if (!postids.contains(2)) { |
| | | if (CheckFlag == 2 && OriginalFlowLevel == 1) { |
| | | ServiceFundflow serviceFundflowAuto = new ServiceFundflow(); |