Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit
| | |
| | | <div class="header"> |
| | | <div class="left"> |
| | | <div class="h1">éæ£ææ¥</div> |
| | | <div class="time">ææ¥æ¶é´ï¼{{model.createDate}}</div> |
| | | <div class="time">ææ¥æ¶é´ï¼{{model.submitTime}}</div> |
| | | </div> |
| | | <div class="right" v-if="model.status==0">å¾
å¤ç</div> |
| | | <div class="right" style="background:#53b76f " v-if="model.status==1">å·²å¤ç</div> |
| | |
| | | </div> |
| | | <div class="line"> |
| | | <div class="company"> |
| | | {{ item.createUserName }} |
| | | {{ item.createUserName }} |
| | | <div style="display: inline" v-if="index == logList.length-1"> |
| | | ï¼<span class="status-green" v-if="model.status==1">å·²å¤ç</span> |
| | | <span class="status-blue" v-if="model.status==0">å¾
å¤ç</span> |
| | |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .table-pagination { |
| | | margin-left: -18px; |
| | | padding: 16px 0px 16px 25px; |
| | | margin-left: 0px; |
| | | padding: 16px 0px; |
| | | text-align: left; |
| | | display: block; |
| | | z-index: 100; |
| | | width: -webkit-fill-available; |
| | | /* width: 80%; */ |
| | | position: fixed; |
| | | bottom: 25px; |
| | | bottom: 0px; |
| | | background-color: white; |
| | | margin-right: 50px; |
| | | } |
| | |
| | | background: #F7F8F9; |
| | | height: 100%; |
| | | display: flex; |
| | | // overflow: hidden; |
| | | overflow: scroll; |
| | | overflow: hidden; |
| | | //overflow: scroll; |
| | | // 左边èå |
| | | .el-aside { |
| | | width: $menu-width !important; |
| | | flex-shrink: 0; |
| | | // height: 100%; |
| | | // height: 900px; |
| | | height: calc(100vh - 80px); |
| | | height: calc(100vh - 60px); |
| | | overflow-y: scroll; |
| | | overflow-x: hidden; |
| | | background: #fff; |
| | |
| | | width: 100%; |
| | | //height: 100%; |
| | | overflow: hidden; |
| | | height: calc(100vh - 94px); |
| | | height: calc(100vh - 60px); |
| | | padding: 0; |
| | | position: relative; |
| | | display: flex; |
| | |
| | | } |
| | | // å页 |
| | | .table-pagination { |
| | | margin-left: -18px; |
| | | padding: 16px 0px 16px 25px; |
| | | margin-left: 0px; |
| | | padding: 16px 0px; |
| | | text-align: left; |
| | | display: block; |
| | | z-index: 100; |
| | | width: -webkit-fill-available; |
| | | /* width: 80%; */ |
| | | position: fixed; |
| | | bottom: 25px; |
| | | bottom: 0px; |
| | | background-color: white; |
| | | margin-right: 50px; |
| | | } |
| | |
| | | } |
| | | // å页 |
| | | .table-pagination { |
| | | margin-left: -18px; |
| | | padding: 16px 0px 16px 25px; |
| | | margin-left: 0px; |
| | | padding: 16px 0px ; |
| | | text-align: left; |
| | | display: block; |
| | | z-index: 100; |
| | | width: -webkit-fill-available; |
| | | /* width: 80%; */ |
| | | position: fixed; |
| | | bottom: 25px; |
| | | bottom: 0px; |
| | | background-color: white; |
| | | margin-right: 50px; |
| | | } |
| | |
| | | const height = window.innerHeight |
| | | console.log('beforeEach========================ï¼' + height) |
| | | const height13 = getEleHeghtByClassName('common-header', 0) |
| | | const height4 = getEleHeghtByClassName('table-pagination', 0,-20) |
| | | const height5 = document.getElementsByTagName('thead') && document.getElementsByTagName('thead')[0] ? document.getElementsByTagName('thead')[0].clientHeight : 0 |
| | | if (document.getElementsByClassName('main_app') && document.getElementsByClassName('main_app')[0]) { |
| | | console.log('main_app========================') |
| | | // alert(height) |
| | | const height3 = getEleHeghtByClassName('main-header', 0) |
| | | const height4 = getEleHeghtByClassName('table-pagination', 0) |
| | | const height2 = getEleHeghtByClassName('toolbar', 0) |
| | | const height6 = getEleHeghtByClassName('doumee-filter', 0, 16) |
| | | const height7 = getEleHeghtByClassName('pt16', 0, 0) |
| | |
| | | console.log('tableLayout========================') |
| | | const height1 = getEleHeghtByClassName('table-search-form', 40, 16) |
| | | const height3 = getEleHeghtByClassName('main-header', 0) |
| | | const height4 = getEleHeghtByClassName('table-pagination', 0) |
| | | // const height4 = getEleHeghtByClassName('table-pagination', 0,-20) |
| | | const height2 = getEleHeghtByClassName('toolbar', 0) |
| | | console.log('defualtlength', document.getElementsByClassName('table-search-form').length) |
| | | router.app.$store.commit('setTableHeightNew', height - height4 - height3 - height2 - height1 - height5 - height13) |
| | |
| | | </el-table-column> --> |
| | | <el-table-column prop="personName" label="å§å" min-width="80px"></el-table-column> |
| | | <el-table-column prop="personPhone" label="ææºå·" min-width="100px"></el-table-column> |
| | | <el-table-column prop="personIdcardDecode" label="è¯ä»¶å·" min-width="140px"></el-table-column> |
| | | <el-table-column prop="personIdcardDecode" label="身份è¯å·" min-width="140px"></el-table-column> |
| | | <el-table-column prop="personCompanyName" label="ç»ç»" min-width="100px"></el-table-column> |
| | | <el-table-column label="人åç±»å" min-width="100px"> |
| | | <template slot-scope="{ row }"> |
| | |
| | | |
| | | <style lang="scss" scoped> |
| | | .table-pagination { |
| | | margin-left: -18px; |
| | | padding: 16px 0px 16px 25px; |
| | | |
| | | margin-left: 0px; |
| | | padding: 16px 0px ; |
| | | text-align: left; |
| | | display: block; |
| | | z-index: 100; |
| | | width: -webkit-fill-available; |
| | | /* width: 80%; */ |
| | | position: fixed; |
| | | bottom: 25px; |
| | | bottom: 0px; |
| | | background-color: white; |
| | | margin-right: 50px; |
| | | } |
| | |
| | | |
| | | <style lang="scss" scoped> |
| | | @import "@/assets/style/variables.scss"; |
| | | |
| | | .table-pagination { |
| | | bottom: 0px !important; |
| | | } |
| | | .queuing_modal { |
| | | padding: 10px 30px; |
| | | |
| | |
| | | handleCall(item) { |
| | | // const activePlatform = this.activePlat |
| | | platformJobSign({ jobId: item.id, signType: '2' }).then(res => { |
| | | if (res.code == 200) { |
| | | Message.success('ç¾å°æå') |
| | | this.$message.success('ç¾å°æå') |
| | | this.$emit('success') |
| | | this.getList() |
| | | } |
| | | }) |
| | | }, |
| | | getList(page) { |
| | |
| | | |
| | | <style lang="scss" scoped> |
| | | @import "@/assets/style/variables.scss"; |
| | | |
| | | .table-pagination { |
| | | bottom: 0px !important; |
| | | } |
| | | .queuing_modal { |
| | | padding: 10px 30px; |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.api.timer; |
| | | |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.service.business.BookingsService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2025/3/20 9:58 |
| | | */ |
| | | @Component |
| | | @EnableScheduling |
| | | @Slf4j |
| | | public class TaskController { |
| | | |
| | | |
| | | @Autowired |
| | | private BookingsService bookingsService; |
| | | |
| | | |
| | | /** |
| | | * 宿¶èªå¨å¼å§ä¼è®® |
| | | */ |
| | | @Scheduled(cron = "1 * * * * ?") |
| | | public void autoStart() { |
| | | bookingsService.autoStart(); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | void startEarly(BusinessOverDTO businessOverDTO); |
| | | |
| | | RoomDetailResponse getRoomDetail(Integer roomId); |
| | | |
| | | void autoStart(); |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * èªå¨å¼å§ä¼è®® |
| | | */ |
| | | @Override |
| | | public void autoStart(){ |
| | | List<Rooms> roomList = roomsMapper.selectList(new QueryWrapper<Rooms>().lambda().eq(Rooms::getIsdeleted,Constants.ZERO).eq(Rooms::getStatus,Constants.ZERO)); |
| | | for (Rooms rooms:roomList) { |
| | | //æ¥è¯¢å½åä¼è®®å®¤æ¯å¦åå¨è¿è¡ä¸çä¼è®® |
| | | if(bookingsMapper.selectCount(new QueryWrapper<Bookings>().lambda().eq(Bookings::getIsdeleted,Constants.ZERO) |
| | | .eq(Bookings::getStatus,Constants.ZERO).isNotNull(Bookings::getStartTimeReal) |
| | | )<=Constants.ZERO){ |
| | | //æ ¹æ®ä¼è®®å®¤è·åå¯ä»¥å¼å¯çä¼è®®è®°å½ï¼ç¬¬ä¸æ¡è®°å½ï¼ |
| | | Bookings bookings = bookingsMapper.selectOne(new QueryWrapper<Bookings>().lambda() |
| | | .eq(Bookings::getIsdeleted,Constants.ZERO) |
| | | .eq(Bookings::getStatus,Constants.ZERO) |
| | | .eq(Bookings::getRoomId,rooms.getId()) |
| | | .apply(" now() > START_TIME and now < END_TIME ") |
| | | .isNull(Bookings::getStartTimeReal) |
| | | .orderByAsc(Bookings::getStartTime) |
| | | .last(" limit 1 ") |
| | | ); |
| | | bookings.setStartTimeReal(new Date()); |
| | | bookings.setEditDate(new Date()); |
| | | bookingsMapper.updateById(bookings); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æåå¼å§ |
| | | * @param businessOverDTO |
| | | */ |
| | |
| | | .eq(Cars::getIsdeleted,Constants.ZERO) |
| | | .eq(Cars::getAuthStatus,Constants.ONE)//å·²ææå
æçè½¦è¾ |
| | | ); |
| | | if ((carsMapper!=null && carsList.size()>0)){ |
| | | if (carsList!=null && carsList.size()>0){ |
| | | for(Cars car :carsList){ |
| | | if(Constants.equalsInteger(car.getAuthStatus(),Constants.ZERO)){ |
| | | Cars model = new Cars(); |
| | | if(Constants.equalsInteger(car.getAuthStatus(),Constants.ONE)){ |
| | | carsMapper.update(null,new UpdateWrapper<Cars>().lambda() |
| | | .eq(Cars::getId,car.getId()) |
| | | .set(Cars::getStartTime,null) |
| | | .set(Cars::getEndTime,null) |
| | | .set(Cars::getAuthTimeType,null) |
| | | .set(Cars::getAuthStatus,Constants.ZERO) |
| | | .set(Cars::getEditDate,model.getEditDate()) |
| | | .set(Cars::getEdirot,model.getEdirot()) |
| | | .set(Cars::getEditDate,member.getEditDate()) |
| | | .set(Cars::getEdirot,member.getEditor()) |
| | | ); |
| | | //å é¤å·²ææä¸åçå
æææ |
| | | CarsServiceImpl.dealCancelBookBiz(car.getCode(),date,parkBookMapper); |
| | |
| | | problemLog.setStatus(Constants.ZERO); |
| | | problemLog.setOpenid(finishAnswerDTO.getOpenId()); |
| | | problemLog.setScore(finishAnswerDTO.getScore()); |
| | | if(finishAnswerDTO.getUseType().equals(Constants.ZERO)&&StringUtils.isNotBlank(finishAnswerDTO.getUserId())){ |
| | | if( StringUtils.isNotBlank(finishAnswerDTO.getUserId())){ |
| | | Member member = memberMapper.selectById(finishAnswerDTO.getUserId()); |
| | | if(Objects.isNull(member)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°è®¿å®¢äººå"); |
| | | if(member!=null){ |
| | | /* throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°è®¿å®¢äººå"); |
| | | if(!member.getStatus().equals(Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼è´¦å·å·²ç»" + (member.getStatus().equals(Constants.ONE)?"ç¦ç¨":"æé»/å é¤") ); |
| | | }*/ |
| | | problemLog.setName(member.getName()); |
| | | problemLog.setPhone(member.getPhone()); |
| | | problemLog.setCompanyId(member.getCompanyId()); |
| | | problemLog.setCompanyName(member.getVisitCompanyName()); |
| | | } |
| | | /*if(!member.getType().equals(Constants.memberType.driver)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"é访客人åç±»åï¼çé¢å¤±è´¥"); |
| | | }*/ |
| | | if(!member.getStatus().equals(Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·ï¼è´¦å·å·²ç»" + (member.getStatus().equals(Constants.ONE)?"ç¦ç¨":"æé»/å é¤") ); |
| | | } |
| | | problemLog.setName(member.getName()); |
| | | problemLog.setPhone(member.getPhone()); |
| | | problemLog.setCompanyId(member.getCompanyId()); |
| | | problemLog.setCompanyName(member.getVisitCompanyName()); |
| | | |
| | | |
| | | /* Company company = companyMapper.selectById(member.getCompanyId()); |
| | | if(Objects.isNull(company)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°å³å¡äººåå
¬å¸"); |