mrzcc
2020-02-10 6dfb10da0dc5db0011d1719418489d1cfd5a359d
巡检点components
5个文件已添加
188 ■■■■■ 已修改文件
WebService/src/main/java/com/java110/web/components/inspectionPoint/AddInspectionPointComponent.java 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/java/com/java110/web/components/inspectionPoint/ChooseInspectionPointComponent.java 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/java/com/java110/web/components/inspectionPoint/DeleteInspectionPointComponent.java 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/java/com/java110/web/components/inspectionPoint/EditInspectionPointComponent.java 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/java/com/java110/web/components/inspectionPoint/InspectionPointManageComponent.java 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/java/com/java110/web/components/inspectionPoint/AddInspectionPointComponent.java
New file
@@ -0,0 +1,38 @@
package com.java110.web.components.inspectionPoint;
import com.java110.core.context.IPageData;
import com.java110.web.smo.inspectionPoint.IAddInspectionPointSMO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
/**
 * 添加巡检点组件
 * <p>
 * add by zc
 * <p>
 * 2020-02-10
 */
@Component("addInspectionPoint")
public class AddInspectionPointComponent {
    @Autowired
    private IAddInspectionPointSMO addInspectionPointSMOImpl;
    /**
     * 添加巡检点数据
     * @param pd 页面数据封装
     * @return ResponseEntity 对象
     */
    public ResponseEntity<String> save(IPageData pd){
        return addInspectionPointSMOImpl.saveInspectionPoint(pd);
    }
    public IAddInspectionPointSMO getAddInspectionPointSMOImpl() {
        return addInspectionPointSMOImpl;
    }
    public void setAddInspectionPointSMOImpl(IAddInspectionPointSMO addInspectionPointSMOImpl) {
        this.addInspectionPointSMOImpl = addInspectionPointSMOImpl;
    }
}
WebService/src/main/java/com/java110/web/components/inspectionPoint/ChooseInspectionPointComponent.java
New file
@@ -0,0 +1,41 @@
package com.java110.web.components.inspectionPoint;
import com.java110.core.context.IPageData;
import com.java110.web.smo.inspectionPoint.IListInspectionPointsSMO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
/**
 * 应用组件管理类
 * <p>
 * add by zc
 * <p>
 * 2020-02-10
 */
@Component("chooseInspectionPoint")
public class ChooseInspectionPointComponent {
    @Autowired
    private IListInspectionPointsSMO listInspectionPointsSMOImpl;
    /**
     * 查询应用列表
     *
     * @param pd 页面数据封装
     * @return 返回 ResponseEntity 对象
     */
    public ResponseEntity<String> list(IPageData pd) {
        return listInspectionPointsSMOImpl.listInspectionPoints(pd);
    }
    public IListInspectionPointsSMO getListInspectionPointsSMOImpl() {
        return listInspectionPointsSMOImpl;
    }
    public void setListInspectionPointsSMOImpl(IListInspectionPointsSMO listInspectionPointsSMOImpl) {
        this.listInspectionPointsSMOImpl = listInspectionPointsSMOImpl;
    }
}
WebService/src/main/java/com/java110/web/components/inspectionPoint/DeleteInspectionPointComponent.java
New file
@@ -0,0 +1,35 @@
package com.java110.web.components.inspectionPoint;
import com.java110.core.context.IPageData;
import com.java110.web.smo.inspectionPoint.IDeleteInspectionPointSMO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
/**
 * 添加巡检点组件
 */
@Component("deleteInspectionPoint")
public class DeleteInspectionPointComponent {
    @Autowired
    private IDeleteInspectionPointSMO deleteInspectionPointSMOImpl;
    /**
     * 添加巡检点数据
     *
     * @param pd 页面数据封装
     * @return ResponseEntity 对象
     */
    public ResponseEntity<String> delete(IPageData pd) {
        return deleteInspectionPointSMOImpl.deleteInspectionPoint(pd);
    }
    public IDeleteInspectionPointSMO getDeleteInspectionPointSMOImpl() {
        return deleteInspectionPointSMOImpl;
    }
    public void setDeleteInspectionPointSMOImpl(IDeleteInspectionPointSMO deleteInspectionPointSMOImpl) {
        this.deleteInspectionPointSMOImpl = deleteInspectionPointSMOImpl;
    }
}
WebService/src/main/java/com/java110/web/components/inspectionPoint/EditInspectionPointComponent.java
New file
@@ -0,0 +1,34 @@
package com.java110.web.components.inspectionPoint;
import com.java110.core.context.IPageData;
import com.java110.web.smo.inspectionPoint.IEditInspectionPointSMO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
/**
 * 编辑巡检点组件
 */
@Component("editInspectionPoint")
public class EditInspectionPointComponent {
    @Autowired
    private IEditInspectionPointSMO editInspectionPointSMOImpl;
    /**
     * 添加巡检点数据
     * @param pd 页面数据封装
     * @return ResponseEntity 对象
     */
    public ResponseEntity<String> update(IPageData pd){
        return editInspectionPointSMOImpl.updateInspectionPoint(pd);
    }
    public IEditInspectionPointSMO getEditInspectionPointSMOImpl() {
        return editInspectionPointSMOImpl;
    }
    public void setEditInspectionPointSMOImpl(IEditInspectionPointSMO editInspectionPointSMOImpl) {
        this.editInspectionPointSMOImpl = editInspectionPointSMOImpl;
    }
}
WebService/src/main/java/com/java110/web/components/inspectionPoint/InspectionPointManageComponent.java
New file
@@ -0,0 +1,40 @@
package com.java110.web.components.inspectionPoint;
import com.java110.core.context.IPageData;
import com.java110.web.smo.inspectionPoint.IListInspectionPointsSMO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
/**
 * 巡检点组件管理类
 *
 * add by wuxw
 *
 * 2019-06-29
 */
@Component("inspectionPointManage")
public class InspectionPointManageComponent {
    @Autowired
    private IListInspectionPointsSMO listInspectionPointsSMOImpl;
    /**
     * 查询巡检点列表
     * @param pd 页面数据封装
     * @return 返回 ResponseEntity 对象
     */
    public ResponseEntity<String> list(IPageData pd){
        return listInspectionPointsSMOImpl.listInspectionPoints(pd);
    }
    public IListInspectionPointsSMO getListInspectionPointsSMOImpl() {
        return listInspectionPointsSMOImpl;
    }
    public void setListInspectionPointsSMOImpl(IListInspectionPointsSMO listInspectionPointsSMOImpl) {
        this.listInspectionPointsSMOImpl = listInspectionPointsSMOImpl;
    }
}