Merge remote-tracking branch 'origin/dev' into dev
| | |
| | | import java.math.BigDecimal; |
| | | |
| | | @Data |
| | | @ApiModel(value = "SiteVO对象", description = "小程序扫一扫-详情页面") |
| | | @ApiModel(value = "SiteInfoVO对象", description = "小程序扫一扫-详情页面") |
| | | public class SiteInfoVO { |
| | | @ApiModelProperty(value = "电站名称") |
| | | private String name; |
| | |
| | | return R.ok(s); |
| | | }*/ |
| | | |
| | | private static final String FILE_DIRECTORY = "/var/files/ldf_files"; // Linux路径 |
| | | private static final String FILE_DIRECTORY = "/dev/xvdb/project/upload_files"; // Linux路径 |
| | | // private static final String FILE_DIRECTORY = "E://ldf_files"; // Linux路径 |
| | | |
| | | @PostMapping("/upload") |
| | |
| | | File targetFile = new File(filePath); |
| | | file.transferTo(targetFile); |
| | | // 5. 返回可访问的URL(修正路径分隔符为Web格式) |
| | | return R.ok("http://zjrqxny.com/account/app-user/download" + datePath + "/" + UUID+file.getOriginalFilename()); |
| | | return R.ok("https://zjrqxny.com/images" + datePath + "/" + UUID+file.getOriginalFilename()); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | return R.fail("上传文件失败"); |
| | |
| | | |
| | | // 处理空列表情况 |
| | | if (accountingStrategyDetails == null || accountingStrategyDetails.isEmpty()) { |
| | | return false; |
| | | return true; |
| | | } |
| | | |
| | | // 按开始时间排序 |
| | |
| | | |
| | | // 首尾时间不匹配,不能构成24小时周期 |
| | | if (!firstDetail.getStartTime().equals(lastDetail.getEndTime())) { |
| | | return false; |
| | | return true; |
| | | } |
| | | |
| | | // 检查中间时间段是否连续 |
| | |
| | | |
| | | // 当前时间段的开始时间必须等于前一个时间段的结束时间 |
| | | if (!current.getStartTime().equals(previous.getEndTime())) { |
| | | return false; |
| | | return true; |
| | | } |
| | | } |
| | | |
| | | return true; |
| | | return false; |
| | | } |
| | | |
| | | @Override |
| | |
| | | try { |
| | | String url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=" + accessToken; |
| | | Map<String, Object> param = new HashMap<>(); |
| | | // param.put("scene", "phone=" + phonenumber); |
| | | param.put("scene", "phone=" + phonenumber+",amount="+amount); |
| | | param.put("page", "chargingPile/payMent/payMent"); |
| | | param.put("check_path", false); |