diff --git a/hzims-service-api/ticket-api/src/main/java/com/hnac/hzims/ticket/allTicket/vo/TicketInfoStatisticVO.java b/hzims-service-api/ticket-api/src/main/java/com/hnac/hzims/ticket/allTicket/vo/TicketInfoStatisticVO.java index 42df792..8c6adca 100644 --- a/hzims-service-api/ticket-api/src/main/java/com/hnac/hzims/ticket/allTicket/vo/TicketInfoStatisticVO.java +++ b/hzims-service-api/ticket-api/src/main/java/com/hnac/hzims/ticket/allTicket/vo/TicketInfoStatisticVO.java @@ -26,6 +26,10 @@ public class TicketInfoStatisticVO implements Serializable { @JsonSerialize(nullsUsing = NullSerializer.class) private Double ticketInfoProportion; + @ApiModelProperty("本月票据合格率") + @JsonSerialize(nullsUsing = NullSerializer.class) + private String ticketInfoProportionName; + @ApiModelProperty("票据种类") private String ticketInfoType; diff --git a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmHandleServiceImpl.java b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmHandleServiceImpl.java index 769e53e..4eab31a 100644 --- a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmHandleServiceImpl.java +++ b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmHandleServiceImpl.java @@ -137,7 +137,7 @@ public class AlarmHandleServiceImpl extends ServiceImpl> listPage(Query query, VectorParamEntity req) { + return R.data(vectorParamService.page(Condition.getPage(query), Condition.getQueryWrapper(req).lambda())); + } + + @GetMapping("/detail") + @ApiOperation(value = "查看详情") + @ApiOperationSupport(order = 2) + public R detail(@RequestParam @ApiParam("主键ID") Long id) { + return R.data(vectorParamService.getById(id)); + } + + @PostMapping("/save") + @ApiOperation(value = "保存向量参数配置") + @ApiOperationSupport(order = 3) + public R save(@RequestBody VectorParamEntity req) { + return R.status(vectorParamService.save(req)); + } + + @DeleteMapping("/remove") + @ApiOperation(value = "删除向量参数配置") + @ApiOperationSupport(order = 4) + public R remove(@RequestParam @ApiParam("主键ID,按逗号分隔") String ids) { + return R.status(vectorParamService.removeByIds(Func.toLongList(",",ids))); + } + + @PutMapping("/update") + @ApiOperation(value = "编辑向量参数配置") + @ApiOperationSupport(order = 5) + public R update(@RequestBody VectorParamEntity req) { + return R.status(vectorParamService.updateById(req)); + } + + +} diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/VectorParamEntity.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/VectorParamEntity.java new file mode 100644 index 0000000..ee8f458 --- /dev/null +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/VectorParamEntity.java @@ -0,0 +1,35 @@ +package com.hnac.hzims.bigmodel.maintenance.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import org.springblade.core.tenant.mp.TenantEntity; + +import java.io.Serializable; + +/** + * @Author: ypj + * @Date: 2024/9/2 14:54 + */ +@ApiModel("向量参数配置") +@TableName("HZIMS_VECTOR_PARAM") +@Data +public class VectorParamEntity extends TenantEntity implements Serializable { + private static final long serialVersionUID = 1L; + + @ApiModelProperty("参数名称") + private String name; + + @ApiModelProperty("url") + private String url; + + @ApiModelProperty("项目前缀") + private String projectPrefix; + + @ApiModelProperty("数据库表名") + private String tableName; + + @ApiModelProperty("向量键值对,json格式") + private String attributeMap; +} diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/mapper/VectorParamMapper.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/mapper/VectorParamMapper.java new file mode 100644 index 0000000..6d779e7 --- /dev/null +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/mapper/VectorParamMapper.java @@ -0,0 +1,11 @@ +package com.hnac.hzims.bigmodel.maintenance.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hnac.hzims.bigmodel.maintenance.entity.VectorParamEntity; + +/** + * @Author: ypj + * @Date: 2024/09/02 15:12 + */ +public interface VectorParamMapper extends BaseMapper { +} diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/VectorParamService.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/VectorParamService.java new file mode 100644 index 0000000..f272202 --- /dev/null +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/VectorParamService.java @@ -0,0 +1,13 @@ +package com.hnac.hzims.bigmodel.maintenance.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.bigmodel.maintenance.entity.VectorParamEntity; + +/** + * @Author: ypj + * @Date: 2024/09/02 15:11 + */ + +public interface VectorParamService extends IService { + +} diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/impl/VectorParamServiceImpl.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/impl/VectorParamServiceImpl.java new file mode 100644 index 0000000..2519ec4 --- /dev/null +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/service/impl/VectorParamServiceImpl.java @@ -0,0 +1,13 @@ +package com.hnac.hzims.bigmodel.maintenance.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.bigmodel.maintenance.entity.VectorParamEntity; +import com.hnac.hzims.bigmodel.maintenance.mapper.VectorParamMapper; +import com.hnac.hzims.bigmodel.maintenance.service.VectorParamService; + +/** + * @Author: ypj + * @Date: 2024/9/2 16:14 + */ +public class VectorParamServiceImpl extends ServiceImpl implements VectorParamService { +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/mapper/FocusAttributeMapper.xml b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/mapper/FocusAttributeMapper.xml index b211040..729b5a6 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/mapper/FocusAttributeMapper.xml +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/mapper/FocusAttributeMapper.xml @@ -2,7 +2,7 @@