|
@@ -6,6 +6,7 @@ import com.hotent.base.constants.ApiGroupConsts;
|
|
|
import com.hotent.common.CrudService;
|
|
import com.hotent.common.CrudService;
|
|
|
import com.hotent.project.model.CostProjectDocument;
|
|
import com.hotent.project.model.CostProjectDocument;
|
|
|
import com.hotent.project.req.CostProjectBasePageReq;
|
|
import com.hotent.project.req.CostProjectBasePageReq;
|
|
|
|
|
+import com.hotent.project.req.CostProjectMemoUpdateReq;
|
|
|
import com.hotent.req.PageReq;
|
|
import com.hotent.req.PageReq;
|
|
|
import com.hotent.resp.PageResp;
|
|
import com.hotent.resp.PageResp;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
@@ -57,4 +58,17 @@ public class CostProjectMaterialController extends BaseController<CostProjectMat
|
|
|
return CommonResult.<PageResp<CostProjectMaterial>>ok().value(crudService.pageQuery(req, baseService::pageList));
|
|
return CommonResult.<PageResp<CostProjectMaterial>>ok().value(crudService.pageQuery(req, baseService::pageList));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 取报送资料要求数据新增或者修改
|
|
|
|
|
+ * @return
|
|
|
|
|
+ * @throws Exception
|
|
|
|
|
+ * ModelAndView
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping(value = "/update")
|
|
|
|
|
+ @ApiOperation(value = "取报送资料要求数据新增或者修改", httpMethod = "POST", notes = "取报送资料要求数据新增或者修改")
|
|
|
|
|
+ public CommonResult update(@RequestBody CostProjectMaterial req) throws Exception {
|
|
|
|
|
+ int result = baseService.createOrUpdate(req);
|
|
|
|
|
+ return CommonResult.ok().value(result > 0 ? "更新成功" : "更新失败");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|