| | |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.business.vo.GeneralDataVO; |
| | | import com.doumee.dao.business.vo.InParkUserDataVO; |
| | | import com.doumee.dao.business.vo.TelecomInParkDataVO; |
| | | import com.doumee.service.business.InoutRecordService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | |
| | | throw new BusinessException(ResponseStatus.EXPORT_EXCEL_ERROR, e); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | @Override |
| | | public TelecomInParkDataVO getInParkDataForTelecom(){ |
| | | TelecomInParkDataVO telecomInParkDataVO = new TelecomInParkDataVO(); |
| | | telecomInParkDataVO.setInCarNum( |
| | | inoutRecordMapper.selectCount(new MPJLambdaWrapper<InoutRecord>() |
| | | .selectAll(InoutRecord.class) |
| | | .eq(InoutRecord::getIsdeleted,Constants.ZERO) |
| | | .eq(InoutRecord::getInOrOut,Constants.ZERO) |
| | | .isNotNull(InoutRecord::getCarCode) |
| | | .apply(" ( DATE_FORMAT(CREATE_DATE, '%Y%m%d') = DATE_FORMAT(now(), '%Y%m%d') ) ") |
| | | .groupBy(InoutRecord::getCarCode) |
| | | ).intValue()); |
| | | |
| | | telecomInParkDataVO.setInUserNum( |
| | | inoutRecordMapper.selectCount(new MPJLambdaWrapper<InoutRecord>() |
| | | .selectAll(InoutRecord.class) |
| | | .eq(InoutRecord::getIsdeleted,Constants.ZERO) |
| | | .eq(InoutRecord::getInOrOut,Constants.ZERO) |
| | | .isNotNull(InoutRecord::getMemberPhone) |
| | | .apply(" ( DATE_FORMAT(CREATE_DATE, '%Y%m%d') = DATE_FORMAT(now(), '%Y%m%d') ) ") |
| | | .groupBy(InoutRecord::getMemberPhone) |
| | | ).intValue()); |
| | | return telecomInParkDataVO; |
| | | } |
| | | |
| | | |
| | | |
| | | } |