|
|
@ -2,8 +2,11 @@ package com.epmet.service.impl; |
|
|
|
|
|
|
|
import com.alibaba.excel.EasyExcel; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.tools.constant.Constant; |
|
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.constant.StrConstant; |
|
|
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
@ -23,6 +26,7 @@ import com.epmet.commons.tools.utils.FileUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.constants.ImportTaskConstants; |
|
|
|
import com.epmet.dao.*; |
|
|
|
import com.epmet.dto.IcEnterpriseChangeRecordDTO; |
|
|
|
import com.epmet.dto.SysDictDataDTO; |
|
|
|
import com.epmet.dto.form.EnterpriseFormDTO; |
|
|
|
import com.epmet.dto.form.EnterprisePageFormDTO; |
|
|
@ -413,6 +417,36 @@ public class IcEnterpriseServiceImpl extends BaseServiceImpl<IcEnterpriseDao, Ic |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<EnterpriseDetailDTO> page(Map<String, Object> params) { |
|
|
|
IPage<IcEnterpriseEntity> page = baseDao.selectPage( |
|
|
|
getPage(params, FieldConstant.CREATED_TIME, false), |
|
|
|
getWrapper(params) |
|
|
|
); |
|
|
|
return getPageData(page, EnterpriseDetailDTO.class); |
|
|
|
} |
|
|
|
|
|
|
|
private QueryWrapper<IcEnterpriseEntity> getWrapper(Map<String, Object> params){ |
|
|
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
|
|
|
String placeOrgName = (String)params.get("placeOrgName"); |
|
|
|
String mobile = (String)params.get("mobile"); |
|
|
|
String gridId = (String)params.get("gridId"); |
|
|
|
String placeType = (String)params.get("placeType"); |
|
|
|
String scale = (String)params.get("scale"); |
|
|
|
String result = (String)params.get("result"); |
|
|
|
|
|
|
|
QueryWrapper<IcEnterpriseEntity> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(placeOrgName), "PLACE_ORG_NAME", placeOrgName); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(mobile), "MOBILE", mobile); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(gridId), "GRID_ID", gridId); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(placeType), "PLACE_TYPE", placeType); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(scale), "SCALE", scale); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(result), "LATEST_RESULT", result); |
|
|
|
|
|
|
|
return wrapper; |
|
|
|
} |
|
|
|
|
|
|
|
private CustomerStaffInfoCacheResult queryCurrentStaff(String customerId, String userId) { |
|
|
|
CustomerStaffInfoCacheResult staffInfo = CustomerStaffRedis.getStaffInfo(customerId, userId); |
|
|
|
if (null == staffInfo) { |
|
|
|