未分页bug修复
parent
c7abd55db7
commit
9eecfecf44
|
@ -40,7 +40,7 @@ public class DwController extends BaseController {
|
||||||
@RequestMapping(value = "saveOrUpdateMap")
|
@RequestMapping(value = "saveOrUpdateMap")
|
||||||
public Object saveOrUpdateMap() throws Exception {
|
public Object saveOrUpdateMap() throws Exception {
|
||||||
PageData pd = this.getPageData();
|
PageData pd = this.getPageData();
|
||||||
MapInfo mapGet = JSONObject.parseObject(JSONObject.toJSONString(pd), MapInfo.class);
|
MapInfo mapGet = JSONObject.parseObject(pd.getString("data"), MapInfo.class);
|
||||||
return dwService.saveOrUpdateMap(mapGet);
|
return dwService.saveOrUpdateMap(mapGet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
package com.zcloud.service.dw.impl;
|
package com.zcloud.service.dw.impl;
|
||||||
|
|
||||||
|
import com.zcloud.entity.PageData;
|
||||||
|
import com.zcloud.service.bus.CorpInfoService;
|
||||||
import com.zcloud.service.dw.DwService;
|
import com.zcloud.service.dw.DwService;
|
||||||
import com.zcloud.service.dw.dto.*;
|
import com.zcloud.service.dw.dto.*;
|
||||||
import com.zcloud.util.HttpUtil;
|
import com.zcloud.util.HttpUtil;
|
||||||
|
import com.zcloud.util.Jurisdiction;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class DwServiceImpl implements DwService {
|
public class DwServiceImpl implements DwService {
|
||||||
|
|
||||||
@Value("${dw.url}")
|
@Value("${dw.url}")
|
||||||
private String url;
|
private String url;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private CorpInfoService corpInfoService;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object getMapList(MapGet param) throws Exception {
|
public Object getMapList(MapGet param) throws Exception {
|
||||||
|
@ -20,6 +28,14 @@ public class DwServiceImpl implements DwService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object saveOrUpdateMap(MapInfo param) throws Exception {
|
public Object saveOrUpdateMap(MapInfo param) throws Exception {
|
||||||
|
param.getRequired().setCreatorId(Jurisdiction.getUSER_ID());
|
||||||
|
param.getRequired().setCreatorName(Jurisdiction.getName());
|
||||||
|
param.getRequired().setOperatorId(Jurisdiction.getUSER_ID());
|
||||||
|
param.getRequired().setOperatorName(Jurisdiction.getName());
|
||||||
|
param.getRequired().setCorpId(Jurisdiction.getCORPINFO_ID());
|
||||||
|
PageData condition = new PageData();
|
||||||
|
condition.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
|
||||||
|
param.getRequired().setCorpName(corpInfoService.findById(condition).getString("CORP_NAME"));
|
||||||
return HttpUtil.post(url + "dw/saveOrUpdateMap", param);
|
return HttpUtil.post(url + "dw/saveOrUpdateMap", param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue