Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit
已添加26个文件
已复制1个文件
已修改70个文件
已重命名1个文件
| | |
| | | VUE_APP_CONTEXT_PATH = '/admin' |
| | | |
| | | # æ¥å£åç¼ |
| | | VUE_APP_API_PREFIX = '/admin_interface' |
| | | VUE_APP_API_PREFIX = '/gateway_interface' |
| | | |
| | | # 项ç®åç§° |
| | | VUE_APP_TITLE = '宿³°æºæ
§ååºç³»ç»' |
| | |
| | | # ç产ç¯å¢é
ç½® |
| | | NODE_ENV = 'production' |
| | | |
| | | VUE_APP_API_URL = 'http://10.50.250.178:8088/gateway_interface/' |
| | | VUE_APP_API_URL = 'http://192.168.5.13/gateway_interface' |
| | |
| | | export const uploadFile = '/admin_interface/visitsAdmin/cloudService/public/upload' |
| | | export const uploadFile = '/gateway_interface/visitsAdmin/cloudService/public/upload' |
| | | |
| | | export * from './business/index' |
| | | export * from './platform' |
| | |
| | | }, |
| | | // è·åè®¾å¤ |
| | | getLists () { |
| | | getList({}) |
| | | getList({type:0, isdeleted:0 }) |
| | | .then(res => { |
| | | this.device = res.map(item => { |
| | | return { |
| | |
| | | this.$dialog.actionConfirm('确认æå该任å¡å?') |
| | | .then(() => { |
| | | this.pausing = true |
| | | this.api.paustById(row.id) |
| | | this.api.pauseById(row.id) |
| | | .then(() => { |
| | | this.$message.info('æåæå') |
| | | this.search() |
¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformevent:create', 'æ°å»ºæå°è½¦è¾è¿åºäºä»¶æ¨éè®°å½è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformevent:delete', 'å 餿å°è½¦è¾è¿åºäºä»¶æ¨éè®°å½è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformevent:update', 'ä¿®æ¹æå°è½¦è¾è¿åºäºä»¶æ¨éè®°å½è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformevent:query', 'æ¥è¯¢æå°è½¦è¾è¿åºäºä»¶æ¨éè®°å½è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:platformevent:exportExcel', 'å¯¼åºæå°è½¦è¾è¿åºäºä»¶æ¨éè®°å½è¡¨(Excel)', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| | |
| | | # ææ¶å
³éç¼å |
| | | enabled: false |
| | | nacos: |
| | | server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | server-addr: http://localhost:8848 #é
ç½®Nacoså°å |
| | | username: nacos |
| | | password: nacos |
| | | config: |
| | | server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | namespace: dmvisit_test |
| | | username: nacos |
| | | password: nacos |
| | | # file-extension: yaml |
| | | # group: dev |
| | | # data-id: com.doumee.meeting.admin |
| | | # config: |
| | | # server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | # namespace: dmvisit |
| | | # username: nacos |
| | | # password: nacos |
| | | # file-extension: yaml |
| | | # group: dev |
| | | # data-id: com.doumee.meeting.admin |
| | | discovery: |
| | | server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | server-addr: http://localhost:8848 #é
ç½®Nacoså°å |
| | | namespace: dmvisit |
| | | username: nacos |
| | | password: nacos |
| | | # å®å
¨é
ç½® |
| | | password: nacos |
| | |
| | | spring: |
| | | # æ°æ®æºé
ç½® |
| | | datasource: |
| | | url: jdbc:mysql://localhost:3306/smart_meeting?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://localhost:3306/antaiwuliu?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai |
| | | username: root |
| | | password: Znhys@168.com |
| | | password: Atwl@2024 |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | |
| | | # |
| | | #knife4j: |
| | | # enable: true |
| | | # basic: |
| | | # enable: true |
| | | # username: admin |
| | | # password: doumee@168.com |
| | | |
| | | debug_model: true |
| | | |
| | | captcha_check: false |
| | | jackson: |
| | | time-zone: GMT+8 |
| | | date-format: yyyy-MM-dd HH:mm:ss |
| | | debug_model: false |
| | | captcha_check: true |
| | | |
| | | # Swaggeré
ç½® |
| | | swagger: |
| | |
| | | enabled: true |
| | | # ç¦ç¨swaggeræ¶çéå®åå°å |
| | | redirect-uri: / |
| | | |
| | | |
| | | ########################微信æ¯ä»ç¸å
³é
ç½®######################## |
| | | wx: |
| | | pay: |
| | | appId: wxfab6da18632e28de |
| | | appSecret: 4ee3b22afa90287834319fc3c1635271 |
| | | mchId: 1229817002 |
| | | mchKey: u4TSNtv0wFP7WRfnxBgijYOtRhS9FvlM |
| | | notifyUrl: https://dmtest.ahapp.net/smartmeeting_interface/web/api/wxPayNotify |
| | | keyPath: /usr/local/apiclient_cert.p12 |
| | | |
| | | tencent: |
| | | map: |
| | | remoteHost: https://apis.map.qq.com |
| | | appKey: 3AYBZ-I5R3V-2BVP3-UWBDQ-ETBM5-B2BBQ |
| | | |
| | | |
| | | ########################宿¶å¼å¯é
ç½®######################## |
| | | timing: true |
| | | |
| | | des_pwd: 123456SDFKDJF |
| | | des_pwd: 123456SDFKDJF |
| | |
| | | spring: |
| | | # æ°æ®æºé
ç½® |
| | | datasource: |
| | | url: jdbc:mysql://localhost:3306/smart_meeting?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://localhost:3306/antaiwuliu?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai |
| | | username: root |
| | | password: Znhys@168.com |
| | | password: Atwl@2024 |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | redis: |
| | | # database: 0 |
| | | host: 127.0.0.1 |
| | | port: 6379 |
| | | password: |
| | | timeout: 5000 # è¿æ¥æ± ä¸çæå°ç©ºé²è¿æ¥ |
| | | |
| | | jackson: |
| | | time-zone: GMT+8 |
| | | date-format: yyyy-MM-dd HH:mm:ss |
| | | |
| | | |
| | | #knife4j: |
| | | # enable: true |
| | | # basic: |
| | | # enable: true |
| | | # username: admin |
| | | # password: doumee@168.com |
| | | |
| | | debug_model: true |
| | | debug_model: false |
| | | |
| | | captcha_check: false |
| | | captcha_check: true |
| | | |
| | | # Swaggeré
ç½® |
| | | swagger: |
| | |
| | | # ç¦ç¨swaggeræ¶çéå®åå°å |
| | | redirect-uri: / |
| | | |
| | | |
| | | ########################微信æ¯ä»ç¸å
³é
ç½®######################## |
| | | wx: |
| | | pay: |
| | | appId: wxfab6da18632e28de |
| | | appSecret: 4ee3b22afa90287834319fc3c1635271 |
| | | mchId: 1229817002 |
| | | mchKey: u4TSNtv0wFP7WRfnxBgijYOtRhS9FvlM |
| | | notifyUrl: https://dmtest.ahapp.net/smartmeeting_interface/web/api/wxPayNotify |
| | | keyPath: /usr/local/apiclient_cert.p12 |
| | | |
| | | tencent: |
| | | map: |
| | | remoteHost: https://apis.map.qq.com |
| | | appKey: 3AYBZ-I5R3V-2BVP3-UWBDQ-ETBM5-B2BBQ |
| | | |
| | | |
| | | ########################宿¶å¼å¯é
ç½®######################## |
| | | timing: true |
| | | |
| | | des_pwd: 123456SDFKDJF |
| | | des_pwd: 123456SDFKDJF |
| | |
| | | enabled: true |
| | | mime-types: application/json |
| | | port: 10010 |
| | | |
| | | tomcat: |
| | | max-swallow-size: -1 |
| | | servlet: |
| | |
| | | spring: |
| | | cloud: |
| | | nacos: |
| | | server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | server-addr: http://localhost:8848 #é
ç½®Nacoså°å |
| | | username: nacos |
| | | password: nacos |
| | | discovery: |
| | | server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | namespace: dmvisit_test |
| | | server-addr: http://localhost:8848 #é
ç½®Nacoså°å |
| | | namespace: dmvisit |
| | | # namespace: dev_renkang |
| | | username: nacos |
| | | password: nacos |
| | |
| | | @GetMapping("/getVisitConfigDTO") |
| | | public ApiResponse<VisitConfigDTO> getVisitConfigDTO(){ |
| | | return ApiResponse.success(systemDictDataService.getVisitConfigDTO()); |
| | | }; |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¿å®¢æ¥è®¿é
ç½® |
| | |
| | | public static final String HEADER_USER_TOKEN = "dm_user_token"; |
| | | public static final String REDIS_TOKEN_KEY = "token_"; |
| | | public static final String REDIS_HK_TOKEN_KEY = "hk_token_"; |
| | | public static final String HK_TOKEN_VALIDITY = "HK_TOKEN_VALIDITY"; |
| | | public static final String[] ALL_SPELL_LIST_FIRST = new String[]{"A", "B", "C", "D", "E", "F", "G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}; |
| | | public static final int ZERO = 0 ; |
| | | public static final int ONE = 1 ; |
| | |
| | | public static final String HK_NGINX_URL = "HK_NGINX_URL"; |
| | | public static final String PLATFORM_BOOKING_TIPS = "PLATFORM_BOOKING_TIPS"; |
| | | public static final String PLATFORM_GUIDEMAP = "PLATFORM_GUIDEMAP"; |
| | | public static final String WSM_PARAM ="WSM_PARAM" ; |
| | | public static final String WMS_INBOUND_PLATFROM_URL ="WMS_INBOUND_PLATFROM_URL" ; |
| | | public static final String WMS_GET_INVENTORYLIST_URL ="WMS_GET_INVENTORYLIST_URL" ; |
| | | public static final String WMS_OUTBOUND_PLATFROM_URL ="WMS_OUTBOUND_PLATFROM_URL" ; |
| | | public static boolean DEALING_HK_SYNCPRIVILEGE= false; |
| | | public static boolean DEALING_HK_SYNCDEVICE = false; |
| | | public static boolean DEALING_HK_SYNCPLATFORM = false; |
| | |
| | | this.info = info; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æå°ä½ä¸ ç¶æ |
| | | * 0å¾
确认 1å¾
ç¾å° 2çå¾
å«å· 3å
¥åçå¾
4å·²å«å· 5ä½ä¸ä¸ 6ä½ä¸å®æ 7è½¬ç§»ä¸ 8å¼å¸¸æèµ· 9å·²ææç¦»å 10已离å 11 å·²è¿å· |
| | |
| | | AUTHED_LEAVE(9, "å·²ææç¦»å","å·²ææç¦»å" ), |
| | | LEAVED(10, "已离å ","已离å " ), |
| | | OVER_NUMBER(11, "å·²è¿å·","å·²è¿å·" ), |
| | | CANCEL(12, "已忶","已忶" ), |
| | | ; |
| | | |
| | | // æååé |
| | |
| | | package com.doumee.core.utils; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | |
| | | import javax.crypto.Cipher; |
| | | import javax.crypto.CipherInputStream; |
| | | import javax.crypto.CipherOutputStream; |
| | |
| | | import java.io.*; |
| | | import java.security.Key; |
| | | import java.util.Base64; |
| | | import java.util.concurrent.TimeUnit; |
| | | |
| | | public class DESUtil { |
| | | |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 海康å å¯ |
| | | * @param userName |
| | | * @param hour |
| | | * @return |
| | | */ |
| | | public static String generateTokenToHk(String userName,Integer hour, RedisTemplate<String,Object> redisTemplate){ |
| | | long currentTimeMillis = System.currentTimeMillis() + 1000*60*60*hour; |
| | | String encrypt = DESUtil.encrypt("12345678",currentTimeMillis + "_" + userName ); |
| | | redisTemplate.opsForValue().set(Constants.REDIS_HK_TOKEN_KEY+encrypt, encrypt,1000*60*60*hour, TimeUnit.MILLISECONDS); |
| | | return encrypt; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 海康解ç |
| | | * @param token |
| | | * @return |
| | | */ |
| | | public static String verifyHkToken(String token){ |
| | | String decrypt = DESUtil.decrypt("12345678",token); |
| | | if(StringUtils.isBlank(decrypt)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"tokenè§£æå¤±è´¥"); |
| | | } |
| | | try{ |
| | | Integer index_ = decrypt.indexOf("_"); |
| | | long currentTimeMillis = Long.valueOf(decrypt.substring(Constants.ZERO,index_)); |
| | | if(currentTimeMillis<=System.currentTimeMillis()){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"tokenå·²è¿æ"); |
| | | } |
| | | String userName = decrypt.substring(index_+Constants.ONE); |
| | | return userName ; |
| | | }catch (Exception e){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"tokenè§£æå¤±è´¥"); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | return DateToStr(date, "yyyyMMdd"); |
| | | } |
| | | |
| | | public static String afterDateHourToStr(Integer hour){ |
| | | Date date = new Date(); |
| | | Long l = date.getTime()+1000*60*60*hour; |
| | | date.setTime(l); |
| | | return DateToStr(date, "yyyyMMdd"); |
| | | } |
| | | |
| | | public static String beforeDateToStr(Integer days){ |
| | | Date date = new Date(); |
| | | Long l = date.getTime()-1000*60*60*24*days; |
| | |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | String url= "http://175.27.187.84/file4/member/20223402/DM1005.png";// å¾
å¤ççå¾ç |
| | | String url= "http://10.50.250.178:8088/file/member/20240910/c9a4d1cc-76ca-4aa1-bead-5dfd5daf1e76.jpg";// å¾
å¤ççå¾ç |
| | | String imgbese = Image2Base64(url); |
| | | System.out.println(imgbese.replace("\r\n", "")); |
| | | |
| | |
| | | if(Objects.isNull(notices)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | if(Constants.equalsInteger(notices.getSendacopy(),Constants.ONE)){ |
| | | if(Constants.equalsInteger(Constants.ZERO,notices.getReaded())){ |
| | | noticesMapper.update(null,new UpdateWrapper<Notices>().lambda() |
| | | .set(Notices::getReaded,Constants.ONE).eq(Notices::getId,noticesId)); |
| | | } |
| | | }else{ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"éæéæ°æ®,æ æ³è¿è¡æ è®°"); |
| | | if(Constants.equalsInteger(Constants.ZERO,notices.getReaded())){ |
| | | noticesMapper.update(null,new UpdateWrapper<Notices>().lambda() |
| | | .set(Notices::getReaded,Constants.ONE).eq(Notices::getId,noticesId)); |
| | | } |
| | | // if(Constants.equalsInteger(notices.getSendacopy(),Constants.ONE)){ |
| | | // |
| | | // }else{ |
| | | // throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"éæéæ°æ®,æ æ³è¿è¡æ è®°"); |
| | | // } |
| | | } |
| | | |
| | | /** |
| | |
| | | spring: |
| | | # æ°æ®æºé
ç½® |
| | | datasource: |
| | | url: jdbc:mysql://sh-cdb-aiskr3vy.sql.tencentcdb.com:62443/dm_visit?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai |
| | | username: doumee |
| | | password: rtjgfEr@&0c0m |
| | | url: jdbc:mysql://localhost:3306/antaiwuliu?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai |
| | | username: root |
| | | password: Atwl@2024 |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | |
| | | redis: |
| | | # database: 0 |
| | | host: 127.0.0.1 |
| | | port: 6379 |
| | | password: |
| | | timeout: 5000 # è¿æ¥æ± ä¸çæå°ç©ºé²è¿æ¥ |
| | | #knife4j: |
| | | # enable: true |
| | | # basic: |
| | | # enable: true |
| | | # username: admin |
| | | # password: doumee@168.com |
| | | jackson: |
| | | time-zone: GMT+8 |
| | | date-format: yyyy-MM-dd HH:mm:ss |
| | | |
| | | debug_model: true |
| | | |
| | | captcha_check: false |
| | | |
| | | debug_model: false |
| | | |
| | | captcha_check: true |
| | | |
| | | # Swaggeré
ç½® |
| | | swagger: |
| | |
| | | # ç¦ç¨swaggeræ¶çéå®åå°å |
| | | redirect-uri: / |
| | | |
| | | timing: true |
| | | |
| | | ########################微信æ¯ä»ç¸å
³é
ç½®######################## |
| | | wx: |
| | | pay: |
| | | appId: wxfab6da18632e28de |
| | | appSecret: 4ee3b22afa90287834319fc3c1635271 |
| | | mchId: 1229817002 |
| | | mchKey: u4TSNtv0wFP7WRfnxBgijYOtRhS9FvlM |
| | | notifyUrl: https://dmtest.ahapp.net/smartmeeting_interface/web/api/wxPayNotify |
| | | keyPath: /usr/local/apiclient_cert.p12 |
| | | |
| | | tencent: |
| | | map: |
| | | remoteHost: https://apis.map.qq.com |
| | | appKey: 3AYBZ-I5R3V-2BVP3-UWBDQ-ETBM5-B2BBQ |
| | | |
| | | |
| | | |
| | | des_pwd: 123456SDFKDJF |
| | | des_pwd: 123456SDFKDJF |
| | |
| | | # ææ¶å
³éç¼å |
| | | enabled: false |
| | | nacos: |
| | | server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | server-addr: http://localhost:8848 #é
ç½®Nacoså°å |
| | | username: nacos |
| | | password: nacos |
| | | # config: |
| | |
| | | # group: dev |
| | | # data-id: com.doumee.meeting.admin |
| | | discovery: |
| | | server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | namespace: dmvisit_test |
| | | server-addr: http://localhost:8848 #é
ç½®Nacoså°å |
| | | namespace: dmvisit |
| | | username: nacos |
| | | password: nacos |
| | |
| | | import com.doumee.service.business.impl.hksync.ferp.HkSyncOrgUserToHKServiceImpl; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @Api(tags = "ç»ç»äººå宿¶å¨æ¥å£") |
| | | @RestController |
| | | @RequestMapping("/timer/orguser") |
| | | @Slf4j |
| | | public class HkUsersTimerController extends BaseController { |
| | | |
| | | @Autowired |
| | |
| | | @ApiOperation("å¼å¯å®æ¶åæ¥æµ·åº·ç»ç»æ°æ®") |
| | | @GetMapping("/syncOrgData") |
| | | public ApiResponse syncOrgData() { |
| | | if(Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.erp){ |
| | | log.info("=========================å¼å¯å®æ¶åæ¥æµ·åº·ç»ç»æ°æ®===========start==========="); |
| | | if(Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.erp |
| | | || Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.self) { |
| | | //妿æ¯ERPç³»ç»åæ¥ä¸å |
| | | hkSyncOrgUserService.syncOrgData(null); |
| | | } |
| | | log.info("=========================å¼å¯å®æ¶åæ¥æµ·åº·ç»ç»æ°æ®===========end==========="); |
| | | return ApiResponse.success("å¼å¯å®æ¶åæ¥æµ·åº·ç»ç»æ°æ®æå"); |
| | | } |
| | | @ApiOperation("å¼å¯å®æ¶éæ°ä¸åå é¤äººåæ°æ®") |
| | | @GetMapping("/syncMemberDelData") |
| | | public ApiResponse syncMemberDelData() { |
| | | log.info("=========================å¼å¯å®æ¶éæ°ä¸åå é¤äººåæ°æ®===========start==========="); |
| | | hkSyncOrgUserService.syncMemberDelData(); |
| | | |
| | | log.info("=========================å¼å¯å®æ¶éæ°ä¸åå é¤äººåæ°æ®===========end==========="); |
| | | return ApiResponse.success("å¼å¯å®æ¶éæ°ä¸åå é¤äººåæ°æ®æå"); |
| | | } |
| | | @ApiOperation("å¼å¯å®æ¶åæ¥æµ·åº·äººåæ°æ®") |
| | | @GetMapping("/syncUserData") |
| | | public ApiResponse syncUserData() { |
| | | if(Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.erp) { |
| | | log.info("=========================å¼å¯å®æ¶åæ¥æµ·åº·äººåæ°æ®===========start==========="); |
| | | if(Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.erp |
| | | || Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.self) { |
| | | //妿æ¯ERPç³»ç»åæ¥ä¸å |
| | | hkSyncOrgUserService.syncUserData(null); |
| | | } |
| | | log.info("=========================å¼å¯å®æ¶åæ¥æµ·åº·äººåæ°æ®===========end==========="); |
| | | return ApiResponse.success("å¼å¯å®æ¶åæ¥æµ·åº·äººåæ°æ®æå"); |
| | | } |
| | | @ApiOperation("å¼å¯å®æ¶å»ç»äººå") |
| | |
| | | # ææ¶å
³éç¼å |
| | | enabled: false |
| | | nacos: |
| | | server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | server-addr: http://localhost:8848 #é
ç½®Nacoså°å |
| | | username: nacos |
| | | password: nacos |
| | | # config: |
| | | # server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | # namespace: dmvisit |
| | | # username: nacos |
| | | # password: nacos |
| | | # file-extension: yaml |
| | | # group: dev |
| | | # data-id: com.doumee.meeting.admin |
| | | # config: |
| | | # server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | # namespace: dmvisit |
| | | # username: nacos |
| | | # password: nacos |
| | | # file-extension: yaml |
| | | # group: dev |
| | | # data-id: com.doumee.meeting.admin |
| | | discovery: |
| | | server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | namespace: dmvisit_test |
| | | server-addr: http://localhost:8848 #é
ç½®Nacoså°å |
| | | namespace: dmvisit |
| | | username: nacos |
| | | password: nacos |
| | | password: nacos |
| | |
| | | import com.doumee.core.haikang.model.param.request.*; |
| | | import com.doumee.core.haikang.model.param.request.event.acs.EventAcsRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventParkRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventPlatCarstatusRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventPlatWorkstatusRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventPlatformCarsRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventPlatformRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.visit.EventVisitRequest; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.dao.business.model.Device; |
| | |
| | | return ApiResponse.success(null); |
| | | } |
| | | @ApiOperation("ãæµ·åº·ãæå°å·¥ä½ç¶æäºä»¶æ¨é") |
| | | @PostMapping("/platform/workstatus") |
| | | public ApiResponse workstatus(@RequestBody EventPlatWorkstatusRequest param, HttpServletResponse response) { |
| | | hkSyncPushService.dealWorkstatusEvent(param,response); |
| | | @PostMapping("/push/platform/workstatus") |
| | | public ApiResponse pushPlatformStatus(@RequestBody EventPlatformRequest param, HttpServletResponse response) { |
| | | hkSyncPushService.dealPlatformStatusEvent(param,response); |
| | | return ApiResponse.success(null); |
| | | } |
| | | @ApiOperation("ãæµ·åº·ãæå°è½¦è¾ç¶æäºä»¶æ¨é") |
| | | @PostMapping("/platform/carstatus") |
| | | public ApiResponse carstatus(@RequestBody EventPlatCarstatusRequest param, HttpServletResponse response) { |
| | | hkSyncPushService.dealCarstatusEvent(param,response); |
| | | @PostMapping("/push/platform/carstatus") |
| | | public ApiResponse pushPlatformCarStatus(@RequestBody EventPlatformCarsRequest param, HttpServletResponse response) { |
| | | hkSyncPushService.dealPlatformCarsEvent(param,response); |
| | | return ApiResponse.success(null); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.api.business; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.dao.business.model.PlatformEvent; |
| | | import com.doumee.service.business.PlatformEventService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/08/28 17:24 |
| | | */ |
| | | @Api(tags = "æå°è½¦è¾è¿åºäºä»¶æ¨éè®°å½è¡¨") |
| | | @RestController |
| | | @RequestMapping("/business/platformEvent") |
| | | public class PlatformEventController extends BaseController { |
| | | |
| | | @Autowired |
| | | private PlatformEventService platformEventService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @RequiresPermissions("business:platformevent:create") |
| | | public ApiResponse create(@RequestBody PlatformEvent platformEvent) { |
| | | return ApiResponse.success(platformEventService.create(platformEvent)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @RequiresPermissions("business:platformevent:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | platformEventService.deleteById(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ¹éå é¤") |
| | | @GetMapping("/delete/batch") |
| | | @RequiresPermissions("business:platformevent:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | String [] idArray = ids.split(","); |
| | | List<Integer> idList = new ArrayList<>(); |
| | | for (String id : idArray) { |
| | | idList.add(Integer.valueOf(id)); |
| | | } |
| | | platformEventService.deleteByIdInBatch(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | | @RequiresPermissions("business:platformevent:update") |
| | | public ApiResponse updateById(@RequestBody PlatformEvent platformEvent) { |
| | | platformEventService.updateById(platformEvent); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @RequiresPermissions("business:platformevent:query") |
| | | public ApiResponse<PageData<PlatformEvent>> findPage (@RequestBody PageWrap<PlatformEvent> pageWrap) { |
| | | return ApiResponse.success(platformEventService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:platformevent:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<PlatformEvent> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(PlatformEvent.class).export(platformEventService.findPage(pageWrap).getRecords(), "æå°è½¦è¾è¿åºäºä»¶æ¨éè®°å½è¡¨", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:platformevent:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(platformEventService.findById(id)); |
| | | } |
| | | } |
| | |
| | | package com.doumee.api.business; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.dao.business.WmsInterfaceLogMapper; |
| | | import com.doumee.dao.business.model.InterfaceLog; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.WmsInterfaceLog; |
| | | import com.doumee.service.business.InterfaceLogService; |
| | | import com.doumee.service.business.WmsInterfaceLogService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/11/30 15:33 |
| | |
| | | package com.doumee.api.business; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.haikang.model.param.request.AcsDeviceListRequest; |
| | | import com.doumee.core.haikang.model.param.request.EventSubRequest; |
| | | import com.doumee.core.haikang.model.param.request.ParkListRequest; |
| | |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventParkRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.visit.EventVisitRequest; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.wms.model.request.WmsActionNoticeRequest; |
| | | import com.doumee.core.wms.model.request.WmsInboundNoticeRequest; |
| | | import com.doumee.core.wms.model.request.WmsOutboundNoticeRequest; |
| | |
| | | import com.doumee.service.business.impl.hksync.HkSyncPushServiceImpl; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | @Api(tags = "WMS平尿°æ®æ¨éæ¥å£") |
| | | @RestController |
| | | @RequestMapping("/wms") |
| | | @Slf4j |
| | | public class WmsPushController extends BaseController { |
| | | |
| | | @Autowired |
| | |
| | | @ApiOperation("ãCMSãæ¨éå
¥åºåéç¥ä»»å¡") |
| | | @PostMapping("/push/inboundNotice") |
| | | public WmsBaseResponse inboundNotice(@RequestBody List<WmsInboundNoticeRequest> param) { |
| | | WmsBaseResponse result = wmsService.inboundNotice(param); |
| | | |
| | | int success = Constants.ZERO; |
| | | WmsBaseResponse result =null; |
| | | try { |
| | | result = wmsService.inboundNotice(param); |
| | | }catch (BusinessException e){ |
| | | log.error("ãCMSãæ¨éå
¥åºåéç¥ä»»å¡===失败ï¼"+e.getMessage()); |
| | | success = Constants.ONE; |
| | | }catch (Exception e){ |
| | | log.error("ãCMSãæ¨éå
¥åºåéç¥ä»»å¡===失败ï¼"+e.getMessage()); |
| | | e.printStackTrace(); |
| | | success = Constants.ONE; |
| | | }finally { |
| | | wmsService.saveInterfaceLog("/wms/push/inboundNotice", "æ¨éå
¥åºåéç¥ä»»å¡",JSONObject.toJSONString(param), |
| | | success, JSONObject.toJSONString(result),Constants.ONE); |
| | | } |
| | | |
| | | return result; |
| | | } |
| | | |
| | |
| | | @ApiOperation("ãCMSãæ¨éåºåºåéç¥ä»»å¡") |
| | | @PostMapping("/push/outboundNotice") |
| | | public WmsBaseResponse outboundNotice(@RequestBody List<WmsOutboundNoticeRequest> param) { |
| | | WmsBaseResponse result = wmsService.outboundNotice(param); |
| | | int success = Constants.ZERO; |
| | | WmsBaseResponse result =null; |
| | | try { |
| | | result = wmsService.outboundNotice(param); |
| | | }catch (BusinessException e){ |
| | | log.error("ãCMSãæ¨éåºåºåéç¥ä»»å¡===失败ï¼"+e.getMessage()); |
| | | success = Constants.ONE; |
| | | }catch (Exception e){ |
| | | log.error("ãCMSãæ¨éåºåºåéç¥ä»»å¡===失败ï¼"+e.getMessage()); |
| | | e.printStackTrace(); |
| | | success = Constants.ONE; |
| | | }finally { |
| | | wmsService.saveInterfaceLog("/wms/push/outboundNotice", "æ¨éåºåºåéç¥ä»»å¡",JSONObject.toJSONString(param),success |
| | | , JSONObject.toJSONString(result),Constants.ONE); |
| | | } |
| | | |
| | | return result; |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("ãCMSãæ¨éåæ¶å
¥åºåéç¥ä»»å¡") |
| | | @PostMapping("/push/cancelInbound") |
| | | public WmsBaseResponse cancelInbound(@RequestBody List<WmsActionNoticeRequest> param) { |
| | | WmsBaseResponse result = wmsService.cancelInbound(param); |
| | | int success = Constants.ZERO; |
| | | WmsBaseResponse result =null; |
| | | try { |
| | | result = wmsService.cancelInbound(param); |
| | | }catch (BusinessException e){ |
| | | log.error("ãCMSãæ¨éåæ¶å
¥åºåéç¥ä»»å¡===失败ï¼"+e.getMessage()); |
| | | success = Constants.ONE; |
| | | }catch (Exception e){ |
| | | log.error("ãCMSãæ¨éåæ¶å
¥åºåéç¥ä»»å¡===失败ï¼"+e.getMessage()); |
| | | e.printStackTrace(); |
| | | success = Constants.ONE; |
| | | }finally { |
| | | wmsService.saveInterfaceLog("/wms/push/cancelInbound", "æ¨éåæ¶å
¥åºåéç¥ä»»å¡",JSONObject.toJSONString(param), |
| | | success, JSONObject.toJSONString(result),Constants.ONE); |
| | | } |
| | | return result; |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("ãCMSãæ¨éåæ¶åºåºåéç¥ä»»å¡") |
| | | @PostMapping("/push/cancelOutbound") |
| | | public WmsBaseResponse cancelOutbound(@RequestBody List<WmsActionNoticeRequest> param) { |
| | | WmsBaseResponse result = wmsService.cancelOutbound(param); |
| | | int success = Constants.ZERO; |
| | | WmsBaseResponse result =null; |
| | | try { |
| | | result = wmsService.cancelOutbound(param); |
| | | }catch (BusinessException e){ |
| | | log.error("ãCMSãæ¨éåæ¶åºåºåéç¥ä»»å¡===失败ï¼"+e.getMessage()); |
| | | success = Constants.ONE; |
| | | }catch (Exception e){ |
| | | log.error("ãCMSãæ¨éåæ¶åºåºåéç¥ä»»å¡===失败ï¼"+e.getMessage()); |
| | | e.printStackTrace(); |
| | | success = Constants.ONE; |
| | | }finally { |
| | | wmsService.saveInterfaceLog("/wms/push/cancelOutbound", "æ¨éåæ¶åºåºåéç¥ä»»å¡", |
| | | JSONObject.toJSONString(param), success, JSONObject.toJSONString(result),Constants.ONE); |
| | | } |
| | | return result; |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("ãCMSãæ¨éåºå
¥åºä½ä¸å®æéç¥ä»»å¡") |
| | | @PostMapping("/push/doneTask") |
| | | public WmsBaseResponse doneTask(@RequestBody List<WmsActionNoticeRequest> param) { |
| | | WmsBaseResponse result = wmsService.doneTask(param); |
| | | int success = Constants.ZERO; |
| | | WmsBaseResponse result =null; |
| | | try { |
| | | result = wmsService.doneTask(param); |
| | | }catch (BusinessException e){ |
| | | log.error("ãCMSãæ¨éåºå
¥åºä½ä¸å®æéç¥ä»»å¡===失败ï¼"+e.getMessage()); |
| | | success = Constants.ONE; |
| | | }catch (Exception e){ |
| | | log.error("ãCMSãæ¨éåºå
¥åºä½ä¸å®æéç¥ä»»å¡===失败ï¼"+e.getMessage()); |
| | | e.printStackTrace(); |
| | | success = Constants.ONE; |
| | | }finally { |
| | | wmsService.saveInterfaceLog("/wms/push/doneTask", "æ¨éåºå
¥åºä½ä¸å®æéç¥ä»»å¡",JSONObject.toJSONString(param), |
| | | success, JSONObject.toJSONString(result),Constants.ONE); |
| | | } |
| | | return result; |
| | | } |
| | | } |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.haikang.model.param.request.*; |
| | | import com.doumee.core.haikang.model.param.request.event.acs.EventAcsRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventParkRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventPlatformCarsRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventPlatformRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.visit.EventVisitIccmRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.visit.EventVisitRequest; |
| | | import com.doumee.core.haikang.service.HKService; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DESUtil; |
| | | import com.doumee.dao.business.model.Device; |
| | | import com.doumee.service.business.impl.hksync.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/11/30 15:33 |
| | |
| | | private HkSyncPushServiceImpl hkSyncPushService; |
| | | @Autowired |
| | | private HkSyncLoginAuthServiceImpl hkSyncLoginAuthService; |
| | | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | |
| | | @Autowired |
| | | private RedisTemplate<String,Object> redisTemplate; |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("ãæµ·åº·ãå
¨é忥æå°ä¿¡æ¯æ¥å£") |
| | | @PostMapping("/syncPlatforms") |
| | |
| | | String result = hkSyncPushService.dealParkEvent(param,response); |
| | | return ApiResponse.success(result); |
| | | } |
| | | @ApiOperation("ãæµ·åº·ãæå°å·¥ä½ç¶æäºä»¶è®¢é
æ¨é对æ¥å¤çæ¥å£") |
| | | @PostMapping("/push/platform/workstatus") |
| | | @LoginNoRequired |
| | | public ApiResponse pushPlatformStatus(@RequestBody EventPlatformRequest param, HttpServletResponse response ){ |
| | | String result = hkSyncPushService.dealPlatformStatusEvent(param,response); |
| | | return ApiResponse.success(result); |
| | | } |
| | | @ApiOperation("ãæµ·åº·ãæå°è½¦è¾ç¶æäºä»¶è®¢é
æ¨é对æ¥å¤çæ¥å£") |
| | | @PostMapping("/push/platform/carstatus") |
| | | @LoginNoRequired |
| | | public ApiResponse pushPlatformCarStatus(@RequestBody EventPlatformCarsRequest param, HttpServletResponse response ){ |
| | | String result = hkSyncPushService.dealPlatformCarsEvent(param,response); |
| | | return ApiResponse.success(result); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("ãæµ·åº·ãåæ¶è®¢é
äºä»¶") |
| | | @PostMapping("/cancelEventSub") |
| | |
| | | hkSyncPushService.cancelEventSub(); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | /** |
| | | * è·åå®é²å¹³å°ç³»ç»å
å¯èåè°æ´å°å |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "è·åå®é²å¹³å°ç³»ç»å
å¯èåè°æ´å°å" ) |
| | | @GetMapping("/getHkMenuLink") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "type",example = "0",value = "èåç±»å", required = true), |
| | | }) |
| | | public ApiResponse<String> getHkMenuLink(Integer type,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | LoginUserInfo loginUserInfo = this.getLoginUser(token); |
| | | String hkToken = DESUtil.generateTokenToHk(loginUserInfo.getUsername(),Integer.valueOf( |
| | | systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_TOKEN_VALIDITY).getCode() |
| | | ),redisTemplate); |
| | | String url = systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_HTTPS).getCode() + |
| | | systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_HOST).getCode() |
| | | + HKService.getMenuUrl(type,hkToken); |
| | | |
| | | return ApiResponse.success( url); |
| | | } |
| | | |
| | | } |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.PlatformBooks; |
| | | import com.doumee.dao.business.model.PlatformReason; |
| | | import com.doumee.dao.web.reqeust.PlatformBooksApplyDTO; |
| | | import com.doumee.dao.web.reqeust.PlatformBooksCheckNumDTO; |
| | | import com.doumee.dao.web.response.DriverHomeVO; |
| | | import com.doumee.service.business.PlatformBooksService; |
| | | import com.doumee.service.business.PlatformReasonService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private PlatformBooksService platformBooksService; |
| | | @Autowired |
| | | private PlatformReasonService platformReasonService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @RequiresPermissions("business:platformbooks:create") |
| | | @CloudRequiredPermission("business:platformbooks:create") |
| | | public ApiResponse create(@RequestBody PlatformBooks platformBooks) { |
| | | return ApiResponse.success(platformBooksService.create(platformBooks)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @RequiresPermissions("business:platformbooks:delete") |
| | | @CloudRequiredPermission("business:platformbooks:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | platformBooksService.deleteById(id); |
| | | return ApiResponse.success(null); |
| | |
| | | |
| | | @ApiOperation("æ¹éå é¤") |
| | | @GetMapping("/delete/batch") |
| | | @RequiresPermissions("business:platformbooks:delete") |
| | | @CloudRequiredPermission("business:platformbooks:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | String [] idArray = ids.split(","); |
| | | List<Integer> idList = new ArrayList<>(); |
| | |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | | @RequiresPermissions("business:platformbooks:update") |
| | | @CloudRequiredPermission("business:platformbooks:update") |
| | | public ApiResponse updateById(@RequestBody PlatformBooks platformBooks) { |
| | | platformBooksService.updateById(platformBooks); |
| | | return ApiResponse.success(null); |
| | |
| | | |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @RequiresPermissions("business:platformbooks:query") |
| | | public ApiResponse<PageData<PlatformBooks>> findPage (@RequestBody PageWrap<PlatformBooks> pageWrap) { |
| | | @CloudRequiredPermission("business:platformbooks:query") |
| | | public ApiResponse<PageData<PlatformBooks>> findPage (@RequestBody PageWrap<PlatformBooks> pageWrap,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | return ApiResponse.success(platformBooksService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:platformbooks:exportExcel") |
| | | @CloudRequiredPermission("business:platformbooks:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<PlatformBooks> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(PlatformBooks.class).export(platformBooksService.findPage(pageWrap).getRecords(), "æå°å
¥åé¢çº¦ä¿¡æ¯è¡¨", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:platformbooks:query") |
| | | @CloudRequiredPermission("business:platformbooks:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(platformBooksService.findById(id)); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation("å
¥ååå ") |
| | | @GetMapping("/platformReasonList") |
| | | public ApiResponse<List<PlatformReason>> platformReasonList (@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | List<PlatformReason> platformReasons = platformReasonService.findList(null); |
| | | return ApiResponse.success(platformReasons); |
| | | } |
| | | |
| | | @ApiOperation("æ¥è¯¢å¯é¢çº¦é") |
| | | @PostMapping("/checkSurplusNum") |
| | | public ApiResponse<BigDecimal> checkSurplusNum (@RequestBody PlatformBooksCheckNumDTO platformBooksCheckNumDTO , @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | return ApiResponse.success(platformBooksService.checkNum(platformBooksCheckNumDTO)); |
| | | } |
| | | |
| | | @ApiOperation("ç©æµè½¦é¢çº¦") |
| | | @PostMapping("/apply") |
| | | public ApiResponse<Integer> apply (@RequestBody PlatformBooksApplyDTO platformBooksApplyDTO , @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | LoginUserInfo loginUserInfo = getLoginUser(token); |
| | | platformBooksApplyDTO.setUserId(loginUserInfo.getMemberId()); |
| | | platformBooksApplyDTO.setDriverId(loginUserInfo.getMemberId()); |
| | | return ApiResponse.success(platformBooksService.apply(platformBooksApplyDTO)); |
| | | } |
| | | |
| | | @ApiOperation("ç©æµè½¦é¢çº¦è¯¦æ
") |
| | | @GetMapping("/getDetail") |
| | | public ApiResponse<PlatformBooks> getDetail (@RequestParam Integer id, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | PlatformBooks platformBooks = platformBooksService.getDetail(id,getLoginUser(token).getMemberId()); |
| | | return ApiResponse.success(platformBooks); |
| | | } |
| | | } |
| | |
| | | import com.doumee.dao.business.model.PlatformJob; |
| | | import com.doumee.dao.web.reqeust.JobOperateDTO; |
| | | import com.doumee.dao.web.reqeust.PlatformDataDTO; |
| | | import com.doumee.dao.web.response.PlatformGroupWorkVO; |
| | | import com.doumee.dao.web.response.PlatformWorkVO; |
| | | import com.doumee.service.business.PlatformGroupService; |
| | | import com.doumee.service.business.PlatformJobService; |
| | |
| | | return ApiResponse.success("æä½æå"); |
| | | } |
| | | |
| | | @ApiOperation("ææç¦»åº") |
| | | @PostMapping("/powerLevel") |
| | | public ApiResponse powerLevel (@RequestBody JobOperateDTO jobOperateDTO, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | jobOperateDTO.setLoginUserInfo(getLoginUser(token)); |
| | | platformJobService.powerLevel(jobOperateDTO); |
| | | return ApiResponse.success("æä½æå"); |
| | | } |
| | | |
| | | @ApiOperation("è·åæå°ç» çå¾
ä¸å¼å¸¸æèµ·æ°æ®") |
| | | @GetMapping("/getPlatformGroupWork") |
| | | public ApiResponse<PlatformGroupWorkVO> getPlatformGroupWork (@RequestParam Integer platformGroupId, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | return ApiResponse.success(platformGroupService.getPlatformGroupWork(platformGroupId)); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import com.doumee.dao.web.reqeust.PlatformDataDTO; |
| | | import com.doumee.service.business.PlatformGroupService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.PlatformJob; |
| | | import com.doumee.dao.web.reqeust.JobDetailDTO; |
| | | import com.doumee.service.business.PlatformJobService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @GetMapping("/delete/{id}") |
| | | @CloudRequiredPermission("business:platformjob:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | platformJobService.deleteById(id); |
| | | platformJobService.delete(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | |
| | | public ApiResponse findById(@PathVariable Integer id,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | return ApiResponse.success(platformJobService.findById(id)); |
| | | } |
| | | |
| | | @ApiOperation("ä»»å¡è¯¦æ
") |
| | | @PostMapping("/jobDetail") |
| | | @CloudRequiredPermission("business:platformjob:query") |
| | | public ApiResponse<PlatformJob> jobDetail (@RequestBody JobDetailDTO jobDetailDTO, @RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | return ApiResponse.success(platformJobService.getDetail(jobDetailDTO)); |
| | | } |
| | | } |
| | |
| | | @PostMapping("/page") |
| | | @CloudRequiredPermission("business:visits:query") |
| | | public ApiResponse<PageData<Visits>> findPage (@RequestBody PageWrap<Visits> pageWrap,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | pageWrap.getModel().setReceptMemberId(getLoginUser(token).getMemberId()); |
| | | // pageWrap.getModel().setReceptMemberId(getLoginUser(token).getMemberId()); |
| | | return ApiResponse.success(visitsService.findPage(pageWrap)); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.wms.model.request.WmsActionNoticeRequest; |
| | | import com.doumee.core.wms.model.request.WmsInboundNoticeRequest; |
| | | import com.doumee.core.wms.model.request.WmsOutboundNoticeRequest; |
| | | import com.doumee.core.wms.model.response.WmsBaseResponse; |
| | | import com.doumee.service.business.WmsService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Api(tags = "WMS平尿°æ®æ¨éæ¥å£") |
| | | @RestController |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/wms") |
| | | public class WmsPushCloudController extends BaseController { |
| | | |
| | | @Autowired |
| | | private WmsService wmsService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("ãCMSãæ¨éå
¥åºåéç¥ä»»å¡") |
| | | @PostMapping("/push/inboundNotice") |
| | | @LoginNoRequired |
| | | public WmsBaseResponse inboundNotice(@RequestBody List<WmsInboundNoticeRequest> param) { |
| | | WmsBaseResponse result = wmsService.inboundNotice(param); |
| | | return result; |
| | | } |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("ãCMSãæ¨éåºåºåéç¥ä»»å¡") |
| | | @PostMapping("/push/outboundNotice") |
| | | @LoginNoRequired |
| | | public WmsBaseResponse outboundNotice(@RequestBody List<WmsOutboundNoticeRequest> param) { |
| | | WmsBaseResponse result = wmsService.outboundNotice(param); |
| | | return result; |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("ãCMSãæ¨éåæ¶å
¥åºåéç¥ä»»å¡") |
| | | @PostMapping("/push/cancelInbound") |
| | | @LoginNoRequired |
| | | public WmsBaseResponse cancelInbound(@RequestBody List<WmsActionNoticeRequest> param) { |
| | | WmsBaseResponse result = wmsService.cancelInbound(param); |
| | | return result; |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("ãCMSãæ¨éåæ¶åºåºåéç¥ä»»å¡") |
| | | @PostMapping("/push/cancelOutbound") |
| | | @LoginNoRequired |
| | | public WmsBaseResponse cancelOutbound(@RequestBody List<WmsActionNoticeRequest> param) { |
| | | WmsBaseResponse result = wmsService.cancelOutbound(param); |
| | | return result; |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("ãCMSãæ¨éåºå
¥åºä½ä¸å®æéç¥ä»»å¡") |
| | | @PostMapping("/push/doneTask") |
| | | @LoginNoRequired |
| | | public WmsBaseResponse doneTask(@RequestBody List<WmsActionNoticeRequest> param) { |
| | | WmsBaseResponse result = wmsService.doneTask(param); |
| | | return result; |
| | | } |
| | | } |
| | |
| | | package com.doumee.cloud.openapi; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DESUtil; |
| | | import com.doumee.dao.openapi.request.*; |
| | | import com.doumee.dao.openapi.response.*; |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import com.doumee.service.business.PlatformJobService; |
| | | import com.doumee.service.business.PlatformLogService; |
| | | import com.doumee.service.business.PlatformService; |
| | | import com.doumee.service.business.PlatformWaterGasService; |
| | | import com.doumee.service.system.SystemUserService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | |
| | | @Autowired |
| | | private PlatformWaterGasService platformWaterGasService; |
| | | |
| | | @Autowired |
| | | private SystemUserService systemUserService; |
| | | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | |
| | | @Autowired |
| | | private RedisTemplate<String,Object> redisTemplate; |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("tokenè§£æ") |
| | | @GetMapping("/water/decodeToken") |
| | | public Map<String,Object> decodeToken(@RequestParam String token) { |
| | | HkBaseTokenRequest hkBaseTokenRequest = new HkBaseTokenRequest(); |
| | | hkBaseTokenRequest.setToken(token); |
| | | return this.decodeTokenForHk(hkBaseTokenRequest); |
| | | } |
| | | |
| | | public Map<String,Object> decodeTokenForHk(HkBaseTokenRequest hkBaseTokenRequest){ |
| | | Map<String,Object> result = new HashMap<>(); |
| | | result.put("code","0"); |
| | | result.put("msg","success"); |
| | | if(Objects.isNull(hkBaseTokenRequest)||StringUtils.isBlank(hkBaseTokenRequest.getToken())){ |
| | | result.put("code","-1"); |
| | | result.put("msg","tokenåæ°ä¸ºç©º"); |
| | | return result; |
| | | } |
| | | String redisToken = (String) redisTemplate.opsForValue().get(Constants.REDIS_HK_TOKEN_KEY+hkBaseTokenRequest.getToken()); |
| | | if(StringUtils.isBlank(redisToken)){ |
| | | result.put("code","-1"); |
| | | result.put("msg","tokenåæ°ä¸ºç©º"); |
| | | return result; |
| | | } |
| | | String userName = DESUtil.verifyHkToken(hkBaseTokenRequest.getToken()); |
| | | if(StringUtils.isBlank(userName)){ |
| | | result.put("code","-1"); |
| | | result.put("msg","tokenåæ°ä¸ºç©º"); |
| | | return result; |
| | | } |
| | | //æ¥è¯¢ç¨æ·ä¿¡æ¯æ¯å¦åå¨ |
| | | SystemUser systemUser = new SystemUser(); |
| | | systemUser.setUsername(userName); |
| | | systemUser.setDeleted(Boolean.FALSE); |
| | | SystemUser queryBean = systemUserService.findOne(systemUser); |
| | | if(Objects.isNull(queryBean)){ |
| | | result.put("code","-1"); |
| | | result.put("msg","tokenåæ°ä¸ºç©º"); |
| | | return result; |
| | | } |
| | | if(Constants.equalsInteger(queryBean.getStatus(),Constants.ONE)){ |
| | | result.put("code","-2"); |
| | | result.put("msg","ç¨æ·å·²ç¦ç¨"); |
| | | return result; |
| | | } |
| | | redisTemplate.delete(Constants.REDIS_HK_TOKEN_KEY+hkBaseTokenRequest.getToken()); |
| | | Map<String,Object> data = new HashMap<>(); |
| | | data.put("userId",userName); |
| | | result.put("data",data); |
| | | return result; |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("ãç¨æ°´éãæ¬æã䏿åå»å¹´åæ") |
| | | @PostMapping("/water/dataByMonth") |
| | | @LoginNoRequired |
| | | public ApiResponse<WaterByMonthResponse> waterDataByMonth(@RequestBody WaterByMonthRequest param) { |
| | | return ApiResponse.success(platformWaterGasService.waterDataByMonth(param)); |
| | | } |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("ãç¨æ°éãæ¬æã䏿åå»å¹´åæ") |
| | | @PostMapping("/gas/dataByMonth") |
| | | @LoginNoRequired |
| | | public ApiResponse<GasByMonthResponse> gasDataByMonth(@RequestBody GasByMonthRequest param) { |
| | | return ApiResponse.success(platformWaterGasService.gasDataByMonth(param)); |
| | | } |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("ãæå°ãæå¤©ç»è®¡è¿å请æ±åæ°") |
| | | @PostMapping("/platform/orderNumByDate") |
| | | @LoginNoRequired |
| | | public ApiResponse<PlatformOrderNumByDateResponse> orderNumByDate(@RequestBody PlatformOrderNumByDateRequest param) { |
| | | return ApiResponse.success(platformJobService.orderNumByDate(param)); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("ãæå°ãæå°ç¶ææ°éç»è®¡") |
| | | @PostMapping("/platform/totalNumByStatus") |
| | | @LoginNoRequired |
| | | public ApiResponse<PlatformNumByStatusResponse> totalNumByStatus(@RequestBody PlatformNumByStatusRequest param) { |
| | | return ApiResponse.success(platformService.getPlatformNumByStatusResponse()); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("ãæå°ãæå°å½åä½ä¸ä¿¡æ¯å表") |
| | | @PostMapping("/platform/workingDataList") |
| | | @LoginNoRequired |
| | | public ApiResponse<List<PlatformDataListResponse>> platformWorkingDataList(@RequestBody PlatformDataListRequest param) { |
| | | return ApiResponse.success(platformJobService.platformWorkingDataList(param)); |
| | | } |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("ãæå°ãæå°ä½ä¸è¯¦æ
ä¿¡æ¯") |
| | | @PostMapping("/platform/workDataInfo") |
| | | @LoginNoRequired |
| | | public ApiResponse<PlatformDataInfoResponse> platformWorkingDataList(@RequestBody PlatformDataInfoRequest param) { |
| | | return ApiResponse.success(platformJobService.platformWorkingDataList(param)); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("ãæå°ãå½å车è¾ç¶ææ°éç»è®¡") |
| | | @PostMapping("/platform/carStatusNum") |
| | | @LoginNoRequired |
| | | public ApiResponse<CarNumByStatusResponse> carStatusNum(@RequestBody CarNumByStatusRequest param) { |
| | | return ApiResponse.success(platformJobService.carStatusNum(param)); |
| | | } |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("ãæå°ã车è¾äºä»¶åè¡¨æ°æ®éåï¼ææ°Næ¡ï¼") |
| | | @PostMapping("/platform/carLogsList") |
| | | @LoginNoRequired |
| | | public ApiResponse<List<CarLogsListResponse>> carLogsList(@RequestBody CarLogsListRequest param) { |
| | | return ApiResponse.success(platformLogService.getCarLogsListResponse(param)); |
| | | } |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("ãæå°ãæééåå表éå") |
| | | @PostMapping("/platform/queueList") |
| | | @LoginNoRequired |
| | | public ApiResponse<PlatformQueuingListResponse> queueList(@RequestBody PlatformQueuingListRequest param) { |
| | | return ApiResponse.success(platformJobService.queueList(param)); |
| | | } |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("ãæå°ãé¢è¦äºä»¶éåå表") |
| | | @PostMapping("/platform/warningEventList") |
| | | @LoginNoRequired |
| | | public ApiResponse<List<PlatformWarnEventListResponse>> warningEventList(@RequestBody PlatformWarnEventListRequest param) { |
| | | return ApiResponse.success(new ArrayList<>()); |
| | | } |
| | |
| | | .apiInfo(this.getApiInfo()).groupName("default") |
| | | .host(host) |
| | | .select() |
| | | .apis( basePackage("com.doumee.cloud;com.doumee.api.common")) |
| | | .apis( basePackage("com.doumee.cloud")) |
| | | // .apis( basePackage("com.doumee.api.common")) |
| | | |
| | | // .apis( basePackage("com.doumee.cloud.openapi;com.doumee.api.common")) |
| | | // .apis( basePackage("com.doumee.cloud.openapi")) |
| | | // 设置éè¦è¢«æ«æçç±»ï¼è¿é设置为添å äº@Api注解çç±» |
| | | // .apis(RequestHandlerSelectors.withClassAnnotation(Api.class)) |
| | | .paths(PathSelectors.any()) |
| | |
| | | # ææ¶å
³éç¼å |
| | | enabled: false |
| | | nacos: |
| | | server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | server-addr: http://localhost:8848 #é
ç½®Nacoså°å |
| | | username: nacos |
| | | password: nacos |
| | | # config: |
| | |
| | | # group: dev |
| | | # data-id: com.doumee.meeting.admin |
| | | discovery: |
| | | server-addr: http://175.27.187.84:8848 #é
ç½®Nacoså°å |
| | | namespace: dmvisit_test |
| | | server-addr: http://localhost:8848 #é
ç½®Nacoså°å |
| | | namespace: dmvisit |
| | | username: nacos |
| | | password: nacos |
| | |
| | | spring: |
| | | profiles: |
| | | active: dev |
| | | active: pro |
| | | application: |
| | | name: visitsAdmin |
| | | # å®å
¨é
ç½® |
| | |
| | | public static final String ARTEMIS_PATH = "/artemis"; |
| | | |
| | | /** |
| | | * å¿«æ·èå跳转页é¢åæ° |
| | | * 1ã综åå®é²ï¼zhaf |
| | | * 2ãç©ä¸åå¤ï¼wyhq |
| | | * 3ãè¡æ¿åå
¬ï¼xzbg |
| | | * 4ãè¿è¥ä¸å¿ï¼yyzx |
| | | */ |
| | | public interface MenuPageId{ |
| | | String zhaf = "zhaf";//综åå®é² |
| | | String wyhq = "wyhq";//ç©ä¸åå¤ |
| | | String xzbg = "xzbg";//è¡æ¿åå
¬ |
| | | String yyzx = "yyzx";//è¿è¥ä¸å¿ |
| | | |
| | | } |
| | | |
| | | /** |
| | | * æ¥å£å°åéå |
| | | */ |
| | | public interface InterfacePath{ |
| | |
| | | |
| | | String[] privilegIccmeGroup= new String[]{"/api/iccm/v1/privilege/groups","æ¥è¯¢è®¿å®¢æéç»"};//æ¥è¯¢è®¿å®¢æéç» |
| | | String[] iccmAppointmentRecords= new String[]{"/api/iccm/v2/appointment/records","iccmæ¥è¯¢å·²é¢çº¦ç»è®°"};//iccmæ¥è¯¢å·²é¢çº¦ç»è®° |
| | | String[] wxAccessToken= new String[]{"/api/wx/v1/oa/get/accessToken","iccmæ¥è¯¢å·²é¢çº¦ç»è®°"};//1.9.1æ ¹æ®å¾®ä¿¡å
¬ä¼å·ä¿¡æ¯è·åAccessToken |
| | | String[] goMenuUrl= new String[]{"/xauthplus-plugin/thirdLogin?type=third&componentId=Infovision iPark Platform&componentMenuId=${menuId}&token=${token}","å·¥ä½å°èå跳转å°å"}; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * è·åå
¨éç»ç»ä¿¡æ¯ |
| | | * @param body |
| | | * @return |
| | | */ |
| | | public static String orgAllList(String body) { |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.orgAllList,body); |
| | | } |
| | | /** |
| | | * è·å访客é¢çº¦è®°å½å表 |
| | | * @param body |
| | | * @return |
| | |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.iccmAppointmentRecords,body); |
| | | } |
| | | /** |
| | | * è·åå
¨éç»ç»å表 |
| | | * @param body |
| | | * æ ¹æ®å¾®ä¿¡å
¬ä¼å·ä¿¡æ¯è·åAccessToken |
| | | * @return |
| | | */ |
| | | public static String orgAllList(String body) { |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.orgAllList,body); |
| | | public static String wxAccessToken(String configId,String tagId) { |
| | | String[] wxAccessToken= HKConstants.InterfacePath.wxAccessToken; |
| | | wxAccessToken[0] = HKConstants.InterfacePath.wxAccessToken+"?tagId="+tagId+"&configId"+configId; |
| | | return startDoPostStringArtemis(wxAccessToken,""); |
| | | } |
| | | /** |
| | | * è·åå
¨éç¨æ·å表 |
| | |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.applyST,body); |
| | | } |
| | | |
| | | public static String getMenuUrl(String menuId, String token) { |
| | | String url = HKConstants.InterfacePath.goMenuUrl[0]; |
| | | url = url.replace("${menuId}", menuId).replace("${token}",token); |
| | | return url; |
| | | } |
| | | } |
| | |
| | | private Integer speed ; // Number false é度 |
| | | private Integer stayTime ; //Number false åçæ¶é´ |
| | | private Integer fontSize ; //Number false åä½å¤§å° |
| | | private Integer fontColor ; //Number false åä½é¢è²(1:红è²ï¼2ï¼ç»¿è²ï¼4:é»è²ï¼8ï¼èè²ï¼16ï¼ç´«è²ï¼32ï¼éè²ï¼64ï¼ç½è²) |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.haikang.model.param.request; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class WxAccessTokenRequest { |
| | | private String configId;// Query String false 微信å
¬ä¼å·é
ç½®ç¼å· |
| | | private String tagId;//Query String false æ ç¾ |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.haikang.model.param.request.event.parks; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class EventImageInfoRequest { |
| | | private String resourcesContentType;//: "binary", |
| | | private String resourcesContent;//: "backgroundImage" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.haikang.model.param.request.event.parks; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | @Data |
| | | public class EventPlatformAttrInfoRequest { |
| | | private String cameraIndexCode;//: "90a3caf18fb449339405099a816c3b2d", |
| | | private String deviceIndexCode;//: "5a939a9cf1ee4e268eac6671ec3527ef", |
| | | private String imageServerCode;//: "bfe11307-3286-49ca-b9ee-9efb34b3f555", |
| | | private String picServerIndexCode;//: "bfe11307-3286-49ca-b9ee-9efb34b3f555" |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.haikang.model.param.request.event.parks; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class EventPlatformCarsDataRequest { |
| | | private List<EventPlatformCarsStatusInfoRequest> HPVehicleStatus;// |
| | | private EventPlatformAttrInfoRequest targetAttrs;// |
| | | private String dataType;//HPVehicleStatus |
| | | private String sendTime;//2017-04-22T15:39:01.000+08:00 |
| | | private String dateTime;//2004-05-03T17:30:08.000+08:00 |
| | | private String ipAddress;//172.6.64.7 |
| | | private String ipv6Address;//null |
| | | private Integer portNo;//private;// 80, |
| | | private String protocol;//HTTP |
| | | private String macAddress;//01:17:24:45:D9:F4 |
| | | private Integer channelID;//private ;//String : 1, |
| | | private Integer activePostCount;//private String : 1, |
| | | private String eventType;//HPVehicleStatus |
| | | private String eventState;//active |
| | | private String eventDescription;//handingPlatform vehicle status |
| | | private String channelName;//ABC |
| | | private String deviceID;//test0123 |
| | | private String eventId;//205F7A23-BF3F-C346-A02E-08DAF55EEA15 |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.haikang.model.param.request.event.parks; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class EventPlatformCarsInfoRequest { |
| | | private String eventId;// String äºä»¶å¯ä¸æ è¯ æ¯ 64 |
| | | private String srcIndex;// String äºä»¶æºç¼å·ï¼ç©çè®¾å¤æ¯èµæºç¼å· æ¯ 64 |
| | | private String dateTime;// |
| | | private String srcType;// String äºä»¶æºç±»å æ¯ 16 |
| | | private String eventType ;//Number äºä»¶ç±»å æ¯ |
| | | private String srcName;// String äºä»¶æºåç§° å¦ 64 |
| | | private Integer status ;//Number äºä»¶ç¶æ æ¯ 0-ç¬æ¶1-å¼å§2-忢3-äºä»¶èå²4-äºä»¶èå¨ç»ææ´æ°5-弿¥å¾çä¸ä¼ |
| | | private Integer timeout ;//Number èå²è¶
æ¶æ¶é´ æ¯ åä½ï¼ç§ |
| | | private String happenTime ;//String äºä»¶åçæ¶é´ï¼è®¾å¤æ¶é´ï¼ æ¯ 64 |
| | | private String srcParentIndex ;//String äºä»¶åççäºä»¶æºç¶è®¾å¤ç¼å· å¦ 64 |
| | | private List<EventPlatformCarsDataRequest> data; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.haikang.model.param.request.event.parks; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class EventPlatformCarsParamRequest { |
| | | |
| | | |
| | | private String sendTime;// P String äºä»¶ä»æ¥æ¶è
ï¼ç¨åºå¤çåï¼ååºçæ¶é´ æ¯ 32 äºä»¶åéæ¶é´ |
| | | private String ability;// P String äºä»¶ç±»å« æ¯ 64 æ è¯å车åºäºä»¶ |
| | | private List<String> uids;// |
| | | private List<String> clients;// |
| | | private Integer dataProcInterval;// |
| | | private List<EventPlatformCarsInfoRequest> events;// P Events[] äºä»¶ä¿¡æ¯ æ¯ ä¸é |
| | | } |
copy from server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/model/param/request/event/parks/EventPlatCarstatusRequest.java
copy to server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/model/param/request/event/parks/EventPlatformCarsRequest.java
Îļþ´Ó server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/model/param/request/event/parks/EventPlatCarstatusRequest.java ¸´ÖÆ |
| | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class EventPlatCarstatusRequest { |
| | | public class EventPlatformCarsRequest { |
| | | |
| | | // private String parkIndexCodes ;// string False å车åºå¯ä¸æ è¯éå å¤ä¸ªå¼ä½¿ç¨è±æéå·åéï¼ä¸è¶
è¿1000个 |
| | | |
| | | private String method ;// String æ¹æ³åï¼ç¨äºæ è¯æ¥æç¨é æ¯ 16 äºä»¶åºå®OnEventNotify |
| | | private EventParkParamRequest params ;// Params äºä»¶åæ°ä¿¡æ¯ æ¯ ä¸é å
·ä½åæ°ä¿¡æ¯ |
| | | private EventPlatformCarsParamRequest params ;// Params äºä»¶åæ°ä¿¡æ¯ æ¯ ä¸é å
·ä½åæ°ä¿¡æ¯ |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.haikang.model.param.request.event.parks; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | @Data |
| | | public class EventPlatformCarsStatusInfoRequest { |
| | | private String HPNo;// 1,车éå· |
| | | private Integer plateScore;//: 80车çè¯å |
| | | private String motionStatus;//'leave',è¿å¨ç¶æ enter#è¿å
¥,leave#ç¦»å¼ |
| | | private String plateNo;//'A12345',车çå· |
| | | private String vehicleDoorStatus;//'open',车é¨ç¶æÂ open-å¼é¨ï¼close-å
³é¨ |
| | | private String stockStatus;//'rear',è½¦å¤´è½¦å°¾ç¶æÂ Â front#车头,rear#车尾 |
| | | private EventImageInfoRequest BackgroundImage;//æå°èæ¯å¤§å¾ |
| | | private EventImageInfoRequest PlatePicture;//车çå¾ |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.haikang.model.param.request.event.parks; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class EventPlatformDataRequest { |
| | | private List<EventPlatformStatusInfoRequest> HPWorkingStatus;// |
| | | private EventPlatformAttrInfoRequest targetAttrs;// |
| | | private Integer activePostCount;//1, |
| | | private Integer channelID;//1, |
| | | private String dataProcInterval;// 3private String , |
| | | private String dataType;// HPWorkingStatusprivate String , |
| | | private String dateTime;// 2021-07-16T18:57:22.000+08:00private String , |
| | | private String deviceID;// 88private String , |
| | | private String eventDescription;// handingPlatform working statusprivate String , |
| | | private String eventState;// activeprivate String , |
| | | private String eventType;// HPWorkingStatusprivate String , |
| | | private String ipAddress;// 10.18.99.179private String , |
| | | private String macAddress;// 58:50:ed:6d:f2:73private String , |
| | | private String picUploadInterval;// 0private String , |
| | | private String portNo;//8000, |
| | | private String recvTime;// 2021-07-16T18:56:18.645+08:00private String , |
| | | private String sendTime;// 2021-07-16T18:56:18.648+08:00private String , |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.haikang.model.param.request.event.parks; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class EventPlatformInfoRequest { |
| | | private String eventId;// String äºä»¶å¯ä¸æ è¯ æ¯ 64 |
| | | private String srcIndex;// String äºä»¶æºç¼å·ï¼ç©çè®¾å¤æ¯èµæºç¼å· æ¯ 64 |
| | | private String dateTime;// |
| | | private String srcType;// String äºä»¶æºç±»å æ¯ 16 |
| | | private Integer eventType ;//Number äºä»¶ç±»å æ¯ |
| | | private String srcName;// String äºä»¶æºåç§° å¦ 64 |
| | | private Integer status ;//Number äºä»¶ç¶æ æ¯ 0-ç¬æ¶1-å¼å§2-忢3-äºä»¶èå²4-äºä»¶èå¨ç»ææ´æ°5-弿¥å¾çä¸ä¼ |
| | | private Integer timeout ;//Number èå²è¶
æ¶æ¶é´ æ¯ åä½ï¼ç§ |
| | | private String happenTime ;//String äºä»¶åçæ¶é´ï¼è®¾å¤æ¶é´ï¼ æ¯ 64 |
| | | private String srcParentIndex ;//String äºä»¶åççäºä»¶æºç¶è®¾å¤ç¼å· å¦ 64 |
| | | private EventPlatformDataRequest data; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.haikang.model.param.request.event.parks; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class EventPlatformParamRequest { |
| | | |
| | | |
| | | private String sendTime;// P String äºä»¶ä»æ¥æ¶è
ï¼ç¨åºå¤çåï¼ååºçæ¶é´ æ¯ 32 äºä»¶åéæ¶é´ |
| | | private String ability;// P String äºä»¶ç±»å« æ¯ 64 æ è¯å车åºäºä»¶ |
| | | private List<String> uids;// |
| | | private List<String> clients;// |
| | | private Integer dataProcInterval;// |
| | | private List<EventPlatformInfoRequest> events;// P Events[] äºä»¶ä¿¡æ¯ æ¯ ä¸é |
| | | } |
ÎļþÃû´Ó server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/model/param/request/event/parks/EventPlatCarstatusRequest.java ÐÞ¸Ä |
| | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class EventPlatCarstatusRequest { |
| | | public class EventPlatformRequest { |
| | | |
| | | // private String parkIndexCodes ;// string False å车åºå¯ä¸æ è¯éå å¤ä¸ªå¼ä½¿ç¨è±æéå·åéï¼ä¸è¶
è¿1000个 |
| | | |
| | | private String method ;// String æ¹æ³åï¼ç¨äºæ è¯æ¥æç¨é æ¯ 16 äºä»¶åºå®OnEventNotify |
| | | private EventParkParamRequest params ;// Params äºä»¶åæ°ä¿¡æ¯ æ¯ ä¸é å
·ä½åæ°ä¿¡æ¯ |
| | | private EventPlatformParamRequest params ;// Params äºä»¶åæ°ä¿¡æ¯ æ¯ ä¸é å
·ä½åæ°ä¿¡æ¯ |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.haikang.model.param.request.event.parks; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | @Data |
| | | public class EventPlatformStatusInfoRequest { |
| | | private Integer HPNo;// 1,车é车éå· |
| | | private Integer operationPeopleNum;// 0,人æ°ç»è®¡ |
| | | private String operationStatus;// no ,ä½ä¸ç¶æ loading-è£
è´§ï¼ unloading-å¸è´§ |
| | | private String parkingSpaceStatus;// 车ä½ç¶æ noæ 车 normaæ£å¸¸æè½¦ |
| | | private String plateNo;// ,车çå· |
| | | private Integer rate;// 0,è£
è½½ç |
| | | private String vehicleDoorStatus;// open,车é¨ç¶æ open-å¼é¨ï¼close-å
³é¨ |
| | | private BigDecimal plateScore;// 90车çè¯å |
| | | |
| | | } |
| | |
| | | import com.doumee.core.haikang.model.param.BaseResponse; |
| | | import com.doumee.core.haikang.model.param.request.*; |
| | | import com.doumee.core.haikang.model.param.respose.*; |
| | | import com.doumee.core.utils.Constants; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | return null; |
| | | } |
| | | /** |
| | | *1.9.1æ ¹æ®å¾®ä¿¡å
¬ä¼å·ä¿¡æ¯è·åAccessTokenï¼åé¡µï¼ |
| | | * @return |
| | | */ |
| | | public static BaseResponse<String> wxAccessToken(String configId,String tagId){ |
| | | log.info("ãæµ·åº·æ ¹æ®å¾®ä¿¡å
¬ä¼å·ä¿¡æ¯è·åAccessTokenã================å¼å§====configId:"+configId+" && tagId:"+tagId); |
| | | try { |
| | | String res = HKTools.wxAccessToken(configId,tagId); |
| | | TypeReference typeReference = |
| | | new TypeReference<BaseResponse<String>>(){}; |
| | | BaseResponse<String> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"æµ·åº·æ ¹æ®å¾®ä¿¡å
¬ä¼å·ä¿¡æ¯è·åAccessToken"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("ãæµ·åº·æ ¹æ®å¾®ä¿¡å
¬ä¼å·ä¿¡æ¯è·åAccessTokenã================失败====ï¼\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | *æ¥è¯¢è®¿å®¢æ¥è®¿è®°å½ï¼å·²ç»è®°ï¼ï¼åé¡µï¼ |
| | | * @return |
| | | */ |
| | |
| | | return null; |
| | | } |
| | | /** |
| | | *è·åå·¥ä½å°èåå
å¯ç»éè°æ´å°å |
| | | * @return |
| | | */ |
| | | public static String getMenuUrl(Integer type,String token){ |
| | | String menuId = HKConstants.MenuPageId.zhaf; |
| | | if(Constants.equalsInteger(type,Constants.ONE)){ |
| | | menuId = HKConstants.MenuPageId.wyhq; |
| | | }else if(Constants.equalsInteger(type,Constants.TWO)){ |
| | | menuId = HKConstants.MenuPageId.xzbg; |
| | | }else if(Constants.equalsInteger(type,Constants.THREE)){ |
| | | menuId = HKConstants.MenuPageId.yyzx; |
| | | } |
| | | log.info("ãæµ·åº·è·åå·¥ä½å°èåå
å¯ç»éè°æ´å°åã================å¼å§====menuId:"+menuId+"==token:"+token); |
| | | try { |
| | | String res = HKTools.getMenuUrl(menuId,token); |
| | | return res; |
| | | }catch (Exception e){ |
| | | log.error("ãæµ·åº·è·åå·¥ä½å°èåå
å¯ç»éè°æ´å°åã================失败====ï¼\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | *å¢éç»ç»æ¥è¯¢ï¼åé¡µï¼ |
| | | * @return |
| | | */ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.wms.model.request; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/11/23 14:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("WMSåºå
¥åºä½ä¸åç»å®æå°ä¿¡æ¯åæ°") |
| | | public class WmsOrderPlatformInfoRequest extends WmsBaseRequest { |
| | | @ApiModelProperty(value = "éç¥åå·" ,example = "1") |
| | | private String carrierBillCode; |
| | | @ApiModelProperty(value = "æå°ç¼å·" ,example = "1") |
| | | private String railwayNo; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.wms.model.request; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/11/23 14:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("WMSåºå
¥åºä½ä¸åç»å®æå°ä¿¡æ¯å¯¹è±¡") |
| | | public class WmsOrderPlatformRequest extends WmsBaseRequest { |
| | | @ApiModelProperty(value = "åå·æ°æ®å¯¹è±¡" ) |
| | | private List<WmsOrderPlatformInfoRequest> data; |
| | | |
| | | |
| | | } |
| | |
| | | */ |
| | | @Data |
| | | @ApiModel("WMSæ¥å£å¤çè¿ååæ°") |
| | | public class WmsBaseResponse { |
| | | @ApiModelProperty(value = "è¿ååæ°" ,example = "1") |
| | | private List<WmsBaseDataResponse> data; |
| | | |
| | | public class WmsBaseResponse<T> { |
| | | public static final String CODE_SUCCESS = "1"; |
| | | @ApiModelProperty(value = "è¿ååæ°" ) |
| | | private List<T> data; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.wms.model.response; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/11/23 14:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("WMSæ¥å£å¤çè¿ådataåæ°") |
| | | public class WmsInventoryDataResponse { |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦æ¥æ¶æå 1æå -1 失败" ,example = "1") |
| | | private String success; |
| | | @ApiModelProperty(value = "æ¶æ¯æè¿°" ,example = "1") |
| | | private String msgDescr; |
| | | @ApiModelProperty(value = "æ¶æ¯æè¿°" ,example = "1") |
| | | private List<WmsInventoryJsonResponse> json; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.wms.model.response; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/11/23 14:03 |
| | | */ |
| | | @Data |
| | | @ApiModel("WMSæ¥å£å¤çè¿ådataåæ°") |
| | | public class WmsInventoryJsonResponse { |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦æ¥æ¶æå 1æå -1 失败" ,example = "1") |
| | | private String item_code; |
| | | @ApiModelProperty(value = "æ¶æ¯æè¿°" ,example = "1") |
| | | private String item_name; |
| | | @ApiModelProperty(value = "å
容详æ
éå" ,example = "1") |
| | | private BigDecimal qty; |
| | | @ApiModelProperty(value = "å
容详æ
éå" ,example = "1") |
| | | private String supplier_code; |
| | | @ApiModelProperty(value = "g" ,example = "1") |
| | | private String supplier_name; |
| | | @ApiModelProperty(value = "owner_code" ,example = "1") |
| | | private String owner_code; |
| | | @ApiModelProperty(value = "owner_name" ,example = "1") |
| | | private String owner_name; |
| | | @ApiModelProperty(value = "package_type" ,example = "1") |
| | | private String package_type; |
| | | @ApiModelProperty(value = "package_name" ,example = "1") |
| | | private String package_name; |
| | | @ApiModelProperty(value = "itemType_code" ,example = "1") |
| | | private String itemType_code; |
| | | @ApiModelProperty(value = "ItemStatus_Production" ,example = "1") |
| | | private String ItemStatus_Production; |
| | | @ApiModelProperty(value = "itemType_name" ,example = "1") |
| | | private String itemType_name; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.admin.response; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/2/26 11:02 |
| | | */ |
| | | @Data |
| | | @ApiModel("PC端工ä½å°æ°æ®") |
| | | public class PCWorkPlatformDataVO { |
| | | |
| | | @ApiModelProperty(value = "仿¥å¨å人æ°") |
| | | private Long todayInParkUserNum; |
| | | |
| | | @ApiModelProperty(value = "仿¥å
¥å人æ°") |
| | | private Long todayInUserNum; |
| | | |
| | | @ApiModelProperty(value = "仿¥ç¦»å人æ°") |
| | | private Long todayOutUserNum; |
| | | |
| | | |
| | | @ApiModelProperty(value = "å¨å访客人æ°") |
| | | private Long inParkVisitUserNum; |
| | | |
| | | @ApiModelProperty(value = "访客人次") |
| | | private Long visitUserNum; |
| | | |
| | | @ApiModelProperty(value = "ç¾ç¦»äººæ¬¡") |
| | | private Long signLevelNum; |
| | | |
| | | |
| | | @ApiModelProperty(value = "å¨åé¿æç¸å
³æ¹äººæ°") |
| | | private Long inParkLwUserNum; |
| | | |
| | | @ApiModelProperty(value = "å
¥å人次") |
| | | private Long lwUserInNum; |
| | | |
| | | @ApiModelProperty(value = "åºå人次") |
| | | private Long lwUserOutNum; |
| | | |
| | | |
| | | @ApiModelProperty(value = "仿¥å¨å车è¾") |
| | | private Long todayInParkCarNum; |
| | | |
| | | @ApiModelProperty(value = "å
¥å车次") |
| | | private Long todayInCarNum; |
| | | |
| | | @ApiModelProperty(value = "åºå车次") |
| | | private Long todayOutCarNum; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @ApiModelProperty(value = "访客人å") |
| | | private Long visitorCount; |
| | | |
| | | @ApiModelProperty(value = "å³å¡äººå") |
| | | private Long lwCount; |
| | | |
| | | @ApiModelProperty(value = "å¨åºè½¦è¾") |
| | | private Long presenceCarCount; |
| | | |
| | | @ApiModelProperty(value = "é¢çº¦è½¦è¾") |
| | | private Long visitorCarCount; |
| | | |
| | | @ApiModelProperty(value = "é¿æè½¦è¾") |
| | | private Long longCarCount; |
| | | |
| | | @ApiModelProperty(value = "ä¾åºåæ°é") |
| | | private Long supplierCount; |
| | | |
| | | @ApiModelProperty(value = "å³å¡å
¬å¸äººåæ°") |
| | | private List<Map<String,Object>> companyUsers; |
| | | |
| | | @ApiModelProperty(value = "æ»çäººåæ°æ®") |
| | | private List<Map<String,Object>> retentionUsers; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.PlatformEvent; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/08/28 17:24 |
| | | */ |
| | | public interface PlatformEventMapper extends BaseMapper<PlatformEvent> { |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "é¢è®¡å°åºæ¶é´") |
| | | @ExcelColumn(name="é¢è®¡å°åºæ¶é´") |
| | | |
| | | private Date arriveDate; |
| | | |
| | | @ApiModelProperty(value = "å
¥åºç±»å 0æ´æç 1ä»¶ç", example = "1") |
| | |
| | | @TableField(exist = false) |
| | | private String prefixUrl; |
| | | |
| | | @ApiModelProperty(value = "é¢è®¡å°åºå¼å§æ¶é´") |
| | | @TableField(exist = false) |
| | | private Date arriveDateStart; |
| | | |
| | | @ApiModelProperty(value = "é¢è®¡å°åºç»ææ¶é´") |
| | | @TableField(exist = false) |
| | | private Date arriveDateEnd; |
| | | |
| | | @ApiModelProperty(value = "审æ¹äººåç§°") |
| | | @TableField(exist = false) |
| | | private String auditName; |
| | | |
| | | |
| | | @ApiModelProperty(value = "审æ¹ä¿¡æ¯æ°æ®") |
| | | @TableField(exist = false) |
| | | private ApproveDataVO approveDateVO; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æå°è½¦è¾è¿åºäºä»¶æ¨éè®°å½è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/08/28 17:24 |
| | | */ |
| | | @Data |
| | | @ApiModel("æå°è½¦è¾è¿åºäºä»¶æ¨éè®°å½è¡¨") |
| | | @TableName("`platform_event`") |
| | | public class PlatformEvent { |
| | | |
| | | @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="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="æ´æ°äººç¼ç ") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | 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 = "äºä»¶å¯ä¸æ è¯ï¼åä¸äºä»¶è¥ä¸æ¥å¤æ¬¡ï¼å䏿¥äºä»¶çeventIdç¸å") |
| | | @ExcelColumn(name="äºä»¶å¯ä¸æ è¯ï¼åä¸äºä»¶è¥ä¸æ¥å¤æ¬¡ï¼å䏿¥äºä»¶çeventIdç¸å") |
| | | private String eventId; |
| | | |
| | | @ApiModelProperty(value = "äºä»¶ç±»å") |
| | | @ExcelColumn(name="äºä»¶ç±»å") |
| | | private String eventType; |
| | | @ApiModelProperty(value = "äºä»¶ç±»å(data级ï¼") |
| | | @ExcelColumn(name="äºä»¶ç±»åï¼data级ï¼") |
| | | private String dataEventType; |
| | | |
| | | @ApiModelProperty(value = "äºä»¶æºç±»åï¼å¦âacsDeviceâ") |
| | | @ExcelColumn(name="äºä»¶æºç±»åï¼å¦âacsDeviceâ") |
| | | private String srcType; |
| | | |
| | | @ApiModelProperty(value = "äºä»¶åçæ¶é´ï¼è®¾å¤æ¶é´") |
| | | @ExcelColumn(name="äºä»¶åçæ¶é´ï¼è®¾å¤æ¶é´") |
| | | private String happenTime; |
| | | |
| | | @ApiModelProperty(value = "é¨ç¦ç¹å¯ä¸æ¥å
¥ç¼ç ") |
| | | @ExcelColumn(name="é¨ç¦ç¹å¯ä¸æ¥å
¥ç¼ç ") |
| | | private String srcIndex; |
| | | |
| | | @ApiModelProperty(value = "é¨ç¦åç§°") |
| | | @ExcelColumn(name="é¨ç¦åç§°") |
| | | private String srcName; |
| | | |
| | | @ApiModelProperty(value = "äºä»¶ç¶æ,0-ç¬æ¶ 1-å¼å§ 2-忢 4-äºä»¶èå¨ç»ææ´æ° 5-äºä»¶å¾ç弿¥ä¸ä¼ ", example = "1") |
| | | @ExcelColumn(name="äºä»¶ç¶æ,0-ç¬æ¶ 1-å¼å§ 2-忢 4-äºä»¶èå¨ç»ææ´æ° 5-äºä»¶å¾ç弿¥ä¸ä¼ ") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "èå²è¶
æ¶æ¶é´ï¼åä½ï¼ç§ï¼ç¬æ¶äºä»¶æ¤å段填0", example = "1") |
| | | @ExcelColumn(name="èå²è¶
æ¶æ¶é´ï¼åä½ï¼ç§ï¼ç¬æ¶äºä»¶æ¤å段填0") |
| | | private Integer timeout; |
| | | |
| | | @ApiModelProperty(value = "æ°æ®ç±»å", example = "1") |
| | | @ExcelColumn(name="æ°æ®ç±»å") |
| | | private String dataType; |
| | | |
| | | @ApiModelProperty(value = "åéæ¶é´", example = "1") |
| | | @ExcelColumn(name="åéæ¶é´") |
| | | private String sendTime; |
| | | |
| | | @ApiModelProperty(value = "äºä»¶åçæ¥æ", example = "1") |
| | | @ExcelColumn(name="äºä»¶åçæ¥æ") |
| | | private String dateTime; |
| | | |
| | | @ApiModelProperty(value = "ipå°å") |
| | | @ExcelColumn(name="ipå°å") |
| | | private String ipAddress; |
| | | |
| | | @ApiModelProperty(value = "ipv6å°å", example = "1") |
| | | @ExcelColumn(name="ipv6å°å") |
| | | private String ipv6Address; |
| | | |
| | | @ApiModelProperty(value = "端å£", example = "1") |
| | | @ExcelColumn(name="端å£") |
| | | private Integer portNo; |
| | | |
| | | @ApiModelProperty(value = "åè®®", example = "1") |
| | | @ExcelColumn(name="åè®®") |
| | | private String protocol; |
| | | |
| | | @ApiModelProperty(value = "macå°å") |
| | | @ExcelColumn(name="macå°å") |
| | | private String macAddress; |
| | | |
| | | @ApiModelProperty(value = "æ¸ éç¼å·", example = "1") |
| | | @ExcelColumn(name="æ¸ éç¼å·") |
| | | private Integer channelId; |
| | | |
| | | @ApiModelProperty(value = "æ´»å¨å鿬¡æ°", example = "1") |
| | | @ExcelColumn(name="æ´»å¨å鿬¡æ°") |
| | | private Integer activePostCount; |
| | | |
| | | @ApiModelProperty(value = "äºä»¶ç¶æ", example = "1") |
| | | @ExcelColumn(name="äºä»¶ç¶æ") |
| | | private String eventState; |
| | | |
| | | @ApiModelProperty(value = "äºä»¶æè¿°") |
| | | @ExcelColumn(name="äºä»¶æè¿°") |
| | | private String eventDescription; |
| | | |
| | | @ApiModelProperty(value = "æ¸ éåç§°", example = "1") |
| | | @ExcelColumn(name="æ¸ éåç§°") |
| | | private String channelName; |
| | | |
| | | @ApiModelProperty(value = "设å¤ç¼ç ", example = "1") |
| | | @ExcelColumn(name="设å¤ç¼ç ") |
| | | private String deviceId; |
| | | |
| | | @ApiModelProperty(value = "车éå·") |
| | | @ExcelColumn(name="车éå·") |
| | | private String hpno; |
| | | |
| | | @ApiModelProperty(value = "è¿å¨ç¶æÂ enter#è¿å
¥,leave#离å¼") |
| | | @ExcelColumn(name="è¿å¨ç¶æÂ enter#è¿å
¥,leave#离å¼") |
| | | private String motionStatus; |
| | | |
| | | @ApiModelProperty(value = "车çå·", example = "1") |
| | | @ExcelColumn(name="车çå·") |
| | | private String plateNo; |
| | | |
| | | @ApiModelProperty(value = "车é¨ç¶æÂ open-å¼é¨ï¼close-å
³é¨", example = "1") |
| | | @ExcelColumn(name="车é¨ç¶æÂ open-å¼é¨ï¼close-å
³é¨") |
| | | private String vehicleDoorStatus; |
| | | |
| | | @ApiModelProperty(value = "è½¦å¤´è½¦å°¾ç¶æÂ Â front#车头,rear#车尾", example = "1") |
| | | @ExcelColumn(name="è½¦å¤´è½¦å°¾ç¶æÂ Â front#车头,rear#车尾") |
| | | private String stockStatus; |
| | | |
| | | @ApiModelProperty(value = "车çè¯å[0-100]", example = "1") |
| | | @ExcelColumn(name="车çè¯å[0-100]") |
| | | private Integer plateScore; |
| | | |
| | | @ApiModelProperty(value = "æå°èæ¯å¤§å¾", example = "1") |
| | | @ExcelColumn(name="æå°èæ¯å¤§å¾") |
| | | private String backgroundImageContent; |
| | | |
| | | @ApiModelProperty(value = "车çå¾", example = "1") |
| | | @ExcelColumn(name="车çå¾") |
| | | private String platePictureContent; |
| | | |
| | | } |
| | |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 0å¾
确认 1å¾
ç¾å° 2çå¾
å«å· 3å
¥åçå¾
4å·²å«å· 5ä½ä¸ä¸ 6ä½ä¸å®æ 7è½¬ç§»ä¸ 8å¼å¸¸æèµ· 9å·²ææç¦»å 10已离å 11 å·²è¿å·", example = "1") |
| | | @ExcelColumn(name="ç¶æ 0å¾
确认 1å¾
ç¾å° 2çå¾
å«å· 3å
¥åçå¾
4å·²å«å· 5ä½ä¸ä¸ 6ä½ä¸å®æ 7è½¬ç§»ä¸ 8å¼å¸¸æèµ· 9å·²ææç¦»å 10已离å 11 å·²è¿å·") |
| | | @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ï¼") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "æåºç ", example = "1") |
| | |
| | | @ApiModelProperty(value = "ç¾å°æ¹å¼ 0appç¾å° 1æ«ç ç¾å°", example = "1") |
| | | @ExcelColumn(name="ç¾å°æ¹å¼ 0appç¾å° 1æ«ç ç¾å°") |
| | | 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="ç¾å°è·ç¦»(ç±³ï¼") |
| | |
| | | |
| | | @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ä¸å失败") |
| | |
| | | @ExcelColumn(name="æ»è¿è¾é") |
| | | private BigDecimal totalNum; |
| | | |
| | | @ApiModelProperty(value = "ç¡®è®¤ä»»å¡æ¶é´") |
| | | @ExcelColumn(name="ç¡®è®¤ä»»å¡æ¶é´") |
| | | private Date confirmTaskDate; |
| | | |
| | | |
| | | @ApiModelProperty(value = "åæ¹æéæ°é", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer lineUpNum; |
| | |
| | | @ApiModelProperty(value = "ä½ä¸æå°åç§°") |
| | | @TableField(exist = false) |
| | | private String platformName ; |
| | | |
| | | |
| | | @ApiModelProperty(value = "离åºä¸åæä½äººåç§°", example = "1") |
| | | @TableField(exist = false) |
| | | private String outUserName; |
| | | |
| | | @ApiModelProperty(value = "wmsä¸å¡ä¸»é®") |
| | | @TableField(exist = false) |
| | |
| | | @ApiModelProperty(value = "æ¶è´§å°ï¼ç®çå°ï¼") |
| | | @TableField(exist = false) |
| | | private String repertotyAddress; |
| | | @ApiModelProperty(value = "wmsæå°ç¼å·") |
| | | @TableField(exist = false) |
| | | private String platformWmsCode; |
| | | |
| | | @ApiModelProperty(value = "å«å·ç±»åï¼1=å«å·å
¥å ï¼ 2=æå°å«å· ï¼ 3=æéæ
åµ", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer callType; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸ç±»å 0=宿³°ç©æµè½¦ä»»å¡ï¼1=å¸å
¬å¸è½¦", example = "1") |
| | | @TableField(exist = false) |
| | | private Integer jobType; |
| | | |
| | | @ApiModelProperty(value = "å¼å§ä»»å¡æ¶é´èµ·") |
| | | @TableField(exist = false) |
| | | private Date beginWorkDateStart; |
| | | |
| | | @ApiModelProperty(value = "å¼å§ä»»å¡æ¶é´æ¢") |
| | | @TableField(exist = false) |
| | | private Date beginWorkDateEnd; |
| | | |
| | | @ApiModelProperty(value = "å¤ç¶ææ¥è¯¢ å¤ä¸ªä»¥,åå²") |
| | | @TableField(exist = false) |
| | | private String queryStatus; |
| | | |
| | | @ApiModelProperty(value = "çµåéç¶æï¼0=æªä¸é 1=ä¸åä¸é 2=å
¨é¨ä¸é") |
| | | @TableField(exist = false) |
| | | private Integer lockStatus; |
| | | |
| | | public void dealTime(){ |
| | | if(Constants.equalsInteger(this.getStatus(),Constants.PlatformJobStatus.WAIT_CONFIRM.getKey()) |
| | | || Constants.equalsInteger(this.getStatus(),Constants.PlatformJobStatus.WART_SIGN_IN.getKey()) |
| | |
| | | @ApiModelProperty(value = "0æªå®æ 1已宿 2已忶", example = "1") |
| | | @ExcelColumn(name="ç¶æ 0æªå®æ 1已宿 2已忶") |
| | | private Integer status; |
| | | @ApiModelProperty(value = "ä¸éç¶æ 0æªä¸é 1å·²ä¸é", example = "1") |
| | | @ExcelColumn(name="ä¸éç¶æ 0æªä¸é 1å·²ä¸é") |
| | | private Integer lockStatus; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "è¡æ°æ®ç¼ç ï¼å
³èplatform_wms_job)", example = "1") |
| | | @ApiModelProperty(value = "è¡æ°æ®ç¼ç ï¼å
³èplatform_job)", example = "1") |
| | | @ExcelColumn(name="è¡æ°æ®ç¼ç ï¼å
³èplatform_wms_job)") |
| | | private Integer jobId; |
| | | @ApiModelProperty(value = "è¡æ°æ®ç¼ç ï¼å
³èplatform_wms_job)", example = "1") |
| | | @ExcelColumn(name="è¡æ°æ®ç¼ç ï¼å
³èplatform_wms_job)") |
| | | private Integer wmsJobId; |
| | | |
| | | @ApiModelProperty(value = "éç¥åå·") |
| | | @ExcelColumn(name="éç¥åå·") |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.openapi.request; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2023/12/7 11:19 |
| | | */ |
| | | @Data |
| | | @ApiModel("海康大å±BaseToken") |
| | | public class HkBaseTokenRequest { |
| | | |
| | | @ApiModelProperty(value = "token") |
| | | private String token; |
| | | |
| | | } |
| | |
| | | * @create 2023/12/7 11:19 |
| | | */ |
| | | @Data |
| | | @ApiModel("ãæå°ãæå°å½åä½ä¸ä¿¡æ¯å表请æ±åæ°") |
| | | @ApiModel("ãæå°ãæå°å½åä½ä¸ä¿¡æ¯è¯¦æ
请æ±åæ°") |
| | | public class PlatformDataInfoRequest { |
| | | @ApiModelProperty(value = "å®é²å¹³å°æå°ä¸»é®", example = "1") |
| | | private String id; |
| | |
| | | * @create 2023/12/7 11:19 |
| | | */ |
| | | @Data |
| | | @ApiModel("ãæå°ãæå¤©ç»è®¡è¿å请æ±åæ°") |
| | | @ApiModel("ãæå°ãæå°åç¶ææ°éç»è®¡è¯·æ±åæ°") |
| | | public class PlatformNumByStatusRequest { |
| | | |
| | | } |
| | |
| | | */ |
| | | @Data |
| | | @ApiModel("æ¬æã䏿ãå»å¹´åæç¨æ°´é请æ±åæ°") |
| | | public class WaterByMonthRequest { |
| | | public class WaterByMonthRequest extends HkBaseTokenRequest{ |
| | | |
| | | @ApiModelProperty(value = "å¹´æä¿¡æ¯ï¼æ ¼å¼ï¼yyyy-MM",example = "2024-08") |
| | | @JsonFormat(pattern = "yyyy-MM") |
| | | private Date timeInfo; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.openapi.response; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2023/12/7 11:19 |
| | | */ |
| | | @Data |
| | | @ApiModel("ãæå°ãè¿12个æä¿¡æ¯å表") |
| | | public class PlatformLastMonthListResponse { |
| | | @ApiModelProperty(value = "æ¶é´ æ ¼å¼ï¼yyyy-MM", example = "2024-12") |
| | | private String timeInfo; |
| | | @ApiModelProperty(value = "ç¨é", example = "1") |
| | | private BigDecimal num; |
| | | } |
| | |
| | | * @create 2023/12/7 11:19 |
| | | */ |
| | | @Data |
| | | @ApiModel("ãæå°ãæç¶æç»è®¡æå°æ°é") |
| | | @ApiModel("ãæå°ãæå°åç¶ææ°éç»è®¡è¿ååæ°") |
| | | public class PlatformNumByStatusResponse { |
| | | |
| | | @ApiModelProperty(value = "使ç¨ä¸æ°é", example = "1") |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response; |
| | | |
| | | import com.doumee.dao.business.model.PlatformJob; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | @ApiModel("æå°ä»»å¡æ°æ®") |
| | | public class PlatformGroupWorkVO { |
| | | |
| | | @ApiModelProperty(value = "çå¾
æ°é") |
| | | private Long waitNum ; |
| | | |
| | | @ApiModelProperty(value = "å¼å¸¸æ°é") |
| | | private Long exceptionNum ; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty(value = "审æ¹ç¶æ") |
| | | @ApiModelProperty(value = "å®¡æ ¸ç¶æ 0å¾
å®¡æ ¸ 1审æ¹ä¸ 2å®¡æ ¸éè¿ 3å®¡æ ¸ä¸éè¿ 4åæ¶ 5ä¸åæå 6ä¸å失败 7æè®¿ä¸ 8å·²ç¾ç¦»") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "ä¸å¡å®¡æ ¸ç¶æ 0å¾
å®¡æ ¸ 1审æ¹ä¸ 2å®¡æ ¸éè¿ 3å®¡æ ¸ä¸éè¿ 4åæ¶ ", example = "1") |
| | | @ExcelColumn(name="å®¡æ ¸ç¶æ 0å¾
å®¡æ ¸ 1审æ¹ä¸ 2å®¡æ ¸éè¿ 3å®¡æ ¸ä¸éè¿ 4åæ¶ ") |
| | | private Integer businessStatus; |
| | | |
| | | |
| | | @ApiModelProperty(value = "被访人åç§°") |
| | | private String visitUserName; |
| | | |
| | |
| | | ApproveDataVO arrangeApprovedData(Integer businessId, Integer businessType, Integer memberId); |
| | | |
| | | void approved(ApproveDTO approveDTO); |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸å¡ä¸»é®æ¥è¯¢ 审æ¹äººåç§° |
| | | * @param businessId |
| | | * @param businessType |
| | | * @return |
| | | */ |
| | | String getApproveUserName(Integer businessId,Integer businessType); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.PlatformEvent; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æå°è½¦è¾è¿åºäºä»¶æ¨éè®°å½è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/08/28 17:24 |
| | | */ |
| | | public interface PlatformEventService { |
| | | |
| | | /** |
| | | * å建 |
| | | * |
| | | * @param platformEvent å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer create(PlatformEvent platformEvent); |
| | | |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | | * @param id ä¸»é® |
| | | */ |
| | | void deleteById(Integer id); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @param platformEvent å®ä½å¯¹è±¡ |
| | | */ |
| | | void delete(PlatformEvent platformEvent); |
| | | |
| | | /** |
| | | * æ¹é主é®å é¤ |
| | | * |
| | | * @param ids 主é®é |
| | | */ |
| | | void deleteByIdInBatch(List<Integer> ids); |
| | | |
| | | /** |
| | | * 䏻鮿´æ° |
| | | * |
| | | * @param platformEvent å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(PlatformEvent platformEvent); |
| | | |
| | | /** |
| | | * æ¹é䏻鮿´æ° |
| | | * |
| | | * @param platformEvents å®ä½é |
| | | */ |
| | | void updateByIdInBatch(List<PlatformEvent> platformEvents); |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢ |
| | | * |
| | | * @param id ä¸»é® |
| | | * @return PlatformEvent |
| | | */ |
| | | PlatformEvent findById(Integer id); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ |
| | | * |
| | | * @param platformEvent å®ä½å¯¹è±¡ |
| | | * @return PlatformEvent |
| | | */ |
| | | PlatformEvent findOne(PlatformEvent platformEvent); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | * |
| | | * @param platformEvent å®ä½å¯¹è±¡ |
| | | * @return List<PlatformEvent> |
| | | */ |
| | | List<PlatformEvent> findList(PlatformEvent platformEvent); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param pageWrap å页对象 |
| | | * @return PageData<PlatformEvent> |
| | | */ |
| | | PageData<PlatformEvent> findPage(PageWrap<PlatformEvent> pageWrap); |
| | | |
| | | /** |
| | | * æ¡ä»¶ç»è®¡ |
| | | * |
| | | * @param platformEvent å®ä½å¯¹è±¡ |
| | | * @return long |
| | | */ |
| | | long count(PlatformEvent platformEvent); |
| | | } |
| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.PlatformGroup; |
| | | import com.doumee.dao.web.reqeust.PlatformDataDTO; |
| | | import com.doumee.dao.web.response.PlatformGroupWorkVO; |
| | | import com.doumee.dao.web.response.PlatformWorkVO; |
| | | |
| | | import java.util.List; |
| | |
| | | List<PlatformGroup> getAllPlatformGroup(PlatformDataDTO platformDataDTO, LoginUserInfo loginUserInfo); |
| | | |
| | | |
| | | |
| | | /** |
| | | * è·åæå°ç» çå¾
ä¸å¼å¸¸æ°æ® |
| | | * @param platformGroupId |
| | | * @return |
| | | */ |
| | | PlatformGroupWorkVO getPlatformGroupWork(Integer platformGroupId); |
| | | |
| | | } |
| | |
| | | */ |
| | | void deleteById(Integer id); |
| | | |
| | | void delete(Integer id); |
| | | /** |
| | | * å é¤ |
| | | * |
| | |
| | | void finishWork(JobOperateDTO jobOperateDTO); |
| | | |
| | | /** |
| | | * æå¨ææè½¦è¾ç¦»åº |
| | | * @param jobOperateDTO |
| | | */ |
| | | void powerLevel(JobOperateDTO jobOperateDTO); |
| | | /** |
| | | * è·åæå°ä¸çä»»å¡ä¿¡æ¯ |
| | | * @param groupId |
| | | * @param loginUserInfo |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.wms.model.request.WmsActionNoticeRequest; |
| | | import com.doumee.core.wms.model.request.WmsInboundNoticeRequest; |
| | | import com.doumee.core.wms.model.request.WmsOutboundNoticeRequest; |
| | | import com.doumee.core.wms.model.response.WmsBaseResponse; |
| | | import com.doumee.dao.business.model.Platform; |
| | | import com.doumee.dao.business.model.PlatformJob; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | public interface WmsService { |
| | | |
| | | /** |
| | | * åºå
¥åºä½ä¸åé
æå° |
| | | * @return WmsBaseResponse |
| | | */ |
| | | WmsBaseResponse orderPlatformBind(PlatformJob job); |
| | | WmsBaseResponse getInventoryList(); |
| | | void saveInterfaceLog(String url,String name,String param,Integer success,String respone,int type); |
| | | /** |
| | | * å
¥åºåæ¹ééç¥ |
| | | * @param list åæ° |
| | | * @return WmsBaseResponse |
| | |
| | | |
| | | import com.doumee.core.haikang.model.param.request.*; |
| | | import com.doumee.core.haikang.model.param.request.event.acs.EventAcsRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventParkRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventPlatCarstatusRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventPlatWorkstatusRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.*; |
| | | import com.doumee.core.haikang.model.param.request.event.visit.EventVisitIccmRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.visit.EventVisitRequest; |
| | | import com.doumee.core.haikang.model.param.respose.AppointmentInfoResponse; |
| | |
| | | void syncMemberDelData(); |
| | | String getServiceUrl(HKGetServiceLoginUrlRequest param); |
| | | |
| | | void dealWorkstatusEvent(EventPlatWorkstatusRequest param, HttpServletResponse response); |
| | | |
| | | void dealCarstatusEvent(EventPlatCarstatusRequest param, HttpServletResponse response); |
| | | |
| | | String syncHkLed(Device param); |
| | | |
| | | String syncHkBroadcast(Device param); |
| | | String dealVisitEventIccm(EventVisitIccmRequest param, HttpServletResponse response); |
| | | |
| | | String dealPlatformStatusEvent(EventPlatformRequest param, HttpServletResponse response); |
| | | |
| | | String dealPlatformCarsEvent(EventPlatformCarsRequest param, HttpServletResponse response); |
| | | } |
| | |
| | | List<String> memberNameList =memberList.stream().map(m->m.getName()).collect(Collectors.toList()); |
| | | String memberNames = String.join(",",memberNameList); |
| | | Integer noticeType = Constants.approveTypeToNoticeType(approveTempl.getType()); |
| | | String title = "ã访客ç³è¯·ãç³è¯·äºº - "; |
| | | String title = "[访客ç³è¯·]ç³è¯·äºº-"; |
| | | Map<String,Object> jsonMap = new HashMap<>(); |
| | | for (int j = 0; j < memberList.size(); j++) { |
| | | Member member = memberList.get(j); |
| | |
| | | approve.setTemplatId(approveTempl.getId()); |
| | | approve.setChekorId(memberId); |
| | | approve.setStatus(i==0?Constants.ONE:Constants.ZERO); |
| | | approve.setStatusInfo(i==0?"审æ¹ä¸":"å¾
审æ¹"); |
| | | approve.setTitle("审æ¹äºº"); |
| | | approve.setStatusInfo(i==0?"审æ¹ä¸":"å¤çä¸"); |
| | | approve.setTitle(StringUtils.isBlank(approveParam.getRemark())?"审æ¹ä¸":approveParam.getRemark()); |
| | | approve.setIsEndCheck((i+1) == approveParamList.size()?Constants.ONE:Constants.ZERO); |
| | | approve.setObjId(businessId); |
| | | approve.setLevel(i+1); |
| | |
| | | if(Constants.equalsInteger(noticeType,Constants.noticesObjectType.visit)){ |
| | | title = title + visits.getName(); |
| | | }else{ |
| | | title = "ã访客æ¥å¤ãç³è¯·äºº - " + visits.getName(); |
| | | title = "[访客æ¥å¤]ç³è¯·äºº-" + visits.getName(); |
| | | } |
| | | jsonMap.put("name", "访é®äºº:" + visits.getCompanyName() + " - " + visits.getReceptMemberName()); |
| | | jsonMap.put("sTime", "å
¥åæ¶é´:" + DateUtil.DateToStr(visits.getStarttime() , "yyyy-MM-dd HH:mm")); |
| | |
| | | if(Objects.isNull(carUseBook)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"æªæ¥è¯¢å°ä¸å¡æ°æ®ä¿¡æ¯"); |
| | | } |
| | | title = "ãç¨è½¦ç³è¯·ãç³è¯·äºº - " + carUseBook.getMemberName(); |
| | | title = "[ç¨è½¦ç³è¯·]ç³è¯·äºº-" + carUseBook.getMemberName(); |
| | | jsonMap.put("name", "ç³è¯·äºº:" + carUseBook.getCompanyName() + " - " + carUseBook.getMemberName()); |
| | | jsonMap.put("sTime", "å¼å§æ¶é´:" + DateUtil.DateToStr(carUseBook.getStartTime() , "yyyy-MM-dd HH:mm")); |
| | | jsonMap.put("eTime", "ç»ææ¶é´:" + DateUtil.DateToStr(carUseBook.getEndTime() , "yyyy-MM-dd HH:mm")); |
| | |
| | | if(Objects.isNull(platformBooks)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"æªæ¥è¯¢å°ä¸å¡æ°æ®ä¿¡æ¯"); |
| | | } |
| | | title = "ãç©æµè½¦å
¥åé¢çº¦ãç³è¯·äºº - " + platformBooks.getDriverName(); |
| | | title = "[ç©æµè½¦å
¥åé¢çº¦]ç³è¯·äºº-" + platformBooks.getDriverName(); |
| | | jsonMap.put("inType", "å
¥åºç±»åï¼"+(Constants.equalsInteger(platformBooks.getInType(),Constants.ZERO)?"æ´æç":"ä»¶ç")); |
| | | jsonMap.put("totalNum", "æ»è¿è¾éï¼"+platformBooks.getTotalNum()+"䏿¯"); |
| | | jsonMap.put("arriveDate", "å°åºæ¶é´ï¼" + DateUtil.DateToStr(platformBooks.getArriveDate() , "yyyy-MM-dd HH:mm")); |
| | |
| | | private List<Approve> getLevelInfoFromList(Approve level,List<Approve> approveGroupList) { |
| | | List<Approve> list = new ArrayList<>(); |
| | | if(Constants.equalsInteger(level.getApproveType(),Constants.TWO)){ |
| | | level.setApproveType(Constants.ZERO); |
| | | level.setApproveType(Constants.TWO); |
| | | //妿æ¯åäººå®¡æ¹ |
| | | list.add(level); |
| | | return list; |
| | |
| | | waitModel.setType(Constants.ZERO); |
| | | waitModel.setTitle(StringUtils.defaultString(level.getTitle(),"审æ¹äºº")); |
| | | waitModel.setStatus(Constants.equalsInteger(waitList.get(Constants.ZERO).getStatus(),Constants.ONE)?Constants.ONE:Constants.ZERO); |
| | | waitModel.setStatusInfo("å¤çä¸"); |
| | | if(Constants.equalsInteger(level.getStatus(),Constants.approveStatus.auditIng) |
| | | ||Constants.equalsInteger(level.getStatus(),Constants.approveStatus.pass)){ |
| | | waitModel.setMemberName(waitList.size() +"人ä¼ç¾"); |
| | | if(Constants.equalsInteger(waitModel.getStatus(),Constants.approveStatus.wait)){ |
| | | waitModel.setStatusInfo("å¾
å¤ç"); |
| | | }else if(Constants.equalsInteger(waitModel.getStatus(),Constants.approveStatus.auditIng)){ |
| | | waitModel.setStatusInfo("å¤çä¸"); |
| | | } |
| | | |
| | | waitModel.setMemberName(waitList.size() +"人ä¼ç¾"); |
| | | // if(Constants.equalsInteger(level.getStatus(),Constants.approveStatus.auditIng) |
| | | // ||Constants.equalsInteger(level.getStatus(),Constants.approveStatus.pass)){ |
| | | // waitModel.setMemberName(waitList.size() +"人ä¼ç¾"); |
| | | // } |
| | | if(CollectionUtils.isNotEmpty(waitList)){ |
| | | waitModel.setCreateDate(waitList.get(Constants.ZERO).getCreateDate()); |
| | | } |
| | |
| | | }else { |
| | | if((waitList.size()> 0 || otherPassList.size()>0)){ |
| | | Approve waitModel = new Approve(); |
| | | waitModel.setApproveType(Constants.ONE); |
| | | waitModel.setApproveType(Constants.ZERO); |
| | | if(Constants.equalsInteger(level.getStatus(),Constants.approveStatus.pass)){ |
| | | waitModel.setStatus(Constants.approveStatus.pass); |
| | | waitModel.setStatus(level.getStatus()); |
| | | waitModel.setType(Constants.ONE); |
| | | waitModel.setTitle("审æ¹äººï¼æéæç¾å®¡æ¹äººï¼"); |
| | | }else{ |
| | | waitModel.setStatus(level.getStatus()); |
| | | waitModel.setType(Constants.ZERO); |
| | | waitModel.setStatusInfo(passList.size()<=0?StringUtils.defaultString(level.getTitle(),"审æ¹äºº"):"æéæç¾å®¡æ¹äºº"); |
| | | waitModel.setStatus(passList.size()>0?Constants.ONE:Constants.ZERO); |
| | | //waitModel.setStatusInfo(passList.size()<=0?StringUtils.defaultString(level.getTitle(),"审æ¹äºº"):"æéæç¾å®¡æ¹äºº"); |
| | | waitModel.setTitle(passList.size()<=0?StringUtils.defaultString(level.getTitle(),"审æ¹äºº"):"æéæç¾å®¡æ¹äºº"); |
| | | |
| | | } |
| | | List<Approve> approveList = new ArrayList<>(); |
| | | approveList.addAll(waitList); |
| | |
| | | if(Constants.equalsInteger(waitModel.getStatus(),Constants.approveStatus.pass)){ |
| | | waitModel.setMemberName("å·²æé"+ approveList.size() +"人"); |
| | | }else if(Constants.equalsInteger(waitModel.getStatus(),Constants.approveStatus.wait)){ |
| | | waitModel.setMemberName("å¤çä¸"); |
| | | waitModel.setMemberName(waitList.size() +"人æç¾"); |
| | | waitModel.setStatusInfo("å¾
å¤ç"); |
| | | }else{ |
| | | waitModel.setMemberName(waitList.size() +"人æç¾"); |
| | | waitModel.setStatusInfo("å¤çä¸"); |
| | | } |
| | | waitModel.setApproveList(approveList); |
| | | list.add(waitModel); |
| | |
| | | return Constants.ZERO; |
| | | } |
| | | |
| | | @Override |
| | | public String getApproveUserName(Integer businessId,Integer businessType){ |
| | | List<Approve> approveList = approveJoinMapper.selectJoinList(Approve.class,new MPJLambdaWrapper<Approve>() |
| | | .selectAll(Approve.class) |
| | | .selectAs(Member::getName,Approve::getMemberName) |
| | | .leftJoin(Member.class,Member::getId,Approve::getChekorId) |
| | | .eq(Approve::getObjId,businessId) |
| | | .eq(Approve::getObjType,businessType) |
| | | .eq(Approve::getType,Constants.ZERO) |
| | | .eq(Approve::getStatus,Constants.approveStatus.auditIng) |
| | | ); |
| | | if(CollectionUtils.isNotEmpty(approveList)){ |
| | | List<String> names = approveList.stream().map(m->m.getMemberName()).collect(Collectors.toList()); |
| | | return String.join(",",names); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | noticesJoinMapper.update(null,new UpdateWrapper<Notices>().lambda() |
| | | .set(Notices::getEditDate,new Date()) |
| | | .set(Notices::getParam4,approveDTO.getLoginUserInfo().getMemberId()) |
| | | .set(Notices::getInfo,"å®¡æ¹æªéè¿") |
| | | .set(Notices::getInfo,"å·²æç»") |
| | | .set(Notices::getReaded,Constants.ONE) |
| | | .set(Notices::getParam2,Constants.TWO) |
| | | .set(Notices::getStatus,Constants.ONE) |
| | |
| | | .set(Notices::getSendacopy,Constants.ONE) |
| | | .set(Notices::getStatus,Constants.ONE) |
| | | .set(Notices::getParam2,Constants.TWO) |
| | | .set(Notices::getInfo,"å®¡æ¹æªéè¿") |
| | | .set(Notices::getInfo,"å·²æç»") |
| | | .eq(Notices::getObjId,notices.getObjId()) |
| | | .eq(Notices::getObjType,notices.getObjType()) |
| | | .eq(Notices::getReaded,Constants.ZERO) |
| | |
| | | if(Objects.nonNull(visits)){ |
| | | if(Constants.equalsInteger(visits.getStatus(),Constants.ZERO)){ |
| | | visitsMapper.update(null,new UpdateWrapper<Visits>().lambda().set(Visits::getStatus,Constants.ONE).eq(Visits::getId,visits.getId())); |
| | | }else{ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°ä¸å¡æ°æ®å¯¹è±¡!è¯·å·æ°éè¯"); |
| | | } |
| | | } |
| | | |
| | |
| | | .set(Notices::getEditDate,new Date()) |
| | | .set(Notices::getReaded,Constants.ONE) |
| | | .set(Notices::getStatus,Constants.ONE) |
| | | .set(Notices::getInfo,Constants.equalsInteger(approveDTO.getStatus(),Constants.TWO)?"å·²éè¿":"å·²æç»") |
| | | .set(dealBusinessBean,Notices::getParam2,Constants.ONE) |
| | | .set(Notices::getParam4,approveDTO.getLoginUserInfo().getMemberId()) |
| | | .eq(Notices::getId,notices.getId()) |
| | |
| | | String info = ""; |
| | | List<String> memberNameList = Arrays.asList(memberNames.split(",")); |
| | | if(Constants.equalsInteger(memberNameList.size(),Constants.ONE)){ |
| | | info = "å¾
"+memberNameList.get(0)+" å¤çä¸"; |
| | | info = "å¾
"+memberNameList.get(0)+"å¤çä¸"; |
| | | }else{ |
| | | info = "å¾
"+memberNameList.get(0)+" ç"+memberNameList.size()+"人å¤çä¸"; |
| | | info = "å¾
"+memberNameList.get(0)+"ç"+memberNameList.size()+"人å¤çä¸"; |
| | | } |
| | | //æ´æ°è¯¥ä¸å¡æ°æ®çææè®°å½ä¿¡æ¯ |
| | | noticesJoinMapper.update(null,new UpdateWrapper<Notices>().lambda() |
| | | .set(!dealBusinessBean,Notices::getInfo,info) |
| | | .set(dealBusinessBean,Notices::getInfo,"审æ¹éè¿") |
| | | .set(dealBusinessBean,Notices::getInfo,"å·²éè¿") |
| | | .set(Notices::getParam5,memberNames) |
| | | .eq(Notices::getObjId,notices.getObjId()) |
| | | .eq(Notices::getObjType,notices.getObjType())); |
| | |
| | | copyNotices.setEditDate(new Date()); |
| | | copyNotices.setParam2("2"); |
| | | copyNotices.setParam3(""); |
| | | copyNotices.setInfo("审æ¹éè¿"); |
| | | copyNotices.setInfo("å·²éè¿"); |
| | | copyNotices.setUserId(copyApprove.getChekorId()); |
| | | copyNotices.setStatus(Constants.ZERO); |
| | | copyNotices.setSendacopy(Constants.ONE); |
| | |
| | | notices.setParam5(memberNames); |
| | | notices.setRemark(nextDealApprove.getMemberName()); |
| | | if(Constants.equalsInteger(memberNameList.size(),Constants.ONE)){ |
| | | notices.setInfo("å¾
"+memberNameList.get(0)+" å¤çä¸"); |
| | | notices.setInfo("å¾
"+memberNameList.get(0)+"å¤çä¸"); |
| | | }else{ |
| | | notices.setInfo("å¾
"+memberNameList.get(0)+" ç"+memberNameList.size()+"人å¤çä¸"); |
| | | notices.setInfo("å¾
"+memberNameList.get(0)+"ç"+memberNameList.size()+"人å¤çä¸"); |
| | | } |
| | | noticesJoinMapper.insert(newNotices); |
| | | } |
| | |
| | | visits.setEditDate(new Date()); |
| | | visits.setEditor(approveDTO.getLoginUserInfo().getMemberId()); |
| | | visitsMapper.updateById(visits); |
| | | |
| | | }else if(approveDTO.getObjType().equals(Constants.approveObjectType.cityUseCar)||approveDTO.getObjType().equals( |
| | | Constants.approveObjectType.unCityUseCar)){ |
| | | this.updDriver(approveDTO,approve,true); |
| | |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * å®¡æ¹æ¨¡çä¿¡æ¯è¡¨Serviceå®ç° |
| | |
| | | param.setType(Constants.formatIntegerNum(param.getType())); |
| | | param.setAddrParam(Constants.formatIntegerNum(param.getAddrParam())); |
| | | param.setDriverParam(Constants.formatIntegerNum(param.getDriverParam())); |
| | | param.setApproveType(Constants.formatIntegerNum(param.getApproveType())); |
| | | param.setApproveType(Objects.isNull(param.getApproveType())?Constants.TWO:param.getApproveType()); |
| | | level ++ ; |
| | | } |
| | | //å
æ¸
é¤åæ¥ææçå°±éªé
ç½® |
| | |
| | | public List<Device> findIdAndNameList(Device param) { |
| | | LambdaQueryWrapper<Device> wrapper = new LambdaQueryWrapper<>(param); |
| | | wrapper.select(Device::getId, Device::getName, Device::getDoorName,Device::getRegionPathName, Device::getRegionName); |
| | | if(null != param.getType() && null != param.getIsdeleted() && null != param.getHkStatus()) { |
| | | wrapper.eq(Device::getType,param.getType()) |
| | | .eq(Device::getIsdeleted,param.getIsdeleted()) |
| | | .eq(Device::getHkStatus,param.getHkStatus()); |
| | | } |
| | | wrapper.eq(null != param.getType(),Device::getType,param.getType()) |
| | | .eq(null !=param.getIsdeleted(),Device::getIsdeleted,param.getIsdeleted()) |
| | | .eq(null != param.getHkStatus(),Device::getHkStatus,param.getHkStatus()); |
| | | return deviceMapper.selectList(wrapper); |
| | | } |
| | | |
| | |
| | | createNotices.setSendacopy(Constants.ZERO); |
| | | createNotices.setParam2("0"); |
| | | createNotices.setParam3(hiddenDanger.getLoginUserInfo().getMemberId().toString()); |
| | | createNotices.setInfo("å¾
"+member.getName()+" å¤ç"); |
| | | createNotices.setInfo("å¾
"+member.getName()+"å¤ç"); |
| | | noticesJoinMapper.insert(createNotices); |
| | | |
| | | //åå¨å¤ç人çéç¥æ¶æ¯ |
| | |
| | | notices.setStatus(Constants.ZERO); |
| | | notices.setSendacopy(Constants.ZERO); |
| | | notices.setReaded(Constants.ZERO); |
| | | notices.setInfo("å¾
"+member.getName()+" å¤ç"); |
| | | notices.setInfo("å¾
"+member.getName()+"å¤ç"); |
| | | noticesJoinMapper.insert(notices); |
| | | |
| | | |
| | |
| | | newNotices.setCreateDate(new Date()); |
| | | newNotices.setParam2("0"); |
| | | newNotices.setUserId(hiddenDanger.getCheckUserId()); |
| | | newNotices.setInfo("å¾
"+member.getName()+" å¤ç"); |
| | | newNotices.setInfo("å¾
"+member.getName()+"å¤ç"); |
| | | noticesJoinMapper.insert(newNotices); |
| | | notices.setStatus(Constants.ONE); |
| | | notices.setParam2("3"); |
| | | notices.setEditDate(new Date()); |
| | | notices.setReaded(Constants.ONE); |
| | | notices.setInfo("å¾
"+member.getName()+" å¤ç"); |
| | | notices.setInfo("å¾
"+member.getName()+"å¤ç"); |
| | | noticesJoinMapper.updateById(notices); |
| | | } |
| | | } |
| | |
| | | days = Integer.parseInt(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.HK_LOG_DEL_DAYS_LIMIT).getCode()); |
| | | }catch (Exception e){} |
| | | interfaceLogMapper.delete(new UpdateWrapper<InterfaceLog>().lambda() |
| | | .apply("to_days(create_dat e)+"+days+" < to_days(now())") ); |
| | | .apply("to_days(create_date)+"+days+" < to_days(now())") ); |
| | | } |
| | | } |
| | |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"身份è¯å·æ ¼å¼æè¯¯"); |
| | | } |
| | | if(memberMapper.selectCount(new QueryWrapper<Member>().lambda() |
| | | .in(Member::getType,new Integer[]{Constants.ZERO,Constants.TWO}) |
| | | .eq(Member::getIdcardNo,DESUtil.encrypt(Constants.EDS_PWD, member.getIdcardNo())) |
| | | .eq(Member::getIsdeleted,Constants.ZERO)) >0){ |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "身份è¯å·ã"+member.getIdcardNo()+"ã已被使ç¨ï¼ä¸è½éå¤"); |
| | | } |
| | | if(memberMapper.selectCount(new QueryWrapper<Member>().lambda() |
| | | .eq(Member::getPhone, member.getPhone()) |
| | | .in(Member::getType,new Integer[]{Constants.ZERO,Constants.TWO}) |
| | | .eq(Member::getIsdeleted,Constants.ZERO) ) >0){ |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "ææºå·ã"+member.getPhone()+"ã已被使ç¨ï¼ä¸è½éå¤"); |
| | | } |
| | |
| | | } |
| | | if(memberMapper.selectCount(new QueryWrapper<Member>().lambda() |
| | | .eq(Member::getPhone,member.getPhone()) |
| | | .in(Member::getType,new Integer[]{Constants.ZERO,Constants.TWO}) |
| | | .eq(Member::getIsdeleted,Constants.ZERO) |
| | | .ne(Member::getId,member.getId())) >0){ |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "ææºå·ã"+member.getPhone()+"ã已被使ç¨ï¼ä¸è½éå¤"); |
| | |
| | | if( !StringUtils.equals(model.getIdcardNo(),encrptNo) ){ |
| | | if(memberMapper.selectCount(new QueryWrapper<Member>().lambda() |
| | | .eq(Member::getIdcardNo,encrptNo) |
| | | .in(Member::getType,new Integer[]{Constants.ZERO,Constants.TWO}) |
| | | .eq(Member::getIsdeleted,Constants.ZERO) |
| | | .ne(Member::getId,member.getId())) >0){ |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "身份è¯å·ã"+member.getIdcardNoNew()+"ã已被使ç¨ï¼ä¸è½éå¤"); |
| | |
| | | public void deleteById(Integer id,LoginUserInfo loginUserInfo) { |
| | | Member member=new Member(); |
| | | member.setId(id); |
| | | member.setIsdeleted(Constants.ZERO); |
| | | member.setIsdeleted(Constants.ONE); |
| | | member.setEditor(loginUserInfo.getId()); |
| | | member.setEditDate(new Date()); |
| | | member.setHkStatus(Constants.ZERO); |
| | |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return; |
| | | } |
| | | Member member=new Member(); |
| | | for(Integer id : ids){ |
| | | deleteById(id,loginUserInfo); |
| | | } |
| | | /* Member member=new Member(); |
| | | ids.stream().forEach(s ->{ |
| | | member.setId(s); |
| | | member.setIsdeleted(Constants.ONE); |
| | |
| | | member.setEditDate(new Date()); |
| | | memberMapper.updateById(member); |
| | | saveUserActionBiz(member,loginUserInfo,Constants.UserActionType.DELETE,userActionJoinMapper,JSONObject.toJSONString(member)); |
| | | }); |
| | | });*/ |
| | | |
| | | } |
| | | |
| | |
| | | public PageData<Member> findMemberInfoPage(PageWrap<MemberQuery> pageWrap) { |
| | | IPage<Member> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | MPJLambdaWrapper<Member> queryWrapper = new MPJLambdaWrapper<>(); |
| | | |
| | | pageWrap.getModel().setIsdeleted(Constants.formatIntegerNum(pageWrap.getModel().getIsdeleted())); |
| | | queryWrapper.selectAll(Member.class); |
| | | queryWrapper.selectAs(Company::getName,Member::getCompanyName); |
| | | queryWrapper.selectAs(SystemUser::getRealname,Member::getEditorName); |
| | |
| | | import com.doumee.dao.business.join.ApproveJoinMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.business.vo.ApproveDataVO; |
| | | import com.doumee.dao.system.join.NoticesJoinMapper; |
| | | import com.doumee.dao.web.reqeust.ConfirmTaskDTO; |
| | | import com.doumee.dao.web.reqeust.PlatformBooksApplyDTO; |
| | | import com.doumee.dao.web.reqeust.PlatformBooksCheckNumDTO; |
| | |
| | | |
| | | @Autowired |
| | | private PlatformBooksMapper platformBooksMapper; |
| | | |
| | | @Autowired |
| | | private NoticesJoinMapper noticesJoinMapper; |
| | | |
| | | @Autowired |
| | | private ApproveTemplMapper approveTemplMapper; |
| | |
| | | .eq(pageWrap.getModel().getPlateNum() != null, PlatformBooks::getPlateNum, pageWrap.getModel().getPlateNum()) |
| | | .eq(pageWrap.getModel().getDriverPhone() != null, PlatformBooks::getDriverPhone, pageWrap.getModel().getDriverPhone()) |
| | | .ge(pageWrap.getModel().getQueryDate() != null, PlatformBooks::getCreateDate, pageWrap.getModel().getQueryDate()) |
| | | .ge(pageWrap.getModel().getArriveDateStart() != null, PlatformBooks::getArriveDate, Utils.Date.getStart(pageWrap.getModel().getArriveDateStart())) |
| | | .le(pageWrap.getModel().getArriveDateEnd() != null, PlatformBooks::getArriveDate, Utils.Date.getEnd(pageWrap.getModel().getArriveDateEnd())) |
| | | .orderByDesc(PlatformBooks::getCreateDate) |
| | | ; |
| | | return PageData.from(platformBooksMapper.selectPage(page, queryWrapper)); |
| | | PageData<PlatformBooks> pageData = PageData.from(platformBooksMapper.selectPage(page, queryWrapper)); |
| | | for (PlatformBooks platformBooks:pageData.getRecords()) { |
| | | if(Constants.equalsInteger(platformBooks.getStatus(),Constants.ONE)){ |
| | | String auditName = approveService.getApproveUserName(platformBooks.getId(),Constants.approveObjectType.reason); |
| | | platformBooks.setAuditName(auditName); |
| | | } |
| | | } |
| | | |
| | | return pageData; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public long count(PlatformBooks platformBooks) { |
| | |
| | | platformBooks.setIsdeleted(Constants.ZERO); |
| | | platformBooks.setStatus(Constants.ZERO); |
| | | platformBooks.setDriverId(platformBooksApplyDTO.getUserId()); |
| | | platformBooks.setEditDate(new Date()); |
| | | platformBooksMapper.insert(platformBooks); |
| | | |
| | | //åå»ºå®¡æ¹æµä¿¡æ¯ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.PlatformEventMapper; |
| | | import com.doumee.dao.business.model.PlatformEvent; |
| | | import com.doumee.service.business.PlatformEventService; |
| | | 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 org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æå°è½¦è¾è¿åºäºä»¶æ¨éè®°å½è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/08/28 17:24 |
| | | */ |
| | | @Service |
| | | public class PlatformEventServiceImpl implements PlatformEventService { |
| | | |
| | | @Autowired |
| | | private PlatformEventMapper platformEventMapper; |
| | | |
| | | @Override |
| | | public Integer create(PlatformEvent platformEvent) { |
| | | platformEventMapper.insert(platformEvent); |
| | | return platformEvent.getId(); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteById(Integer id) { |
| | | platformEventMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(PlatformEvent platformEvent) { |
| | | UpdateWrapper<PlatformEvent> deleteWrapper = new UpdateWrapper<>(platformEvent); |
| | | platformEventMapper.delete(deleteWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByIdInBatch(List<Integer> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return; |
| | | } |
| | | platformEventMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void updateById(PlatformEvent platformEvent) { |
| | | platformEventMapper.updateById(platformEvent); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByIdInBatch(List<PlatformEvent> platformEvents) { |
| | | if (CollectionUtils.isEmpty(platformEvents)) { |
| | | return; |
| | | } |
| | | for (PlatformEvent platformEvent: platformEvents) { |
| | | this.updateById(platformEvent); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public PlatformEvent findById(Integer id) { |
| | | return platformEventMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public PlatformEvent findOne(PlatformEvent platformEvent) { |
| | | QueryWrapper<PlatformEvent> wrapper = new QueryWrapper<>(platformEvent); |
| | | return platformEventMapper.selectOne(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<PlatformEvent> findList(PlatformEvent platformEvent) { |
| | | QueryWrapper<PlatformEvent> wrapper = new QueryWrapper<>(platformEvent); |
| | | return platformEventMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<PlatformEvent> findPage(PageWrap<PlatformEvent> pageWrap) { |
| | | IPage<PlatformEvent> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<PlatformEvent> queryWrapper = new QueryWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | if (pageWrap.getModel().getId() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getId, pageWrap.getModel().getId()); |
| | | } |
| | | if (pageWrap.getModel().getCreator() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getCreator, pageWrap.getModel().getCreator()); |
| | | } |
| | | if (pageWrap.getModel().getCreateDate() != null) { |
| | | queryWrapper.lambda().ge(PlatformEvent::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.lambda().le(PlatformEvent::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())); |
| | | } |
| | | if (pageWrap.getModel().getEditor() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getEditor, pageWrap.getModel().getEditor()); |
| | | } |
| | | if (pageWrap.getModel().getEditDate() != null) { |
| | | queryWrapper.lambda().ge(PlatformEvent::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.lambda().le(PlatformEvent::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())); |
| | | } |
| | | if (pageWrap.getModel().getIsdeleted() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getIsdeleted, pageWrap.getModel().getIsdeleted()); |
| | | } |
| | | if (pageWrap.getModel().getRemark() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getRemark, pageWrap.getModel().getRemark()); |
| | | } |
| | | if (pageWrap.getModel().getEventId() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getEventId, pageWrap.getModel().getEventId()); |
| | | } |
| | | if (pageWrap.getModel().getEventType() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getEventType, pageWrap.getModel().getEventType()); |
| | | } |
| | | if (pageWrap.getModel().getSrcType() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getSrcType, pageWrap.getModel().getSrcType()); |
| | | } |
| | | if (pageWrap.getModel().getHappenTime() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getHappenTime, pageWrap.getModel().getHappenTime()); |
| | | } |
| | | if (pageWrap.getModel().getSrcIndex() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getSrcIndex, pageWrap.getModel().getSrcIndex()); |
| | | } |
| | | if (pageWrap.getModel().getSrcName() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getSrcName, pageWrap.getModel().getSrcName()); |
| | | } |
| | | if (pageWrap.getModel().getStatus() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getStatus, pageWrap.getModel().getStatus()); |
| | | } |
| | | if (pageWrap.getModel().getTimeout() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getTimeout, pageWrap.getModel().getTimeout()); |
| | | } |
| | | if (pageWrap.getModel().getDataType() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getDataType, pageWrap.getModel().getDataType()); |
| | | } |
| | | if (pageWrap.getModel().getSendTime() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getSendTime, pageWrap.getModel().getSendTime()); |
| | | } |
| | | if (pageWrap.getModel().getDateTime() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getDateTime, pageWrap.getModel().getDateTime()); |
| | | } |
| | | if (pageWrap.getModel().getIpAddress() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getIpAddress, pageWrap.getModel().getIpAddress()); |
| | | } |
| | | if (pageWrap.getModel().getIpv6Address() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getIpv6Address, pageWrap.getModel().getIpv6Address()); |
| | | } |
| | | if (pageWrap.getModel().getPortNo() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getPortNo, pageWrap.getModel().getPortNo()); |
| | | } |
| | | if (pageWrap.getModel().getProtocol() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getProtocol, pageWrap.getModel().getProtocol()); |
| | | } |
| | | if (pageWrap.getModel().getMacAddress() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getMacAddress, pageWrap.getModel().getMacAddress()); |
| | | } |
| | | if (pageWrap.getModel().getChannelId() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getChannelId, pageWrap.getModel().getChannelId()); |
| | | } |
| | | if (pageWrap.getModel().getActivePostCount() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getActivePostCount, pageWrap.getModel().getActivePostCount()); |
| | | } |
| | | if (pageWrap.getModel().getEventState() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getEventState, pageWrap.getModel().getEventState()); |
| | | } |
| | | if (pageWrap.getModel().getEventDescription() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getEventDescription, pageWrap.getModel().getEventDescription()); |
| | | } |
| | | if (pageWrap.getModel().getChannelName() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getChannelName, pageWrap.getModel().getChannelName()); |
| | | } |
| | | if (pageWrap.getModel().getDeviceId() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getDeviceId, pageWrap.getModel().getDeviceId()); |
| | | } |
| | | if (pageWrap.getModel().getHpno() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getHpno, pageWrap.getModel().getHpno()); |
| | | } |
| | | if (pageWrap.getModel().getMotionStatus() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getMotionStatus, pageWrap.getModel().getMotionStatus()); |
| | | } |
| | | if (pageWrap.getModel().getPlateNo() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getPlateNo, pageWrap.getModel().getPlateNo()); |
| | | } |
| | | if (pageWrap.getModel().getVehicleDoorStatus() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getVehicleDoorStatus, pageWrap.getModel().getVehicleDoorStatus()); |
| | | } |
| | | if (pageWrap.getModel().getStockStatus() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getStockStatus, pageWrap.getModel().getStockStatus()); |
| | | } |
| | | if (pageWrap.getModel().getPlateScore() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getPlateScore, pageWrap.getModel().getPlateScore()); |
| | | } |
| | | if (pageWrap.getModel().getBackgroundImageContent() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getBackgroundImageContent, pageWrap.getModel().getBackgroundImageContent()); |
| | | } |
| | | if (pageWrap.getModel().getPlatePictureContent() != null) { |
| | | queryWrapper.lambda().eq(PlatformEvent::getPlatePictureContent, pageWrap.getModel().getPlatePictureContent()); |
| | | } |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | | queryWrapper.orderByDesc(sortData.getProperty()); |
| | | } else { |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(platformEventMapper.selectPage(page, queryWrapper)); |
| | | } |
| | | |
| | | @Override |
| | | public long count(PlatformEvent platformEvent) { |
| | | QueryWrapper<PlatformEvent> wrapper = new QueryWrapper<>(platformEvent); |
| | | return platformEventMapper.selectCount(wrapper); |
| | | } |
| | | } |
| | |
| | | import com.doumee.dao.business.model.PlatformJob; |
| | | import com.doumee.dao.business.model.PlatformShowParam; |
| | | import com.doumee.dao.web.reqeust.PlatformDataDTO; |
| | | import com.doumee.dao.web.response.PlatformGroupWorkVO; |
| | | import com.doumee.dao.web.response.PlatformWorkVO; |
| | | import com.doumee.service.business.PlatformGroupService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public PlatformGroupWorkVO getPlatformGroupWork(Integer platformGroupId){ |
| | | PlatformGroupWorkVO platformGroupWorkVO = new PlatformGroupWorkVO(); |
| | | platformGroupWorkVO.setExceptionNum(platformJobJoinMapper.selectCount(new QueryWrapper<PlatformJob>().lambda() |
| | | .eq(PlatformJob::getPlatformGroupId,platformGroupId) |
| | | .eq(PlatformJob::getStatus,Constants.PlatformJobStatus.EXCEPTION.getKey()) |
| | | ) |
| | | ); |
| | | |
| | | platformGroupWorkVO.setWaitNum(platformJobJoinMapper.selectCount(new QueryWrapper<PlatformJob>().lambda() |
| | | .eq(PlatformJob::getPlatformGroupId,platformGroupId) |
| | | .in(PlatformJob::getStatus, |
| | | Constants.PlatformJobStatus.WAIT_CALL.getKey(), |
| | | Constants.PlatformJobStatus.IN_WAIT.getKey(), |
| | | Constants.PlatformJobStatus.CALLED.getKey() |
| | | |
| | | ) |
| | | ) |
| | | ); |
| | | return platformGroupWorkVO; |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.openapi.request.*; |
| | | import com.doumee.dao.openapi.response.*; |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import com.doumee.dao.web.reqeust.*; |
| | | import com.doumee.dao.web.response.DriverHomeVO; |
| | | import com.doumee.dao.web.response.LineUpVO; |
| | |
| | | platformJobMapper.deleteById(id); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public void delete(Integer id) { |
| | | platformJobMapper.update(null,new UpdateWrapper<PlatformJob>().lambda() |
| | | .set(PlatformJob::getIsdeleted,Constants.ONE) |
| | | .eq(PlatformJob::getStatus,Constants.PlatformJobStatus.CANCEL.getKey()) |
| | | .eq(PlatformJob::getId,id)); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(PlatformJob platformJob) { |
| | | UpdateWrapper<PlatformJob> deleteWrapper = new UpdateWrapper<>(platformJob); |
| | |
| | | .selectAs(Platform::getName,PlatformJob::getPlatformName) |
| | | .selectAs(Platform::getWorkRate,PlatformJob::getWorkRate) |
| | | .selectAs(PlatformWmsJob::getCarrierName,PlatformJob::getCarrierName) |
| | | .selectAs(SystemUser::getUsername,PlatformJob::getOutUserName) |
| | | .leftJoin(Platform.class,Platform::getId,PlatformJob::getPlatformId) |
| | | .leftJoin(PlatformWmsJob.class,PlatformWmsJob::getCarryBillCode,PlatformJob::getBillCode) |
| | | .leftJoin(SystemUser.class,SystemUser::getId,PlatformJob::getOutUserId) |
| | | .eq(pageWrap.getModel().getId() != null, PlatformJob::getId, pageWrap.getModel().getId()) |
| | | .eq(pageWrap.getModel().getCreator() != null, PlatformJob::getCreator, pageWrap.getModel().getCreator()) |
| | | .ge(pageWrap.getModel().getCreateDate() != null, PlatformJob::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())) |
| | |
| | | .eq(pageWrap.getModel().getInType() != null, PlatformJob::getInType, pageWrap.getModel().getInType()) |
| | | .eq(pageWrap.getModel().getTotalNum() != null, PlatformJob::getTotalNum, pageWrap.getModel().getTotalNum()) |
| | | .eq(pageWrap.getModel().getPlatformGroupId() != null, PlatformJob::getPlatformGroupId, pageWrap.getModel().getPlatformGroupId()) |
| | | |
| | | .apply(pageWrap.getModel().getQueryStatus() != null, " find_in_set(t.`STATUS`,'"+pageWrap.getModel().getQueryStatus()+"')") |
| | | .ge(pageWrap.getModel().getBeginWorkDateStart() != null, PlatformJob::getStartDate, Utils.Date.getStart(pageWrap.getModel().getBeginWorkDateStart())) |
| | | .le(pageWrap.getModel().getBeginWorkDateEnd() != null, PlatformJob::getStartDate, Utils.Date.getEnd(pageWrap.getModel().getBeginWorkDateEnd())) |
| | | .eq(pageWrap.getModel().getJobType() != null && Constants.equalsInteger(Constants.ONE,pageWrap.getModel().getJobType()), PlatformJob::getType, Constants.platformJobType.sgscxh) |
| | | .ne(pageWrap.getModel().getJobType() != null && Constants.equalsInteger(Constants.ZERO,pageWrap.getModel().getJobType()), PlatformJob::getType, Constants.platformJobType.sgscxh) |
| | | ; |
| | | |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | |
| | | .eq(PlatformJob::getStatus,Constants.PlatformJobStatus.CALLED.getKey()).or() |
| | | .apply(" ( t.status = "+Constants.PlatformJobStatus.TRANSFERING.getKey()+" and t.PLATFORM_GROUP_ID = "+pageWrap.getModel().getPlatformGroupId()+" ) ") |
| | | ) |
| | | .like(PlatformJob::getArriveDate,DateUtil.dateTypeToString(new Date(),"yyyy-MM-dd")) |
| | | // .like(PlatformJob::getArriveDate,DateUtil.dateTypeToString(new Date(),"yyyy-MM-dd")) |
| | | .orderByDesc(PlatformJob::getStatus) |
| | | ; |
| | | IPage<PlatformJob> platformJobIPage = platformJobJoinMapper.selectJoinPage(page,PlatformJob.class,queryWrapper); |
| | |
| | | |
| | | |
| | | /** |
| | | * ææç¦»å |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class,BusinessException.class}) |
| | | public void powerLevel(JobOperateDTO jobOperateDTO){ |
| | | if(Objects.isNull(jobOperateDTO) |
| | | || Objects.isNull(jobOperateDTO.getJobId())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | PlatformJob platformJob = platformJobMapper.selectById(jobOperateDTO.getJobId()); |
| | | if(Objects.isNull(platformJob)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | if(!Constants.equalsInteger(platformJob.getStatus(),Constants.PlatformJobStatus.DONE.getKey())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对ä¸èµ·,ä¸å¡ç¶æå·²æµè½¬ï¼"); |
| | | } |
| | | PlatformJob oldPlatformJob = new PlatformJob(); |
| | | BeanUtils.copyProperties(platformJob,oldPlatformJob); |
| | | platformJob.setOutUserId(jobOperateDTO.getLoginUserInfo().getId()); |
| | | platformJob.setOutHkdate(new Date()); |
| | | platformJob.setStatus(Constants.PlatformJobStatus.AUTHED_LEAVE.getKey()); |
| | | platformJob.setEditDate(new Date()); |
| | | platformJobMapper.updateById(platformJob); |
| | | //å卿使¥å¿ |
| | | savePlatformLog(Constants.PlatformJobLogType.AUTHED_LEAVE.getKey(),oldPlatformJob,platformJob , |
| | | Constants.PlatformJobLogType.AUTHED_LEAVE.getInfo()); |
| | | |
| | | //TODO ææè½¦è¾ç¦»åºæé |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æå°ç¸æºæ¨é å¼å§ä½ä¸ |
| | | * @param jobOperateDTO |
| | | */ |
| | |
| | | .le(pageWrap.getModel().getEditDate() != null, PlatformWmsDetail::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())) |
| | | .eq(pageWrap.getModel().getIsdeleted() != null, PlatformWmsDetail::getIsdeleted, pageWrap.getModel().getIsdeleted()) |
| | | .eq(pageWrap.getModel().getRemark() != null, PlatformWmsDetail::getRemark, pageWrap.getModel().getRemark()) |
| | | .eq(pageWrap.getModel().getWmsJobId() != null, PlatformWmsDetail::getWmsJobId, pageWrap.getModel().getWmsJobId()) |
| | | .eq(pageWrap.getModel().getJobId() != null, PlatformWmsDetail::getJobId, pageWrap.getModel().getJobId()) |
| | | .eq(pageWrap.getModel().getIocode() != null, PlatformWmsDetail::getIocode, pageWrap.getModel().getIocode()) |
| | | .eq(pageWrap.getModel().getMaterialName() != null, PlatformWmsDetail::getMaterialName, pageWrap.getModel().getMaterialName()) |
| | |
| | | getHkDeviceRoles(visits,isERP); |
| | | //æ£éªæè®¿äººæ¯å¦åæ³ |
| | | Member visitMember = isValideVisitedUser(visits.getReceptMemberId()); |
| | | if(Constants.equalsInteger(Constants.ZERO, visits.getIdcardType())&&visits.getIdcardNo().length()!=18 |
| | | if(Constants.equalsInteger(Constants.ZERO, visits.getIdcardType()) |
| | | &&visits.getIdcardNo().length()!=18 |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "对ä¸èµ·ï¼èº«ä»½è¯å·ç æè¯¯ï¼è¯·æ ¸å®åéè¯ï¼"); |
| | | } |
| | |
| | | VisitDetailVO visitDetailVO = new VisitDetailVO(); |
| | | visitDetailVO.setCreateTime(visits.getCreateDate()); |
| | | visitDetailVO.setStatus(visits.getStatus()); |
| | | if(Constants.equalsInteger(visits.getStatus(),Constants.VisitStatus.xfSuccess) |
| | | || Constants.equalsInteger(visits.getStatus(),Constants.VisitStatus.xfFail) |
| | | || Constants.equalsInteger(visits.getStatus(),Constants.VisitStatus.signin) |
| | | || Constants.equalsInteger(visits.getStatus(),Constants.VisitStatus.signout) |
| | | || Constants.equalsInteger(visits.getStatus(),Constants.VisitStatus.invalid)){ |
| | | visitDetailVO.setBusinessStatus(Constants.VisitStatus.pass); |
| | | }else{ |
| | | visitDetailVO.setBusinessStatus(visits.getStatus()); |
| | | } |
| | | visitDetailVO.setCarNos(visits.getCarNos()); |
| | | visitDetailVO.setPhone(visits.getPhone()); |
| | | visitDetailVO.setVisitUserName(member.getName()); |
| | |
| | | import com.doumee.core.haikang.model.param.BaseResponse; |
| | | import com.doumee.core.haikang.model.param.request.*; |
| | | import com.doumee.core.haikang.model.param.request.event.acs.EventAcsRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventParkRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventPlatCarstatusRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventPlatWorkstatusRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.*; |
| | | import com.doumee.core.haikang.model.param.request.event.visit.EventVisitIccmRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.visit.EventVisitRequest; |
| | | import com.doumee.core.haikang.model.param.respose.AppointmentInfoResponse; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void dealWorkstatusEvent(EventPlatWorkstatusRequest param, HttpServletResponse response){ |
| | | } |
| | | @Override |
| | | public void dealCarstatusEvent(EventPlatCarstatusRequest param, HttpServletResponse response){ |
| | | } |
| | | @Override |
| | | // @Async |
| | | public String syncDoors(DoorsListRequest param){ |
| | | return null; |
| | |
| | | public String dealVisitEventIccm(EventVisitIccmRequest param, HttpServletResponse response){ |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public String dealPlatformStatusEvent(EventPlatformRequest param, HttpServletResponse response){ |
| | | return null; |
| | | } |
| | | @Override |
| | | public String dealPlatformCarsEvent(EventPlatformCarsRequest param, HttpServletResponse response){ |
| | | return null; |
| | | } |
| | | @Override |
| | | public String dealAcsEvent(EventAcsRequest param, HttpServletResponse response){ |
| | | return null; |
| | |
| | | |
| | | private List<PlatformDevice> getCameraList(List<PlatformCameraInfoResponse> cameras, Platform model) { |
| | | List<PlatformDevice> list = new ArrayList<>(); |
| | | if(cameras!=null || cameras.size()>0){ |
| | | if(cameras!=null && cameras.size()>0){ |
| | | for(PlatformCameraInfoResponse param :cameras){ |
| | | PlatformDevice d = new PlatformDevice(); |
| | | d.setCreateDate(model.getCreateDate()); |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.doumee.config.DataSyncConfig; |
| | | import com.doumee.config.SpringContextUtil; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.haikang.model.HKConstants; |
| | | import com.doumee.core.haikang.model.param.request.CustomBroadcastRequest; |
| | | import com.doumee.core.haikang.model.param.request.TransparentChannelBodyRequest; |
| | | import com.doumee.core.haikang.model.param.request.TransparentChannelHeadRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.acs.EventAcsInfoRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.acs.EventAcsRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.acs.EventDeviceDataRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventParkInfoRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.EventParkRequest; |
| | | import com.doumee.core.haikang.model.param.request.event.parks.*; |
| | | import com.doumee.core.haikang.model.param.request.event.visit.*; |
| | | import com.doumee.core.haikang.service.HKService; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DESUtil; |
| | | import com.doumee.core.utils.DateUtil; |
| | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.yaml.snakeyaml.scanner.Constant; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | |
| | | private VisitsJoinMapper visitsMapper; |
| | | @Autowired |
| | | private RetentionMapper retentionMapper; |
| | | @Autowired |
| | | private PlatformMapper platformMapper; |
| | | @Autowired |
| | | private PlatformDeviceMapper platformDeviceMapper; |
| | | @Autowired |
| | | private PlatformJobMapper platformJobMapper; |
| | | @Autowired |
| | | private PlatformWmsDetailMapper platformWmsDetailMapper; |
| | | @Autowired |
| | | private PlatformEventMapper platformEventMapper; |
| | | @Autowired |
| | | private PlatformLogMapper platformLogMapper; |
| | | /** |
| | | * 海康é¨ç¦äºä»¶æ¨é |
| | | * @param param |
| | |
| | | .eq(Device::getIsdeleted,Constants.ZERO) |
| | | .last("limit 1" )); |
| | | delRetentionLis.add(member.getId()); |
| | | if(!(Constants.equalsInteger(d.getIsEntrance(),Constants.ONE) && Constants.formatIntegerNum(request.getData().getExtEventInOut()) != Constants.ONE)){ |
| | | if(d!=null && !(Constants.equalsInteger(d.getIsEntrance(),Constants.ONE) && Constants.formatIntegerNum(request.getData().getExtEventInOut()) != Constants.ONE)){ |
| | | //妿æ¯è¿é¨ï¼å½å
¥äººåçå¨åºæ°æ®è®°å½ |
| | | retentionList.add(getRetentionModelByRequest(member,request)); |
| | | } |
| | |
| | | return null; |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 海康访客äºä»¶æ¨é |
| | | * @param param |
| | |
| | | interfaceLogMapper.insert(hkMonitoryLogDO); |
| | | } |
| | | |
| | | /** |
| | | * å¤çæå°å·¥ä½ç¶æäºä»¶è®¢é
忍鿰æ®é»è¾é»è¾ |
| | | * @param param |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @Override |
| | | public String dealPlatformStatusEvent(EventPlatformRequest param, HttpServletResponse response){ |
| | | log.info("ãæµ·åº·æå°å·¥ä½ç¶æäºä»¶æ¨éã========å¼å§=========ï¼\n"+JSONObject.toJSONString(param)); |
| | | String result = null; |
| | | try { |
| | | if(param == null || param.getParams() == null || param.getParams().getEvents()==null){ |
| | | return null; |
| | | } |
| | | //é¨ç¦äºä»¶éå |
| | | List<EventPlatformInfoRequest> events = param.getParams().getEvents(); |
| | | List<Platform> list = new ArrayList<>(); |
| | | for(EventPlatformInfoRequest request : events){ |
| | | EventPlatformDataRequest data = request.getData(); |
| | | if(data ==null ){ |
| | | continue; |
| | | } |
| | | Integer workStatus = 0; |
| | | if( data.getHPWorkingStatus() ==null || data.getHPWorkingStatus().size() ==0){ |
| | | continue;//å¦ä½æ¨éç¶æéå为空ï¼ä¸å¤çè·³è¿ |
| | | } |
| | | PlatformDevice model = platformDeviceMapper.selectOne(new QueryWrapper<PlatformDevice>().lambda() |
| | | .eq(PlatformDevice::getDeviceId,request.getSrcIndex()) |
| | | .eq(PlatformDevice::getIsdeleted,Constants.ZERO) |
| | | .last("limit 1")); |
| | | if(model ==null){ |
| | | continue;//çæ§ç¹æªåæ¥ï¼è·³è¿å¤ç |
| | | } |
| | | //å车é车è¾ç¶æ |
| | | for(EventPlatformStatusInfoRequest status : data.getHPWorkingStatus()){ |
| | | |
| | | } |
| | | } |
| | | result = "æå"; |
| | | log.error("ãæµ·åº·æå°å·¥ä½ç¶æäºä»¶æ¨éã========æå======="); |
| | | }catch (Exception e) { |
| | | result = "失败"+e.getMessage(); |
| | | log.error("ãæµ·åº·æå°å·¥ä½ç¶æäºä»¶æ¨éã========失败=======ï¼\n" + e.getMessage()); |
| | | }finally { |
| | | saveInterfaceLog(param,"/business/hksync/push/platform/workstatus",result,false);//ä¸è®¡æ¥å¿ |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | * å¤çæå°è½¦è¾ç¶æäºä»¶è®¢é
忍鿰æ®é»è¾é»è¾ |
| | | * @param param |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @Override |
| | | public String dealPlatformCarsEvent(EventPlatformCarsRequest param, HttpServletResponse response){ |
| | | log.info("ãæµ·åº·æå°è½¦è¾ç¶æäºä»¶æ¨éã========å¼å§=========ï¼\n"+JSONObject.toJSONString(param)); |
| | | String result = null; |
| | | try { |
| | | if(param == null || param.getParams() == null || param.getParams().getEvents()==null){ |
| | | return null; |
| | | } |
| | | //é¨ç¦äºä»¶éå |
| | | List<EventPlatformCarsInfoRequest> events = param.getParams().getEvents(); |
| | | List<PlatformEvent> eventList = new ArrayList<>(); |
| | | for(EventPlatformCarsInfoRequest request : events){ |
| | | if( request.getData() ==null || request.getData().size()==0){ |
| | | continue; |
| | | } |
| | | Integer workStatus = 0; |
| | | for(EventPlatformCarsDataRequest data : request.getData()){ |
| | | if( data.getHPVehicleStatus() ==null || data.getHPVehicleStatus().size() ==0){ |
| | | continue;//å¦ä½æ¨éç¶æéå为空ï¼ä¸å¤çè·³è¿ |
| | | } |
| | | PlatformDevice model = platformDeviceMapper.selectOne(new QueryWrapper<PlatformDevice>().lambda() |
| | | .eq(PlatformDevice::getDeviceId,request.getSrcIndex()) |
| | | .eq(PlatformDevice::getIsdeleted,Constants.ZERO) |
| | | .last("limit 1")); |
| | | if(model ==null){ |
| | | continue;//çæ§ç¹æªåæ¥ï¼è·³è¿å¤ç |
| | | |
| | | } |
| | | //å车é车è¾ç¶æ |
| | | for(EventPlatformCarsStatusInfoRequest status : data.getHPVehicleStatus()){ |
| | | eventList.add(initPlatformEventModel(request,data,status));//å°è£
äºä»¶ï¼å·²æå°ééä¸ºç»´åº¦ï¼ |
| | | if(StringUtils.isBlank(status.getPlateNo())){ |
| | | continue;//å¦æè½¦è¾ä¿¡æ¯ä¸ºç©ºï¼ä¸å¤çç´æ¥è·³è¿ |
| | | } |
| | | PlatformJob job = platformJobMapper.selectOne(new QueryWrapper<PlatformJob>().lambda() |
| | | .eq(StringUtils.equals(status.getStockStatus(),"front"),PlatformJob::getCarCodeFront,status.getPlateNo() )//å车çå· |
| | | .eq(!StringUtils.equals(status.getStockStatus(),"front"),PlatformJob::getCarCodeBack,status.getPlateNo() )//å车çå· |
| | | .eq(PlatformJob::getIsdeleted,Constants.ZERO ) |
| | | .last("limit 1 ")); |
| | | PlatformJob update = new PlatformJob(); |
| | | update.setId(job.getId()); |
| | | update.setEditDate(new Date()); |
| | | if(StringUtils.equals(status.getMotionStatus(),"leave")){ |
| | | //妿æ¯è½¦è¾ç¦»å¼,ä¸åç¸å
³èªå¨å®æä½ä¸ä¸å¡å¤ç |
| | | /* if(job ==null && !Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.WORKING.getKey())){ |
| | | continue;//å¦ææ²¡æ¥å°å¯¹åºçä½ä¸æè
ä½ä¸å¹¶éä½ä¸ä¸ï¼ä¸åä¸å¡å¤ç |
| | | } |
| | | if(Constants.equalsInteger(job.getType(), Constants.THREE) || Constants.equalsInteger(job.getType(), Constants.TWO)){ |
| | | //妿æ¯wmsæ¨éçå¤å车è¾å¤åè½¦è¾ |
| | | if(platformWmsDetailMapper.selectCount(new QueryWrapper<PlatformWmsDetail>().lambda() |
| | | .eq(PlatformWmsDetail::getIsdeleted,Constants.ZERO) |
| | | .eq(PlatformWmsDetail::getJobId,job.getId()) |
| | | .ne(PlatformWmsDetail::getLockStatus,Constants.ONE)) >0){ |
| | | continue;//妿å¤åä»»å¡ä½ä¸ï¼ååå·ææªä¸éçæ
åµï¼ä¸åèªå¨å®æä½ä¸é»è¾å¤çï¼è·³è¿ä¸å¤ç |
| | | } |
| | | } |
| | | //å¦ææ¯æ£å¨ä½ä¸çç¶æï¼æ è®°ä½ä¸å·²å®æ |
| | | update.setStatus(Constants.PlatformJobStatus.DONE.getKey());//ä½ä¸å·²å®æ |
| | | update.setDoneDate(update.getEditDate());*/ |
| | | }else if(StringUtils.equals(status.getMotionStatus(),"enter")){ |
| | | //妿æ¯è½¦è¾è¿å
¥ |
| | | if(job ==null || !Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.CALLED.getKey())){ |
| | | //说æè½¦è¾è¿éæå° æè
è¿æªå«å·ç¶æï¼åèµ·è¦å |
| | | dealCarsInErrorPlatformBiz(job,status); |
| | | } |
| | | if(job.getStartDate() == null){ |
| | | update.setStartDate(update.getEditDate()); |
| | | } |
| | | update.setStatus(Constants.PlatformJobStatus.WORKING.getKey());//å¼å§ä½ä¸ |
| | | }else{ |
| | | continue;//å
¶ä»ç¶æä¸å¤çï¼è·³è¿ |
| | | } |
| | | //ææ¶ä¸åç¸å
³èªå¨å®æä½ä¸ä¸å¡å¤ç |
| | | // dealPlatformJobLogBiz(update,status);//è®°å½ä½ä¸æ¥å¿ |
| | | } |
| | | break;//åªå¤ç第ä¸ä¸ªæ°æ®ç¶æ |
| | | } |
| | | } |
| | | if(eventList.size()>0){ |
| | | //çæäºä»¶ |
| | | platformEventMapper.insert(eventList); |
| | | } |
| | | result = "æå"; |
| | | log.error("ãæµ·åº·æå°è½¦è¾ç¶æäºä»¶æ¨éã========æå======="); |
| | | }catch (Exception e) { |
| | | result = "失败"+e.getMessage(); |
| | | log.error("ãæµ·åº·æå°è½¦è¾ç¶æäºä»¶æ¨éã========失败=======ï¼\n" + e.getMessage()); |
| | | }finally { |
| | | saveInterfaceLog(param,"/business/hksync/push/platform/workstatus",result,false);//ä¸è®¡æ¥å¿ |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | private PlatformEvent initPlatformEventModel(EventPlatformCarsInfoRequest request, EventPlatformCarsDataRequest data, EventPlatformCarsStatusInfoRequest status) { |
| | | PlatformEvent model = new PlatformEvent(); |
| | | model.setCreateDate(new Date()); |
| | | model.setIsdeleted(Constants.ZERO); |
| | | model.setEditDate(model.getCreateDate()); |
| | | model.setEventId(request.getEventId()); |
| | | // model.setRemark(JSONObject.toJSONString(request)); |
| | | model.setEventType(request.getEventType()); |
| | | model.setDataEventType(data.getEventType()); |
| | | model.setHappenTime(request.getHappenTime()); |
| | | model.setSrcIndex(request.getSrcIndex()); |
| | | model.setSrcType(request.getSrcType()); |
| | | model.setStatus(request.getStatus()); |
| | | model.setTimeout(request.getTimeout()); |
| | | model.setDateTime(data.getDateTime()); |
| | | model.setDataType(data.getDataType()); |
| | | model.setSendTime(data.getSendTime()); |
| | | model.setIpAddress(data.getIpAddress()); |
| | | model.setIpv6Address(data.getIpv6Address()); |
| | | model.setPortNo(data.getPortNo()); |
| | | model.setMacAddress(data.getMacAddress()); |
| | | model.setProtocol(data.getProtocol()); |
| | | model.setChannelId(data.getChannelID()); |
| | | model.setChannelName(data.getChannelName()); |
| | | model.setEventState(data.getEventState()); |
| | | model.setActivePostCount(data.getActivePostCount()); |
| | | model.setEventDescription(data.getEventDescription()); |
| | | model.setDeviceId(data.getDeviceID()); |
| | | model.setHpno(status.getHPNo()); |
| | | model.setMotionStatus(status.getMotionStatus()); |
| | | model.setPlateNo(status.getPlateNo()); |
| | | model.setVehicleDoorStatus(status.getVehicleDoorStatus()); |
| | | model.setStockStatus(status.getStockStatus()); |
| | | model.setBackgroundImageContent(status.getBackgroundImage()!=null?status.getBackgroundImage().getResourcesContent():null); |
| | | model.setPlateScore(status.getPlateScore()); |
| | | model.setPlatePictureContent(status.getPlatePicture()!=null?status.getPlatePicture().getResourcesContent():null); |
| | | return model; |
| | | } |
| | | |
| | | /** |
| | | * è®°å½æå°ä½ä¸æ¥å¿ |
| | | * @param job |
| | | * @param status |
| | | */ |
| | | @Transactional |
| | | private void dealPlatformJobLogBiz(PlatformJob job,EventPlatformCarsStatusInfoRequest status) { |
| | | platformJobMapper.updateById(job);//æ´æ°ä½ä¸ç¶æ |
| | | PlatformLog log = new PlatformLog(); |
| | | log.setIsdeleted(Constants.ZERO); |
| | | log.setCreateDate(new Date()); |
| | | log.setEditDate(log.getCreateDate()); |
| | | log.setJobId(job.getId()); |
| | | log.setObjId(job.getId()+""); |
| | | if(Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.DONE.getKey())){ |
| | | //妿æ¯ä½ä¸å®æ |
| | | log.setObjType(Constants.PlatformJobLogType.DONE.getKey()); |
| | | log.setTitle(Constants.PlatformJobLogType.DONE.getName()); |
| | | log.setContent(Constants.PlatformJobLogType.DONE.getInfo()); |
| | | //æ¥è¯¢æå䏿¬¡å¼å§ä½ä¸çæ¥å¿ |
| | | PlatformLog lastBeginPlatform = platformLogMapper.selectOne(new QueryWrapper<PlatformLog>().lambda() |
| | | .eq(PlatformLog::getIsdeleted,Constants.ZERO) |
| | | .eq(PlatformLog::getObjType,Constants.PlatformJobLogType.WORKING.getKey()) |
| | | .eq(PlatformLog::getJobId,job.getId()) |
| | | .orderByDesc(PlatformLog::getCreateDate) |
| | | .last(" limit 1")); |
| | | String v = Long.toString(job.getDoneDate().getTime() - lastBeginPlatform.getCreateDate().getTime() / 1000) ; |
| | | lastBeginPlatform.setParam3(v); |
| | | lastBeginPlatform.setParam2(DateUtil.getDate(lastBeginPlatform.getCreateDate(),"yyyy-MM-dd HH:mm:ss")); |
| | | platformLogMapper.updateById(lastBeginPlatform);//æ´æ°ä¸ä¸æ¬¡ä½ä¸ç宿æ¶é´åä½ä¸æ¶é¿ |
| | | }else{ |
| | | //妿æ¯ä½ä¸ä¸ |
| | | log.setObjType(Constants.PlatformJobLogType.WORKING.getKey()); |
| | | log.setTitle(Constants.PlatformJobLogType.WORKING.getName()); |
| | | log.setContent(Constants.PlatformJobLogType.WORKING.getInfo()); |
| | | log.setParam1(DateUtil.getDate(log.getCreateDate(),"yyyy-MM-dd HH:mm:ss")); |
| | | } |
| | | platformLogMapper.insert(log); |
| | | } |
| | | |
| | | /** |
| | | * å¤ç车è¾è¿å
¥é误æå°ä¸å¡é»è¾ |
| | | * @param model (æå°è®¾å¤å
³èä¿¡æ¯ï¼ |
| | | * @param status |
| | | */ |
| | | private void dealCarsInErrorPlatformBiz( PlatformJob model,EventPlatformCarsStatusInfoRequest status) { |
| | | //TODO-----------------å¤ç车è¾è¿å
¥é误æå°ä¸å¡é»è¾ |
| | | |
| | | List<PlatformDevice> deviceList = platformDeviceMapper.selectList(new QueryWrapper<PlatformDevice>().lambda() |
| | | .eq(PlatformDevice::getPlatformId,model.getPlatformId()) |
| | | .eq(PlatformDevice::getIsdeleted,Constants.ZERO)); |
| | | if(deviceList ==null || deviceList.size() == 0){ |
| | | return; |
| | | } |
| | | String content ="车è¾"+model.getCarCodeFront()+"åéæå°äº"; |
| | | List<String> broadcastList = new ArrayList<>(); |
| | | for(PlatformDevice device : deviceList){ |
| | | if(StringUtils.isNotBlank(device.getHkId())){ |
| | | continue; |
| | | } |
| | | if(Constants.equalsInteger(device.getType(),Constants.ZERO)){ |
| | | //妿æ¯LED |
| | | TransparentChannelBodyRequest request = new TransparentChannelBodyRequest(); |
| | | TransparentChannelHeadRequest head = new TransparentChannelHeadRequest(); |
| | | head.setAbility("cld");//åºå®å¼ |
| | | head.setTreatyType("haixuan_led_net");//åºå®å¼ |
| | | head.setDeviceIndexCode(device.getHkId()); |
| | | request.setMethod("ControlLedGereral");//åºå®å¼ |
| | | request.setIndexCode(device.getHkId()); |
| | | request.setActionType(0); |
| | | request.setContent(content); |
| | | request.setOperationType(219);//åºå®å¼ |
| | | request.setRegionNo(1); |
| | | request.setRegionType(14); |
| | | request.setFontColor(1); |
| | | request.setCircleTimes(1);//å¾ªç¯æ¬¡æ° |
| | | request.setFontSize(16);// |
| | | request.setStayTime(1);//åä½ï¼ï¼ |
| | | HKService.transparentchannel(head,request); |
| | | }else if(Constants.equalsInteger(device.getType(),Constants.ZERO)){ |
| | | //妿æ¯å¹¿æç¹ |
| | | broadcastList.add(device.getHkId()); |
| | | } |
| | | } |
| | | if(broadcastList.size()>0){ |
| | | CustomBroadcastRequest request = new CustomBroadcastRequest(); |
| | | request.setAudioPointIndexCode(broadcastList); |
| | | request.setPlayDuration(60);//åä½ç§ |
| | | request.setBroadCastMode("tts"); |
| | | request.setPriority(15); |
| | | request.setState(1);//ææ¾/忢æ è¯ 1-ææ¾ï¼0-忢 |
| | | request.setPlayTtsContent(content); |
| | | HKService.customBroadcast(request); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | return null; |
| | | } |
| | | if(StringUtils.isNotBlank(c.getFaceImg())){ |
| | | log.info("===================================="+path+c.getFaceImg()+"======start===="); |
| | | info.setVisitorPhoto(ImageBase64Util.Image2Base64(path+c.getFaceImg())); |
| | | log.info("===================================="+path+c.getFaceImg()+"========end==="); |
| | | } |
| | | if(info.getVisitorPhoto() == null){ |
| | | log.info("===================================="+path+c.getFaceImg()+"======imgerror====="); |
| | | return null; |
| | | } |
| | | if(StringUtils.isNotBlank(c.getName())){ |
| | |
| | | info.setVisitorName(c.getName()); |
| | | } |
| | | } |
| | | |
| | | if(StringUtils.isNotBlank(c.getCompanyName())){ |
| | | char[] charArray = c.getCompanyName().toCharArray(); |
| | | int length = charArray.length; |
| | |
| | | info.setCertificateType(HKConstants.CertificateType.HUZHAO.getKey()+""); |
| | | info.setCertificateNo(DESUtil.decrypt(Constants.EDS_PWD, c.getIdcardNo())); |
| | | } |
| | | |
| | | return info; |
| | | } |
| | | |
| | |
| | | */ |
| | | @Override |
| | | public void syncOrgData(LoginUserInfo user){ |
| | | if(Constants.DEALING_HK_ORG || Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) != DataSyncConfig.origin.erp){ |
| | | if(Constants.DEALING_HK_ORG || |
| | | !(Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.erp |
| | | || Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.self)){ |
| | | return ; |
| | | } |
| | | Constants.DEALING_HK_ORG =true; |
| | |
| | | */ |
| | | @Override |
| | | public void syncUserData(LoginUserInfo user){ |
| | | if(Constants.DEALING_HK_USER || Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) != DataSyncConfig.origin.erp){ |
| | | if(Constants.DEALING_HK_USER || |
| | | !(Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.erp |
| | | || Constants.formatIntegerNum(dataSyncConfig.getOrgUserDataOrigin()) == DataSyncConfig.origin.self)){ |
| | | return ; |
| | | } |
| | | Constants.DEALING_HK_USER =true; |
| | |
| | | c.setFaceId(model.getPersonPhoto().get(0).getPersonPhotoIndexCode()); |
| | | c.setFaceImg(HKConstants.IMG_INDEX+model.getPersonPhoto().get(0).getPicUri()); |
| | | c.setFaceServerIndexCode(model.getPersonPhoto().get(0).getServerIndexCode()); |
| | | c.setFaceStatus(Constants.ONE); |
| | | } |
| | | newList.add(c); |
| | | } |
| | |
| | | package com.doumee.service.business.impl.wms; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.alibaba.fastjson.TypeReference; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.HttpsUtil; |
| | | import com.doumee.core.wms.model.request.*; |
| | | import com.doumee.core.wms.model.response.WmsBaseDataResponse; |
| | | import com.doumee.core.wms.model.response.WmsBaseResponse; |
| | | import com.doumee.core.wms.model.response.WmsInventoryDataResponse; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.service.business.WmsService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * WMSå¹³å°å¯¹æ¥Serviceå®ç° |
| | |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class WmsServiceImpl implements WmsService { |
| | | @Autowired |
| | | private PlatformWmsJobMapper platformWmsJobMapper; |
| | |
| | | private PlatformJobMapper platformJobMapper; |
| | | @Autowired |
| | | private PlatformWmsDetailMapper platformWmsDetailMapper; |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | @Autowired |
| | | private WmsInterfaceLogMapper wmsInterfaceLogMapper; |
| | | |
| | | /** |
| | | * å
¥åºéç¥ä»»å¡ä¸å¡å¤ç |
| | | * @param job åæ° |
| | | * @return |
| | | */ |
| | | @Override |
| | | public WmsBaseResponse<WmsBaseDataResponse> orderPlatformBind(PlatformJob job) { |
| | | if(StringUtils.isBlank(job.getBillCode()) || StringUtils.isBlank(job.getPlatformWmsCode())){ |
| | | |
| | | return null; |
| | | } |
| | | int type = 0; |
| | | if(Constants.equalsInteger(job.getType(),Constants.ONE) |
| | | || Constants.equalsInteger(job.getType(),Constants.THREE)){ |
| | | //妿æ¯è£
è´§ï¼åºåºï¼ |
| | | type =1 ; |
| | | }else if(Constants.equalsInteger(job.getType(),Constants.ZERO) |
| | | || Constants.equalsInteger(job.getType(),Constants.TWO)){ |
| | | //妿æ¯è£
è´§ï¼åºåºï¼ |
| | | type =0 ; |
| | | }else{ |
| | | return null; |
| | | } |
| | | WmsOrderPlatformRequest param = new WmsOrderPlatformRequest(); |
| | | param.setData(new ArrayList<>()); |
| | | WmsOrderPlatformInfoRequest o = new WmsOrderPlatformInfoRequest(); |
| | | o.setCarrierBillCode(job.getBillCode()); |
| | | o.setRailwayNo(job.getPlatformWmsCode()); |
| | | param.getData().add(o); |
| | | String url = type == 0?systemDictDataBiz.queryByCode(Constants.WSM_PARAM,Constants.WMS_INBOUND_PLATFROM_URL).getCode():systemDictDataBiz.queryByCode(Constants.WSM_PARAM,Constants.WMS_OUTBOUND_PLATFROM_URL).getCode();; |
| | | String name = type ==0?"ãWMSãå
¥åº«ä½ä¸ååé
æå°":"ãWMSãåºåºä½ä¸çåé
æå°"; |
| | | WmsBaseResponse<WmsBaseDataResponse> response = sendHttpRequest(url,name,JSONObject.toJSONString(param),new TypeReference< WmsBaseResponse<WmsBaseDataResponse>>(){}); |
| | | PlatformJob update = new PlatformJob(); |
| | | update.setId(job.getId()); |
| | | update.setWmsSendDate(new Date()); |
| | | update.setWmsSendNum(job.getWmsSendNum() + 1); |
| | | update.setWmsSendPlatformCode(job.getPlatformWmsCode()); |
| | | if(response!=null && response.getData() !=null |
| | | && response.getData().size()>0 && StringUtils.equals(response.getData().get(0).getSuccess(),WmsBaseResponse.CODE_SUCCESS)){ |
| | | //妿æå |
| | | update.setWmsSendStatus(Constants.ONE); |
| | | update.setWmsSendInfo("éç¥WMSä½ä¸ååé
æå°æå"); |
| | | }else{ |
| | | //å¦æå¤±è´¥ |
| | | update.setWmsSendStatus(Constants.TWO); |
| | | update.setWmsSendInfo("éç¥WMSä½ä¸ååé
æå°å¤±è´¥:"+(response!=null?JSONObject.toJSONString(response):"æ¥å£è°ç¨å¤±è´¥")); |
| | | } |
| | | platformJobMapper.updateById(update); |
| | | return response; |
| | | |
| | | } |
| | | /** |
| | | * å
¥åºéç¥ä»»å¡ä¸å¡å¤ç |
| | | * @return |
| | | */ |
| | | @Override |
| | | public WmsBaseResponse<WmsInventoryDataResponse> getInventoryList(){ |
| | | String url = systemDictDataBiz.queryByCode(Constants.WSM_PARAM,Constants.WMS_GET_INVENTORYLIST_URL).getCode() ; |
| | | String name = "ãWMSãåºåæ¥è¯¢" ; |
| | | WmsBaseResponse<WmsInventoryDataResponse> response = sendHttpRequest(url,name,JSONObject.toJSONString(new JSONObject()),new TypeReference< WmsBaseResponse<WmsInventoryDataResponse>>(){}); |
| | | if(response!=null |
| | | && response.getData() !=null |
| | | && response.getData().size()>0 |
| | | && StringUtils.equals(response.getData().get(0).getSuccess(),WmsBaseResponse.CODE_SUCCESS)){ |
| | | //å¦æè¯·æ±æå |
| | | |
| | | }else{ |
| | | //å¦æå¤±è´¥ |
| | | if(response ==null){ |
| | | response = new WmsBaseResponse(); |
| | | response.setData(new ArrayList<>()); |
| | | } |
| | | if(response.getData() == null){ |
| | | response.setData(new ArrayList<>()); |
| | | } |
| | | } |
| | | return response; |
| | | |
| | | } |
| | | @Override |
| | | public void saveInterfaceLog(String url,String name,String param,Integer success,String respone,int type){ |
| | | if(wmsInterfaceLogMapper ==null){ |
| | | return; |
| | | } |
| | | WmsInterfaceLog log = new WmsInterfaceLog(); |
| | | log.setCreateDate(new Date()); |
| | | log.setUrl(url); |
| | | log.setEditDate(log.getCreateDate()); |
| | | log.setPlat(Constants.ZERO); |
| | | log.setName(name); |
| | | log.setIsdeleted(Constants.ZERO); |
| | | log.setRequest(param); |
| | | log.setType(type); |
| | | log.setSuccess(success); |
| | | log.setRepose(respone); |
| | | wmsInterfaceLogMapper.insert(log); |
| | | } |
| | | |
| | | /** |
| | | * åèµ·wmsæ¥å£è¯·æ± |
| | | * @param url |
| | | * @param name |
| | | * @param param |
| | | * @param typeReference |
| | | * @return |
| | | * @param <T> |
| | | */ |
| | | public <T> WmsBaseResponse<T> sendHttpRequest(String url, String name, String param,TypeReference<WmsBaseResponse<T>> typeReference){ |
| | | log.info("ã"+name+"ã================å¼å§===="+ JSONObject.toJSONString(param)); |
| | | if ( StringUtils.isNotBlank(url)) { |
| | | String res = null; |
| | | int success = 0; |
| | | try { |
| | | Map<String,String> headers = new HashMap<>(); |
| | | res = HttpsUtil.postJson(url,param); |
| | | WmsBaseResponse result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,name); |
| | | if(result!=null && result.getData() !=null ){ |
| | | |
| | | }else{ |
| | | success =1; |
| | | } |
| | | return result; |
| | | }catch (Exception e){ |
| | | success = 1; |
| | | log.error("ã"+name+"ã================失败===="+ JSONObject.toJSONString(param)); |
| | | }finally { |
| | | saveInterfaceLog(url,name,param,success,res,Constants.ZERO); |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | private static void logResult(WmsBaseResponse<WmsBaseDataResponse> res,String name) { |
| | | if(StringUtils.equals(res.getData().get(0).getSuccess(), WmsBaseResponse.CODE_SUCCESS)){ |
| | | log.info("ãWMSæ¥å£ï¼"+name+"ã================æå====\n"+res); |
| | | }else{ |
| | | log.error("ãWMSæ¥å£ï¼"+name+"ã================失败====ï¼\n"+ res); |
| | | } |
| | | } |
| | | /** |
| | | * å
¥åºéç¥ä»»å¡ä¸å¡å¤ç |
| | | * @param list åæ° |
| | |
| | | */ |
| | | @Override |
| | | @Transactional |
| | | public WmsBaseResponse inboundNotice(List<WmsInboundNoticeRequest> list) { |
| | | public WmsBaseResponse<WmsBaseDataResponse> inboundNotice(List<WmsInboundNoticeRequest> list) { |
| | | if(list ==null || list.size() ==0){ |
| | | return returnFailReuslt("请æ±åæ°ä¸æ£ç¡®ï¼åæ°ä¸è½ä¸ºç©º"); |
| | | } |
| | |
| | | entity.setCreateDate(new Date()); |
| | | entity.setIsdeleted(Constants.ZERO); |
| | | entity.setIocode(d.getIoCode()); |
| | | entity.setJobId(job.getId()); |
| | | entity.setJobId(job.getJobId()); |
| | | entity.setWmsJobId(job.getId()); |
| | | entity.setIoQty(d.getIoQty()); |
| | | entity.setStatus(Constants.ZERO); |
| | | entity.setRate(d.getRate()); |
| | |
| | | job.setPlateNumber(param.getPlateNumber()); |
| | | job.setType(Constants.ONE); |
| | | job.setIoCreatedate(param.getCreateDate()); |
| | | job.setJobId(model.getId()); |
| | | job.setJobId(job.getId()); |
| | | job.setDriverPhone(param.getDriverPhone()); |
| | | platformWmsJobMapper.insert(job); |
| | | jobList.add(model); |
| | |
| | | entity.setCreateDate(new Date()); |
| | | entity.setIsdeleted(Constants.ZERO); |
| | | entity.setIocode(d.getIoCode()); |
| | | entity.setJobId(job.getId()); |
| | | entity.setJobId(job.getJobId()); |
| | | entity.setWmsJobId(job.getId()); |
| | | entity.setIoQty(d.getIoQty()); |
| | | entity.setStatus(Constants.ZERO); |
| | | entity.setRate(d.getRate()); |
| | |
| | | * @return |
| | | */ |
| | | |
| | | |
| | | private WmsBaseResponse returnSuccessReuslt(String msg) { |
| | | WmsBaseResponse response = new WmsBaseResponse(); |
| | | response.setData(new ArrayList<>()); |
| | |
| | | spring: |
| | | # æ°æ®æºé
ç½® |
| | | datasource: |
| | | url: jdbc:mysql://sh-cdb-aiskr3vy.sql.tencentcdb.com:62443/antaiwuliu?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai |
| | | username: doumee |
| | | password: rtjgfEr@&0c0m |
| | | url: jdbc:mysql://localhost:3306/antaiwuliu?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai |
| | | username: root |
| | | password: Atwl@2024 |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | redis: |