| | |
| | | |
| | | import com.panzhihua.common.model.dtos.partybuilding.NeedProblemInventoryDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_dangjian.service.NeedProblemInventoryService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @PostMapping("/addData") |
| | | public R addNeedProblemData(@RequestBody NeedProblemInventoryDTO item) |
| | | { |
| | | if(StringUtils.isEmpty(item.getCommunityId())) |
| | | { |
| | | return R.fail("CommunityId 不能为空!"); |
| | | } |
| | | return R.ok(inventoryService.addData(item)); |
| | | } |
| | | |