|
@@ -25,6 +25,7 @@ import org.springframework.beans.BeanUtils;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
+import java.time.LocalDate;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -37,9 +38,29 @@ import java.util.List;
|
|
public class PlanInformServiceImpl extends BaseServiceImpl<PlanInformMapper, PlanInform> implements IPlanInformService {
|
|
public class PlanInformServiceImpl extends BaseServiceImpl<PlanInformMapper, PlanInform> implements IPlanInformService {
|
|
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 获取用户最近两天的通知
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
@Override
|
|
@Override
|
|
public List<PlanInform> getUserInform() {
|
|
public List<PlanInform> getUserInform() {
|
|
Long userId = SecureUtil.getUserId();
|
|
Long userId = SecureUtil.getUserId();
|
|
return baseMapper.getUserInform(userId);
|
|
return baseMapper.getUserInform(userId);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 任务审批后插入日志信息
|
|
|
|
+ * @param taskName 任务名称
|
|
|
|
+ * @param taskUser 任务人Id
|
|
|
|
+ * @param appUserName 审批人名称
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public void taskFinishedInform(String taskName, Long taskUser, String appUserName) {
|
|
|
|
+ String str = "《"+taskName+"》"+"已被"+"【"+appUserName+"】"+"变成为已完成状态";
|
|
|
|
+ PlanInform inform = new PlanInform();
|
|
|
|
+ inform.setInformDetails(str);
|
|
|
|
+ inform.setInformUser(taskUser);
|
|
|
|
+ inform.setInformDate(LocalDate.now());
|
|
|
|
+ baseMapper.insert(inform);
|
|
|
|
+ }
|
|
}
|
|
}
|