Commit 62f394ae authored by fangxinjiang's avatar fangxinjiang

项目推送接口更新

parent d190a72f
...@@ -119,13 +119,15 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T ...@@ -119,13 +119,15 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
@Override @Override
public R updateProjectInfo(List<TSettleDomain> list) { public R updateProjectInfo(List<TSettleDomain> list) {
if (Common.isNotNull(list)) { if (Common.isNotNull(list)) {
R<AreaVo> areaListR;
TSettleDomain tSettleDomainInfo;
AreaVo areaList;
for (TSettleDomain tSettleDomain:list) { for (TSettleDomain tSettleDomain:list) {
areaListR = upmsDaprUtils.getAreaListR();
R<AreaVo> areaListR = upmsDaprUtils.getAreaListR();
if (null == areaListR || areaListR.getCode() != CommonConstants.SUCCESS) { if (null == areaListR || areaListR.getCode() != CommonConstants.SUCCESS) {
return R.failed("获取区域数据失败!"); return R.failed("获取区域数据失败!");
} }
AreaVo areaList = areaListR.getData(); areaList = areaListR.getData();
if (null != areaList && !areaList.getSysAreaList().isEmpty()) { if (null != areaList && !areaList.getSysAreaList().isEmpty()) {
for (SysArea area : areaList.getSysAreaList()) { for (SysArea area : areaList.getSysAreaList()) {
if (Common.isNotNull(tSettleDomain.getEProvince()) && area.getAreaName().equals(tSettleDomain.getEProvince())) { if (Common.isNotNull(tSettleDomain.getEProvince()) && area.getAreaName().equals(tSettleDomain.getEProvince())) {
...@@ -139,7 +141,7 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T ...@@ -139,7 +141,7 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
} }
} }
} }
TSettleDomain tSettleDomainInfo = baseMapper.selectById(tSettleDomain.getId()); tSettleDomainInfo = baseMapper.selectById(tSettleDomain.getId());
if (Common.isNotNull(tSettleDomainInfo)) { if (Common.isNotNull(tSettleDomainInfo)) {
baseMapper.updateById(tSettleDomain); baseMapper.updateById(tSettleDomain);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment