Commit 3160ca64 authored by huyuchen's avatar huyuchen

Merge remote-tracking branch 'origin/MVP1.5.6' into MVP1.5.6

parents b894467f 63ca230a
...@@ -443,6 +443,7 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM ...@@ -443,6 +443,7 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM
public boolean changeFeedBackAll(ChangeFeedBackAllVo changeFeedBackAllVo) { public boolean changeFeedBackAll(ChangeFeedBackAllVo changeFeedBackAllVo) {
YifuUser user = SecurityUtils.getUser(); YifuUser user = SecurityUtils.getUser();
FeedBackDetail feedbackDetail; FeedBackDetail feedbackDetail;
List<FeedBackDetail> details = new ArrayList<>();
for (int i = 0; i < changeFeedBackAllVo.getIds().length; i++) { for (int i = 0; i < changeFeedBackAllVo.getIds().length; i++) {
feedbackDetail = new FeedBackDetail(); feedbackDetail = new FeedBackDetail();
feedbackDetail.setFeedbackPerson(user.getNickname()); feedbackDetail.setFeedbackPerson(user.getNickname());
...@@ -451,9 +452,12 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM ...@@ -451,9 +452,12 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM
feedbackDetail.setFeedbackReason(changeFeedBackAllVo.getFeedbackReason()); feedbackDetail.setFeedbackReason(changeFeedBackAllVo.getFeedbackReason());
feedbackDetail.setFeedbackDetail(changeFeedBackAllVo.getFeedbackDetail()); feedbackDetail.setFeedbackDetail(changeFeedBackAllVo.getFeedbackDetail());
feedbackDetail.setIsFeedback(CommonConstants.ONE_INT); feedbackDetail.setIsFeedback(CommonConstants.ONE_INT);
feedbackDetailMapper.insert(feedbackDetail); details.add(feedbackDetail);
} }
changeFeedBackAllVo.setIsFeedback(CommonConstants.ONE_INTEGER); if (Common.isNotEmpty(details)){
feedBackDetailService.saveBatch(details);
}
changeFeedBackAllVo.setIsFeedback(CommonConstants.ONE_INTEGER);
changeFeedBackAllVo.setFeedbackPerson(user.getNickname()); changeFeedBackAllVo.setFeedbackPerson(user.getNickname());
changeFeedBackAllVo.setFeedbackTime(DateTime.now()); changeFeedBackAllVo.setFeedbackTime(DateTime.now());
return baseMapper.changeFeedBackAll(changeFeedBackAllVo); return baseMapper.changeFeedBackAll(changeFeedBackAllVo);
......
...@@ -121,13 +121,9 @@ public class MsgInfoServiceImpl extends ServiceImpl<MsgInfoMapper, MsgInfo> impl ...@@ -121,13 +121,9 @@ public class MsgInfoServiceImpl extends ServiceImpl<MsgInfoMapper, MsgInfo> impl
@Transactional @Transactional
@Override @Override
public void updateOverTimeMsg() { public void updateOverTimeMsg() {
// 1. 删除未读的超时,如果有继续生成 // 获取所有已经产生的数据 后面直接排除
baseMapper.delete(Wrappers.<MsgInfo>query().lambda()
.eq(MsgInfo::getReadStatus,CommonConstants.ZERO_STRING)
.eq(MsgInfo::getAlertType,CommonConstants.ONE_STRING));
List<MsgInfo> temps = baseMapper.selectList(Wrappers.<MsgInfo>query().lambda() List<MsgInfo> temps = baseMapper.selectList(Wrappers.<MsgInfo>query().lambda()
.eq(MsgInfo::getAlertType,CommonConstants.ONE_STRING) .eq(MsgInfo::getAlertType,CommonConstants.ONE_STRING));
.eq(MsgInfo::getReadStatus,CommonConstants.ONE_STRING));
Map<String,MsgInfo> tempMap = new HashMap<>(); Map<String,MsgInfo> tempMap = new HashMap<>();
if (Common.isNotNull(temps)){ if (Common.isNotNull(temps)){
for (MsgInfo msg:temps){ for (MsgInfo msg:temps){
...@@ -180,13 +176,8 @@ public class MsgInfoServiceImpl extends ServiceImpl<MsgInfoMapper, MsgInfo> impl ...@@ -180,13 +176,8 @@ public class MsgInfoServiceImpl extends ServiceImpl<MsgInfoMapper, MsgInfo> impl
@Transactional @Transactional
@Override @Override
public void statusChangeTimeMsg(){ public void statusChangeTimeMsg(){
// 1. 删除未读的待支出状态变更,如果有继续生成
baseMapper.delete(Wrappers.<MsgInfo>query().lambda()
.eq(MsgInfo::getReadStatus,CommonConstants.ZERO_STRING)
.eq(MsgInfo::getAlertType,CommonConstants.THREE_STRING));
List<MsgInfo> temps = baseMapper.selectList(Wrappers.<MsgInfo>query().lambda() List<MsgInfo> temps = baseMapper.selectList(Wrappers.<MsgInfo>query().lambda()
.eq(MsgInfo::getAlertType,CommonConstants.THREE_STRING) .eq(MsgInfo::getAlertType,CommonConstants.THREE_STRING));
.eq(MsgInfo::getReadStatus,CommonConstants.ONE_STRING));
Map<String,MsgInfo> tempMap = new HashMap<>(); Map<String,MsgInfo> tempMap = new HashMap<>();
if (Common.isNotNull(temps)){ if (Common.isNotNull(temps)){
for (MsgInfo msg:temps){ for (MsgInfo msg:temps){
......
...@@ -837,7 +837,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -837,7 +837,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if (excel.getEducationName().equals("中专")) { if (excel.getEducationName().equals("中专")) {
vo.setHighEducation("11"); vo.setHighEducation("11");
} }
else {
vo.setHighEducation("");
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment