Browse Source

引入路径

master
sunyuchao 4 years ago
parent
commit
4d3506b7cd
  1. 7
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/IcPlacePatrolReviewRecordServiceImpl.java

7
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/IcPlacePatrolReviewRecordServiceImpl.java

@ -35,6 +35,7 @@ import com.epmet.service.IcPlacePatrolRecordService;
import com.epmet.service.IcPlacePatrolReviewRecordService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@ -102,13 +103,13 @@ public class IcPlacePatrolReviewRecordServiceImpl extends BaseServiceImpl<IcPlac
baseDao.updateById(entity);
//2.复查记录修改了复查时间或复查结果时对应修改巡查记录数据最新巡查时间和结果
if (com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotEmpty(formDTO.getReviewResult()) || com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotEmpty(formDTO.getReviewTime().toString())) {
if (StringUtils.isNotEmpty(formDTO.getReviewResult()) || StringUtils.isNotEmpty(formDTO.getReviewTime().toString())) {
IcPlacePatrolRecordEntity recordEntity = new IcPlacePatrolRecordEntity();
recordEntity.setId(entity.getPlacePatrolRecordId());
if (com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotEmpty(formDTO.getReviewResult()) || com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotEmpty(formDTO.getReviewTime().toString())) {
if (StringUtils.isNotEmpty(formDTO.getReviewResult()) || StringUtils.isNotEmpty(formDTO.getReviewTime().toString())) {
recordEntity.setFinalResult(entity.getReviewResult());
}
if (com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotEmpty(formDTO.getReviewTime().toString())) {
if (StringUtils.isNotEmpty(formDTO.getReviewTime().toString())) {
recordEntity.setFinalTime(entity.getReviewTime());
}
icPlacePatrolRecordService.updateById(recordEntity);

Loading…
Cancel
Save