Browse Source

巡检计划webservice-component

mrzcc 6 years ago
parent
commit
5a2c147228

+ 34 - 0
WebService/src/main/java/com/java110/web/components/inspectionPlan/AddInspectionPlanComponent.java

@@ -0,0 +1,34 @@
+package com.java110.web.components.inspectionPlan;
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.inspectionPlan.IAddInspectionPlanSMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+/**
+ * 添加巡检计划组件
+ */
+@Component("addInspectionPlan")
+public class AddInspectionPlanComponent {
+
+    @Autowired
+    private IAddInspectionPlanSMO addInspectionPlanSMOImpl;
+
+    /**
+     * 添加巡检计划数据
+     * @param pd 页面数据封装
+     * @return ResponseEntity 对象
+     */
+    public ResponseEntity<String> save(IPageData pd){
+        return addInspectionPlanSMOImpl.saveInspectionPlan(pd);
+    }
+
+    public IAddInspectionPlanSMO getAddInspectionPlanSMOImpl() {
+        return addInspectionPlanSMOImpl;
+    }
+
+    public void setAddInspectionPlanSMOImpl(IAddInspectionPlanSMO addInspectionPlanSMOImpl) {
+        this.addInspectionPlanSMOImpl = addInspectionPlanSMOImpl;
+    }
+}

+ 41 - 0
WebService/src/main/java/com/java110/web/components/inspectionPlan/ChooseInspectionPlanComponent.java

@@ -0,0 +1,41 @@
+package com.java110.web.components.inspectionPlan;
+
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.inspectionPlan.IListInspectionPlansSMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+
+/**
+ * 应用组件管理类
+ * <p>
+ * add by wuxw
+ * <p>
+ * 2019-06-29
+ */
+@Component("chooseInspectionPlan")
+public class ChooseInspectionPlanComponent {
+
+    @Autowired
+    private IListInspectionPlansSMO listInspectionPlansSMOImpl;
+
+    /**
+     * 查询应用列表
+     *
+     * @param pd 页面数据封装
+     * @return 返回 ResponseEntity 对象
+     */
+    public ResponseEntity<String> list(IPageData pd) {
+        return listInspectionPlansSMOImpl.listInspectionPlans(pd);
+    }
+
+    public IListInspectionPlansSMO getListInspectionPlansSMOImpl() {
+        return listInspectionPlansSMOImpl;
+    }
+
+    public void setListInspectionPlansSMOImpl(IListInspectionPlansSMO listInspectionPlansSMOImpl) {
+        this.listInspectionPlansSMOImpl = listInspectionPlansSMOImpl;
+    }
+}

+ 35 - 0
WebService/src/main/java/com/java110/web/components/inspectionPlan/DeleteInspectionPlanComponent.java

@@ -0,0 +1,35 @@
+package com.java110.web.components.inspectionPlan;
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.inspectionPlan.IDeleteInspectionPlanSMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+/**
+ * 添加巡检计划组件
+ */
+@Component("deleteInspectionPlan")
+public class DeleteInspectionPlanComponent {
+
+    @Autowired
+    private IDeleteInspectionPlanSMO deleteInspectionPlanSMOImpl;
+
+    /**
+     * 添加巡检计划数据
+     *
+     * @param pd 页面数据封装
+     * @return ResponseEntity 对象
+     */
+    public ResponseEntity<String> delete(IPageData pd) {
+        return deleteInspectionPlanSMOImpl.deleteInspectionPlan(pd);
+    }
+
+    public IDeleteInspectionPlanSMO getDeleteInspectionPlanSMOImpl() {
+        return deleteInspectionPlanSMOImpl;
+    }
+
+    public void setDeleteInspectionPlanSMOImpl(IDeleteInspectionPlanSMO deleteInspectionPlanSMOImpl) {
+        this.deleteInspectionPlanSMOImpl = deleteInspectionPlanSMOImpl;
+    }
+}

+ 34 - 0
WebService/src/main/java/com/java110/web/components/inspectionPlan/EditInspectionPlanComponent.java

@@ -0,0 +1,34 @@
+package com.java110.web.components.inspectionPlan;
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.inspectionPlan.IEditInspectionPlanSMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+/**
+ * 编辑小区组件
+ */
+@Component("editInspectionPlan")
+public class EditInspectionPlanComponent {
+
+    @Autowired
+    private IEditInspectionPlanSMO editInspectionPlanSMOImpl;
+
+    /**
+     * 添加小区数据
+     * @param pd 页面数据封装
+     * @return ResponseEntity 对象
+     */
+    public ResponseEntity<String> update(IPageData pd){
+        return editInspectionPlanSMOImpl.updateInspectionPlan(pd);
+    }
+
+    public IEditInspectionPlanSMO getEditInspectionPlanSMOImpl() {
+        return editInspectionPlanSMOImpl;
+    }
+
+    public void setEditInspectionPlanSMOImpl(IEditInspectionPlanSMO editInspectionPlanSMOImpl) {
+        this.editInspectionPlanSMOImpl = editInspectionPlanSMOImpl;
+    }
+}

+ 40 - 0
WebService/src/main/java/com/java110/web/components/inspectionPlan/InspectionPlanManageComponent.java

@@ -0,0 +1,40 @@
+package com.java110.web.components.inspectionPlan;
+
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.inspectionPlan.IListInspectionPlansSMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+
+/**
+ * 巡检计划组件管理类
+ *
+ * add by wuxw
+ *
+ * 2019-06-29
+ */
+@Component("inspectionPlanManage")
+public class InspectionPlanManageComponent {
+
+    @Autowired
+    private IListInspectionPlansSMO listInspectionPlansSMOImpl;
+
+    /**
+     * 查询巡检计划列表
+     * @param pd 页面数据封装
+     * @return 返回 ResponseEntity 对象
+     */
+    public ResponseEntity<String> list(IPageData pd){
+        return listInspectionPlansSMOImpl.listInspectionPlans(pd);
+    }
+
+    public IListInspectionPlansSMO getListInspectionPlansSMOImpl() {
+        return listInspectionPlansSMOImpl;
+    }
+
+    public void setListInspectionPlansSMOImpl(IListInspectionPlansSMO listInspectionPlansSMOImpl) {
+        this.listInspectionPlansSMOImpl = listInspectionPlansSMOImpl;
+    }
+}