java110
2020-05-26 778fc4a6081095dfd670c1ee0e1553394adfbdc5
CommunityService/src/main/java/com/java110/community/smo/impl/InspectionInnerServiceSMOImpl.java
@@ -11,6 +11,8 @@
import com.java110.dto.user.UserDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
@@ -75,6 +77,12 @@
    public int queryInspectionsRelationShipCount(@RequestBody InspectionDto inspectionDto) {
        return inspectionServiceDaoImpl.queryInspectionsRelationShipCount(BeanConvertUtil.beanCovertMap(inspectionDto));    }
    @RequestMapping(value = "/queryInspectionsByPlan", method = RequestMethod.POST)
    public List<InspectionDto> queryInspectionsByPlan(@RequestBody InspectionDto inspectionDto){
        List<InspectionDto> inspections = BeanConvertUtil.covertBeanList(inspectionServiceDaoImpl.queryInspectionsByPlan(BeanConvertUtil.beanCovertMap(inspectionDto)), InspectionDto.class);
        return inspections;
    }
    public IInspectionServiceDao getInspectionServiceDaoImpl() {
        return inspectionServiceDaoImpl;
    }