| | |
| | | |
| | | IPage<ComActNeighborCircleAdminVO> indexNeighborList(@Param("page") Page page, @Param("pageBaseDTO") PageBaseDTO pageBaseDTO); |
| | | |
| | | |
| | | ServiceStaticsVO selectStatsCheckUnit(Long checkUnitId); |
| | | } |
| | |
| | | |
| | | @Override |
| | | public R serviceStatic(ServiceStaticDTO serviceStaticDTO) { |
| | | ServiceStaticsVO serviceStaticsVO=new ServiceStaticsVO(); |
| | | if(serviceStaticDTO.getCheckUnitId()!=null){ |
| | | serviceStaticsVO=this.baseMapper.selectStatsCheckUnit(serviceStaticDTO.getCheckUnitId()); |
| | | } |
| | | return null; |
| | | } |
| | | } |
| | |
| | | where canc.id =#{circleId} |
| | | </select> |
| | | |
| | | <select id="selectStatsCheckUnit" resultType="com.panzhihua.common.model.vos.neighbor.ServiceStaticsVO"> |
| | | select count(t1.checkId) as times,sum(t1.hours) as hours from ((select real_service_time as hours,solve_id as checkId from com_act_neighbor_circle where order_type = 1 and solve_status = 4 and solve_id = #{checkUnitId}) union all |
| | | (select duration as hours,relation_id as checkId from com_act_activity where relation_id = #{checkUnitId})) t1 |
| | | </select> |
| | | |
| | | </mapper> |