Commit 36c81675 authored by huyuchen's avatar huyuchen

项目基本信息推送

parent 20ff1922
......@@ -239,14 +239,14 @@ public class TSettleDomainController {
/**
* 修改项目表
*
* @param tSettleDomain 项目表
* @param list 项目表
* @return R
*/
@Operation(summary = "修改项目表", description = "修改项目表")
@SysLog("修改项目表")
@PostMapping("/updateProjectInfo")
public R updateProjectInfo(@RequestBody TSettleDomain tSettleDomain) {
return tSettleDomainService.updateProjectInfo(tSettleDomain);
public R updateProjectInfo(@RequestBody List<TSettleDomain> list) {
return tSettleDomainService.updateProjectInfo(list);
}
}
......@@ -70,6 +70,6 @@ public interface TSettleDomainService extends IService<TSettleDomain> {
**/
List<TSettleDomainSelectVo> selectAllSettleDomainSelectVos();
R updateProjectInfo(TSettleDomain tSettleDomain);
R updateProjectInfo(List<TSettleDomain> list);
}
......@@ -117,8 +117,9 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
}
@Override
public R updateProjectInfo(TSettleDomain tSettleDomain) {
if (Common.isNotNull(tSettleDomain)) {
public R updateProjectInfo(List<TSettleDomain> list) {
if (Common.isNotNull(list)) {
for (TSettleDomain tSettleDomain:list) {
R<AreaVo> areaListR = upmsDaprUtils.getAreaListR();
if (null == areaListR || areaListR.getCode() != CommonConstants.SUCCESS) {
......@@ -144,6 +145,7 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
} else {
baseMapper.insert(tSettleDomain);
}
}
return R.ok();
} else {
return R.failed(CommonConstants.PARAM_IS_NOT_ERROR);
......
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