| | |
| | | @RequestParam(required = false)String condition, |
| | | @RequestParam Map<String, Object> param){ |
| | | EntityWrapper<ReimburseOnline> wrapper = new EntityWrapper<>(); |
| | | wrapper.setSqlSelect("id,settle,title,create_time as createTime,filepath,item_id as itemId,order_num as orderNum,template_name as templateName,user_id as userId,dept_id as deptId,status,update_time as updateTime,check_data as checkData,update_user_id as updateUserId,member_id as memberId"); |
| | | wrapper.setSqlSelect("id,settle,title,create_time as createTime,filepath,item_id as itemId,order_num as orderNum,template_name as templateName,user_id as userId,dept_id as deptId,status,update_time as updateTime,check_data as checkData,update_user_id as updateUserId,member_id as memberId,name"); |
| | | // wrapper.in("member_id", getUserRoleBelongsToUserId()); |
| | | wrapper.andNew(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | allLike(ReimburseOnline.class, param.keySet(), wrapper, condition); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | wrapper.or().eq("member_id",getUserId()); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | return R.ok(reimburseOnlineService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | |
| | | ReimburseOnline reimburseOnline = new ReimburseOnline(planId,RuleUtils.rule(rule),now,getUser()); |
| | | reimburseOnline.setCheckData(param.getCheckData()); |
| | | reimburseOnline.setTemplateName(param.getTemplateName()); |
| | | reimburseOnline.setName(param.getName()); |
| | | |
| | | reimburseOnline.setSettle(0); // 0.创建 |
| | | User manager = userService.getDeptManager(getHostId(), getUser().getDeptId()); // 获取部门领导 |
| | |
| | | map.put("orderNo",param.getOrderNo()); |
| | | map.put("templateName",param.getTemplateName()); |
| | | map.put("checkData",param.getCheckData()); |
| | | map.put("name",param.getName()); |
| | | reimburseOnline.setForm(JSON.toJSONString(map)); |
| | | reimburseOnline.setMemberId(getUser().getId()); |
| | | |
| | |
| | | reimburseOnline.setCheckData(param.getCheckData()); |
| | | reimburseOnline.setTemplateName(param.getTemplateName()); |
| | | reimburseOnline.setItemId(planId); |
| | | reimburseOnline.setName(param.getName()); |
| | | reimburseOnline.setUpdateTime(new Date()); |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | |
| | | map.put("orderNo",param.getOrderNo()); |
| | | map.put("templateName",param.getTemplateName()); |
| | | map.put("checkData",param.getCheckData()); |
| | | map.put("name",param.getName()); |
| | | reimburseOnline.setForm(JSON.toJSONString(map)); |
| | | |
| | | if (!reimburseOnlineService.updateById(reimburseOnline)){ |
| | |
| | | reimburseOnline.setMemberId(manager1.getId()); |
| | | |
| | | if (!reimburseOnlineService.updateById(reimburseOnline)) { |
| | | throw new CoolException("审核失败,请联系管理员"); |
| | | throw new CoolException("提交失败,请联系管理员"); |
| | | } |
| | | break; |
| | | case 1: |