|
|
@ -124,4 +124,50 @@ public class CsmCashReportRest { |
|
|
|
return rb.success().setData(url); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @Description //描述: 测试数据
|
|
|
|
* @Param [date] |
|
|
|
* @return com.yxt.common.core.result.ResultBean |
|
|
|
**/ |
|
|
|
@GetMapping("/test/{date}") |
|
|
|
public ResultBean test(@PathVariable String date){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
Map<String, Object> mapCount = new HashMap<>(); |
|
|
|
String [] a = new String [] {"供应链仓","常温仓"}; |
|
|
|
Integer [] b = new Integer [] {1212,45455}; |
|
|
|
List<Map<String, Object>> list = new ArrayList<>(); |
|
|
|
for (int i = 0; i <= 1; i++){ |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("name",a[i]); |
|
|
|
map.put("price",b[i]); |
|
|
|
map.put("sid",i+3); |
|
|
|
list.add(map); |
|
|
|
} |
|
|
|
mapCount.put("projectName","山海能源光伏动产质押项目"); |
|
|
|
mapCount.put("stockType","2"); |
|
|
|
mapCount.put("endTime","2023-07-31 15:55"); |
|
|
|
mapCount.put("stockPrice",b[0]+b[1]); |
|
|
|
mapCount.put("url","http://localhost:7003/upload/kchzb/每日回款审核报告"+date+".docx"); |
|
|
|
mapCount.put("list",list); |
|
|
|
return rb.success().setData(mapCount); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/testBySid/{sid}") |
|
|
|
public ResultBean testBySid(@PathVariable String sid){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
List<Map<String, Object>> strings = new ArrayList<>(); |
|
|
|
int a = 5; |
|
|
|
int b = 3; |
|
|
|
for (int i = 0; i <= 4; i++){ |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("name","可口可乐"); |
|
|
|
map.put("number",a); |
|
|
|
map.put("price",b); |
|
|
|
map.put("count",a*b); |
|
|
|
strings.add(map); |
|
|
|
} |
|
|
|
return rb.success().setData(strings); |
|
|
|
} |
|
|
|
} |
|
|
|