modochar
6/26/2019 - 12:40 PM

aaa.xml


payload = {"dealerNo" : (flowVars.resultMap == null ? null : flowVars.resultMap.dealerNo) ,"photoType" : "SV","photoTitleList":["门面全景","营业区全景","参观体验区全景","会议室","美容室","营业执照"]};]]></expression-component>
        <choice doc:name="Choice">
            <when expression="payload != null &amp;&amp; payload.dealerNo != null">
                <dubbo:execute-proxy config-ref="dubbo-interface-dealer-DealerBusinessApi" method="listDealerPhoto:dealerNo#photoType#photoTitleList" doc:name="DealerBusinessApi.listDealerPhoto"/>
                <expression-component doc:name="Expression"><![CDATA[if(payload != null && payload.result != null){
	flowVars.resultMap.storePhotos = new java.util.ArrayList();
	for (com.infinitus.gbss.dealer.result.DealerPhotoResult p : payload.result){
		flowVars.photo = new java.util.HashMap();
		flowVars.photo.put("attachmentName",p.photoTitle);
		flowVars.photo.put("attachmentResId",p.storageResId);
	flowVars.resultMap.storePhotos = new java.util.ArrayList();
	for (com.infinitus.gbss.dealer.result.DealerPhotoResult p : payload.result){
		flowVars.photo = new java.util.HashMap();
		flowVars.photo.put("attachmentName",p.photoTitle);
		flowVars.photo.put("attachmentResId",p.storageResId);
		flowVars.photo.put("photoType",p.photoType);
		flowVars.photo.put("photoTitleCode",p.photoTitleCode);
		flowVars.photo.put("photoMongoId",p.photoMongoId);
		flowVars.resultMap.storePhotos.add(flowVars.photo);
	}
}