info添加标记是否添加电池组addBinfFlag
| | |
| | | } |
| | | try { |
| | | PowerInf pinf=InfoFactory.infoToPower(info); |
| | | BattInf binf=InfoFactory.infoToBatt(info); |
| | | pinfService.addPower(pinf); |
| | | if(info.getAddBinfFlag()==1){ |
| | | BattInf binf=InfoFactory.infoToBatt(info); |
| | | binf.setStationId(pinf.getStationId()); |
| | | binf.setPowerId(pinf.getPowerId()); |
| | | binfService.addDev(binf); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | msg="添加失败"; |
| | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai") |
| | | private Date createTime; |
| | | |
| | | |
| | | @ApiModelProperty(value = "标识是否加入电池组1:添加,0不添加") |
| | | private Integer addBinfFlag; |
| | | } |