|
|
@ -42,6 +42,7 @@ import com.epmet.entity.stats.CustomerProjectCategoryDictEntity; |
|
|
|
import com.epmet.feign.EpmetMessageOpenFeignClient; |
|
|
|
import com.epmet.feign.OperCrmOpenFeignClient; |
|
|
|
import com.epmet.send.SendMqMsgUtil; |
|
|
|
import com.epmet.service.evaluationindex.screen.ScreenCustomerAgencyService; |
|
|
|
import com.epmet.service.evaluationindex.screen.ScreenProjectCategoryService; |
|
|
|
import com.epmet.service.evaluationindex.screen.ScreenProjectDataService; |
|
|
|
import com.epmet.service.stats.CustomerProjectCategoryDictService; |
|
|
@ -79,6 +80,8 @@ public class ScreenProjectDataServiceImpl extends BaseServiceImpl<ScreenProjectD |
|
|
|
private CustomerProjectCategoryDictService customerProjectCategoryDictService; |
|
|
|
@Resource |
|
|
|
private OperCrmOpenFeignClient operCrmOpenFeignClient; |
|
|
|
@Resource |
|
|
|
private ScreenCustomerAgencyService screenCustomerAgencyService; |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<ScreenProjectDataDTO> page(Map<String, Object> params) { |
|
|
@ -208,6 +211,10 @@ public class ScreenProjectDataServiceImpl extends BaseServiceImpl<ScreenProjectD |
|
|
|
ScreenProjectDataEntity screenProjectDataEntity = ConvertUtils.sourceToTarget(item, ScreenProjectDataEntity.class); |
|
|
|
screenProjectDataEntity.setCustomerId(param.getCustomerId()); |
|
|
|
screenProjectDataEntity.setDataEndTime(param.getDateId()); |
|
|
|
String agencyId = screenCustomerAgencyService.getParentAgencyId(screenProjectDataEntity.getAllParentIds().split(StrConstant.COMMA)[0]); |
|
|
|
if(StringUtils.isNotBlank(agencyId)) { |
|
|
|
screenProjectDataEntity.setAllParentIds(agencyId.concat(StrConstant.COMMA).concat(screenProjectDataEntity.getAllParentIds())); |
|
|
|
} |
|
|
|
baseDao.insert(screenProjectDataEntity); |
|
|
|
projectList.add(screenProjectDataEntity); |
|
|
|
//插入图片表
|
|
|
|