Commit a3a57abb by 徐高华

朋友圈

parent e65ea987
...@@ -22,6 +22,7 @@ import com.gic.haoban.manage.web.qo.moment.PlanDataListQO; ...@@ -22,6 +22,7 @@ import com.gic.haoban.manage.web.qo.moment.PlanDataListQO;
import com.gic.haoban.manage.web.qo.moment.PlanListQO; import com.gic.haoban.manage.web.qo.moment.PlanListQO;
import com.gic.haoban.manage.web.qo.moment.QwMomentPlanQO; import com.gic.haoban.manage.web.qo.moment.QwMomentPlanQO;
import com.gic.haoban.manage.web.utils.CreatorUtils; import com.gic.haoban.manage.web.utils.CreatorUtils;
import com.gic.haoban.manage.web.vo.moment.ClerkVO;
import com.gic.haoban.manage.web.vo.moment.HaobanQwMomentPlanVO; import com.gic.haoban.manage.web.vo.moment.HaobanQwMomentPlanVO;
import com.gic.haoban.manage.web.vo.moment.QwMomentPlanAttendVO; import com.gic.haoban.manage.web.vo.moment.QwMomentPlanAttendVO;
import com.gic.haoban.manage.web.vo.moment.QwMomentPlanDataVO; import com.gic.haoban.manage.web.vo.moment.QwMomentPlanDataVO;
...@@ -30,6 +31,7 @@ import com.gic.log.record.util.GicLogRecordCategoryEnum; ...@@ -30,6 +31,7 @@ import com.gic.log.record.util.GicLogRecordCategoryEnum;
import com.gic.log.record.util.GicLogRecordEvaluationContext; import com.gic.log.record.util.GicLogRecordEvaluationContext;
import com.gic.log.record.util.GicLogRecordOptTypeEnum; import com.gic.log.record.util.GicLogRecordOptTypeEnum;
import com.gic.web.common.utils.SessionContextUtils; import com.gic.web.common.utils.SessionContextUtils;
import org.apache.commons.collections.CollectionUtils;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -38,6 +40,9 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -38,6 +40,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.stream.Collectors;
/** /**
* 企微朋友圈 * 企微朋友圈
*/ */
...@@ -194,6 +199,24 @@ public class QwMomentController { ...@@ -194,6 +199,24 @@ public class QwMomentController {
} }
// 查询素材列表 // 查询素材列表
HaobanQwMomentPlanVO vo = EntityUtil.changeEntityByJSON(HaobanQwMomentPlanVO.class, detaiResp.getResult()); HaobanQwMomentPlanVO vo = EntityUtil.changeEntityByJSON(HaobanQwMomentPlanVO.class, detaiResp.getResult());
// 部分导购
if(vo.getPlanClerkType()==1) {
PlanClerkListQDTO clerkQDTO = new PlanClerkListQDTO() ;
clerkQDTO.setPlanId(planId);
clerkQDTO.setPageNum(1);
clerkQDTO.setPageSize(10000);
ServiceResponse<Page<QwMomentPlanAttendDTO>> clerkResp = this.qwMomentApiService.attendList(clerkQDTO) ;
if(clerkResp.isSuccess() && CollectionUtils.isNotEmpty(clerkResp.getResult().getResult())) {
List<ClerkVO> list = clerkResp.getResult().getResult().stream().map(o->{
ClerkVO clerkVO = new ClerkVO();
clerkVO.setClerkId(o.getClerkId());
clerkVO.setClerkCode(o.getClerkCode());
clerkVO.setClerkName(o.getClerkName());
return clerkVO ;
}).collect(Collectors.toList()) ;
vo.setClerkVOList(list);
}
}
return RestResponse.successResult(vo); return RestResponse.successResult(vo);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment