Browse Source

Merge remote-tracking branch 'origin/master'

zhongwei
tyty 1 year ago
parent
commit
7ef84f103c
  1. 24
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/vo/WindScoreVo.java
  2. 3
      hzims-service-api/middle-api/src/main/java/com/hnac/hzims/middle/process/fallback/ProcessDictFeignServiceFallback.java
  3. 4
      hzims-service-api/middle-api/src/main/java/com/hnac/hzims/middle/process/feign/ProcessDictFeignService.java
  4. 6
      hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/processflow/controller/ProcessDictController.java
  5. 2
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/standardTicket/service/impl/OperationTicketServiceImpl.java
  6. 3
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java

24
hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/vo/WindScoreVo.java

@ -28,33 +28,29 @@ public class WindScoreVo {
@JsonSerialize(nullsUsing = NullSerializer.class) @JsonSerialize(nullsUsing = NullSerializer.class)
private Double installedCapacity; private Double installedCapacity;
@ApiModelProperty(value = "年平均风速") @ApiModelProperty(value = "今日发电量")
@JsonSerialize(nullsUsing = NullSerializer.class) @JsonSerialize(nullsUsing = NullSerializer.class)
private Double capacityRate; private Double generateDay;
@ApiModelProperty(value = "总有功功率") @ApiModelProperty(value = "月总发电量")
@JsonSerialize(nullsUsing = NullSerializer.class) @JsonSerialize(nullsUsing = NullSerializer.class)
private Double load; private Double generateMon;
@ApiModelProperty(value = "年总发电量") @ApiModelProperty(value = "年总发电量")
@JsonSerialize(nullsUsing = NullSerializer.class) @JsonSerialize(nullsUsing = NullSerializer.class)
private Double generateYear; private Double generateYear;
@ApiModelProperty(value = "月总发电量") @ApiModelProperty(value = "月平均风速")
@JsonSerialize(nullsUsing = NullSerializer.class)
private Double generateMon;
@ApiModelProperty(value = "日总发电量")
@JsonSerialize(nullsUsing = NullSerializer.class) @JsonSerialize(nullsUsing = NullSerializer.class)
private Double generateDay; private Double speedRate;
@ApiModelProperty(value = "年计划发电量") @ApiModelProperty(value = "短期准确率")
@JsonSerialize(nullsUsing = NullSerializer.class) @JsonSerialize(nullsUsing = NullSerializer.class)
private Double plan; private Double accuracy;
@ApiModelProperty(value = "年计划完成率") @ApiModelProperty(value = "超短期准确率")
@JsonSerialize(nullsUsing = NullSerializer.class) @JsonSerialize(nullsUsing = NullSerializer.class)
private Double planRate; private Double ultraShortAccuracyRate;
@ApiModelProperty(value = "近年发电量集合") @ApiModelProperty(value = "近年发电量集合")
private List<PowerYearVo> powerYearVoList; private List<PowerYearVo> powerYearVoList;

3
hzims-service-api/middle-api/src/main/java/com/hnac/hzims/middle/process/fallback/ProcessDictFeignServiceFallback.java

@ -21,11 +21,10 @@ public class ProcessDictFeignServiceFallback implements ProcessDictFeignService
* *
* @param staff * @param staff
* @param typeInstrument * @param typeInstrument
* @param createTime
* @return * @return
*/ */
@Override @Override
public String getTicketByCode(String staff, String typeInstrument, LocalDateTime createTime) { public String getTicketByCode(String staff, String typeInstrument) {
log.error("获取工作票工作票唯一ID 熔断措施"); log.error("获取工作票工作票唯一ID 熔断措施");
return null; return null;
} }

4
hzims-service-api/middle-api/src/main/java/com/hnac/hzims/middle/process/feign/ProcessDictFeignService.java

@ -21,13 +21,11 @@ public interface ProcessDictFeignService {
* *
* @param staff * @param staff
* @param typeInstrument * @param typeInstrument
* @param createTime
* @return * @return
*/ */
@GetMapping("/process-dict/getTicketByCode") @GetMapping("/process-dict/getTicketByCode")
public String getTicketByCode(@RequestParam("staff") String staff, public String getTicketByCode(@RequestParam("staff") String staff,
@RequestParam("typeInstrument") String typeInstrument, @RequestParam("typeInstrument") String typeInstrument);
@RequestParam("createTime") LocalDateTime createTime);
/** /**

6
hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/processflow/controller/ProcessDictController.java

@ -62,14 +62,12 @@ public class ProcessDictController {
* *
* @param staff * @param staff
* @param typeInstrument * @param typeInstrument
* @param createTime
* @return * @return
*/ */
@GetMapping("/getTicketByCode") @GetMapping("/getTicketByCode")
public String getTicketByCode(@RequestParam("staff") String staff, public String getTicketByCode(@RequestParam("staff") String staff,
@RequestParam("typeInstrument") String typeInstrument, @RequestParam("typeInstrument") String typeInstrument) {
@RequestParam("createTime") LocalDateTime createTime) { return processIdWorker.getTicketByCode(staff, typeInstrument, LocalDateTime.now());
return processIdWorker.getTicketByCode(staff, typeInstrument, createTime);
} }

2
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/standardTicket/service/impl/OperationTicketServiceImpl.java

@ -126,7 +126,7 @@ public class OperationTicketServiceImpl implements OperationTicketService {
standardTicketInfoVo.setSignage(signage); standardTicketInfoVo.setSignage(signage);
standardTicketInfoVo.setSignageCode(station.getCode()); standardTicketInfoVo.setSignageCode(station.getCode());
//2. 获取编码 //2. 获取编码
String code = processDictFeignService.getTicketByCode(standardTicketInfoVo.getSignage(), this.getTicketWichCode(standardTicketInfoVo.getTicketType()), LocalDateTime.now()); String code = processDictFeignService.getTicketByCode(standardTicketInfoVo.getSignage(), this.getTicketWichCode(standardTicketInfoVo.getTicketType()));
log.info("获取编码: {}", code); log.info("获取编码: {}", code);
if (StringUtils.isBlank(code)) { if (StringUtils.isBlank(code)) {
throw new ServiceException("服务器异常,请联系管理员"); throw new ServiceException("服务器异常,请联系管理员");

3
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java

@ -191,8 +191,7 @@ public class TicketProcessServiceImpl implements TicketProcessService {
workTicketVo.getWorkTicket().setSignage(station.getSignage()); workTicketVo.getWorkTicket().setSignage(station.getSignage());
workTicketVo.getWorkTicket().setSignageCode(station.getCode()); workTicketVo.getWorkTicket().setSignageCode(station.getCode());
//2. 获取编码 //2. 获取编码
String code = processDictFeignService.getTicketByCode(signage, this.getTicketWichCode(workTicketVo.getWorkTicket().getType()), String code = processDictFeignService.getTicketByCode(signage, this.getTicketWichCode(workTicketVo.getWorkTicket().getType()));
LocalDateTime.now());
log.info("获取编码: {}", code); log.info("获取编码: {}", code);
if (StringUtils.isBlank(code)) { if (StringUtils.isBlank(code)) {
throw new ServiceException("服务器异常,请联系管理员"); throw new ServiceException("服务器异常,请联系管理员");

Loading…
Cancel
Save