|
@@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.tofly.common.core.entity.ResultRespone;
|
|
|
import com.tofly.common.core.util.StringUtil;
|
|
|
import com.tofly.common.log.annotation.ToFlyAppLog;
|
|
|
+import com.tofly.common.oauth.exception.ToflyDeniedException;
|
|
|
import com.tofly.common.oauth.util.SecurityUtils;
|
|
|
import com.tofly.zmrq.controller.BaseController;
|
|
|
import com.tofly.zmrq.custom.entity.ConstructionSiteSearch;
|
|
@@ -61,6 +62,26 @@ public class CustomConstructionSiteController extends BaseController {
|
|
|
return ResultRespone.success(customConstructionSiteService.saveConstructionSite(servletRequest, constructionSite, isAppRequest));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ * 工地监护工单修改
|
|
|
+ *
|
|
|
+ * @param constructionSite 工地监护工单修改
|
|
|
+ * @return ResultRespone
|
|
|
+ */
|
|
|
+ @ToFlyAppLog(title = "工地监护工单修改New")
|
|
|
+ @ApiOperation(value = "工地监护工单修改New")
|
|
|
+ @PostMapping("/updateInfo")
|
|
|
+ public ResultRespone updateConstructionSiteInfo(ConstructionSite constructionSite) {
|
|
|
+ if(constructionSite.getId()==null){
|
|
|
+ throw new ToflyDeniedException("id不能为空");
|
|
|
+ }
|
|
|
+ ConstructionSite info= customConstructionSiteService.getById(constructionSite.getId());
|
|
|
+ if(info==null || info.getId()==null){
|
|
|
+ throw new ToflyDeniedException("修改数据异常");
|
|
|
+ }
|
|
|
+ return ResultRespone.success(customConstructionSiteService.updateById(constructionSite));
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
* 按条件分页查询
|
|
|
*
|