优化
This commit is contained in:
parent
14aae33cc6
commit
7a6776690e
@ -1,6 +1,7 @@
|
||||
package com.zhgd.xmgl.modules.basicdata.controller.government;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
@ -144,6 +145,29 @@ public class GovEngineeringController {
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@OperLog(operModul = "工程管理", operType = "修改", operDesc = "修改工程结算定案信息")
|
||||
@ApiOperation(value = " 修改工程结算定案信息", notes = "修改工程结算定案信息", httpMethod = "POST")
|
||||
@PostMapping(value = "/editSettlementTime")
|
||||
public Result<Engineering> editSettlementTime(@RequestBody EngineeringVo engineeringVo) {
|
||||
Result<Engineering> result = new Result<Engineering>();
|
||||
Engineering engineering = engineeringService.getById(engineeringVo.getId());
|
||||
if(engineering==null) {
|
||||
result.error500("未找到对应实体");
|
||||
}else {
|
||||
LambdaUpdateWrapper<Engineering> wrapper = Wrappers.<Engineering>lambdaUpdate();
|
||||
wrapper.set(Engineering::getSettlementTime, engineeringVo.getSettlementTime());
|
||||
wrapper.eq(Engineering::getId, engineeringVo.getId());
|
||||
engineeringService.update(wrapper);
|
||||
result.success("操作成功!");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修正定位
|
||||
* @param engineering
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user