Your Name 3056f44a6e feat: 第三方数据库配置 + 库存检查功能
1. 系统设置新增第三方数据库配置管理
   - 支持SQL Server/MySQL/PostgreSQL
   - 支持连接测试、启用/禁用

2. 任务子类型新增「检查库存」选项
   - 启用后发布任务需要输入商品条码
   - 自动查询聚水潭库存信息

3. 发起任务页面集成库存检查
   - 库存>1才允许发布任务
   - 库存不足提示先申请样品

库存查询配置:
- 数据表:jst_inventoryInfo
- 仓库条件:wms_co_id='14138566'
2026-01-05 14:58:12 +08:00

86 lines
1.4 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.designhub.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* 第三方数据库配置实体类
*/
@Data
@TableName("third_party_db_config")
public class ThirdPartyDbConfig implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 配置名称
*/
private String name;
/**
* 数据库类型:sqlserver/mysql/postgresql等
*/
private String dbType;
/**
* 服务器地址
*/
private String host;
/**
* 端口号
*/
private Integer port;
/**
* 数据库名称
*/
private String database;
/**
* 用户名
*/
private String username;
/**
* 密码(加密存储)
*/
private String password;
/**
* 是否启用:0-禁用 1-启用
*/
private Integer enabled;
/**
* 连接超时时间(秒)
*/
private Integer connectionTimeout;
/**
* 备注
*/
private String remark;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
}