feat:发票管理、设备列表代码生成

This commit is contained in:
dzc committed 2025-01-05 14:40:03 +08:00
1 parent 7b55aa0f1c
commit bfa0b50aac
29 files changed
+794 -36

No files matched your search

@@ -1,4 +1,4 @@
package hardware.constant;
package com.bsd.pjcloud.hard.api.constant;
import cn.hutool.core.util.ObjectUtil;
import lombok.AllArgsConstructor;
@@ -1,4 +1,4 @@
package hardware.constant;
package com.bsd.pjcloud.hard.api.constant;
import cn.hutool.core.util.ObjectUtil;
@@ -0,0 +1,8 @@
package com.bsd.pjcloud.hard.api.dto;
import com.bsd.pjcloud.hard.api.entity.HardInvoiceEntity;
import lombok.Data;
@Data
public class HardInvoiceDto extends HardInvoiceEntity {
}
@@ -0,0 +1,8 @@
package com.bsd.pjcloud.hard.api.dto;
import com.bsd.pjcloud.hard.api.entity.HardManagerEntity;
import lombok.Data;
@Data
public class HardManagerDto extends HardManagerEntity {
}
@@ -1,4 +1,4 @@
package hardware.dto.code;
package com.bsd.pjcloud.hard.api.dto.code;
import lombok.AllArgsConstructor;
import lombok.Builder;
@@ -0,0 +1,103 @@
package com.bsd.pjcloud.hard.api.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.bsd.pjcloud.common.core.util.TenantTable;
import java.time.LocalDateTime;
/**
* 发票记录
*
* @author dzc
* @date 2025-01-05 14:17:32
*/
@Data
@TenantTable
@TableName("hard_invoice")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "发票记录")
public class HardInvoiceEntity extends Model<HardInvoiceEntity> {
/**
* 编号
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description="编号")
private Long id;
/**
* 部门id
*/
@Schema(description="部门id")
private Long deptId;
/**
* 设备id
*/
@Schema(description="设备id")
private Long hardId;
/**
* 硬件订单id
*/
@Schema(description="硬件订单id")
private Long hardOrderId;
/**
* 状态
*/
@Schema(description="状态")
private String status;
/**
* 发票图片
*/
@Schema(description="发票图片")
private String pic;
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description="创建人")
private String createBy;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description="创建时间")
private LocalDateTime createTime;
/**
* 修改人
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description="修改人")
private String updateBy;
/**
* 修改时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description="修改时间")
private LocalDateTime updateTime;
/**
* 删除标记
*/
@TableLogic
@TableField(fill = FieldFill.INSERT)
@Schema(description="删除标记")
private String delFlag;
/**
* 租户ID
*/
@Schema(description="租户ID")
private Long tenantId;
}
@@ -0,0 +1,163 @@
package com.bsd.pjcloud.hard.api.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.bsd.pjcloud.common.core.util.TenantTable;
import java.time.LocalDateTime;
/**
* 设备管理
*
* @author dzc
* @date 2025-01-05 14:16:52
*/
@Data
@TenantTable
@TableName("hard_manager")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "设备管理")
public class HardManagerEntity extends Model<HardManagerEntity> {
/**
* 编号
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description="编号")
private Long id;
/**
* 商户id
*/
@Schema(description="商户id")
private Long merchantId;
/**
* 商家部门id
*/
@Schema(description="商家部门id")
private Long deptId;
/**
* 设备名
*/
@Schema(description="设备名")
private String name;
/**
* 设备类型
*/
@Schema(description="设备类型")
private String type;
/**
* mq连接id
*/
@Schema(description="mq连接id")
private String mqClientId;
/**
* 设备唯一编号
*/
@Schema(description="设备唯一编号")
private String uniqueCode;
/**
* 当前设备的topic
*/
@Schema(description="当前设备的topic")
private String mainTopic;
/**
* mq地址
*/
@Schema(description="mq地址")
private String mqSocketAddress;
/**
* mq端口
*/
@Schema(description="mq端口")
private String mqSocketPort;
/**
* mq用户名
*/
@Schema(description="mq用户名")
private String mqUsername;
/**
* mq密码
*/
@Schema(description="mq密码")
private String mqPassword;
/**
* 是否为当前商户的取餐机器
*/
@Schema(description="是否为当前商户的取餐机器")
private String isTakeFood;
/**
* 人脸appid
*/
@Schema(description="人脸appid")
private String faceAppId;
/**
* 人脸sdkKey
*/
@Schema(description="人脸sdkKey")
private String faceSdkKey;
/**
* 人脸activeKey
*/
@Schema(description="人脸activeKey")
private String faceActiveKey;
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description="创建人")
private String createBy;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description="创建时间")
private LocalDateTime createTime;
/**
* 修改人
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description="修改人")
private String updateBy;
/**
* 修改时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description="修改时间")
private LocalDateTime updateTime;
/**
* 删除标记
*/
@TableLogic
@TableField(fill = FieldFill.INSERT)
@Schema(description="删除标记")
private String delFlag;
/**
* 租户ID
*/
@Schema(description="租户ID")
private Long tenantId;
}
@@ -3,4 +3,4 @@
* <p>
* feign client 存放目录,注意 @EnablePigxFeignClients 的扫描范围
*/
package hardware.api.feign;
package com.bsd.pjcloud.hard.api.feign;
@@ -1,10 +1,10 @@
package hardware.utils;
package com.bsd.pjcloud.hard.api.utils;
import cn.hutool.core.codec.Base64;
import cn.hutool.core.lang.Pair;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.json.JSONUtil;
import hardware.dto.code.QRCodeDto;
import com.bsd.pjcloud.hard.api.dto.code.QRCodeDto;
import lombok.experimental.UtilityClass;
@UtilityClass
@@ -0,0 +1,8 @@
package com.bsd.pjcloud.hard.api.vo;
import com.bsd.pjcloud.hard.api.entity.HardInvoiceEntity;
import lombok.Data;
@Data
public class HardInvoiceVo extends HardInvoiceEntity {
}
@@ -0,0 +1,8 @@
package com.bsd.pjcloud.hard.api.vo;
import com.bsd.pjcloud.hard.api.entity.HardManagerEntity;
import lombok.Data;
@Data
public class HardManagerVo extends HardManagerEntity {
}