|
|
@ -17,11 +17,11 @@ |
|
|
|
|
|
|
|
package com.epmet.service.evaluationindex.screen.impl; |
|
|
|
|
|
|
|
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.dynamic.datasource.annotation.DataSource; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.rocketmq.messages.DisputeProcessMQMsg; |
|
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
@ -34,7 +34,10 @@ import com.epmet.dto.screen.form.ScreenProjectDataInfoFormDTO; |
|
|
|
import com.epmet.dto.screencoll.ScreenCollFormDTO; |
|
|
|
import com.epmet.entity.evaluationindex.screen.ScreenProjectDataEntity; |
|
|
|
import com.epmet.entity.evaluationindex.screen.ScreenProjectImgDataEntity; |
|
|
|
import com.epmet.feign.EpmetMessageOpenFeignClient; |
|
|
|
import com.epmet.send.SendMqMsgUtil; |
|
|
|
import com.epmet.service.evaluationindex.screen.ScreenProjectDataService; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import org.apache.commons.collections4.ListUtils; |
|
|
|
import org.apache.commons.lang3.ArrayUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
@ -62,6 +65,8 @@ public class ScreenProjectDataServiceImpl extends BaseServiceImpl<ScreenProjectD |
|
|
|
|
|
|
|
@Resource |
|
|
|
private ScreenProjectImgDataDao screenProjectImgDataDao; |
|
|
|
@Resource |
|
|
|
private EpmetMessageOpenFeignClient epmetMessageOpenFeignClient; |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<ScreenProjectDataDTO> page(Map<String, Object> params) { |
|
|
@ -284,14 +289,21 @@ public class ScreenProjectDataServiceImpl extends BaseServiceImpl<ScreenProjectD |
|
|
|
* @Date 2021/10/15 14:22 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public List<ScreenProjectDataDTO> getProjectList(String customerId, String projectId) { |
|
|
|
LambdaQueryWrapper<ScreenProjectDataEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(customerId), ScreenProjectDataEntity::getCustomerId, customerId); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(projectId), ScreenProjectDataEntity::getProjectId, projectId); |
|
|
|
wrapper.ne(ScreenProjectDataEntity::getCategoryCode, null); |
|
|
|
wrapper.ne(ScreenProjectDataEntity::getCategoryCode, ""); |
|
|
|
List<ScreenProjectDataEntity> list = baseDao.selectList(wrapper); |
|
|
|
return ConvertUtils.sourceToTarget(list, ScreenProjectDataDTO.class); |
|
|
|
public List<ScreenProjectDataDTO> getProjectList(String customerId, String projectId, Integer pageNo, Integer pageSize) { |
|
|
|
PageHelper.startPage(pageNo, pageSize); |
|
|
|
return baseDao.selectProjectList(customerId, projectId); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 项目变更MQ |
|
|
|
* @Param msg |
|
|
|
* @Return |
|
|
|
* @Author zhaoqifeng |
|
|
|
* @Date 2021/10/18 14:00 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public void sendProjectChangeMq(DisputeProcessMQMsg msg) { |
|
|
|
SendMqMsgUtil.build().openFeignClient(epmetMessageOpenFeignClient).sendProjectMqMsg(msg); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|