|
|
@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.epmet.commons.tools.constant.ServiceConstant; |
|
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
import com.epmet.commons.tools.feign.ResultDataResolver; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dao.LogOperationDao; |
|
|
|
import com.epmet.dto.CustomerStaffDTO; |
|
|
@ -15,6 +16,8 @@ import com.epmet.dto.region.LogOperationResultDTO; |
|
|
|
import com.epmet.entity.LogOperationEntity; |
|
|
|
import com.epmet.feign.EpmetUserOpenFeignClient; |
|
|
|
import com.epmet.service.LogOperationService; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
@ -174,7 +177,28 @@ public class LogOperationServiceImpl implements LogOperationService, ResultDataR |
|
|
|
ldto.setCustomerId(l.getCustomerId()); |
|
|
|
ldto.setOperatorMobile(staffMap.get(l.getOperatorId()).getMobile()); |
|
|
|
ldto.setOperatorName(staffMap.get(l.getOperatorId()).getRealName()); |
|
|
|
ldto.setOperateTime(l.getOperatingTime()); |
|
|
|
return ldto; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 数字社区-操作记录 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @param startTime |
|
|
|
* @param endTime |
|
|
|
* @param operatorName |
|
|
|
* @param operatorMobile |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public PageData<LogOperationResultDTO> page(String customerId, String startTime, String endTime, String operatorName, String operatorMobile, |
|
|
|
Integer pageNo, Integer pageSize,String category) { |
|
|
|
// 列表/导出查询
|
|
|
|
PageHelper.startPage(pageNo, pageSize); |
|
|
|
List<LogOperationResultDTO> list = logOperationDao.pageList(customerId, startTime, endTime, operatorName, operatorMobile,category); |
|
|
|
PageInfo<LogOperationResultDTO> pageInfo = new PageInfo<>(list); |
|
|
|
return new PageData<>(list, pageInfo.getTotal()); |
|
|
|
} |
|
|
|
} |
|
|
|