|
|
@ -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); |
|
|
|