Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit
| | |
| | | <el-form-item label="ç»ç»åç§°" prop="companyName"> |
| | | <el-input v-model="searchForm.companyName" placeholder="请è¾å
¥ç»ç»åç§°" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="ç¨æ·ç±»å" prop="type"> |
| | | <!-- <el-form-item label="ç¨æ·ç±»å" prop="type"> |
| | | <el-select v-model="searchForm.type" placeholder="è¯·éæ©"> |
| | | <el-option label="访客" value="1"></el-option> |
| | | <el-option label="å³å¡" value="0"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form-item>--> |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <el-button @click="reset">éç½®</el-button> |
| | |
| | | <el-table-column prop="phone" label="ææºå·" min-width="100px"></el-table-column> |
| | | <el-table-column prop="companyName" label="ç»ç»" min-width="100px"></el-table-column> |
| | | <el-table-column label="ç¨æ·ç±»å" min-width="100px"> |
| | | <template slot-scope="{ row }"> |
| | | <span>访客</span> |
| | | <!-- <template slot-scope="{ row }"> |
| | | <span v-if="row.type === 0">å³å¡è®¿å®¢</span> |
| | | <span v-if="row.type === 1">æ®é访客</span> |
| | | <span v-if="row.type === 2">å
é¨äººå</span> |
| | | </template> |
| | | </template>--> |
| | | </el-table-column> |
| | | <el-table-column prop="inDate" label="å¨åæ¶é´" min-width="100px"></el-table-column> |
| | | <el-table-column prop="outDate" label="ææå°ææ¶é´" min-width="100px"></el-table-column> |
| | |
| | | searchForm: { |
| | | companyName: '', |
| | | name: '', |
| | | status: 2, |
| | | type: '1' |
| | | status: 2 |
| | | // type: '1' |
| | | }, |
| | | user: [] |
| | | } |
| | |
| | | @ApiModelProperty(value = "æåå¼å§æ¶é´") |
| | | private Date startTimeReal; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦åéåä¼äººéç¥ï¼0=éç¥ï¼1=ä¸éç¥") |
| | | private Integer joinNotice; |
| | | |
| | | @ApiModelProperty(value = "é¢çº¦äºº") |
| | | @TableField(exist = false) |
| | | private String realName ; |
| | |
| | | spring: |
| | | profiles: |
| | | active: pro |
| | | active: dev |
| | | application: |
| | | name: system_gateway |
| | | # å®å
¨é
ç½® |
| | |
| | | }else{ |
| | | val = String.valueOf(val.toString()).trim(); |
| | | } |
| | | }else if (valType == Integer.class){ |
| | | } |
| | | else if (valType == Integer.class){ |
| | | val = Double.valueOf(val.toString()).intValue(); |
| | | }else if (valType == Long.class){ |
| | | val = Double.valueOf(val.toString()).longValue(); |
| | |
| | | public static final String MEMBER_IMG = "MEMBER_IMG"; |
| | | public static final String PLATFORM_EVENT_IMG = "PLATFORM_EVENT_IMG"; |
| | | public static final String VISIT_NOTICE = "VISIT_NOTICE"; |
| | | public static final String TIME_OUT_CONFIG = "TIME_OUT_CONFIG"; |
| | | |
| | | //å¥åº·è¯é
ç½® |
| | | public static final String LW_HEALTH_CARD = "LW_HEALTH_CARD"; |
| | | public static final String HEALTH_CARD = "HEALTH_CARD"; |
| | |
| | | |
| | | public interface RedisKeys { |
| | | public static final String IMPORTING_MEMBER ="IMPORTING_MEMBER"; |
| | | public static final String IMPORTING_GAS ="IMPORTING_GAS"; |
| | | public static final String ERP_TOKEN ="ERP_TOKEN"; |
| | | public static final long EXPIRE_TIME = 7200; |
| | | |
| | |
| | | * 5ãè¶
æ¶åé ï¼1å·æå° çA12345 å½å车è¾è¶
æ¶åé ï¼è¯·å°½å¿«é©¶ç¦» |
| | | */ |
| | | public enum PlatformLedContent { |
| | | IDEL_CONTNET(1, "空é²ä¸","{param}" ), |
| | | IDEL_CONTNET(1, "空é²ä¸","宿³°ç©æµæé责任å
¬å¸" ), |
| | | CALLING(2, "å«å·ä¸","${param} ${param2} å«å·ä¸"), |
| | | WORKING(3, "ä½ä¸ä¸","${param} ${param2} ä½ä¸ä¸" ), |
| | | WRONG_IN(4, "é误åé ","${param} ${param2} å½å车è¾é误åé ï¼è¯·å°½å¿«é©¶ç¦»" ), |
| | | TIMEOUT_IN(5, "è¶
æ¶åé ","${param} ${param2} å½å车è¾è¶
æ¶åé ï¼è¯·å°½å¿«é©¶ç¦»" ), |
| | | TIMEOUT_WORK(6, "ä½ä¸è¶
æ¶","${param} ${param2} å½å车è¾ä½ä¸è¶
æ¶" ), |
| | | DONE(7, "ä½ä¸å®æ","${param} ${param2} ä½ä¸å®æ" ), |
| | | ; |
| | | |
| | | // æååé |
| | |
| | | String visitAuditFail = "visitAuditFail"; |
| | | //访客ç³è¯·-è¶
æ¶æªç¾ç¦»-éç¥ï¼ç»ç³è¯·äººï¼ï¼ |
| | | String visitTimeOutSignOut = "visitTimeOutSignOut"; |
| | | //访客ç³è¯·-è¶
æ¶æªç¾ç¦»-éç¥ï¼ç»æå®æ¥æ¶äººï¼ |
| | | //访客ç³è¯·-æªç¾ç¦»æ°é-éç¥ï¼ç»æå®æ¥æ¶äººï¼ //TODO æ æ¶ç信人å |
| | | String visitTimeOutSignOutNum = "visitTimeOutSignOutNum"; |
| | | |
| | | } |
| | |
| | | String carUseBookAuditSuccess = "carUseBookAuditSuccess"; |
| | | //ç¨è½¦ç³è¯·-审æ¹é©³åéç¥ï¼ç»ç³è¯·äººï¼ï¼ã |
| | | String carUseBookAuditFail = "carUseBookAuditFail"; |
| | | //ç¨è½¦ç³è¯·-审æ¹é©³åéç¥ï¼ç»ç³è¯·äººï¼ï¼ã |
| | | //ç¨è½¦ç³è¯·-审æ¹åæ¶éç¥ï¼ç»ç³è¯·äººï¼ï¼ã |
| | | String carUseBookCancel = "carUseBookCancel"; |
| | | } |
| | | |
| | |
| | | if (pageWrap.getModel().getReaded() != null) { |
| | | queryWrapper.eq(Notices::getReaded, pageWrap.getModel().getReaded()); |
| | | } |
| | | |
| | | if(CollectionUtils.isNotEmpty(pageWrap.getSorts())){ |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | |
| | | queryWrapper.orderByDesc(Notices::getCreateDate); |
| | | } |
| | | PageData<Notices> pageData = PageData.from(noticesMapper.selectJoinPage(page,Notices.class, queryWrapper)); |
| | | |
| | | return pageData; |
| | | } |
| | | |
| | |
| | | queryWrapper.ge(noticesDTO.getStartDate() != null, Notices::getCreateDate, Utils.Date.getStart(noticesDTO.getStartDate() )); |
| | | queryWrapper.le(noticesDTO.getEndDate() != null, Notices::getCreateDate, Utils.Date.getEnd(noticesDTO.getEndDate() )); |
| | | queryWrapper.eq(Objects.nonNull(noticesDTO.getType()),Notices::getType,noticesDTO.getType()); |
| | | queryWrapper.eq(Objects.nonNull(noticesDTO.getMemberId()),Notices::getUserId,noticesDTO.getMemberId()); |
| | | queryWrapper.eq(StringUtils.isNotBlank(noticesDTO.getTitle()),Notices::getTitle,noticesDTO.getTitle()); |
| | | // queryWrapper.eq(Objects.nonNull(noticesDTO.getMemberId()),Notices::getUserId,noticesDTO.getMemberId()); |
| | | queryWrapper.like(StringUtils.isNotBlank(noticesDTO.getTitle()),Notices::getTitle,noticesDTO.getTitle()); |
| | | queryWrapper.orderByDesc(Notices::getCreateDate); |
| | | PageData<Notices> pageData = PageData.from(noticesMapper.selectJoinPage(page,Notices.class, queryWrapper)); |
| | | if(noticesDTO.getQueryType().equals(Constants.ZERO)){ |
| | |
| | | @ApiOperation("ãæ°ååæå°ãæå°ä½ä¸æ¥è¦ä¸å¡") |
| | | @GetMapping("/timer/platformJob/platformJobTimer") |
| | | ApiResponse platformJobTimer(); |
| | | @ApiOperation("ã访客系ç»ãè®¿å®¢æ°æ®å³å°è¶
æ¶é¢è¦") |
| | | @GetMapping("/timer/visit/visitTimeOut") |
| | | ApiResponse visitTimeOut() ; |
| | | |
| | | |
| | | } |
| | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.service.business.VisitsService; |
| | | import com.doumee.service.business.impl.hksync.HkSyncDeviceServiceImpl; |
| | | import com.doumee.service.business.impl.hksync.HkSyncVisitServiceImpl; |
| | | import com.doumee.service.business.impl.hksync.fhk.HkSyncVisitFromHKServiceImpl; |
| | |
| | | private HkSyncVisitServiceImpl hkSyncVisitService; |
| | | @Autowired |
| | | private HkSyncVisitFromHKServiceImpl hkSyncVisitFromHKService; |
| | | @Autowired |
| | | private VisitsService visitsService; |
| | | |
| | | @ApiOperation("å¼å¯å®æ¶ä¸å访客é¢çº¦ç³è¯·") |
| | | @GetMapping("/syncVisitData") |
| | | public ApiResponse syncVisitData() { |
| | |
| | | return ApiResponse.success("å¼å¯å®æ¶ä»æ¥ç访客é¢çº¦æ°æ®æå"); |
| | | } |
| | | |
| | | @ApiOperation("访客å³å°è¶
æ¶é¢è¦") |
| | | @GetMapping("/visitTimeOut") |
| | | public ApiResponse visitTimeOut() { |
| | | visitsService.syncTimeOutData(); |
| | | return ApiResponse.success("访客å³å°è¶
æ¶é¢è¦"); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.doumee.core.wx.WXConstant; |
| | | import com.doumee.dao.system.model.SystemDictData; |
| | | import com.doumee.service.business.PlatformJobService; |
| | | import com.doumee.service.business.VisitsService; |
| | | import com.doumee.service.system.SystemDictDataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @Autowired |
| | | private PlatformJobService platformJobService; |
| | | |
| | | |
| | | @ApiOperation("æå°ä½ä¸æ¥è¦ä¸å¡") |
| | | @GetMapping("/platformJobTimer") |
| | | public ApiResponse platformJobTimer() { |
| | |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:platformwatergas:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<PlatformWaterGas> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(PlatformWaterGas.class).export(platformWaterGasService.findPage(pageWrap).getRecords(), "æå°_ç¨æ°´ç¨æ°ä¿¡æ¯è®°å½è¡¨", response); |
| | | List<PlatformWaterGas> waterGasPageData = platformWaterGasService.findPage(pageWrap).getRecords(); |
| | | ExcelExporter.build(PlatformWaterGas.class).export(waterGasPageData, "æå°_ç¨æ°´ç¨æ°ä¿¡æ¯è®°å½è¡¨", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | |
| | | import com.doumee.dao.web.reqeust.JobDetailDTO; |
| | | import com.doumee.dao.web.reqeust.SignInDTO; |
| | | import com.doumee.service.business.PlatformJobService; |
| | | import com.github.xiaoymin.knife4j.core.util.CollectionUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | |
| | | @PostMapping("/exportExcel") |
| | | @CloudRequiredPermission("business:platformjob:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<PlatformJob> pageWrap, HttpServletResponse response,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | ExcelExporter.build(PlatformJob.class).export(platformJobService.findPage(pageWrap).getRecords(), "æå°è°åº¦ä½ä¸ä¿¡æ¯è¡¨", response); |
| | | List<PlatformJob> platformJobList = platformJobService.findPage(pageWrap).getRecords(); |
| | | if(CollectionUtils.isNotEmpty(platformJobList)){ |
| | | for (PlatformJob platformJob:platformJobList) { |
| | | platformJob.setJobForm(Constants.ZERO); |
| | | } |
| | | } |
| | | ExcelExporter.build(PlatformJob.class).export(platformJobList, "宿³°ç©æµä½ä¸ä»»å¡", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.PlatformWaterGas; |
| | | import com.doumee.dao.business.vo.PlatformWaterGasForExcelVO; |
| | | import com.doumee.service.business.PlatformWaterGasService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.*; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.File; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | |
| | | @PostMapping("/exportExcel") |
| | | @CloudRequiredPermission("business:platformwatergas:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<PlatformWaterGas> pageWrap, HttpServletResponse response,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | ExcelExporter.build(PlatformWaterGas.class).export(platformWaterGasService.findPage(pageWrap).getRecords(), "æå°_ç¨æ°´ç¨æ°ä¿¡æ¯è®°å½è¡¨", response); |
| | | List<PlatformWaterGas> waterGasPageData = platformWaterGasService.findPage(pageWrap).getRecords(); |
| | | if(Objects.nonNull(pageWrap.getModel()) |
| | | && Objects.nonNull(pageWrap.getModel().getType()) && !Constants.equalsInteger(pageWrap.getModel().getType(),Constants.TWO)){ |
| | | List<PlatformWaterGasForExcelVO> pageData = new ArrayList<>(); |
| | | for (PlatformWaterGas platformWaterGas:waterGasPageData) { |
| | | PlatformWaterGasForExcelVO platformWaterGasForExcelVO = new PlatformWaterGasForExcelVO(); |
| | | BeanUtils.copyProperties(platformWaterGas,platformWaterGasForExcelVO); |
| | | pageData.add(platformWaterGasForExcelVO); |
| | | } |
| | | ExcelExporter.build(PlatformWaterGasForExcelVO.class).export(pageData, Constants.equalsInteger(pageWrap.getModel().getType(),Constants.ZERO)?"æå°_ç¨æ°´ä¿¡æ¯è®°å½è¡¨":"æå°_ç¨æ°ä¿¡æ¯è®°å½è¡¨", response); |
| | | }else{ |
| | | ExcelExporter.build(PlatformWaterGas.class).export(waterGasPageData, "æå°_æ²¹èä¿¡æ¯è®°å½è¡¨", response); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "æ²¹èä¿¡æ¯å¯¼å
¥") |
| | | @PostMapping("/importExcel") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "file", value = "file", required = true, paramType = "query", dataType = "file", dataTypeClass = File.class), |
| | | }) |
| | | @CloudRequiredPermission("business:platformwatergas:exportExcel") |
| | | public ApiResponse<String> importExcel (@ApiParam(value = "file") MultipartFile file, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | return ApiResponse.success(platformWaterGasService.importBatch(file,this.getLoginUser(token))); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | |
| | | public ApiResponse<PageData<Notices>> taskPage (@RequestBody PageWrap<NoticesDTO> pageWrap, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | LoginUserInfo loginUserInfo = getLoginUser(token); |
| | | pageWrap.getModel().setMemberId(loginUserInfo.getMemberId()); |
| | | pageWrap.getModel().setUserId(loginUserInfo.getId()); |
| | | // pageWrap.getModel().setUserId(loginUserInfo.getId()); |
| | | return ApiResponse.success(noticesService.taskCanterPage(pageWrap)); |
| | | } |
| | | |
| | |
| | | @LoginNoRequired |
| | | @PostMapping("/tms/lockStatusQuery") |
| | | public TmsBaseResponse<List<TmsLockStatusQueryResponse>> lockStatusQuery(@RequestBody TmsLockStatusQueryRequest request ) { |
| | | |
| | | return tmsService.lockStatusQuery(request); |
| | | } |
| | | @ApiOperation("ãTMSãååå表æ¥å£") |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.admin.request; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * å工信æ¯å¯¼å
¥è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/01/16 10:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("æ²¹èä¿¡æ¯å¯¼å
¥") |
| | | public class PlatformGasImport { |
| | | |
| | | @ExcelColumn(name="车çå·",value = "carCode",index = 1) |
| | | private String carCode; |
| | | |
| | | @ExcelColumn(name="æ¶é´ï¼å¹´æï¼",value = "timeInfo",index = 2,dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date timeInfo; |
| | | |
| | | @ExcelColumn(name="æ°é",value = "num",index = 3) |
| | | private String num; |
| | | |
| | | @ExcelColumn(name="说æ",value = "content",index = 3) |
| | | private String content; |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "ç»ç»ç±»å 0å³å¡å
¬å¸ 1å
é¨ç»ç»") |
| | | @TableField(exist = false) |
| | | private Integer companyType; |
| | | |
| | | @ApiModelProperty(value = "ç»ç»ç±»å 0å³å¡å
¬å¸ 1å
é¨ç»ç» å¤ä¸ªä»¥,åå²") |
| | | @TableField(exist = false) |
| | | private String companyTypes; |
| | | @ApiModelProperty(value = "ç»ç»ç¼ç è·¯å¾") |
| | | @TableField(exist = false) |
| | | private String companyPath; |
| | |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | | @ExcelColumn(name="主é®") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å建人ç¼ç ", example = "1") |
| | | @ExcelColumn(name="å建人ç¼ç ") |
| | | private Integer creator; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´",index = 7, dateFormat = "yyyy-MM-dd hh:mm:ss") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="æ´æ°äººç¼ç ") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | | private Integer isdeleted; |
| | | |
| | | @ApiModelProperty(value = "åç§°") |
| | | @ExcelColumn(name="åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 0å¾
确认 1å¾
ç¾å° 2çå¾
å«å· 3å
¥åçå¾
4å·²å«å· 5ä½ä¸ä¸ 6ä½ä¸å®æ 7è½¬ç§»ä¸ 8å¼å¸¸æèµ· 9å·²ææç¦»å 10已离å 11 å·²è¿å· 12åæ¶ï¼WMSï¼" , example = "1") |
| | | @ExcelColumn(name="ç¶æ 0å¾
确认 1å¾
ç¾å° 2çå¾
å«å· 3å
¥åçå¾
4å·²å«å· 5ä½ä¸ä¸ 6ä½ä¸å®æ 7è½¬ç§»ä¸ 8å¼å¸¸æèµ· 9å·²ææç¦»å 10已离å 11 å·²è¿å· 12åæ¶ï¼WMSï¼") |
| | | @ExcelColumn(name="ç¶æ",index = 8, valueMapping = "0:å¾
确认;1:å¾
ç¾å°;2:çå¾
å«å·;3:å
¥åçå¾
;4:å·²å«å·;5:ä½ä¸ä¸;6:ä½ä¸å®æ;7:转移ä¸;8:å¼å¸¸æèµ·;9:å·²ææç¦»å;10:已离å;11:å·²è¿å·;12:åæ¶ï¼WMSï¼;") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "车è¾è¿å
¥ç¶æ 0ä¸å¨ 1è¿å
¥ " , example = "1") |
| | | @ExcelColumn(name="车è¾è¿å
¥ç¶æ 0ä¸å¨ 1è¿å
¥ ") |
| | | private Integer inOut; |
| | | |
| | | @ApiModelProperty(value = "æåºç ", example = "1") |
| | | @ExcelColumn(name="æåºç ") |
| | | private Integer sortnum; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸åå·") |
| | | @ExcelColumn(name="ä½ä¸åå·") |
| | | private String code; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸å¯ä¸æ è¯(æ¿è¿åå·ï¼") |
| | | @ExcelColumn(name="ä½ä¸å¯ä¸æ è¯(æ¿è¿åå·ï¼") |
| | | @ExcelColumn(name="è¿åå·",index = 0) |
| | | private String billCode; |
| | | |
| | | @ApiModelProperty(value = "叿ºç¼ç ", example = "1") |
| | | @ExcelColumn(name="叿ºç¼ç ") |
| | | private Integer driverId; |
| | | |
| | | @ApiModelProperty(value = "叿ºå§å") |
| | | @ExcelColumn(name="叿ºå§å") |
| | | @ExcelColumn(name="叿ºå§å",index = 4) |
| | | private String driverName; |
| | | |
| | | @ApiModelProperty(value = "车çå·") |
| | | @ExcelColumn(name="车çå·") |
| | | private String plateNum; |
| | | |
| | | @ApiModelProperty(value = "叿ºææºå·") |
| | | @ExcelColumn(name="叿ºææºå·") |
| | | @ExcelColumn(name="叿ºçµè¯",index = 5) |
| | | private String drivierPhone; |
| | | |
| | | @ApiModelProperty(value = "ç¾å°æ¶é´") |
| | | @ExcelColumn(name="ç¾å°æ¶é´") |
| | | private Date signDate; |
| | | |
| | | @ApiModelProperty(value = "ç¾å°æ¹å¼ 0appç¾å° 1æ«ç ç¾å° 2åå°ç¾å°", example = "1") |
| | | @ExcelColumn(name="ç¾å°æ¹å¼ 0appç¾å° 1æ«ç ç¾å° 2åå°ç¾å°") |
| | | private Integer singType; |
| | | |
| | | @ApiModelProperty(value = "éç¥WMSä½ä¸ç»å®æå°æ¶é´") |
| | | @ExcelColumn(name="éç¥WMSä½ä¸ç»å®æå°æ¶é´") |
| | | private Date wmsSendDate; |
| | | |
| | | @ApiModelProperty(value = "éç¥WMSä½ä¸ç»å®æå°ç¶æ 0å¾
éç¥ 1éç¥æå 2éç¥å¤±è´¥", example = "1") |
| | | @ExcelColumn(name="éç¥WMSä½ä¸ç»å®æå°ç¶æ 0å¾
éç¥ 1éç¥æå 2éç¥å¤±è´¥") |
| | | private Integer wmsSendStatus; |
| | | |
| | | @ApiModelProperty(value = "éç¥WMSä½ä¸ç»å®æå°ç·¨ç¢¼", example = "1") |
| | | @ExcelColumn(name="éç¥WMSä½ä¸ç»å®æå°ç·¨ç¢¼") |
| | | private String wmsSendPlatformCode; |
| | | |
| | | @ApiModelProperty(value = "éç¥WMSä½ä¸ç»å®æå°å¤æ³¨", example = "1") |
| | | @ExcelColumn(name="éç¥WMSä½ä¸ç»å®æå°å¤æ³¨") |
| | | private String wmsSendInfo; |
| | | |
| | | @ApiModelProperty(value = "éç¥WMSä½ä¸ç»å®æå°æ¬¡æ°", example = "1") |
| | | @ExcelColumn(name="éç¥WMSä½ä¸ç»å®æå°æ¬¡æ°") |
| | | private Integer wmsSendNum; |
| | | |
| | | @ApiModelProperty(value = "ç¾å°è·ç¦»(ç±³ï¼", example = "1") |
| | | @ExcelColumn(name="ç¾å°è·ç¦»(ç±³ï¼") |
| | | private BigDecimal signDistance; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸æå°åç§°éåï¼å¤ä¸ªä½¿ç¨è±æéå·éå¼") |
| | | @ExcelColumn(name="ä½ä¸æå°åç§°éåï¼å¤ä¸ªä½¿ç¨è±æéå·éå¼") |
| | | private String platformNames; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸æå°ç¼ç éåï¼å¤ä¸ªä½¿ç¨è±æéå·éå¼") |
| | | @ExcelColumn(name="ä½ä¸æå°ç¼ç éåï¼å¤ä¸ªä½¿ç¨è±æéå·éå¼") |
| | | private String platforms; |
| | | |
| | | @ApiModelProperty(value = "æè¿åé
æå°ç¼ç ï¼å
³èplatform)", example = "1") |
| | | @ExcelColumn(name="æè¿åé
æå°ç¼ç ï¼å
³èplatform)") |
| | | private Integer platformId; |
| | | |
| | | @ApiModelProperty(value = "æå°åç»ç¼ç ï¼å
³èplatform_group)", example = "1") |
| | | @ExcelColumn(name="æå°åç»ç¼ç ï¼å
³èplatform_group)") |
| | | private Integer platformGroupId; |
| | | |
| | | @ApiModelProperty(value = "éç¥å
¥åçå¾
æ¶é´") |
| | | @ExcelColumn(name="éç¥å
¥åçå¾
æ¶é´") |
| | | private Date inwaitDate; |
| | | |
| | | @ApiModelProperty(value = "éç¥å
¥åçå¾
æä½äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="éç¥å
¥åçå¾
æä½äººç¼ç ") |
| | | private Integer inwaitUserId; |
| | | |
| | | @ApiModelProperty(value = "å«å·æ¶é´") |
| | | @ExcelColumn(name="å«å·æ¶é´") |
| | | private Date callDate; |
| | | |
| | | |
| | | @ApiModelProperty(value = "å«å·äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="å«å·äººç¼ç ") |
| | | private Integer callUserId; |
| | | |
| | | @ApiModelProperty(value = "å«å·å¤æ³¨") |
| | | @ExcelColumn(name="å«å·å¤æ³¨") |
| | | private String callInfo; |
| | | |
| | | @ApiModelProperty(value = "å¼å§ä½ä¸æ¶é´") |
| | | @ExcelColumn(name="å¼å§ä½ä¸æ¶é´") |
| | | private Date startDate; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸å®ææ¶é´ï¼æç»æ¶é´ï¼") |
| | | @ExcelColumn(name="ä½ä¸å®ææ¶é´ï¼æç»æ¶é´ï¼") |
| | | private Date doneDate; |
| | | |
| | | @ApiModelProperty(value = "å¼å¸¸æèµ·æ¶é´") |
| | | @ExcelColumn(name="å¼å¸¸æèµ·æ¶é´") |
| | | private Date errorDate; |
| | | |
| | | @ApiModelProperty(value = "å¼å¸¸æèµ·äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="å¼å¸¸æèµ·äººç¼ç ") |
| | | private Integer errorUserId; |
| | | |
| | | @ApiModelProperty(value = "å¼å¸¸æèµ·å¤æ³¨") |
| | | @ExcelColumn(name="å¼å¸¸æèµ·å¤æ³¨") |
| | | private String errorInfo; |
| | | |
| | | @ApiModelProperty(value = "æå°è½¬äº¤æ¶é´") |
| | | @ExcelColumn(name="æå°è½¬äº¤æ¶é´") |
| | | private Date transPlatformDate; |
| | | |
| | | @ApiModelProperty(value = "æå°è½¬äº¤å¤ç人", example = "1") |
| | | @ExcelColumn(name="æå°è½¬äº¤å¤ç人") |
| | | private Integer transPlatformUserId; |
| | | |
| | | @ApiModelProperty(value = "æå°è½¬äº¤å¤æ³¨") |
| | | @ExcelColumn(name="æå°è½¬äº¤å¤æ³¨") |
| | | private String transPlatformInfo; |
| | | |
| | | @ApiModelProperty(value = "车è¾è¿åæ¶é´") |
| | | @ExcelColumn(name="车è¾è¿åæ¶é´") |
| | | private Date inDate; |
| | | |
| | | @ApiModelProperty(value = "车è¾ç¦»åæ¶é´") |
| | | @ExcelColumn(name="车è¾ç¦»åæ¶é´") |
| | | private Date outDate; |
| | | |
| | | @ApiModelProperty(value = "ç¦»åæ¹å¼ 0èªå¨ç¦»å 1æå¨ç¦»åº", example = "1") |
| | | @ExcelColumn(name="ç¦»åæ¹å¼ 0èªå¨ç¦»å 1æå¨ç¦»åº") |
| | | private Integer outType; |
| | | |
| | | @ApiModelProperty(value = "车è¾ç¦»åä¸åç¶æ 0å¾
ä¸å 1ä¸åä¸ 2ä¸åæå 3ä¸å失败", example = "1") |
| | | @ExcelColumn(name="车è¾ç¦»åä¸åç¶æ 0å¾
ä¸å 1ä¸åä¸ 2ä¸åæå 3ä¸å失败") |
| | | private Integer outHkstatus; |
| | | |
| | | @ApiModelProperty(value = "车è¾ç¦»åä¸åæ¶é´") |
| | | @ExcelColumn(name="车è¾ç¦»åä¸åæ¶é´") |
| | | private Date outHkdate; |
| | | |
| | | @ApiModelProperty(value = "车è¾ç¦»åä¸å夿³¨") |
| | | @ExcelColumn(name="车è¾ç¦»åä¸å夿³¨") |
| | | private String outHkinfo; |
| | | |
| | | |
| | | @ApiModelProperty(value = "离åºä¸åæä½äºº", example = "1") |
| | | @ExcelColumn(name="离åºä¸åæä½äºº") |
| | | private Integer outUserId; |
| | | |
| | | |
| | | @ApiModelProperty(value = "车è¾è¿åä¸åç¶æ 0å¾
ä¸å 1ä¸åä¸ 2ä¸åæå 3ä¸å失败", example = "1") |
| | | @ExcelColumn(name="车è¾è¿åä¸åç¶æ 0å¾
ä¸å 1ä¸åä¸ 2ä¸åæå 3ä¸å失败") |
| | | private Integer inHkstatus; |
| | | |
| | | @ApiModelProperty(value = "车è¾è¿åä¸å夿³¨") |
| | | @ExcelColumn(name="车è¾è¿åä¸å夿³¨") |
| | | private String nHkinfo; |
| | | |
| | | @ApiModelProperty(value = "车è¾è¿åä¸åæ¶é´") |
| | | @ExcelColumn(name="车è¾è¿åä¸åæ¶é´") |
| | | private Date inHkdate; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸ç±»å 0èªæè½¦å¸è´§ 1èªæè½¦è£
è´§ 2å¤å车å¸è´§ 3å¤å车è£
è´§ 4å¸å
¬å¸å¤å车å¸è´§", example = "1") |
| | | @ExcelColumn(name="ä½ä¸ç±»å 0èªæè½¦å¸è´§ 1èªæè½¦è£
è´§ 2å¤å车å¸è´§ 3å¤å车è£
è´§ 4å¸å
¬å¸å¤å车å¸è´§") |
| | | @ExcelColumn(name="ä½ä¸ç±»å",index = 6,valueMapping = "0=èªæè½¦å¸è´§;1=èªæè½¦è£
è´§;2=å¤å车å¸è´§;3=å¤å车è£
è´§;4=å¸å
¬å¸å¤å车å¸è´§") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "å车çå·") |
| | | @ExcelColumn(name="å车çå·") |
| | | @ExcelColumn(name="å车çå·",index = 2) |
| | | private String carCodeFront; |
| | | |
| | | @ApiModelProperty(value = "å车çå·") |
| | | @ExcelColumn(name="å车çå·") |
| | | private String carCodeBack; |
| | | |
| | | @ApiModelProperty(value = "叿ºæå±é¨é¨ç¼ç ", example = "1") |
| | | @ExcelColumn(name="叿ºæå±é¨é¨ç¼ç ") |
| | | private Integer companyId; |
| | | |
| | | @ApiModelProperty(value = "叿ºæå±é¨é¨åç§°è·¯å¾") |
| | | @ExcelColumn(name="叿ºæå±é¨é¨åç§°è·¯å¾") |
| | | private String companyNamePath; |
| | | |
| | | @ApiModelProperty(value = "ä½åºæ¶é´") |
| | | @ExcelColumn(name="ä½åºæ¶é´") |
| | | private Date cancelDate; |
| | | |
| | | @ApiModelProperty(value = "ä½åºå¤ç人ç¼ç ", example = "1") |
| | | @ExcelColumn(name="ä½åºå¤ç人ç¼ç ") |
| | | private Integer cancelUserId; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸ºå¤ç夿³¨") |
| | | @ExcelColumn(name="ä½ä¸ºå¤ç夿³¨") |
| | | private String cancelInfo; |
| | | |
| | | @ApiModelProperty(value = "å
¥åäºç±") |
| | | @ExcelColumn(name="å
¥åäºç±") |
| | | private String reason; |
| | | |
| | | @ApiModelProperty(value = "ååå·") |
| | | @ExcelColumn(name="ååå·") |
| | | private String contractNum; |
| | | |
| | | @ApiModelProperty(value = "é¢è®¡å°åºæ¶é´") |
| | | @ExcelColumn(name="é¢è®¡å°åºæ¶é´") |
| | | private Date arriveDate; |
| | | |
| | | @ApiModelProperty(value = "å
¥åºç±»å 0æ´æç 1ä»¶ç", example = "1") |
| | | @ExcelColumn(name="å
¥åºç±»å 0æ´æç 1ä»¶ç") |
| | | private Integer inType; |
| | | |
| | | @ApiModelProperty(value = "æ»è¿è¾é", example = "1") |
| | | @ExcelColumn(name="æ»è¿è¾é") |
| | | private BigDecimal totalNum; |
| | | |
| | | @ApiModelProperty(value = "ç¡®è®¤ä»»å¡æ¶é´") |
| | | @ExcelColumn(name="ç¡®è®¤ä»»å¡æ¶é´") |
| | | private Date confirmTaskDate; |
| | | |
| | | @ApiModelProperty(value = "ç¾å°åºå·", example = "1") |
| | | @ExcelColumn(name="ç¾å°åºå·") |
| | | private Integer signNum; |
| | | |
| | | @ApiModelProperty(value = "ææ°å«å·æ¶é´") |
| | |
| | | @ApiModelProperty(value = "ä½ä¸æå°åç§°") |
| | | @TableField(exist = false) |
| | | private String platformName ; |
| | | @ApiModelProperty(value = "æå°ç©ºé²ææ¡") |
| | | @TableField(exist = false) |
| | | private String ledContent ; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦è¶
æ¶ï¼0=æ¯ï¼1=å¦", example = "1") |
| | | @TableField(exist = false) |
| | |
| | | private Integer groupType ; |
| | | |
| | | @ApiModelProperty(value = "æ¿è¿å") |
| | | @ExcelColumn(name="è¿è¾å
¬å¸",index = 3) |
| | | @TableField(exist = false) |
| | | private String carrierName ; |
| | | |
| | |
| | | @TableField(exist = false) |
| | | private String queryStatusForPower; |
| | | |
| | | @ApiModelProperty(value = "任塿¥æº") |
| | | @ExcelColumn(name="任塿¥æº",index = 1,valueMapping = "0=WMSè·å;1=èªä¸»é¢çº¦;") |
| | | @TableField(exist = false) |
| | | private Integer jobForm; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸ç±»åæ¥è¯¢ å¤ä¸ªä»¥,åå²") |
| | | @TableField(exist = false) |
| | |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | | @ExcelColumn(name="主é®") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å建人ç¼ç ", example = "1") |
| | | @ExcelColumn(name="å建人ç¼ç ") |
| | | private Integer creator; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="æ´æ°äººç¼ç ") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æè¿æä½æ¶é´",index = 5,dateFormat="yyyy-MM-dd HH:mm") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | | private Integer isdeleted; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "æ¶é´ï¼å¹´æï¼") |
| | | @ExcelColumn(name="æ¶é´ï¼å¹´æï¼") |
| | | @ExcelColumn(name="ä½¿ç¨æä»½",index = 2,dateFormat="yyyy-MM") |
| | | private Date timeInfo; |
| | | |
| | | @ApiModelProperty(value = "æåºç ", example = "1") |
| | | @ExcelColumn(name="æåºç ") |
| | | private Integer sortnum; |
| | | |
| | | @ApiModelProperty(value = "ç±»å 0ç¨æ°´ 1ç¨æ° 2ç¨æ²¹", example = "1") |
| | | @ExcelColumn(name="ç±»å 0ç¨æ°´ 1ç¨æ° 2ç¨æ²¹") |
| | | @ExcelColumn(name="ç±»å",valueMapping = "0=ç¨æ°´;1=ç¨æ°;2=ç¨æ²¹;",index = 0) |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "æ°é (ç¨çµé¡¿ï¼ç¨çµåº¦ï¼ æ²¹èLï¼", example = "1") |
| | | @ExcelColumn(name="æ°é (ç¨çµé¡¿ï¼ç¨çµåº¦ï¼ æ²¹èLï¼") |
| | | @ExcelColumn(name="æ°é",index = 3) |
| | | private BigDecimal num; |
| | | |
| | | @ApiModelProperty(value = "说æ") |
| | | @ExcelColumn(name="说æ") |
| | | @ExcelColumn(name="说æ",index = 4) |
| | | private String content; |
| | | |
| | | @ApiModelProperty(value = "车çå·") |
| | | @ExcelColumn(name="车çå·") |
| | | @ExcelColumn(name="车çå·",index = 1) |
| | | private String carCode; |
| | | |
| | | @ApiModelProperty(value = "å¼å§æ¶é´") |
| | |
| | | @ApiModelProperty(value = "ç©æè½¬æ¢ç") |
| | | @ExcelColumn(name="ç©æè½¬æ¢ç") |
| | | private String rate; |
| | | |
| | | @ApiModelProperty(value = "ä¸éæ¶é´") |
| | | @ExcelColumn(name="ä¸éæ¶é´") |
| | | private String lockDate; |
| | | } |
| | |
| | | @ExcelColumn(name="ERPç³è¯·è®°å½ç¼ç ") |
| | | private String erpId; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦åéè¶
æ¶éç¥ 0ï¼æªåéï¼1=å·²åé") |
| | | private Integer sendTimeOutNotice; |
| | | |
| | | |
| | | @ApiModelProperty(value = "ç»è®¡æ°é ") |
| | | @TableField(exist = false) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.vo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import com.doumee.core.model.LoginUserModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æå°_ç¨æ°´ç¨æ°ä¿¡æ¯è®°å½è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/08/26 16:22 |
| | | */ |
| | | @Data |
| | | public class PlatformWaterGasForExcelVO { |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æè¿æä½æ¶é´",index = 5,dateFormat="yyyy-MM-dd HH:mm",width = -1) |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¶é´ï¼å¹´æï¼") |
| | | @ExcelColumn(name="ä½¿ç¨æä»½",index = 2,dateFormat="yyyy-MM") |
| | | private Date timeInfo; |
| | | |
| | | @ApiModelProperty(value = "ç±»å 0ç¨æ°´ 1ç¨æ° 2ç¨æ²¹", example = "1") |
| | | @ExcelColumn(name="ç±»å",valueMapping = "0=ç¨æ°´;1=ç¨æ°;2=ç¨æ²¹;",index = 0) |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "æ°é (ç¨çµé¡¿ï¼ç¨çµåº¦ï¼ æ²¹èLï¼", example = "1") |
| | | @ExcelColumn(name="æ°é",index = 3) |
| | | private BigDecimal num; |
| | | |
| | | @ApiModelProperty(value = "说æ") |
| | | @ExcelColumn(name="说æ",index = 4) |
| | | private String content; |
| | | } |
| | |
| | | import com.doumee.dao.openapi.response.GasByMonthResponse; |
| | | import com.doumee.dao.openapi.response.PlatformLastMonthListResponse; |
| | | import com.doumee.dao.openapi.response.WaterByMonthResponse; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | GasByMonthResponse gasDataByMonth(GasByMonthRequest param); |
| | | |
| | | List<PlatformLastMonthListResponse> getPlatformLastMonthListResponse(Integer type); |
| | | |
| | | String importBatch(MultipartFile file, LoginUserInfo loginUserInfo); |
| | | } |
| | |
| | | void visitResend(Integer visitId); |
| | | |
| | | PCWorkPlatformDataVO getPcWorkPlatformData(Integer queryType ,LoginUserInfo loginUserInfo); |
| | | |
| | | /** |
| | | * å³å°è¶
æ¶éç¥ |
| | | */ |
| | | void syncTimeOutData(); |
| | | } |
| | |
| | | SmsConstants.platformBookContent.platformBookWaitAudit, |
| | | null,Arrays.asList(member.getPhone().split(",")) |
| | | ); |
| | | }else if(Constants.equalsInteger(noticeType,Constants.noticesObjectType.visit)){ |
| | | //访客ç³è¯· |
| | | SmsEmailServiceImpl.sendVisitSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,visitsMapper,businessId, |
| | | SmsConstants.visitContent.visitNotice, |
| | | null,Arrays.asList(member.getPhone().split(",")) |
| | | ); |
| | | }else if(Constants.equalsInteger(noticeType,Constants.noticesObjectType.visitReporting)){ |
| | | //访客æ¥å¤ |
| | | SmsEmailServiceImpl.sendVisitReportSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,visitsMapper,businessId, |
| | | SmsConstants.visitReportingContent.visitReportingNotice, |
| | | null,Arrays.asList(member.getPhone().split(",")) |
| | | ); |
| | | }else if(Constants.equalsInteger(noticeType,Constants.noticesObjectType.useCar)){ |
| | | //ç¨è½¦ç³è¯· |
| | | SmsEmailServiceImpl.sendCarUseSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,carUseBookMapper,businessId, |
| | | SmsConstants.carUseBookContent.carUseBookWaitAudit, |
| | | null,Arrays.asList(member.getPhone().split(",")) |
| | | ); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | .eq(Approve::getLevel,(approve.getLevel()+1)) |
| | | ); |
| | | //åéçä¿¡éç¥ ä¸çº§å®¡æ¹äºº |
| | | |
| | | |
| | | List<String> memberPhone = waitAuditList.stream().filter(i->StringUtils.isNotBlank(i.getMemberPhone())).map(i->i.getMemberPhone()).collect(Collectors.toList()); |
| | | //ç©æµè½¦é¢çº¦ |
| | | if(approveDTO.getObjType().equals(Constants.approveObjectType.reason)){ |
| | | SmsEmailServiceImpl.sendPlatformBookSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,platformBooksMapper,approveDTO.getObjId(), |
| | |
| | | ); |
| | | } |
| | | |
| | | else if(approveDTO.getObjType().equals(Constants.approveObjectType.cityUseCar) |
| | | || approveDTO.getObjType().equals(Constants.approveObjectType.unCityUseCar)){ |
| | | SmsEmailServiceImpl.sendCarUseSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,carUseBookMapper,approveDTO.getObjId(), |
| | | SmsConstants.hiddenDangerContent.hiddenDangerDealUser, |
| | | approveDTO.getCheckInfo(),memberPhone); |
| | | } |
| | | |
| | | |
| | | |
| | | //访客ç³è¯·/æ¥å¤ |
| | | if(approveDTO.getObjType().equals(Constants.approveObjectType.unConstructionVisit) |
| | | ||approveDTO.getObjType().equals(Constants.approveObjectType.constructionVisit) |
| | | ||approveDTO.getObjType().equals(Constants.approveObjectType.visitReporting)) { |
| | |
| | | visitsMapper.update(null,new UpdateWrapper<Visits>().lambda().set(Visits::getStatus,Constants.ONE).eq(Visits::getId,visits.getId())); |
| | | } |
| | | } |
| | | }else if(approveDTO.getObjType().equals(Constants.approveObjectType.cityUseCar)||approveDTO.getObjType().equals( |
| | | } |
| | | |
| | | if(approveDTO.getObjType().equals(Constants.approveObjectType.cityUseCar)||approveDTO.getObjType().equals( |
| | | Constants.approveObjectType.unCityUseCar)){ |
| | | this.updDriver(approveDTO,approve,false); |
| | | } |
| | |
| | | visits.setStatus(Constants.VisitStatus.xfFail); |
| | | } |
| | | } |
| | | //访客æ¥å¤ |
| | | if(approveDTO.getObjType().equals(Constants.approveObjectType.visitReporting)){ |
| | | //åéçä¿¡éç¥ |
| | | SmsEmailServiceImpl.sendVisitReportSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,visitsMapper,visits.getId(), |
| | | Constants.equalsInteger(approveDTO.getStatus(),Constants.TWO)?SmsConstants.visitReportingContent.visitReportingAuditSuccess: |
| | | SmsConstants.visitReportingContent.visitReportingAuditFail, |
| | | approveDTO.getCheckInfo(),null |
| | | ); |
| | | }else{ //访客ç³è¯· |
| | | //åéçä¿¡éç¥ |
| | | SmsEmailServiceImpl.sendVisitSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,visitsMapper,visits.getId(), |
| | | Constants.equalsInteger(approveDTO.getStatus(),Constants.TWO)?SmsConstants.visitContent.visitAuditSuccess: |
| | | SmsConstants.visitContent.visitAuditFail, |
| | | approveDTO.getCheckInfo(),null |
| | | ); |
| | | } |
| | | |
| | | visitsMapper.updateById(visits); |
| | | }else if(approveDTO.getObjType().equals(Constants.approveObjectType.cityUseCar)||approveDTO.getObjType().equals( |
| | | Constants.approveObjectType.unCityUseCar)){ |
| | | this.updDriver(approveDTO,approve,true); |
| | | CarUseBook carUseBook = carUseBookJoinMapper.selectById(approveDTO.getObjId()); |
| | | if(Objects.nonNull(carUseBook)){ |
| | | Member member = memberMapper.selectById(carUseBook.getMemberId()); |
| | | if(Objects.nonNull(member)&&StringUtils.isNotBlank(member.getPhone())){ |
| | | SmsEmailServiceImpl.sendCarUseSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,carUseBookMapper,approveDTO.getObjId(), |
| | | Constants.equalsInteger(approveDTO.getStatus(),Constants.TWO)?SmsConstants.carUseBookContent.carUseBookAuditSuccess: |
| | | SmsConstants.carUseBookContent.carUseBookAuditFail, |
| | | approveDTO.getCheckInfo(),Arrays.asList(member.getPhone().split(",")) |
| | | ); |
| | | } |
| | | } |
| | | |
| | | }else if(approveDTO.getObjType().equals(Constants.approveObjectType.reason)){ |
| | | //ç©æµè½¦é¢çº¦ |
| | | PlatformBooks platformBooks = platformBooksMapper.selectById(approveDTO.getObjId()); |
| | |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DESUtil; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.core.utils.*; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.join.ApproveJoinMapper; |
| | | import com.doumee.dao.business.join.CarUseBookJoinMapper; |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.service.business.third.EmayService; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | import java.time.ZoneId; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.time.temporal.ChronoUnit; |
| | | import java.util.*; |
| | | import java.util.Date; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | @Autowired |
| | | private MemberMapper memberMapper; |
| | | |
| | | |
| | | @Autowired |
| | | private SmsConfigMapper smsConfigMapper; |
| | | |
| | | @Autowired |
| | | private SmsEmailMapper smsEmailMapper; |
| | | |
| | | @Autowired |
| | | private EmayService emayService; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class,BusinessException.class}) |
| | |
| | | .in(Approve::getObjType,Constants.approveObjectType.cityUseCar,Constants.approveObjectType.unCityUseCar) |
| | | .eq(Approve::getObjId,id) |
| | | ); |
| | | Member member = memberMapper.selectById(carUseBook.getMemberId()); |
| | | if(Objects.nonNull(member)&&StringUtils.isNotBlank(member.getPhone())){ |
| | | //ç¨è½¦ç³è¯·åæ¶ |
| | | SmsEmailServiceImpl.sendCarUseSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,carUseBookMapper,carUseBook.getId(), |
| | | SmsConstants.carUseBookContent.carUseBookCancel, |
| | | null, Arrays.asList(member.getPhone().split(",")) |
| | | ); |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.SmsConstants; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.HiddenDangerParamMapper; |
| | | import com.doumee.dao.business.MemberMapper; |
| | | import com.doumee.dao.business.SmsConfigMapper; |
| | | import com.doumee.dao.business.SmsEmailMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.service.business.HiddenDangerParamService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.service.business.third.EmayService; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import io.swagger.models.auth.In; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * 鿣åºåé
置类åä¿¡æ¯è¡¨Serviceå®ç° |
| | |
| | | @Autowired |
| | | private MemberMapper memberMapper; |
| | | |
| | | |
| | | @Override |
| | | public Integer create(HiddenDangerParam model) { |
| | | LoginUserInfo loginUserInfo = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.SmsConstants; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.HiddenDangerLogMapper; |
| | | import com.doumee.dao.business.HiddenDangerMapper; |
| | | import com.doumee.dao.business.HiddenDangerParamMapper; |
| | | import com.doumee.dao.business.MemberMapper; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.system.MultifileMapper; |
| | | import com.doumee.dao.system.join.NoticesJoinMapper; |
| | |
| | | import com.doumee.dao.system.model.Notices; |
| | | import com.doumee.service.business.HiddenDangerLogService; |
| | | import com.doumee.service.business.HiddenDangerService; |
| | | import com.doumee.service.business.third.EmayService; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.checkerframework.checker.units.qual.C; |
| | |
| | | |
| | | @Autowired |
| | | private NoticesJoinMapper noticesJoinMapper; |
| | | |
| | | |
| | | @Autowired |
| | | private SmsConfigMapper smsConfigMapper; |
| | | |
| | | @Autowired |
| | | private SmsEmailMapper smsEmailMapper; |
| | | |
| | | @Autowired |
| | | private EmayService emayService; |
| | | |
| | | |
| | | @Override |
| | | public Integer create(HiddenDanger hiddenDanger) { |
| | |
| | | notices.setReaded(Constants.ZERO); |
| | | notices.setInfo("å¾
"+member.getName()+"å¤ç"); |
| | | noticesJoinMapper.insert(notices); |
| | | |
| | | |
| | | if(Objects.nonNull(member) && StringUtils.isNotBlank(member.getPhone())){ |
| | | //åéçä¿¡éç¥ |
| | | SmsEmailServiceImpl.sendHiddenDangerSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,hiddenDangerMapper,hiddenDanger.getId(), |
| | | SmsConstants.hiddenDangerContent.hiddenDangerDealUser, |
| | | Arrays.asList(member.getPhone().split(",")) |
| | | ); |
| | | } |
| | | |
| | | |
| | | |
| | | return hiddenDanger.getId(); |
| | |
| | | .eq(Notices::getUserId,hiddenDanger.getLoginUserInfo().getMemberId()) |
| | | ); |
| | | |
| | | if(Constants.equalsInteger(hiddenDanger.getStatus(),Constants.ONE)){ |
| | | Member member = memberMapper.selectById(hiddenDanger.getMemberId()); |
| | | if(Objects.nonNull(member) && StringUtils.isNotBlank(member.getPhone())){ |
| | | //åéçä¿¡éç¥ |
| | | SmsEmailServiceImpl.sendHiddenDangerSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,hiddenDangerMapper,hiddenDanger.getId(), |
| | | SmsConstants.hiddenDangerContent.hiddenDangerDealOver, |
| | | Arrays.asList(member.getPhone().split(",")) |
| | | ); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | private void isParamValid(HiddenDanger hiddenDanger) { |
| | |
| | | notices.setInfo("å¾
"+member.getName()+"å¤ç"); |
| | | noticesJoinMapper.updateById(notices); |
| | | } |
| | | |
| | | |
| | | if(Objects.nonNull(member) && StringUtils.isNotBlank(member.getPhone())){ |
| | | //åéçä¿¡éç¥ |
| | | SmsEmailServiceImpl.sendHiddenDangerSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,hiddenDangerMapper,hiddenDanger.getId(), |
| | | SmsConstants.hiddenDangerContent.hiddenDangerDealUser, |
| | | Arrays.asList(member.getPhone().split(",")) |
| | | ); |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | if(Objects.nonNull(member.getCompanyType())){ |
| | | queryWrapper.eq(Company::getType,member.getCompanyType()); |
| | | } |
| | | if(StringUtils.isNotBlank(member.getCompanyTypes())){ |
| | | queryWrapper.in(Company::getType,Arrays.asList(member.getCompanyTypes().split(","))); |
| | | } |
| | | if(null != member.getType()) { |
| | | queryWrapper.eq(Member::getType,member.getType()); |
| | | } |
| | |
| | | ,List<Company> companyList |
| | | ,Integer companyType) { |
| | | if(StringUtils.isBlank(model.getName()) |
| | | ||StringUtils.isBlank(model.getIdcardNo()) |
| | | // ||StringUtils.isBlank(model.getIdcardNo()) |
| | | ||StringUtils.isBlank(model.getPhone()) |
| | | ||StringUtils.isBlank(model.getCompanyName())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼ç¬¬"+(index+3)+"è¡äººåä¿¡æ¯ä¸å®æ´ï¼è¯·æ£æ¥è¡¨æ ¼å
容ï¼"); |
| | |
| | | if (!PhoneUtil.isPhone(model.getPhone())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼ç¬¬"+(index+3)+"è¡ææºå·ã"+model.getPhone()+"ãæ ¼å¼ä¸æ£ç¡®ï¼è¯·æ£æ¥è¡¨æ ¼å
容ï¼"); |
| | | } |
| | | if(StringUtils.isNotBlank(model.getIdcardNo())){ |
| | | if ( !isDebug && !IdcardUtil.isValidCard(model.getIdcardNo())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼ç¬¬"+(index+3)+"è¡èº«ä»½è¯å·ã"+model.getIdcardNo()+"ãæ ¼å¼ä¸æ£ç¡®ï¼è¯·æ£æ¥è¡¨æ ¼å
容ï¼"); |
| | | } |
| | | } |
| | | |
| | | for(Member member: newList){ |
| | | if(StringUtils.isNotBlank(model.getIdcardNo())&&StringUtils.isNotBlank(member.getIdcardNo())) { |
| | | if(StringUtils.equals(model.getIdcardNo(),member.getIdcardNo())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼ç¬¬"+(index+3)+"è¡èº«ä»½è¯å·ã"+model.getIdcardNo()+"ãéå¤åºç°ï¼è¯·æ£æ¥è¡¨æ ¼å
容ï¼"); |
| | | } |
| | | } |
| | | if(StringUtils.equals(model.getPhone(),member.getPhone())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼ç¬¬"+(index+3)+"è¡ææºå·ã"+model.getPhone()+"ãéå¤åºç°ï¼è¯·æ£æ¥è¡¨æ ¼å
容ï¼"); |
| | |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼ç¬¬"+(index+3)+"è¡ç»ç»åç§°ã"+model.getCompanyName()+"ãç±»å䏿£ç¡®ï¼è¯·æ£æ¥è¡¨æ ¼å
容ï¼"); |
| | | } |
| | | String candNo = DESUtil.encrypt(Constants.EDS_PWD, model.getIdcardNo()); |
| | | if(StringUtils.isNotBlank(model.getIdcardNo())){ |
| | | if(findMemberFromListByIdcard(candNo,memberList ) !=null){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼ç¬¬"+(index+3)+"è¡èº«ä»½è¯å·ã"+model.getIdcardNo()+"ãå·²åå¨ï¼è¯·æ£æ¥è¡¨æ ¼å
容ï¼"); |
| | | } |
| | | } |
| | | |
| | | if(findMemberFromListByPhone(model.getPhone(),memberList ) !=null){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼ç¬¬"+(index+3)+"è¡ææºå·ã"+model.getPhone()+"ãå·²åå¨ï¼è¯·æ£æ¥è¡¨æ ¼å
容ï¼"); |
| | | } |
| | |
| | | platformWorkVO.setCallNum( |
| | | platformJobs.stream().filter(i->Constants.equalsInteger(i.getPlatformId(),platform.getId()) && Constants.equalsInteger(i.getStatus(),Constants.PlatformJobStatus.CALLED.getKey())).collect(Collectors.toList()).size() |
| | | ); |
| | | System.out.printf(String.valueOf(platformJobs.stream().filter(i-> |
| | | Constants.equalsInteger(i.getStatus(),Constants.PlatformJobStatus.WAIT_CALL.getKey()) |
| | | ).collect(Collectors.toList()).size()) |
| | | ); |
| | | System.out.printf(String.valueOf(platformJobList.stream().filter(i-> |
| | | Constants.equalsInteger(i.getStatus(),Constants.PlatformJobStatus.IN_WAIT.getKey()) || |
| | | ( Constants.equalsInteger(platform.getId(),i.getPlatformId()) && |
| | | Constants.equalsInteger(i.getStatus(),Constants.PlatformJobStatus.TRANSFERING.getKey()) |
| | | ) |
| | | ).collect(Collectors.toList()).size()) |
| | | ); |
| | | |
| | | platformWorkVO.setWaitNum( |
| | | |
| | | platformJobs.stream().filter(i-> |
| | | Constants.equalsInteger(i.getStatus(),Constants.PlatformJobStatus.WAIT_CALL.getKey()) |
| | | ).collect(Collectors.toList()).size() |
| | | + |
| | | platformJobList.stream().filter(i->Constants.equalsInteger(platform.getId(),i.getPlatformId()) |
| | | && (Constants.equalsInteger(i.getStatus(),Constants.PlatformJobStatus.IN_WAIT.getKey()) || Constants.equalsInteger(i.getStatus(),Constants.PlatformJobStatus.TRANSFERING.getKey()) |
| | | platformJobList.stream().filter(i-> |
| | | ( Constants.equalsInteger(i.getStatus(),Constants.PlatformJobStatus.IN_WAIT.getKey()) && Constants.equalsInteger(i.getPlatformGroupId(),platform.getGroupId()) )|| |
| | | ( Constants.equalsInteger(platform.getId(),i.getPlatformId()) && |
| | | Constants.equalsInteger(i.getStatus(),Constants.PlatformJobStatus.TRANSFERING.getKey()) |
| | | ) |
| | | ).collect(Collectors.toList()).size() |
| | | ); |
| | |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.tms.model.request.TmsLockStatusQueryRequest; |
| | | import com.doumee.core.tms.model.response.TmsBaseResponse; |
| | | import com.doumee.core.tms.model.response.TmsLockStatusQueryResponse; |
| | | import com.doumee.core.utils.*; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.join.PlatformJobJoinMapper; |
| | |
| | | import com.doumee.service.business.impl.hksync.HkSyncPushServiceImpl; |
| | | import com.doumee.service.business.impl.thrid.WmsServiceImpl; |
| | | import com.doumee.service.business.third.EmayService; |
| | | import com.doumee.service.business.third.TmsService; |
| | | import com.doumee.service.business.third.WmsService; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | |
| | | @Autowired |
| | | private PlatformJobMapper platformJobMapper; |
| | | @Autowired |
| | | private TmsService tmsService; |
| | | |
| | | @Autowired |
| | | private PlatformDeviceMapper platformDeviceMapper; |
| | |
| | | " ( " + |
| | | " ( t.`STATUS` = "+Constants.PlatformJobStatus.WAIT_CALL.getKey()+" and t.PLATFORM_GROUP_ID = ( SELECT p.group_id FROM platform p WHERE p.id = "+pageWrap.getModel().getPlatformId()+" LIMIT 1 ) )" + |
| | | " or " + |
| | | " (t.`STATUS` = "+Constants.PlatformJobStatus.IN_WAIT.getKey()+" and t.PLATFORM_ID = "+pageWrap.getModel().getPlatformId()+" )" + |
| | | " (t.`STATUS` = "+Constants.PlatformJobStatus.IN_WAIT.getKey()+" and t.PLATFORM_GROUP_ID = ( SELECT p.group_id FROM platform p WHERE p.id = "+pageWrap.getModel().getPlatformId()+" LIMIT 1 ) )" + |
| | | " or " + |
| | | " (t.`STATUS` = "+Constants.PlatformJobStatus.TRANSFERING.getKey()+" and t.PLATFORM_ID = "+pageWrap.getModel().getPlatformId()+" ) " + |
| | | ") " |
| | |
| | | ); |
| | | |
| | | platformJob.setPlatformName(platform.getName()); |
| | | this.broadcastAndLEed(platformJob, StringUtils.isBlank(oldPlatform.getRemark())?Constants.PlatformLedContent.IDEL_CONTNET.getName():oldPlatform.getLedContent(), |
| | | this.broadcastAndLEed(platformJob, StringUtils.isBlank(oldPlatform.getLedContent())?Constants.PlatformLedContent.IDEL_CONTNET.getName():oldPlatform.getLedContent(), |
| | | null |
| | | ); |
| | | |
| | |
| | | emayService,smsEmailMapper,smsConfigMapper,platformJobMapper,platformJob.getId(), |
| | | SmsConstants.platformJobContent.platformJobError,platform.getName(),null |
| | | ); |
| | | |
| | | platformJob.setPlatformName(platform.getName()); |
| | | this.broadcastAndLEed(platformJob, StringUtils.isBlank(platform.getLedContent())?Constants.PlatformLedContent.IDEL_CONTNET.getName():platform.getLedContent(), |
| | | null |
| | | ); |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | savePlatformLog(Constants.PlatformJobLogType.DONE.getKey(),oldPlatformJob,platformJob , |
| | | Constants.PlatformJobLogType.DONE.getInfo()); |
| | | |
| | | if(Constants.equalsInteger(platformJob.getType(),Constants.TWO)){ |
| | | //TODO å¤å车è£
è´§ æ¥è¯¢TMS çµåéæ
åµ |
| | | if(Constants.equalsInteger(platformJob.getType(),Constants.THREE)){ |
| | | // å¤å车è£
è´§ æ¥è¯¢TMS çµåéæ
åµ |
| | | List<PlatformWmsDetail> details = platformWmsDetailMapper.selectList(new QueryWrapper<PlatformWmsDetail>().lambda() |
| | | .eq(PlatformWmsDetail::getJobId,platformJob.getId()) |
| | | .eq(PlatformWmsDetail::getIsdeleted,Constants.ZERO) |
| | | ); |
| | | if(details!=null && details.size()>0){ |
| | | Date date = new Date(); |
| | | List<String> codeList =new ArrayList<>(); |
| | | for(PlatformWmsDetail d : details){ |
| | | codeList.add(d.getIocode()); |
| | | } |
| | | TmsLockStatusQueryRequest tmsLock = new TmsLockStatusQueryRequest(); |
| | | tmsLock.setContractNumbers(codeList); |
| | | TmsBaseResponse<List<TmsLockStatusQueryResponse>> lockResult = tmsService.lockStatusQuery(tmsLock); |
| | | if(lockResult!=null && lockResult.isSuccess()&& lockResult.getData()!=null ){ |
| | | for(TmsLockStatusQueryResponse s : lockResult.getData()){ |
| | | platformWmsDetailMapper.update(null,new UpdateWrapper<PlatformWmsDetail>().lambda() |
| | | .eq(PlatformWmsDetail::getIocode,s.getContractNumber()) |
| | | .set(PlatformWmsDetail::getEditDate,date) |
| | | .set(PlatformWmsDetail::getLockDate,s.getOutDate()) |
| | | .set(PlatformWmsDetail::getLockStatus,Constants.ONE) |
| | | .eq(PlatformWmsDetail::getJobId,platformJob.getId()) |
| | | .eq(PlatformWmsDetail::getIsdeleted,Constants.ZERO)); |
| | | } |
| | | } |
| | | } |
| | | |
| | | }else if(Constants.equalsInteger(platformJob.getType(),Constants.ONE) || Constants.equalsInteger(platformJob.getType(),Constants.FOUR)){ |
| | | //TODO å¤å车å¸è´§ æè
å¸å
¬å¸è½¦å¸è´§ åæ ¹æ®ä»»å¡æ
åµ |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //åéçä¿¡ä¿¡æ¯ |
| | | SmsEmailServiceImpl.sendPlatformJobSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,platformJobMapper,platformJob.getId(), |
| | | SmsConstants.platformJobContent.platformJobFinish,platform.getName(),null |
| | | ); |
| | | |
| | | //广æ ledéç¥ |
| | | platformJob.setPlatformName(platform.getName()); |
| | | this.broadcastAndLEed(platformJob,null, |
| | | this.broadcastAndLEed(platformJob,Constants.PlatformLedContent.DONE.getInfo(), |
| | | Constants.PlatformBroadcastContent.DONE.getInfo()); |
| | | return platformJob; |
| | | } |
| | |
| | | .selectAs(PlatformWmsJob::getCarrierName,PlatformJob::getCarrierName) |
| | | .leftJoin(Platform.class,Platform::getId,PlatformJob::getPlatformId) |
| | | .leftJoin(PlatformWmsJob.class,PlatformWmsJob::getJobId,PlatformJob::getId) |
| | | .eq(PlatformJob::getPlatformId,platformId) |
| | | .eq(PlatformJob::getIsdeleted,Constants.ZERO) |
| | | .in(PlatformJob::getStatus, |
| | | Constants.PlatformJobStatus.WAIT_CALL.getKey(), |
| | |
| | | Constants.PlatformJobStatus.CALLED.getKey(), |
| | | Constants.PlatformJobStatus.WORKING.getKey(), |
| | | Constants.PlatformJobStatus.EXCEPTION.getKey(), |
| | | Constants.PlatformJobStatus.OVER_NUMBER.getKey() |
| | | Constants.PlatformJobStatus.OVER_NUMBER.getKey(), |
| | | Constants.PlatformJobStatus.TRANSFERING.getKey() |
| | | ) |
| | | .like(PlatformJob::getArriveDate, DateUtil.getCurrDate()) |
| | | .orderByDesc(PlatformJob::getId) |
| | | ); |
| | | for (PlatformJob platformJob:platformJobList) { |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelImporter; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.ScientificNotationTUtil; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.admin.request.MemberImport; |
| | | import com.doumee.dao.admin.request.PlatformGasImport; |
| | | import com.doumee.dao.business.PlatformWaterGasMapper; |
| | | import com.doumee.dao.business.model.Company; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.business.model.PlatformReason; |
| | | import com.doumee.dao.business.model.PlatformWaterGas; |
| | | import com.doumee.dao.openapi.request.GasByMonthRequest; |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.checkerframework.checker.units.qual.C; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | |
| | | |
| | | |
| | | |
| | | @Autowired |
| | | private RedisTemplate<String, Object> redisTemplate; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = {BusinessException.class,Exception.class}) |
| | | public String importBatch(MultipartFile file, LoginUserInfo loginUserInfo){ |
| | | try { |
| | | ExcelImporter ie = null; |
| | | List<PlatformGasImport> dataList =null; |
| | | try { |
| | | ie = new ExcelImporter(file,0,0); |
| | | dataList = ie.getDataList(PlatformGasImport.class,null); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | if(dataList == null || dataList.size() ==0){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼å½å
¥æ°æ®ä¸ºç©ºï¼"); |
| | | } |
| | | List<PlatformWaterGas> newList = new ArrayList<>(); |
| | | for(int i=0;i<dataList.size();i++){ |
| | | PlatformGasImport model = dataList.get(i); |
| | | if(Objects.isNull(model.getTimeInfo()) |
| | | || StringUtils.isBlank(model.getCarCode()) |
| | | || StringUtils.isBlank(model.getNum()) ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼ç¬¬"+i+2+"è¡æ°æ®åæ°é误ï¼"); |
| | | } |
| | | PlatformWaterGas platformWaterGas = new PlatformWaterGas(); |
| | | try { |
| | | BigDecimal num = new BigDecimal(model.getNum()); |
| | | platformWaterGas.setNum(num); |
| | | }catch (Exception e){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼ç¬¬"+i+2+"è¡æ°éé误ï¼"); |
| | | } |
| | | if( platformWaterGasMapper.selectCount(new QueryWrapper<PlatformWaterGas>().lambda() |
| | | .eq(PlatformWaterGas::getIsdeleted, Constants.ZERO) |
| | | .apply("to_days(time_info) = to_days('"+ DateUtil.getPlusTime2(model.getTimeInfo()) +"')") |
| | | .eq(PlatformWaterGas::getType,Constants.TWO) |
| | | .eq(PlatformWaterGas::getCarCode,model.getCarCode()))>0){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼è¯¥["+DateUtil.getPlusTime2(model.getTimeInfo())+"]æ°æ®å·²åå¨ï¼è¯·å¿éæ°å½å
¥ï¼å¯ä»¥å°è¯æç´¢åè¿è¡æ°æ®ä¿®æ¹ï¼"); |
| | | } |
| | | |
| | | platformWaterGas.setTimeInfo(model.getTimeInfo()); |
| | | platformWaterGas.setCarCode(model.getCarCode()); |
| | | platformWaterGas.setContent(model.getContent()); |
| | | platformWaterGas.setIsdeleted(Constants.ZERO); |
| | | platformWaterGas.setType(Constants.TWO); |
| | | platformWaterGas.setCreator(loginUserInfo.getId()); |
| | | platformWaterGas.setCreateDate(new Date()); |
| | | platformWaterGas.setEditDate(platformWaterGas.getCreateDate()); |
| | | platformWaterGas.setEditor(platformWaterGas.getCreator()); |
| | | newList.add(platformWaterGas); |
| | | } |
| | | if(newList == null || newList.size() ==0){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼å½å
¥æææ°æ®ä¸ºç©ºï¼"); |
| | | } |
| | | platformWaterGasMapper.insert(newList); |
| | | return "导å
¥æå"; |
| | | }catch (BusinessException e){ |
| | | throw e; |
| | | }catch (Exception e){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"ä¿¡æ¯å¯¼å
¥å¤±è´¥ï¼è¯·ç¨åéè¯"); |
| | | }finally { |
| | | redisTemplate.delete(Constants.RedisKeys.IMPORTING_MEMBER); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | if(Objects.nonNull(visits)){ |
| | | if(objCode.equals(SmsConstants.visitContent.visitAuditSuccess)){ |
| | | //æ¨çã访客ç³è¯·ãå·²ç»å®¡æ¹éè¿ï¼è¯·äº{é¢çº¦å
¥åå¼å§æ¶é´}åå¾é¨å«å®¤è®¿å®¢æºç¾å°å
¥åï¼å¦æçé®ï¼è¯·è系被访人 |
| | | content = content.replace("{é¢çº¦å
¥åå¼å§æ¶é´}",DateUtil.getDate(visits.getStarttime(),"yyyy-MM-dd HH:mm")); |
| | | content = content.replace("{é¢çº¦å
¥åå¼å§æ¶é´}",DateUtil.getFomartDate(visits.getStarttime(),"yyyy-MM-dd HH:mm")); |
| | | sendBusinessSms(emayService,smsEmailMapper, |
| | | Arrays.asList(visits.getPhone().split(",")),SmsConstants.visit,content,visits.getId()); |
| | | }else if(objCode.equals(SmsConstants.visitContent.visitAuditFail)){ |
| | |
| | | Arrays.asList(visits.getPhone().split(",")),SmsConstants.visit,content,visits.getId()); |
| | | }else if(objCode.equals(SmsConstants.visitContent.visitTimeOutSignOut)){ |
| | | //æ¨çã访客ç³è¯·ãå·²äº{å°ææ¶é´}å°æï¼è¯·åæ¶ç¦»åºå¹¶åå¾é¨å«å®¤è®¿å®¢æºç¾ç¦»ï¼å¦æçé®ï¼è¯·è系被访人 |
| | | content = content.replace("{å°ææ¶é´}",DateUtil.getDate(visits.getEndtime(),"yyyy-MM-dd HH:mm")); |
| | | content = content.replace("{å°ææ¶é´}",DateUtil.getFomartDate(visits.getEndtime(),"yyyy-MM-dd HH:mm")); |
| | | sendBusinessSms(emayService,smsEmailMapper, |
| | | Arrays.asList(visits.getPhone().split(",")),SmsConstants.visit,content,visits.getId()); |
| | | }else if(objCode.equals(SmsConstants.visitContent.visitTimeOutSignOutNum)) { |
| | |
| | | if(Objects.nonNull(visits)){ |
| | | if(objCode.equals(SmsConstants.visitReportingContent.visitReportingAuditSuccess)){ |
| | | // æ¨çã访客æ¥å¤ãå·²ç»å®¡æ¹éè¿ï¼è¯·éç¥è®¿å®¢äº{é¢çº¦å
¥åå¼å§æ¶é´}åä¹å{车çå·}å
¥åï¼å¦æçé®ï¼è¯·è系被访人ã |
| | | content = content.replace("{é¢çº¦å
¥åå¼å§æ¶é´}",DateUtil.getDate(visits.getStarttime(),"yyyy-MM-dd HH:mm")) |
| | | content = content.replace("{é¢çº¦å
¥åå¼å§æ¶é´}",DateUtil.getFomartDate(visits.getStarttime(),"yyyy-MM-dd HH:mm")) |
| | | .replace("{车çå·}",visits.getCarNos()); |
| | | sendBusinessSms(emayService,smsEmailMapper, |
| | | Arrays.asList(visits.getPhone().split(",")),SmsConstants.visitReport,content,visits.getId()); |
| | |
| | | Arrays.asList(visits.getPhone().split(",")),SmsConstants.visitReport,content,visits.getId()); |
| | | }else if(objCode.equals(SmsConstants.visitReportingContent.visitReportingTimeOutSignOut)){ |
| | | //æ¨çã访客æ¥å¤ãå·²äº{é¢çº¦å
¥åç»ææ¶é´}å°æï¼è¯·åæ¶ç¦»åºï¼å¦æçé®ï¼è¯·è系被访人 |
| | | content = content.replace("{é¢çº¦å
¥åç»ææ¶é´}",DateUtil.getDate(visits.getEndtime(),"yyyy-MM-dd HH:mm")); |
| | | content = content.replace("{é¢çº¦å
¥åç»ææ¶é´}",DateUtil.getFomartDate(visits.getEndtime(),"yyyy-MM-dd HH:mm")); |
| | | sendBusinessSms(emayService,smsEmailMapper, |
| | | Arrays.asList(visits.getPhone().split(",")),SmsConstants.visitReport,content,visits.getId()); |
| | | }else if(objCode.equals(SmsConstants.visitReportingContent.visitReportingTimeOutSignOutNum)) { |
| | |
| | | if(Objects.nonNull(carUseBook)){ |
| | | if(objCode.equals(SmsConstants.carUseBookContent.carUseBookAuditSuccess)){ |
| | | //æ¨çãç¨è½¦ç³è¯·ãå·²ç»å®¡æ¹éè¿ï¼åºåæ¶é´ä¸º{æäº¤çåºåæ¶é´}ï¼è¯·ææ¶ç¨è½¦ãå¦ç¨è½¦è®¡åæåï¼è¯·åæ¶è系派车åã |
| | | content = content.replace("{æäº¤çåºåæ¶é´}",DateUtil.getDate(carUseBook.getStartTime(),"yyyy-MM-dd HH:mm")); |
| | | content = content.replace("{æäº¤çåºåæ¶é´}",DateUtil.getFomartDate(carUseBook.getStartTime(),"yyyy-MM-dd HH:mm")); |
| | | }else if(objCode.equals(SmsConstants.carUseBookContent.carUseBookAuditFail) || objCode.equals(SmsConstants.carUseBookContent.carUseBookCancel)){ |
| | | //æ¨çãç¨è½¦ç³è¯·ã已被驳åï¼é©³ååå 为ï¼{驳ååå }ã妿çé®ï¼è¯·è系派车åã |
| | | content = content.replace("{驳ååå }",msg); |
| | |
| | | if(Objects.nonNull(platformBooks)){ |
| | | if(objCode.equals(SmsConstants.platformBookContent.platformBookAuditSuccess)){ |
| | | //æ¨çã车è¾å
¥åç³è¯·ãå·²ç»å®¡æ¹éè¿ï¼å
¥åæ¶é´ä¸º{å
¥åæ¶é´}ï¼è¯·æå30åéåå¾ç°åºç¾å°ãå¦è®¡åæåï¼è¯·åæ¶èç³»å®¡æ ¸äººåã |
| | | content = content.replace("{å
¥åæ¶é´}",DateUtil.getDate(platformBooks.getArriveDate(),"yyyy-MM-dd HH:mm")); |
| | | content = content.replace("{å
¥åæ¶é´}",DateUtil.getFomartDate(platformBooks.getArriveDate(),"yyyy-MM-dd HH:mm")); |
| | | sendBusinessSms(emayService,smsEmailMapper, |
| | | Arrays.asList(platformBooks.getDriverPhone().split(",")),SmsConstants.platformBook,content,platformBooks.getId()); |
| | | }else if(objCode.equals(SmsConstants.platformBookContent.platformBookAuditFail) || objCode.equals(SmsConstants.platformBookContent.platformBookCancel)){ |
| | |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DESUtil; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.core.utils.*; |
| | | import com.doumee.core.wx.wxPlat.WxPlatNotice; |
| | | import com.doumee.dao.admin.response.InterestedListVO; |
| | | import com.doumee.dao.admin.response.PCWorkPlatformDataVO; |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.service.business.impl.hksync.HkSyncVisitServiceImpl; |
| | | import com.doumee.service.business.third.EmayService; |
| | | import com.github.xiaoymin.knife4j.core.util.CollectionUtils; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import io.swagger.models.auth.In; |
| | |
| | | import java.nio.file.Path; |
| | | import java.nio.file.Paths; |
| | | import java.util.*; |
| | | import java.util.Date; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | private NoticesJoinMapper noticesJoinMapper; |
| | | @Autowired |
| | | private InoutDayCountMapper inoutDayCountMapper; |
| | | |
| | | @Autowired |
| | | private SmsConfigMapper smsConfigMapper; |
| | | |
| | | @Autowired |
| | | private SmsEmailMapper smsEmailMapper; |
| | | |
| | | @Autowired |
| | | private EmayService emayService; |
| | | |
| | | @Override |
| | | public Integer create(Visits visits) { |
| | |
| | | }else{ |
| | | pcWorkPlatformDataVO.setTimeOutVisitList(result); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | return pcWorkPlatformDataVO; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public void syncTimeOutData(){ |
| | | String times = systemDictDataBiz.queryByCode(Constants.VISIT_CONFIG,Constants.TIME_OUT_CONFIG).getCode(); |
| | | List<Visits> visitsList = visitsMapper.selectList(new QueryWrapper<Visits>().lambda() |
| | | .eq(Visits::getStatus,Constants.VisitStatus.signin) |
| | | .eq(Visits::getSendTimeOutNotice,Constants.ZERO) |
| | | .apply(" now() >= DATE_ADD(ENDTIME,INTERVAL -"+times+" MINUTE) ") |
| | | ); |
| | | for (Visits visits:visitsList) { |
| | | if(Constants.equalsInteger(visits.getType(),Constants.TWO)){ |
| | | SmsEmailServiceImpl.sendVisitReportSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,visitsMapper,visits.getId(), |
| | | SmsConstants.visitReportingContent.visitReportingTimeOutSignOut, |
| | | null,Arrays.asList(visits.getPhone().split(",")) |
| | | ); |
| | | }else{ |
| | | SmsEmailServiceImpl.sendVisitSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,visitsMapper,visits.getId(), |
| | | SmsConstants.visitContent.visitTimeOutSignOut, |
| | | null,Arrays.asList(visits.getPhone().split(",")) |
| | | ); |
| | | } |
| | | visits.setSendTimeOutNotice(Constants.ONE); |
| | | visitsMapper.updateById(visits); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.checkerframework.checker.units.qual.C; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | PlatformJob job = platformJobMapper.selectJoinOne(PlatformJob.class, new MPJLambdaWrapper<PlatformJob>() |
| | | .selectAll(PlatformJob.class) |
| | | .selectAs(Platform::getName,PlatformJob::getPlatformName) |
| | | .selectAs(Platform::getLedContent,PlatformJob::getLedContent) |
| | | .leftJoin(Platform.class,Platform::getId,PlatformJob::getPlatformId) |
| | | // .eq(StringUtils.equals(status.getStockStatus(),"front"),PlatformJob::getCarCodeFront,status.getPlateNo() )//å车çå· |
| | | // .eq(!StringUtils.equals(status.getStockStatus(),"front"),PlatformJob::getCarCodeBack,status.getPlateNo() )//å车çå· |
| | |
| | | update.setStatus(Constants.PlatformJobStatus.DONE.getKey());//ä½ä¸å·²å®æ |
| | | update.setDoneDate(update.getEditDate());*/ |
| | | if(Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.DONE.getKey()) || |
| | | Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.TRANSFERING.getKey()) || |
| | | Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.EXCEPTION.getKey()) || |
| | | Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.AUTHED_LEAVE.getKey())){ |
| | | if(((StringUtils.equals(status.getStockStatus(),"front") && StringUtils.equals(job.getCarCodeFront(),status.getPlateNo())) |
| | | ||(!StringUtils.equals(status.getStockStatus(),"front") && StringUtils.equals(job.getCarCodeBack(),status.getPlateNo())) |
| | | )){ |
| | | //说æè½¦è¾è¿éæå° æè
è¿æªå«å·ç¶æï¼åèµ·è¦å |
| | | // dealCarsInErrorPlatformBiz(job,status); |
| | | if(Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.DONE.getKey()) || |
| | | Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.AUTHED_LEAVE.getKey())){ |
| | | update.setInOut(Constants.ZERO);//车è¾å·²ç»ç¦»å¼ |
| | | platformJobMapper.updateById(update); |
| | | } |
| | | dealPlatformContentForLeave(job); |
| | | } |
| | | } |
| | | }else if(StringUtils.equals(status.getMotionStatus(),"enter")){ |
| | |
| | | platformJobMapper.updateById(update); |
| | | } |
| | | } |
| | | /*if(job.getStartDate() == null){ |
| | | /* |
| | | if(job.getStartDate() == null){ |
| | | update.setStartDate(update.getEditDate()); |
| | | } |
| | | update.setStatus(Constants.PlatformJobStatus.WORKING.getKey());//å¼å§ä½ä¸ |
| | |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æå°è½¦è¾ç¦»å¼ 设置æå°ææ¡ä¸ºâ空é²ä¸ ææ¡â |
| | | * @param model |
| | | */ |
| | | private void dealPlatformContentForLeave(PlatformJob model) { |
| | | List<PlatformDevice> deviceList = platformDeviceMapper.selectList(new QueryWrapper<PlatformDevice>().lambda() |
| | | .eq(PlatformDevice::getType, Constants.ZERO) |
| | | .eq(PlatformDevice::getPlatformId,model.getPlatformId()) |
| | | .eq(PlatformDevice::getIsdeleted,Constants.ZERO)); |
| | | if(deviceList ==null || deviceList.size() == 0){ |
| | | return; |
| | | } |
| | | int speed = 13; |
| | | try { |
| | | speed = Integer.parseInt(systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.LED_CONTENT_SPEED).getCode()); |
| | | }catch (Exception e){ |
| | | } |
| | | String content = StringUtils.defaultString(model.getLedContent(), Constants.PlatformLedContent.IDEL_CONTNET.getInfo()); |
| | | List<PlatformBroadcastLog> logList = new ArrayList<>(); |
| | | for(PlatformDevice device : deviceList){ |
| | | if(StringUtils.isBlank(device.getHkId())){ |
| | | continue; |
| | | } |
| | | PlatformBroadcastLog log = dealLedContentBiz(model.getId(),device.getHkNo(),device.getName(),content,speed,1); |
| | | logList.add(log); |
| | | } |
| | | if(logList.size()>0){ |
| | | platformBroadcastLogMapper.insert(logList); |
| | | } |
| | | } |
| | | |
| | | private PlatformEvent initPlatformEventModel(EventPlatformCarsInfoRequest request, EventPlatformCarsDataRequest data, EventPlatformCarsStatusInfoRequest status) { |
| | | PlatformEvent model = new PlatformEvent(); |
| | | model.setCreateDate(new Date()); |
| | |
| | | String url = systemDictDataBiz.queryByCode(Constants.TSM_PARAM,Constants.TMS_INTERFACE_URL_PREFIX).getCode() |
| | | +systemDictDataBiz.queryByCode(Constants.TSM_PARAM,Constants.TMS_LOCK_STATUS_URL).getCode(); |
| | | |
| | | TmsBaseResponse<List<TmsLockStatusQueryResponse>> response = sendHttpRequest(url,"çµåéä¸éæ¶é´æ¥å£",JSONObject.toJSONString(param) |
| | | TmsBaseResponse<List<TmsLockStatusQueryResponse>> response = sendHttpRequest(url,"ãTMSãçµåéä¸éæ¶é´æ¥å£",JSONObject.toJSONString(param) |
| | | ,new TypeReference< TmsBaseResponse<List<TmsLockStatusQueryResponse>>>(){}); |
| | | return response; |
| | | } |