|  | @@ -109,7 +109,7 @@ public class ReimbursementInfoService {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          // 报销时间
 | 
	
		
			
				|  |  |          if (dto.getDates() != null && dto.getDates().length > 0) {
 | 
	
		
			
				|  |  | -            queryWrapper.between("a.reim_date", dto.getDates()[0], dto.getDates()[1]);
 | 
	
		
			
				|  |  | +            queryWrapper.between("a.approval_time", dto.getDates()[0], dto.getDates()[1]);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          // 经办人
 | 
	
		
			
				|  |  |          if (StringUtils.isNotEmpty(dto.getHandled())) {
 | 
	
	
		
			
				|  | @@ -288,6 +288,9 @@ public class ReimbursementInfoService {
 | 
	
		
			
				|  |  |          info.setUpdateById(userDTO.getId());
 | 
	
		
			
				|  |  |          info.setUpdateTime(new Date());
 | 
	
		
			
				|  |  |          info.setDelFlag(0);
 | 
	
		
			
				|  |  | +        if ("2".equals(dto.getType())){
 | 
	
		
			
				|  |  | +            info.setApprovalTime(new Date());
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          infoMapper.insert(info);
 | 
	
		
			
				|  |  |          // 保存项目详情列表信息
 | 
	
		
			
				|  |  |          if (CollectionUtils.isNotEmpty(dto.getDetailInfos())) {
 | 
	
	
		
			
				|  | @@ -406,6 +409,16 @@ public class ReimbursementInfoService {
 | 
	
		
			
				|  |  |          BeanUtils.copyProperties(dto, info);
 | 
	
		
			
				|  |  |          info.setUpdateById(userDTO.getId());
 | 
	
		
			
				|  |  |          info.setUpdateTime(new Date());
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        //根据id查询申请日期是否存在
 | 
	
		
			
				|  |  | +        ReimbursementInfo reimbursementInfo = infoMapper.selectById(dto.getId());
 | 
	
		
			
				|  |  | +        if ("2".equals(dto.getType())){
 | 
	
		
			
				|  |  | +            if (ObjectUtil.isEmpty(reimbursementInfo.getApprovalTime())){
 | 
	
		
			
				|  |  | +                info.setApprovalTime(new Date());
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        infoMapper.updateById(info);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          infoMapper.updateById(info);
 | 
	
		
			
				|  |  |          // 修改报销详情列表信息
 | 
	
		
			
				|  |  |          // 删除原有数据
 |