|
@@ -1,9 +1,41 @@
|
|
|
package com.sooka.sponest.mobile.data.housingconstruction;
|
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
+import com.ruoyi.common.core.web.page.PageDomain;
|
|
|
+import com.ruoyi.common.core.web.page.TableSupport;
|
|
|
+import com.sooka.sponest.data.api.housingconstruction.domain.HousingconstructionSafetyinspectionrecords;
|
|
|
+import com.sooka.sponest.data.api.housingconstruction.service.RemoteHousingconstructionSafetyinspectionrecordsService;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
|
|
|
@RestController
|
|
|
-@RequestMapping("SafetyinspectionrecordsController")
|
|
|
+@RequestMapping("AppHousingconstructionSafetyinspectionrecordsController")
|
|
|
public class HousingconstructionSafetyinspectionrecordsController {
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ RemoteHousingconstructionSafetyinspectionrecordsService safetyinspectionrecordsService;
|
|
|
+
|
|
|
+ @GetMapping("/safetyinspectionrecords/list")
|
|
|
+ public AjaxResult getList(HousingconstructionSafetyinspectionrecords records){
|
|
|
+ PageDomain pageDomain = TableSupport.buildPageRequest();
|
|
|
+ Integer pageNum = pageDomain.getPageNum();
|
|
|
+ Integer pageSize = pageDomain.getPageSize();
|
|
|
+ return safetyinspectionrecordsService.getList(pageNum, pageSize, records.getEnterpriseInspectionType());
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/safetyinspectionrecords/edit")
|
|
|
+ public AjaxResult getRecordDetailById(String id){
|
|
|
+ return safetyinspectionrecordsService.getRecordDetailById(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/safetyinspectionrecords")
|
|
|
+ public AjaxResult addSafetyinspectionrecords(@RequestBody HousingconstructionSafetyinspectionrecords record){
|
|
|
+ return safetyinspectionrecordsService.addSafetyinspectionrecords(record);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/safetyinspectionrecords/put")
|
|
|
+ public AjaxResult putSafetyinspectionrecords(@RequestBody HousingconstructionSafetyinspectionrecords record){
|
|
|
+ return safetyinspectionrecordsService.putSafetyinspectionrecords(record);
|
|
|
+ }
|
|
|
}
|