| | |
| | | import com.project.enforce.mapper.EnforceComplaintLogMapper; |
| | | import com.project.enforce.service.IEnforceComplaintLogService; |
| | | import com.project.system.service.ISysDeptService; |
| | | import com.project.system.service.ISysUserService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | public class EnforceComplaintLogServiceImpl extends ServiceImpl<EnforceComplaintLogMapper, EnforceComplaintLog> implements IEnforceComplaintLogService { |
| | | |
| | | private final ISysDeptService deptService; |
| | | private final ISysUserService userService; |
| | | |
| | | |
| | | @Override//列表查询 |
| | |
| | | @Transactional |
| | | public Boolean inComplaint(ComplaintResultBo bo) |
| | | { |
| | | SysUser loginUser = SecurityUtils.getLoginUser().getUser(); |
| | | SysUser loginUser = userService.selectUserById(SecurityUtils.getUserId()); |
| | | return this.update(lu() |
| | | .set(EnforceComplaintLog::getInId,loginUser.getUserId()) |
| | | .set(EnforceComplaintLog::getInUser,loginUser.getNickName()) |
| | |
| | | if (StringUtils.isEmpty(bo.getResult())){ |
| | | throw new BaseException("请填写处理结果"); |
| | | } |
| | | SysUser loginUser = SecurityUtils.getLoginUser().getUser(); |
| | | SysUser loginUser = userService.selectUserById(SecurityUtils.getUserId()); |
| | | return this.update(lu() |
| | | .set(EnforceComplaintLog::getResultId,loginUser.getUserId()) |
| | | .set(EnforceComplaintLog::getResultUser,loginUser.getNickName()) |