|
|
|
@ -27,9 +27,12 @@ import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dao.CustomerStaffGridDao; |
|
|
|
import com.epmet.dto.CustomerGridDTO; |
|
|
|
import com.epmet.dto.CustomerStaffGridDTO; |
|
|
|
import com.epmet.dto.form.CustomerGridFormDTO; |
|
|
|
import com.epmet.dto.form.LatestGridFormDTO; |
|
|
|
import com.epmet.dto.result.CommonStaffInfoResultDTO; |
|
|
|
import com.epmet.dto.result.CustomerGridByUserIdResultDTO; |
|
|
|
import com.epmet.entity.CustomerStaffGridEntity; |
|
|
|
import com.epmet.feign.EpmetUserFeignClient; |
|
|
|
import com.epmet.redis.CustomerStaffGridRedis; |
|
|
|
import com.epmet.service.CustomerStaffGridService; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
@ -53,6 +56,9 @@ public class CustomerStaffGridServiceImpl extends BaseServiceImpl<CustomerStaffG |
|
|
|
@Autowired |
|
|
|
private CustomerStaffGridRedis customerStaffGridRedis; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private EpmetUserFeignClient epmetUserFeignClient; |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<CustomerStaffGridDTO> page(Map<String, Object> params) { |
|
|
|
IPage<CustomerStaffGridEntity> page = baseDao.selectPage( |
|
|
|
@ -105,6 +111,13 @@ public class CustomerStaffGridServiceImpl extends BaseServiceImpl<CustomerStaffG |
|
|
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 查询指定客户下一个用户所在的网格,按照网格名称升序排序,取第一个 |
|
|
|
* @Param LatestGridFormDTO -> customerId ; staffId |
|
|
|
* @return CustomerGridDTO |
|
|
|
* @Author wangc |
|
|
|
* @Date 2020.04.23 09:11 |
|
|
|
**/ |
|
|
|
@Override |
|
|
|
public Result<CustomerGridByUserIdResultDTO> getStaffGridOrderByGridName(LatestGridFormDTO latestGridFormDTO) { |
|
|
|
CustomerGridDTO grid = baseDao.selectStaffGridOrderByGridName(latestGridFormDTO); |
|
|
|
@ -115,4 +128,17 @@ public class CustomerStaffGridServiceImpl extends BaseServiceImpl<CustomerStaffG |
|
|
|
return new Result<CustomerGridByUserIdResultDTO>().ok(result); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 获取添加网格成员的可选人员列表,先在本服务下查询userId,然后调用EpmetUserFeign校验账户是否被禁用,使用EpmetUser服务的DTO作为返回参数 |
|
|
|
* @Param CustomerGridFormDTO -> gridId |
|
|
|
* @return Result<List<CommonStaffInfoResultDTO>> -> CommonStaffInfoResultDTO [epmet-user-client] |
|
|
|
* @Author wangc |
|
|
|
* @Date 2020.04.23 16:28 |
|
|
|
**/ |
|
|
|
@Override |
|
|
|
public Result<List<CommonStaffInfoResultDTO>> getSelectableStaffs(CustomerGridFormDTO customerGridFormDTO) { |
|
|
|
|
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
} |