package com.changhong.epc.tenant.controller.bill; import java.util.ArrayList; import java.util.List; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import com.changhong.epc.bean.tenant.bill.BillData; import com.changhong.epc.bean.tenant.bill.BillImgData; import com.changhong.epc.bean.tenant.bill.ImgData; import com.changhong.epc.constter.tenant.TenantUrlConst; @RestController public class BillImgcontroller implements TenantUrlConst { /* * 查看单据图片 */ @PostMapping(REST_TENANT_BILLIMG_SELECT) public BillImgData selectImg(@RequestBody BillData billData){ ImgData imgData = new ImgData(); BillImgData data = new BillImgData(); List list = new ArrayList(); imgData.setPicUrl("http://chfcloud.changhong.com/download/group1/M00/03/6C/CgREFFnOI7aARtbUAAUMWA7CPok982.jpg"); imgData.setPicName("Image_00003.jpg"); list.add(imgData); ImgData imgData1 = new ImgData(); imgData1.setPicUrl("http://chfcloud.changhong.com/download/group1/M00/03/6C/CgREFFnOI7aAFkHTAAEwc3EOG-E760.jpg"); imgData1.setPicName("34337BE4769F174BC28F4030AAE69E62.jpg"); list.add(imgData1); ImgData imgData2 = new ImgData(); imgData2.setPicUrl("http://chfcloud.changhong.com/download/group1/M00/03/6C/CgREFFnOI7aAI8LqAAZLyAKMEC4155.jpg"); imgData2.setPicName("Image_00002.jpg"); list.add(imgData2); ImgData imgData3 = new ImgData(); imgData3.setPicUrl("http://chfcloud.changhong.com/download/group1/M00/03/6C/CgREFFnOI7aAJnCuAAQpFr7QrGc707.jpg"); imgData3.setPicName("Image_00005.jpg"); list.add(imgData3); ImgData imgData4 = new ImgData(); imgData4.setPicUrl("http://chfcloud.changhong.com/download/group1/M00/03/6C/CgREFFnOI7aARABvAAYltIBdCM8974.jpg"); imgData4.setPicName("Image_00001.jpg"); list.add(imgData4); ImgData imgData5 = new ImgData(); imgData5.setPicUrl("http://chfcloud.changhong.com/download/group1/M00/03/6C/CgREFFnOI7aADEYCAAL-i22Ji5o640.jpg"); imgData5.setPicName("Image_00004.jpg"); list.add(imgData5); data.setData(list); data.setOpState(true); return data; } }