| | |
| | | @Autowired |
| | | private JkSketchService jkSketchService; |
| | | |
| | | @Autowired |
| | | private InoutRecordService inoutRecordService; |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("çµä¿¡-仿¥å
¥åæ°æ®") |
| | | @PostMapping("/getInParkData") |
| | | public ApiResponse<TelecomInParkDataVO> getInParkData () { |
| | | return ApiResponse.success(inoutRecordService.getInParkDataForTelecom()); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.vo; |
| | | |
| | | import com.doumee.dao.business.model.JkCustomerNavigation; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 交æ§-线路信æ¯è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/09/28 09:01 |
| | | */ |
| | | @Data |
| | | @ApiModel("å
¥åç»è®¡ - çµä¿¡å¤§å±") |
| | | public class TelecomInParkDataVO { |
| | | |
| | | @ApiModelProperty(value = "å
¥å人æ°ç»è®¡", example = "1") |
| | | private Integer inUserNum; |
| | | |
| | | @ApiModelProperty(value = "å
¥å车è¾ç»è®¡", example = "1") |
| | | private Integer inCarNum; |
| | | |
| | | } |
| | |
| | | import com.doumee.dao.business.model.InoutRecord; |
| | | 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.third.model.PageData; |
| | | import com.doumee.service.business.third.model.PageWrap; |
| | | |
| | |
| | | List<List<String>> getReportList(InParkDataDTO inParkDataDTO); |
| | | |
| | | void excel(InParkDataDTO inParkDataDTO, HttpServletResponse response); |
| | | |
| | | TelecomInParkDataVO getInParkDataForTelecom(); |
| | | } |
| | |
| | | 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; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | map.put("is_start_trigger","true"); |
| | | map.put("data",this.getJdyChildData(warningEvent,ddUserId)); |
| | | |
| | | OkHttpClient client = new OkHttpClient().newBuilder() |
| | | .build(); |
| | | MediaType mediaType = MediaType.parse("application/json"); |
| | | RequestBody body = RequestBody.create(mediaType, JSONObject.toJSONString(map));//"{\"data\":{\"notice_time\":{\"value\":\"2025-12-23 04:56:29\"},\"title\":{\"value\":\"è·¨è¶ç产线\"},\"user\":{\"value\":\"1568490244651036\"},\"content\":{\"value\":\"è·¨è¶ç产线-èæ¹ç©æµä¸å¿åå´å¢è¿éä¸\"},\"notice_type\":{\"value\":\"è·¨è¶ç产线\"}},\"is_start_trigger\":\"true\",\"app_id\":\"6909d0fbdb93b068192dc4a9\",\"entry_id\":\"694a19ecf57e071788efc20b\",\"is_start_workflow\":\"false\"}"); |
| | | log.error("ç®éäºåééç¥è¯·æ±ä¿¡æ¯" + JSONObject.toJSONString(map)); |
| | | Request request = new Request.Builder() |
| | | .url("https://api.jiandaoyun.com/api/v5/app/entry/data/create") |
| | | .method("POST", body) |
| | | .addHeader("Authorization", "Bearer "+jdyApiKey) |
| | | .addHeader("Content-Type", "application/json") |
| | | .build(); |
| | | Response response = client.newCall(request).execute(); |
| | | |
| | | log.error("ç®éäºåééç¥è¿åä¿¡æ¯" + JSONObject.toJSONString(response)); |
| | | // OkHttpClient client = new OkHttpClient().newBuilder() |
| | | // .build(); |
| | | // MediaType mediaType = MediaType.parse("application/json"); |
| | | // RequestBody body = RequestBody.create(mediaType, JSONObject.toJSONString(map));//"{\"data\":{\"notice_time\":{\"value\":\"2025-12-23 04:56:29\"},\"title\":{\"value\":\"è·¨è¶ç产线\"},\"user\":{\"value\":\"1568490244651036\"},\"content\":{\"value\":\"è·¨è¶ç产线-èæ¹ç©æµä¸å¿åå´å¢è¿éä¸\"},\"notice_type\":{\"value\":\"è·¨è¶ç产线\"}},\"is_start_trigger\":\"true\",\"app_id\":\"6909d0fbdb93b068192dc4a9\",\"entry_id\":\"694a19ecf57e071788efc20b\",\"is_start_workflow\":\"false\"}"); |
| | | // log.error("ç®éäºåééç¥è¯·æ±ä¿¡æ¯" + JSONObject.toJSONString(map)); |
| | | // Request request = new Request.Builder() |
| | | // .url("https://api.jiandaoyun.com/api/v5/app/entry/data/create") |
| | | // .method("POST", body) |
| | | // .addHeader("Authorization", "Bearer "+jdyApiKey) |
| | | // .addHeader("Content-Type", "application/json") |
| | | // .build(); |
| | | // Response response = client.newCall(request).execute(); |
| | | // |
| | | // log.error("ç®éäºåééç¥è¿åä¿¡æ¯" + JSONObject.toJSONString(response)); |
| | | |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public StagingDataVO stagingHead(StagingDataVO stagingHeadVO){ |
| | | //人åä¿¡æ¯ |