|
@@ -7,6 +7,7 @@ import com.steerinfo.dil.model.RmsCapacity;
|
|
|
import com.steerinfo.dil.service.impl.RmsCapacityServiceImpl;
|
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
|
import com.steerinfo.dil.util.ColumnDataUtil;
|
|
|
+import com.steerinfo.dil.util.DataChange;
|
|
|
import com.steerinfo.dil.util.PageListAdd;
|
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
import com.steerinfo.framework.service.pagehelper.PageHelper;
|
|
@@ -161,11 +162,10 @@ public class RmsCapacityController extends BaseRESTfulController {
|
|
|
mapValue.put("index", con);
|
|
|
}
|
|
|
}
|
|
|
- List<Map<String, Object>> listTotal = rmsCapacityService.getCapacityList(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页查询数据
|
|
|
List<Map<String, Object>> columnList = rmsCapacityService.getCapacityList(mapValue);
|
|
|
- PageListAdd data = columnDataUtil.tableColumnData(apiId, listTotal, columnList);
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, null, columnList);
|
|
|
return success(data);
|
|
|
}
|
|
|
|
|
@@ -179,7 +179,7 @@ public class RmsCapacityController extends BaseRESTfulController {
|
|
|
@PostMapping("/deleteCapacityCarrier")
|
|
|
public RESTfulResult deleteCapacityCarrier(@RequestBody() Map<String,Object> map){
|
|
|
if(map.containsKey("capacityId")&&map.get("capacityId")!=null&&map.containsKey("carrierSSOId")&&map.get("carrierSSOId")!=null){
|
|
|
- int i =rmsCapacityService.deleteCapacityCarrier(map.get("capacityId").toString(),map.get("carrierSSOId").toString());
|
|
|
+ int i =rmsCapacityService.deleteCapacityCarrier(DataChange.dataToBigDecimal(map.get("capacityCarrierId")));
|
|
|
return success(i);
|
|
|
}
|
|
|
return failed();
|