|
@@ -1,6 +1,7 @@
|
|
|
package org.jeecg.modules.fbsRdrecord32.controller;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.io.IOException;
|
|
@@ -52,12 +53,18 @@ public class FbsRdrecords32Controller {
|
|
|
*/
|
|
|
|
|
|
@RequestMapping(value = "getMonthSend")
|
|
|
- public Result<List<Map<String,Object>>> getMonthSend(){
|
|
|
- Result<List<Map<String,Object>>> result = new Result<>();
|
|
|
-
|
|
|
+ public Result<Map<String,Object>> getMonthSend(){
|
|
|
+ Result<Map<String,Object>> result = new Result<>();
|
|
|
+ Map<String,Object> mapList = new HashMap<>();
|
|
|
try {
|
|
|
List<Map<String,Object>> map = fbsRdrecords32Service.getMonthSend();
|
|
|
- result.setResult(map);
|
|
|
+ if(map.size() > 0){
|
|
|
+ for (Map<String,Object> m:map){
|
|
|
+ mapList.put(m.get("cInvCName").toString(),m.get("iQuantity"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ result.setResult(mapList);
|
|
|
result.success("成功");
|
|
|
|
|
|
}catch (Exception e){
|