|  |  |  | 
|---|
|  |  |  | private PriOnline2Service priOnline2Service; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private PriQuoteService priQuoteService; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private FollowUpService followUpService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/order/{id}/auth") | 
|---|
|  |  |  | @ManagerAuth | 
|---|
|  |  |  | 
|---|
|  |  |  | if (param.get("status") != null) { | 
|---|
|  |  |  | status = Integer.parseInt(param.get("status").toString()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Long director = null; | 
|---|
|  |  |  | if (deptId==null && userId == null){ | 
|---|
|  |  |  | if (getRole().getId()==3){ | 
|---|
|  |  |  | userId = getUserId(); | 
|---|
|  |  |  | }else if (getRole().getId()==2){ | 
|---|
|  |  |  | deptId = getDeptId(); | 
|---|
|  |  |  | userId = null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | director = getUserId(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return R.ok(orderService.getPage(new Page<>(curr, limit) | 
|---|
|  |  |  | , getHostId() | 
|---|
|  |  |  | , deptId == null ? null : String.valueOf(deptId) | 
|---|
|  |  |  | , userId == null ? getUserId() : userId | 
|---|
|  |  |  | , userId | 
|---|
|  |  |  | , director | 
|---|
|  |  |  | , condition | 
|---|
|  |  |  | , status) | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Date now = new Date(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (order.getStatus()!=0){ | 
|---|
|  |  |  | if (Cools.isEmpty(order.getMemoExperience())){ | 
|---|
|  |  |  | return R.error("请输入心得体会"); | 
|---|
|  |  |  | }else { | 
|---|
|  |  |  | FollowUp followUp = new FollowUp(); | 
|---|
|  |  |  | followUp.setWorkMsg(order.getMemoExperience()); | 
|---|
|  |  |  | followUp.setOrderId(order.getId()); | 
|---|
|  |  |  | followUp.setUserId(getUserId()); | 
|---|
|  |  |  | followUp.setCreateBy(getUserId()); | 
|---|
|  |  |  | followUp.setUpdateBy(getUserId()); | 
|---|
|  |  |  | followUp.setDirector(getUserId()); | 
|---|
|  |  |  | followUp.setDeptId(getDeptId()); | 
|---|
|  |  |  | followUp.setCreateTime(now); | 
|---|
|  |  |  | followUp.setUpdateTime(now); | 
|---|
|  |  |  | followUpService.insert(followUp); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | order.setMemoExperience(null); | 
|---|
|  |  |  | order.setUpdateBy(getUserId()); | 
|---|
|  |  |  | order.setUpdateTime(now); | 
|---|
|  |  |  | Order orderOld = orderService.selectById(order.getId()); | 
|---|
|  |  |  | 
|---|
|  |  |  | , getHostId() | 
|---|
|  |  |  | , role.judgeLeader() ? String.valueOf(user.getDeptId()) : null | 
|---|
|  |  |  | , user.getId() | 
|---|
|  |  |  | , null | 
|---|
|  |  |  | , condition | 
|---|
|  |  |  | , 0); | 
|---|
|  |  |  | List<KeyValueVo> vos = new ArrayList<>(); | 
|---|