| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.lang.reflect.Field; |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | |
| | | /** |
| | |
| | | //获取指令id |
| | | String key = RedisConst.buildKey(RedisConst.KYE_ORDER, conf.getKqdm()); |
| | | String orderId = (String) redisUtil.get(key); |
| | | if (StringUtils.isEmpty(orderId)) { |
| | | log.error("指令id失效"); |
| | | ResponseDto responseDto = new ResponseDto(99, "指令id失效"); |
| | | apiLog.setStatus(99); |
| | | apiLog.setResult("指令id失效"); |
| | | apiLogRep.save(apiLog); |
| | | return responseDto; |
| | | } |
| | | // if (StringUtils.isEmpty(orderId)) { |
| | | // log.error("指令id失效"); |
| | | // ResponseDto responseDto = new ResponseDto(99, "指令id失效"); |
| | | // apiLog.setStatus(99); |
| | | // apiLog.setResult("指令id失效"); |
| | | // apiLogRep.save(apiLog); |
| | | // return responseDto; |
| | | // } |
| | | |
| | | //封装推送数据 |
| | | SX2024ReqDto reqData = new SX2024ReqDto(); |
| | |
| | | return apiData; |
| | | } |
| | | if (Constant.API_CODE_1505.equals(inteId)) { |
| | | Api1505 api1505 = (Api1505)data; |
| | | SX2024Api1505 apiData = new SX2024Api1505(); |
| | | BeanUtils.copyProperties(data, apiData); |
| | | BeanUtils.copyProperties(api1505, apiData); |
| | | apiData.setCqunit(api1505.getCqunit() + ""); |
| | | return apiData; |
| | | } |
| | | if (Constant.API_CODE_1506.equals(inteId)) { |