/** 晒单作废操作 */ @RequestMapping("/orderInputCancel.json") @ResponseBody public JsonResult orderInputCancel(Long dynamicId, String auditDesc) { // 查询晒单的动态记录 UserDynamicInfo userDynamicInfo = userDynamicInfoService.findById(dynamicId); userDynamicInfo.setAuditDesc(auditDesc); // 将此条记录修改成审批通过 userDynamicInfo.setAuditDate(new java.util.Date()); userDynamicInfo.setAuditName(AuthUtil.getUserName()); userDynamicInfo.setAuditStatus(UserDynamicInfoAuditStatusEnum.D.getCode()); userDynamicInfo.setIsInput(UserDynamicInfoIsInputEnum.Y.getCode()); userDynamicInfoService.update(userDynamicInfo); return jsonResultHelper.buildSuccessJsonResult(null); }
/** * 晒单信息屏蔽 * * @param dynamic_id * @return */ @RequestMapping("/orderCancel.json") @ResponseBody public String orderCancel(Long dynamic_id, String auditDesc) { logger.info("晒单信息屏蔽: dynamic_id", dynamic_id); String status = "1"; try { UserDynamicInfo userDynamicInfo = userDynamicInfoService.findById(dynamic_id); userDynamicInfo.setAuditStatus(UserDynamicInfoAuditStatusEnum.D.getCode()); userDynamicInfo.setAuditDesc(auditDesc); userDynamicInfo.setAuditDate(new Date()); Long userId = AuthUtil.getUserId(); UUser user = uUserService.findById(userId); userDynamicInfo.setAuditName(user.getFullname()); userDynamicInfoService.update(userDynamicInfo); } catch (Exception e) { e.printStackTrace(); status = "2"; logger.error("晒单信息屏蔽异常: dynamic_id=" + dynamic_id, e); } return status; }